Professional Documents
Culture Documents
In this theory set was defined as collection of objects which as distinguishable . how ever it could not
address Rusell’s paradox which states that. Suppose that the universe of discourse is the set of all sets
and let S be set a set whose object are set which are not members of themsellves,then S a member of
itself?
This theory was free from contradictions. Zermelo–Fraenkel set theory, named after
mathematicians Ernst Zermelo and Abraham Fraenkel, is one of several axiomatic systems that were
proposed in the early twentieth century. ZFC is intended to formalize a single primitive notion, that of
a hereditary well-founded set, so that all entities in the universe of discourse are such sets. Thus the
axioms of ZFC refer only to pure sets and prevent its models from containing urelements (elements of
sets that are not themselves sets). Furthermore, proper classes (collections of mathematical
objectsdefined by a property shared by their members which are too big to be sets) can only be treated
indirectly. Specifically, ZFC does not allow for the existence of a universal set (a set containing all
sets) nor for unrestricted comprehension, thereby avoiding Russell's paradox.
AXIOMS.
(1)
2. Axiom of the Unordered Pair: For any and there exists a set that contains
exactly and . (also called Axiom of Pairing)
(2)
3. Axiom of Subsets: If is a property (with parameter ), then for any and there exists a
set that contains all those that have the property . (also called Axiom of
Separation or Axiom of Comprehension)
(3)
4. Axiom of the Sum Set: For any there exists a set , the union of all elements of . (also
called Axiom of Union)
(4)
5. Axiom of the Power Set: For any there exists a set , the set of all subsets of .
(5)
(6)
(7)
8. Axiom of Foundation: Every nonempty set has an -minimal element. (also called Axiom of
Regularity)
(8)
Representation of Sets
Definition:
Notation:
There is a fairly simple notation for sets. We simply list each element (or "member") separated by a
comma, and then put some curly brackets around the whole thing:
{3,6,9,10,…}
Numerical Sets
So what does this have to do with mathematics? When we define a set, all we have to specify is a
common characteristic. Who says we can't do so with numbers?
And the list goes on. We can come up with all different types of sets.
There can also be sets of numbers that have no common property, they are just defined that way. For
example:
Sets are the fundamental property of mathematics. Now as a word of warning, sets, by themselves,
seem pretty pointless. But it's only when we apply sets in different situations do they become the
powerful building block of mathematics that they are.
Math can get amazingly complicated quite fast. Graph Theory, Abstract Algebra, Real Analysis,
Complex Analysis, Linear Algebra, Number Theory, and the list goes on. But there is one thing that
all of these share in common: Sets.
Set-Builder Notation
{x|x>0}
It says "the set of all x's, such that x is greater than 0".
We call this the universal set. It's a set that contains everything. Well,
not exactlyeverything. Everything that is relevant to our question.
Equailty of Sets
Two sets are equal if they have precisely the same members. Now, at first glance they may not seem
equal, so we may have to examine them closely!
A is the set whose members are the first four positive whole numbers
B = {4, 2, 1, 3}
Let's check. They both contain 1. They both contain 2. And 3, And 4. And we have checked every
element of both sets, so: Yes, they are equal!
Subsets
When we define a set, if we take pieces of that set, we can form what is called a subset.
A subset of this is {1, 2, 3}. Another subset is {3, 4} or even another is {1}, etc.
But {1, 6} is not a subset, since it has an element (6) which is not in the parent set.
In general:
3 is in A and 3 is also in B.
4 is in A, and 4 is in B.
That's all the elements of A, and every single one is in B, so we're done.
Yes, A is a subset of B
Note that 2 is in B, but 2 is not in A. But remember, that doesn't matter, we only look at the elements
in A.
Venn diagram
A Venn diagram (also called primary diagram, set diagram or logic diagram) is a diagram that
shows all possible logical relations between a finite collection of different sets. These diagrams
depict elements as points in the plane, and sets as regions inside closed curves. A Venn diagram
consists of multiple overlapping closed curves, usually circles, each representing a set. The points
inside a curve labelled Srepresent elements of the set S, while points outside the boundary represent
elements not in the set S.
This example involves two sets, A and B, represented here as coloured circles. The orange circle, set
A, represents all living creatures that are two-legged. The blue circle, set B, represents the living
creatures that can fly. Each separate type of creature can be imagined as a point somewhere in the
diagram. Living creatures that both can fly and have two legs—for example, parrots—are then in both
sets, so they correspond to points in the region where the blue and orange circles overlap. That region
contains all such and only such living creatures.
Set Operatipns
Sets can be combined in a number of different ways to produce another set. Here four basic
operations are introduced and their properties are discussed.
1.Definition (Union): The union of sets A and B, denoted by A B , is the set defined as
A B={x|x A x B}
A B={x|x A x B}
3.Definition (Difference): The difference of sets A from B , denoted by A - B , is the set defined as
A-B={x|x A x B}
4.Definition (Complement): For a set A, the difference U - A , where U is the universe, is called
the complement of A and it is denoted by .
Thus is the set of everything that is not in A.
The fourth set operation is the Cartesian product We first define an ordered pair and Cartesian
product of two sets using it. Then the Cartesian product of multiple sets is defined using the concept
of n-tuple.
Two ordered pairs <a, b> and <c, d> are equal if and only if a = c and b = d. For example the ordered
pair <1, 2> is not equal to the ordered pair <2, 1>.
Definition (Cartesian product): Let A1, ..., An be n sets. Then the set of all ordered n-tuples <x1,
..., xn> , where xi Ai for all i, 1 i n , is called the Cartesian product of A1, ..., An, and is
Definition (equality of n-tuples): Two ordered n-tuples <x1, ..., xn> and <y1, ..., yn> are equal if and
only if xi = yi for all i, 1 i n.
For example the ordered 3-tuple <1, 2, 3> is not equal to the ordered n-tuple <2, 3, 1>.
Cardinality of Sets.
The cardinality of a set is a measure of the "number of elements of the set". For example, the set A =
{2, 4, 6} contains 3 elements, and therefore A has a cardinality of 3.
1. Commutative Laws:
(i) A U B = B U A
(ii) A ∩ B = B ∩ A
2. Associative Laws:
(i) (A U B) U C = A U (B U C)
(ii) (A ∩ B) ∩ C = A ∩ (B ∩ C)
3. Idempotent Laws:
(i) A U A = A
(ii) A ∩ A = A
4. Distributive Laws:
(i) A U (B ∩ C) = (A U B) ∩ (A U C)
(ii) A ∩ (B U C) = (A ∩ B) U (A ∩ C)
Thus, union and intersection are distributive over intersection and union respectively.
5. De Morgan’s Laws:
(i) A – (B U C) = (A – B) ∩ (A – C)
(ii) A - (B ∩ C) = (A – B) U (A – C)
(i) A – B = A ∩ B'
(ii) B – A = B ∩ A'
(iii) A – B = A ⇔A ∩ B = ∅
(iv) (A – B) U B = A U B
(v) (A – B) ∩ B = ∅
(vii) (A – B) U (B – A) = (A U B) – (A ∩ B)
7. For any three finite sets A, B and C;
(i) A – (B ∩ C) = (A – B) U (A – C)
(ii) A – (B U C) = (A – B) ∩ (A – C)
(iii) A ∩ (B - C) = (A ∩ B) - (A ∩ C)
(iv) A ∩ (B △ C) = (A ∩ B) △ (A ∩ C)
The inclusion–exclusion principle is a counting technique which generalizes the familiar method of
obtaining the number of elements in the union of two finite sets; symbolically expressed as
AUB=A+B- A ∩ B
where A and B are two finite sets and |S| indicates the cardinality of a set S (which may be considered
as the number of elements of the set, if the set is finite). The formula expresses the fact that the sum
of the sizes of the two sets may be too large since some elements may be counted twice. The double-
counted elements are those in the intersection of the two sets and the count is corrected by subtracting
the size of the intersection.
The principle is more clearly seen in the case of three sets, which for the sets A, B and C is given by
AUBUC=A+B+C-A∩B-A∩C-B∩C+ A ∩ C ∩ B
This formula can be verified by counting how many times each region in the Venn diagram figure is
included in the right-hand side of the formula. In this case, when removing the contributions of over-
counted elements, the number of elements in the mutual intersection of the three sets has been
subtracted too often, so must be added back in to get the correct total.
Inclusion–exclusion illustrated by a Venn diagram for three sets
Generalizing the results of these examples gives the principle of inclusion–exclusion. To find the
cardinality of the union of n sets:
Continue, until the cardinality of the n-tuple-wise intersection is included (if n is odd) or excluded
(n even).
Problems
1. Let A and B be two finite sets such that n(A) = 20, n(B) = 28 and n(A ∪ B) = 36, find n(A ∩ B).
Solution:
= 20 + 28 - 36
= 48 - 36
= 12
Solution:
70 = 18 + 25 + n(B - A)
70 = 43 + n(B - A)
n(B - A) = 70 - 43
n(B - A) = 27
= 25 + 27
= 52
3. In a group of 60 people, 27 like cold drinks and 42 like hot drinks and each person likes at least
one of the two drinks. How many like both coffee and tea?
Solution:
Given
= 27 + 42 - 60
= 69 - 60 = 9
=9
4. There are 35 students in art class and 57 students in dance class. Find the number of students who
are either in art class or in dance class.
• When two classes meet at different hours and 12 students are enrolled in both activities.
(i) When 2 classes meet at different hours n(A ∪ B) = n(A) + n(B) - n(A ∩ B)
= 35 + 57 - 12
= 92 - 12
= 80
(ii) When two classes meet at the same hour, A∩B = ∅ n (A ∪ B) = n(A) + n(B) - n(A ∩ B)
= n(A) + n(B)
= 35 + 57
= 92
5. In a group of 100 persons, 72 people can speak English and 43 can speak French. How many can
speak English only? How many can speak French only and how many can speak both English and
French?
Solution:
Given,
n(A) = 72 n(B) = 43 n(A ∪ B) = 100
= 72 + 43 - 100
= 115 - 100
= 15
= 72 - 15
= 57
= 43 - 15
= 28
Solution:
Given,
n(A ∪ B ∪ C) = 45 n(A ∩ B ∩ C) = 4
We know that number of elements belonging to exactly two of the three sets A, B, C
= 36 + 12 + 18 + 4 - 45 - 12
= 70 - 67
=3
7. Each student in a class of 40 plays at least one indoor game chess, carrom and scrabble. 18 play
chess, 20 play scrabble and 27 play carrom. 7 play chess and scrabble, 12 play scrabble and carrom
and 4 play chess, carrom and scrabble. Find the number of students who play (i) chess and carrom.
(ii) chess, carrom but not scrabble.
Solution:
We have
Therefore, 40 = 18 + 20 + 27 - 7 - 12 - n(C ∩ A) + 4
40 = 69 – 19 - n(C ∩ A)
40 = 50 - n(C ∩ A) n(C ∩ A) = 50 - 40
n(C ∩ A) = 10
Therefore, Number of students who play chess and carrom are 10.
Also, number of students who play chess, carrom and not scrabble.
= n(C ∩ A) - n(A ∩ B ∩ C)
= 10 – 4
=6
Therefore, we learned how to solve different types of word problems on sets without using Venn
diagram.
Propositional Logic.
A proposition is a collection of declarative statements that has either a truth value "true” or a truth
value "false". A propositional consists of propositional variables and connectives. We denote the
propositional variables by capital letters (A, B, etc). The connectives connect the propositional
variables.
"A is less than 2". It is because unless we give a specific value of A, we cannot say whether the
statement is true or false.
Connectives
In propositional logic generally we use five connectives which are −
OR (∨ )
AND (∧ )
A B A ∨B
AND (∧) − The AND operation of two propositions A and B (written as A∧B) is true if both the
propositional variable A and B is true.
A B A ∧B
Negation (¬) − The negation of a proposition A (written as ¬A) is false when A is true and is true
when A is false.
A ¬A
True False
False True
Implication / if-then (→) − An implication A→B is the proposition “if A, then B”. It is false if A is true
and B is false. The rest cases are true.
A B A→B
If and only if (⇔
) − A⇔
B is bi-conditional logical connective which is true when p and q are same, i.e.
both are false or both are true.
A B A ⇔B
Tautologies
A Tautology is a formula which is always true for every value of its propositional variables.
A B A→B (A → B) ∧ A [( A → B ) ∧ A] → B
Contradictions
A Contradiction is a formula which is always false for every value of its propositional variables.
A B A ∨B ¬A ¬B (¬ A) ∧ ( ¬ B) (A ∨ B) ∧ [( ¬ A) ∧ (¬ B)]
A Contingency is a formula which has both some true and some false values for every value of its
propositional variables.
A B A ∨B ¬A (A ∨ B) ∧ (¬ A)
As we can see every value of (A∨B)∧(¬A)(A∨B)∧(¬A) has both “True” and “False”, it is a contingency.
Propositional Equivalences
Two statements X and Y are logically equivalent if any of the following two conditions hold −
The truth tables of each statement have the same truth values.
A B A ∨B ¬ (A ∨ B) ¬A ¬B [(¬ A) ∧ (¬ B)]
Here, we can see the truth values of ¬(A∨B)and[(¬A)∧(¬B)]¬(A∨B)and[(¬A)∧(¬B)] are same, hence the
statements are equivalent.
As [¬(A∨B)]⇔
[(¬A)∧(¬B)][¬(A∨B)]⇔
[(¬A)∧(¬B)] is a tautology, the statements are equivalent.
Implication / if-then (→)(→) is also called a conditional statement. It has two parts −
Hypothesis, p
Conclusion, q
Example of Conditional Statement − “If you do your homework, you will not be punished.” Here,
"you do your homework" is the hypothesis, p, and "you will not be punished" is the conclusion, q.
Inverse − An inverse of the conditional statement is the negation of both the hypothesis and the
conclusion. If the statement is “If p, then q”, the inverse will be “If not p, then not q”. Thus the
inverse of p→qp→q is ¬p→¬q¬p→¬q.
Example − The inverse of “If you do your homework, you will not be punished” is “If you do not do
your homework, you will be punished.”
Converse − The converse of the conditional statement is computed by interchanging the hypothesis
and the conclusion. If the statement is “If p, then q”, the converse will be “If q, then p”. The
converse of p→qp→q is q→pq→p.
Example − The converse of "If you do your homework, you will not be punished" is "If you will not be
punished, you do not do your homework”.
Example − The Contra-positive of " If you do your homework, you will not be punished” is "If you are
not punished, then you do not do your homework”.
Duality Principle
Duality principle states that for any true statement, the dual statement obtained by interchanging
unions into intersections (and vice versa) and interchanging Universal set into Null set (and vice
versa) is also true. If dual of any statement is the statement itself, it is said self-dual statement.
Normal Forms
Examples
(A∨B)∧(A∨C)∧(B∨C∨D)(A∨B)∧(A∨C)∧(B∨C∨D)
(P∪Q)∩(Q∪R)(P∪Q)∩(Q∪R)
Examples
(A∧B)∨(A∧C)∨(B∧C∧D)(A∧B)∨(A∧C)∨(B∧C∧D)
(P∩Q)∪(Q∩R)
List of Identities:
13.(P False) P
14.(P True) P
15.(P P) True
16.(P P) False
Logical equivalence
Two Statements are logically equivalent if both have same truth values.
Example
P Q P Q P Q P Q
True True True False False True
True False False True False False
False True True False True True
False False True True True True
Solved Problems.
Proof:
LHS:
(X Y) (~(X Y))
T T T F T
T F T F T
F T T F T
F F F T T
RHS:
(X (~Y)) Y
X Y ~Y (X (~Y)) (X (~Y)) Y
T T F T T
T F T T T
F T F F T
F F T T T
P Q R Q R P ( P R (P R)
Q R) Q
True True True False False True False True
True True False False True False True False
True False True True False True False True
True False False True True True True True
False True True False False True False True
False True False False True True False True
False False True True False True False True
False False False True True True False True
A predicate is an expression of one or more variables defined on some specific domain. A predicate
with variables can be made a proposition by either assigning a value to the variable or by
quantifying the variable.
Quantifiers
The variable of predicates is quantified by quantifiers. There are two types of quantifier in predicate
logic − Universal Quantifier and Existential Quantifier.
Universal Quantifier
Universal quantifier states that the statements within its scope are true for
every value of the specific variable. It is denoted by the symbol ∀∀ .
∀xP(x)∀xP(x) is read as for every value of x, P(x) is true.
Example − "Man is mortal" can be transformed into the propositional
form ∀xP(x)∀xP(x) where P(x) is the predicate which denotes x is mortal and
the universe of discourse is all men.
Existential Quantifier
Existential quantifier states that the statements within its scope are true for
some values of the specific variable. It is denoted by the symbol ∃∃.
∃xP(x)∃xP(x) is read as for some values of x, P(x) is true.
Example − "Some people are dishonest" can be transformed into the
propositional form ∃xP(x)∃xP(x) where P(x) is the predicate which denotes x is
dishonest and the universe of discourse is some people.
Nested Quantifiers
If we use a quantifier that appears within the scope of another quantifier, it is
called nested quantifier.
Example
a+b)+ca+(b+c)=(a+b)+c
Note − ∀a∃bP(x,y)≠∃a∀bP(x,y)
Logic is the study of arguments. We all share a basic understanding of this term. An argument is a
series of reasons supporting a conclusion. The following argument supports the conclusion that John
is wearing a coat.
It is snowing
I have separated the reasons in this argument (above the line) from the conclusion (below the line).
There is a strong sense that the argument in (1) constitutes a valid piece of reasoning. If the reasons
hold, then the conclusion is guaranteed. There are arguments that are less transparent than the one
in (1). The argument in (2), for example, is a little more difficult to see but it too is valid.
Therefore, John is not wearing a coat There are also arguments that fall short.
Arguments for which the conclusion is not guaranteed. Such arguments do not constitute valid
pieces of reasoning. The argument illustrated in (3) is not valid. (3) If it is snowing, it is cold or it is
wet If it is cold, John is wearing a coat It is snowing Therefore, John is wearing a coat
Translating Simple Declarative Sentences a.
1. Let p = It is raining
2. Let q = Mary is sick
3. Let t = Bob stayed up late last night
4. Let r = Paris is the capital of France
5. Let s = John is a loud-mouth
Translating Negation a. It isn’t raining ¬p b. It is not the case that Mary isn’t sick ¬¬q
Translating Conjunction a. It is raining and Mary is sick (p ∧ q) b. Bob stayed up late last night and
John is a loud-mouth (t ∧ s)
Translating Disjunction a. It is raining or Mary is sick (p ∨ q) b. Paris is the capital of France and it is
raining or John is a loud-mouth ((r ∧ p) ∨ s) (r ∧ (p ∨ s))
Translating Implication a. If it is raining, then Mary is sick (p → q) b. It is raining, when John is a loud-
mouth (s → p) c. Mary is sick and it is raining implies that Bob stayed up late last night ((q ∧ p) → t)
Translating Equivalence a. It is raining if and only if Mary is sick (p ↔ q) b. If Mary is sick then it is
raining, and vice versa ((p → q) ∧ (q → p)) (p ↔ q)
Mathematical Induction:
How to Do it
Note: Step 2 can often be tricky, we may need to use imaginative tricks to make it work!
31−1 = 3−1 = 2
31−1 is true
3k−1 is true
Because:
So:
3k+1−1 is true
1 + 3 + 5 + ... + (2n−1) = n2
1 = 12 is True
We know that 1 + 3 + 5 + ... + (2k−1) = k2 (the assumption above), so we can do a replacement for all
but the last term:
k2 + (2(k+1)−1) = (k+1)2
k2 + 2k + 2 − 1 = k2 + 2k+1
And simplify:
k2 + 2k + 1 = k2 + 2k + 1
So: