2 Sets and Functions Flashcards
Definition 2.1:
Sets
A collection of things, called its elements. π₯βπ΄ := π₯ is an element of the set π΄.
Definition 2.5:
Subsets
Let π΄ and π΅ be sets.
- π΄ is a subset of π΅ (π΄βπ΅) if every element of π΄ also lies in π΅.
- π΄ is empty if π΄ has no elements, i.e. πβπ΄ is never true.
Lemma 2.8
There can only be one
If π΄ is empty, then π΄βπ΅ for any set π΅. In particular, there is precisely one empty set, denoted β .
Definition 2.9:
Power set
For any set π΄, the power set, denoted P(π΄), is the set of all subsets of π΄. Thus π΅βP(π΄)βΊπ΅βπ΄.
i.e. B an element of P(A) iff B is a subset of A
Definition 2.12:
Cardinality of a finite set
Let π΄ be a set containing only finitely many elements. The cardinality of π΄, denoted |π΄|, is the number of elements in π΄.
Definition 2.17:
Unions, intersections and differences
Given sets π΄ and π΅
- union π΄βͺπ΅ = {π₯β£π₯βπ΄ or π₯βπ΅};
- intersection π΄β©π΅ = {π₯β£π₯βπ΄ and π₯βπ΅} = {π₯βπ΄β£π₯βπ΅} = {π₯βπ΅β£π₯βπ΄}
- difference π΄βπ΅={π₯βπ΄β£π₯βπ΅}
- In the special case where π΅βπ΄, the difference π΄βπ΅ is called the complement of π΅ in π΄.
Definition 2.20
Cartesian product
The Cartesian product of sets π΄1,β¦,π΄π for some πβ₯1 is π΄1Γβ―Γπ΄π = { (π1,β¦,ππ) β£ ππβπ΄π for π=1,β¦,π }.
E.g. For π΄={1,3} and π΅={4,5},
π΄Γπ΅={(1,4),(1,5),(3,4),(3,5)}.
Definition 2.20
Cartesian powers
The Cartesian powers of a set π΄ are defined to be π΄^π = { (π1,β¦,ππ) β£ ππβπ΄ for π=1,β¦,π }.
E.g. For π΄={1,3},
π΄^2={(1,1),(1,3),(3,1),(3,3)}.
Definition 2.23
Function
Given sets π΄ and π΅, a function (also called a map) π:π΄βπ΅ is a rule that assigns to every element πβπ΄, a unique element π(π)βπ΅.
We call π΄ the domain of π and π΅ the codomain of π.
Definition 2.25:
Graph of a function
Given a function π:π΄βπ΅, the graph of π is the subset of π΄Γπ΅ given by Graph(π) = { (π,π)βπ΄Γπ΅ β£ π=π(π) }.
Definition 2.28:
Identity map
Let π΄ be a be set.
The identity map idπ΄ is the map whose domain and codomain both equal π΄, and where idπ΄(π)=π for all πβπ΄.
Definition 2.28:
Composition
Let π΄,π΅,πΆ be sets.
Given functions π:π΄βπ΅ and π:π΅βπΆ, their composition (πβπ):π΄βπΆ, which we read as βπ follows πβ, is the function given by (πβπ)(π)=π(π(π)) for πβπ΄.
We do not consider πβπ, unless the codomain of π and the domain of π coincide.
Definition 2.30:
Function spaces
Let π΄ and π΅ be sets. The set of functions from π΄ to π΅ is denoted π΅^π΄ = {functions π΄βπ΅}.
Equivalently, π΅^π΄ = {πΊβπ΄Γπ΅ β£ πΊ is the graph of a function π:π΄βπ΅}
The vertical line test (check if it is a function).
Definition 2.33:
Image of a function
Let π:π΄βπ΅ be a function. The image of π, denoted Im(π), is the subset of π΅ given by
Im(π) = {πβπ΅ β£ π=π(π) for some πβπ΄} = {π(π) β£ πβπ΄}.
Definition 2.34:
Injective
If whenever π,πβ²βπ΄ satisfy π(π)=π(πβ²), it follows that π=πβ².
If there is a solution, then it is unique.
For π:βββ, horizontal line cuts graph of π in at most 1 point.