Motivation: Sets are the modeling language of mathematics and
a fundamental skill.
Definitions
Definition 1: A set is a collection of unique objects.
Definition 2: A is defined as the subset of B (denoted by
A⊂B) iff {a:a∈A and a∈B}.
Definition 3: The union of two sets A∪B is
defined as A∪B={x:x∈A∨x∈B}.
Note that in maths, = implies equivalence, not
assignment.
Definition 4: The intersection of two sets A∩B is
defined as A∩B={x:x∈A∧x∈B}.
Definition 5: The product of two sets A,B, denoted
A×B is the set of all ordered pairs a,b:a∈A,b∈B.
Definition 6: Let A,B be sets, and F⊂A×B. We say F is a function if and only if it satisfies the
following property: for each a∈A, there is a unique pair (a,b)∈F
(an input must have exactly one output). The set A is called the
domain of F and B is called the codomain of F. We
denote this with the arrow notation: f:A→B.
Definition 7: Given a function f:A→B, we define the image
of f as the set f(A)={f(a):a∈A}. Alternatively,
im f={b∈B:∃a∈A with f(a)=b}
Definition 8: Let A,B be sets and f:A→B a
function. The preimage of B under f is defined as
f−1(b)={a∈A:f(a)=b}
Definition 9: A function f:A→B is called an
injection (it is injective) if ∃a,a′∈A,a≠a′:f(a)≠f(a′)
Definition 10: A function f:A→B is called a
surjection (it is surjective) if ∀b∈B,∃a∈A such that f(a)=b. A function is a bijection if it is
both surjective and injective.
Definition 11: Inverses are unique.
Theorems
Theorem 1: ∅ is a subset of all other sets. That is,
∀A where A is a set,∅⊂A.
This theorem isn't in the book, but I wanted to prove it to myself
and to use it as a foundation for the other proofs.
Proof: There are no elements in ∅, therefore
all elements in ∅ are elements of any other set.
◻
Theorem 2: A∩B⊂A
Proof: Let C=A∩B={x:x∈A∧x∈B}. By
definition 3, ∀c∈C,c∈A. Therefore C⊂A.
◻
Theorem 3: A⊂A∪B
Proof: Let C=A∪B={x:x∈A∨x∈B}. By
definition, C contains every element in A and therefore A⊂C.
◻
Theorem 4a: De Morgan's law for sets: (A∩B)C=AC∪BC.
Proof: A∩B contains only the elements of X in
both A and B. Therefore, (A∩B)C contains only the elements
of X that do not appear in both A and B. That is,
(A∩B)C={x∈X:x∉A∧x∉B}AC contains the elements of X that don't appear in A; similarly,
BC contains the elements of X that don't appear in B. Therefore,
AC∪BC contains the elements of X that appear either in A,
B, or neither. That is,
AC∪BC={x∈X:x∉A∧x∉B}
These two definitions are equivalent, and therefore (A∩B)C=AC∪BC.