Lecture 1 - Set & Subset
Lecture 1 - Set & Subset
Set Theory
Standard Sets:
Natural numbers N = {0, 1, 2, 3, }
Integers Z = {, -2, -1, 0, 1, 2, }
Positive Integers Z+ = {1, 2, 3, 4, }
Real Numbers R = {47.3, -12, , }
Rational Numbers Q = {1.5, 2.6, -3.8, 15,
}
(correct definition will follow)
Examples:
A = {3, 9}, B = {5, 9, 1, 3}, A B ? true
A = {3, 3, 3, 9}, B = {5, 9, 1, 3}, A true
B?
A = {1, 2, 3}, B = {2, 3, 4}, A false
B?
04/26/17 MAT422 : Mathematical Logic and
MAT422 : Mathematical Logic and 7
Proving Techniques
Subsets
Useful rules:
A = B (A B) (B A)
(A B) (B C) A C (see Venn Diagram)
B
A C
Proper subsets:
AB A is a proper subset of B
A B x (xA xB) x (xB xA)
or
A B x (xA xB) x (xB xA)
Examples:
A = {Mercedes, BMW, Porsche}, |A| = 3
B = {1, {2, 3}, {4, 5}, 6} |B| = 4
C= |C| = 0
D = { xN | x 7000 } |D| = 7001
E = { xN | x 7000 } E is infinite!
Examples:
A = {x, y, z}
P(A) = {, {x}, {y}, {z}, {x, y}, {x, z}, {y, z},
{x, y, z}}
A=
P(A) = {}
Note: |A| = 0, |P(A)| = 1
A 1 2 3 4 5 6 7 8
x x x x x x x x x
y y y y y y y y y
z z z z z z z z z
For 3 elements in A, there are
222 = 8 elements in P(A)
04/26/17 MAT422 : Mathematical Logic and 12
Proving Techniques
Cartesian Product
The ordered n-tuple (a1, a2, a3, , an) is an
ordered collection of objects.
Two ordered n-tuples (a1, a2, a3, , an) and
(b1, b2, b3, , bn) are equal if and only if they
contain exactly the same elements in the same
order, i.e. ai = bi for 1 i n.
AB = {
(good, student), (good, prof), }
(bad, student), (bad, prof)