Pigeonhole Principle
Let and be finite sets. If there is an injection , then Contrapositive: Let with . If pigeons are put into pigeonholes, then there must be (at least) one pigeonhole with (at least) two pigeons.
Dual Pigeonhole Principle
Let and be finite sets. If there is an surjection , then Contrapositive: Let with . If pigeons are put into pigeonholes, then there must be (at least) one pigeonhole with no pigeons.
Finite vs Infinite set
A set is said to be finite if it is empty, or there exists a bijection from to the set of positive integers from 1 to
A set is said to be infinite if it is not finite
Cardinality
Finite Set
The cardinality of a finite set , denoted , is
- 0 if or
- if is a bijection
Equality of cardinality of finite sets theorem For finite sets and : iff there is a bijection
Any subset of a finite set is finite (contrapositive: any subset of a infinite set is infinite)
Infinite Sets
Given two sets and , is said to have the same cardinality as , written as , iff there is a bijection
note: we define what is without defining what or is
Another definition: Set is infinite iff there exists a set such that (A proper subset of has the same cardinality as )
Properties of cardinality
The same-cardinality relation is an equivalence relation. For all sets , and
- Reflexive:
- Symmetric:
- Transitive:
Countability
A set is countable iff it is finite our countable infinite. Otherwise, it is uncountable.
Countably Infinite
Theorem 7.4.3: Any subset of any countable set is countable. (Contrapositive: Any set with an uncountable subset is uncountable.)
Lemma 9.4: Let and be countable infinite sets. Then is countable
Definition through bijection with
“aleph zero”
A set having the same cardinality as is called a countably infinite set i.e.
If sets are countably infinite, so is the cartesian product
Definition through sequence
An infinite set is countable iff there is a sequence in which every element f appears (exactly once — whether this is included doesn’t matter) (this is equivalent to the above definition)
Example
is countable
Arrange the elements in a grid as shown:
| (1,1) | (1,2) | (1,3) |
|---|---|---|
| (2,1) | (2,2) | (2,3) |
| (3,1) | (3,2) | (3,3) |
| We can count the ordered pairs following the diagonals: (1,1) → (1,2) → (2,1) → (1,3) → (2,2) → (3,1) etc. (sequence argument) | ||
| The function that represents this is (bijective function argument) | ||
| Therefore, is countable. |
Uncountable Infinite
A set is uncountable if it is impossible to find a bijection from that set to
Theorem 7.4.2: The set of real numbers between 0 and 1, is uncountable
Proposition 9.3: Every infinite set has a countable infinite subset
Cantor’s diagonalization argument
(Prove the above by contradiction)
- Suppose is countable
- Since it is not finite, it is countable infinite
- We list the elementns x_1 = 0.a_{11}a_{12}a_{13}…a_{1n}…x_2 = 0.a_{21}a_{22}a_{23}…a_{2n}…x_3 = 0.a_{31}a_{32}a_{33}…a_{3n}……x_n = 0.a_{n1}a_{n2}a_{n3}…a_{nn}……a_{ij} \in {0,1,…,9}$ is a digit. (For numbers that have two representations 0.499… = 0.500…, we use only the latter representation)
- Now, construct a number (from a diagonal of the above sequence) such that