Processing math: 100%

Sets

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 AB) iff {a:aA and aB}.

Definition 3: The union of two sets AB is defined as AB={x:xAxB}. Note that in maths, = implies equivalence, not assignment.

Definition 4: The intersection of two sets AB is defined as AB={x:xAxB}.

Definition 5: The product of two sets A,B, denoted A×B is the set of all ordered pairs a,b:aA,bB.

Definition 6: Let A,B be sets, and FA×B. We say F is a function if and only if it satisfies the following property: for each aA, 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:AB.

Definition 7: Given a function f:AB, we define the image of f as the set f(A)={f(a):aA}. Alternatively, im f={bB:aA with f(a)=b}

Definition 8: Let A,B be sets and f:AB a function. The preimage of B under f is defined as f1(b)={aA:f(a)=b}

Definition 9: A function f:AB is called an injection (it is injective) if a,aA,aa:f(a)f(a)

Definition 10: A function f:AB is called a surjection (it is surjective) if bB,aA 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: ABA

Proof: Let C=AB={x:xAxB}. By definition 3, cC,cA. Therefore CA.

Theorem 3: AAB

Proof: Let C=AB={x:xAxB}. By definition, C contains every element in A and therefore AC.

Theorem 4a: De Morgan's law for sets: (AB)C=ACBC.

Proof: AB contains only the elements of X in both A and B. Therefore, (AB)C contains only the elements of X that do not appear in both A and B. That is, (AB)C={xX:xAxB} 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, ACBC contains the elements of X that appear either in A, B, or neither. That is, ACBC={xX:xAxB} These two definitions are equivalent, and therefore (AB)C=ACBC.

Back to the top-level.