01 Sets and Logic PDF
01 Sets and Logic PDF
Real Imaginary
Irrational Rational
Integers
𝑖 = −1
Irrational Numbers
Example: 2 π, e,…
Rational Numbers
x∈X x is an element of X;
∅ empty set;
X ⊆Y X is a subset of Y;
∞ڂ
𝒊=𝟏 𝑿𝒊 union of X1, X2, . . . (all elements that belong to
at least one of X1, X2, . . . );
∞ځ
𝒊=𝟏 𝑿𝒊 intersection of X1, X2, . . .
(all elements that belong to every one of X1, X2, . . . );
ഥ
𝑿 complement of X (all elements not in X);
is also true.
Logic is essential in reading and developing proofs. An
understanding of logic can also be useful in clarifying ordinary
writing.
“It shall be unlawful for any person to keep more than three
dogs and three cats upon his property within the city.”
Was one of the citizens, who owned five dogs and no cats,
in violation of the ordinance? Think about this question now;
then analyze it.
No, assuming the interpretation:
describes the set B made up of all positive, even integers; that is,
B consists of the integers 2, 4, 6, and so on. The vertical bar “|” is
read “such that.”
{3, {5, 1}, 12, {π, 4.5, 40, 16}, Henry Cavill}
The symbol Z comes from the German word, Zahlen, for integer. Rational
numbers are quotients of integers, thus Q for quotient. The set of real
numbers R can be depicted as consisting of all points on a straight line
extending indefinitely in either direction (see Figure 1.1.2).
To denote the negative numbers that belong to
one of Z, Q, or R, we use the superscript minus. For
example, Z− denotes the set of negative integers,
namely −1, −2, −3, . . . . Similarly, to denote the
positive numbers that belong to one of the three
sets, we use the superscript plus. For example, Q+
denotes the set of positive rational numbers.
Two sets X and Y are equal and we write X = Y if X and Y have the
same elements.
If A = {1, 3, 2} and
B = {2, 3, 2, 1},
Therefore A = B.
Example 1.1.3 Show that if
A = {x | x2 + x − 6 = 0} and
B = {2,−3},
then A = B.
SOLUTION
write X ⊆ Z.
Example 1.1.7
X⊄Z
Any set X is a subset of itself, since any element in X is in X.
A ∪ B = {1, 3, 4, 5, 6}
A ∩ B = {5}
A − B = {1, 3}
B − A = {4, 6}.
R∪Q=R
R∩Q=Q
Q − R = ∅.
For example, if
S = {{1, 2}, {1, 3}, {1, 7, 10}},
then S is a collection or family of sets. The set S
consists of the sets {1, 2}, {1, 3}, {1, 7, 10}.
Sets X and Y are disjoint if X∩Y = ∅.
x ∈ S → x is an element of S
x ∉ S → x is not an element of S
{1, 2, 3} → the set whose elements are 1, 2, and 3
{1, 2, 3, •••, 100} → the set of all integers from 1 to 100
{1, 2, 3, •••} → the set of all positive integers
2. Is {0} = 0?
9. 2 ∈ { 1, 2, 3 }
10. {2} ∈ { 1, 2, 3 }
11. 2 ⊆ { 1, 2, 3 }
12. {2} ⊆ { 1, 2, 3 }
13. {2} ⊆ { { 1 }, { 2 } }
14. {2} ∈ { { 1 }, { 2 } }
Venn diagrams provide
pictorial views of sets. In a
Venn diagram, a rectangle
depicts a universal set (see
Figure 1.1.3).
Answer: x ∈ X
Question: How do we denote
x is not an element of the set X?
Answer: x ∉ X
Question: How do we denote the empty set?
Answer: ∅
Question: Define set X is equal to set Y. How
do we denote X is equal to Y?
Answer:
X is a subset of Y is denoted X ⊆ Y.
Question: Explain a method of verifying that
X is a subset of Y.
Answer:
Answer:
X is a proper subset of Y if
X ⊆ Y and X ≠ Y.
X is a proper subset of Y is denoted X ⊂ Y.
Question: Explain a method of verifying that
X is a proper subset of Y.
Answer:
X union Y is the set of elements that belong
to either X or Y or both.
It is denoted X ∪ Y.
Question: If S is a family of sets, how do we
define the union of S? How is the union
denoted?
Answer:
The union of S is the set of elements that
belong to at least one set in S.
It is denoted ∪S.
Question: Define X intersect Y.
How is the intersection of X and Y denoted?
Answer:
X intersect Y is the set of elements that
belong to both X and Y.
It is denoted X ∩ Y.
Question: If S is a family of sets, how do we
define the intersection of S? How is the
intersection denoted?
Answer:
The intersection of S is the set of elements that
belong to every set in S.
It is denoted ∩ S.
Question: Define X and Y are disjoint sets.
Answer: X ∩ Y = ∅
Question:
Answer:
(j) 0 / 1 laws:
ഥ=U
∅ ഥ=∅
𝑈
If we let A = {r, n, s, f } and E = {c, b, t}, the Cartesian product A × E lists the 12 possible dinners
consisting of one appetizer and one entree.
Ordered lists need not be restricted to two elements. An n-tuple, written (a1, a2, . . . , an), takes order
into account; that is,
precisely when
The Cartesian product of sets X1, X2, . . . , Xn is defined to be the set of all n-tuples (x1, x2, . . . , xn)
where xi ∈ Xi for i = 1, . . . , n; it is denoted X1 × X2 × · · · × Xn.
Example 1.1.28 If X = {1, 2}, Y = {a, b}, and Z = {α, β}, then
X × Y × Z = {(1, a, α), (1, a, β), (1, b, α), (1, b, β), (2, a, α), (2, a, β),
(2, b, α), (2, b, β)}.