Finite, Countable, and Uncountable Sets
This section was developed by following Rudin, Principles of Mathematical Analysis, Chapter 2. The definitions and theorems are directly or nearly directly from there, but the proofs are at least attempts at expressing my own understanding.
Cardinality and Countability
Given two sets, and , if there is a bijection (a one-to-one mapping of onto ) between and , we say and have the same cardinal number, or that and are equivalent. We denote this as .
Referenced by (2 direct)
A set is said to be finite if for some
Referenced by (13 direct, 40 transitive)
Direct references:
- sequence-range-cardinality
- proof-of-sequence-in-compact-metric-space-has-a-convergent-subsequence
- proof-of-euclidean-spaces-are-complete
- Discrete Channel
- Derivation
- finite-sets-are-compact
- proof-of-finite-sets-are-compact
- Infinite
- Uncountable
- At Most Countable
- only-infinite-sets-have-limit-points
- union-and-intersection-of-open-and-closed-sets
- closure-distributes-over-finite-unions
Transitive (depth 1):
- cantor-bendixson-theorem
- condensation-points-of-an-uncountable-subset-of-rk-are-perfect
- proof-of-cantor-bendixson-theorem
- proof-of-condensation-points-of-an-uncountable-subset-of-rk-are-perfect
- proof-of-union-of-a-sequence-of-countable-sets-is-countable
- theorem
- Capacity
- every-metric-space-where-every-infinite-subset-has-a-limit-point-is-separable
- Heine-Borel
- infinite-subset-has-limit-point-implies-compact
- infinite-subset-of-compact-set-has-limit-point
- infinite-subset-of-countable-is-countable
- infinite-subset-of-countable-is-countable-note
- proof-of-baire-category-theorem-special-case
- proof-of-every-metric-space-where-every-infinite-subset-has-a-limit-point-is-separable
- proof-of-infinite-subset-has-limit-point-implies-compact
- proof-of-infinite-subset-of-compact-set-has-limit-point
- Weierstrass
- proof-of-non-empty-perfect-sets-in-rk-are-uncountable
- proof-of-set-and-its-limit-points-may-have-different-limit-points
- binary-sequences-are-uncountable
- every-interval-is-uncountable
- non-empty-perfect-sets-in-rk-are-uncountable
- proof-of-binary-sequences-are-uncountable
- reals-are-uncountable
- proof-of-cantor-set-is-compact
- proof-of-closure-distributes-over-finite-unions
- proof-of-compact-implies-closed
- proof-of-every-separable-metric-space-has-a-countable-base
- proof-of-intersection-of-closed-and-compact-is-compact
- proof-of-open-set-in-r1-is-countable-union-of-disjoint-segments
Transitive (depth 2):
A set is said to be infinite it is not finite.
Referenced by (15 direct, 6 transitive)
Direct references:
- sequence-range-cardinality
- proof-of-sequence-in-compact-metric-space-has-a-convergent-subsequence
- infinite-subset-of-compact-set-has-limit-point
- proof-of-infinite-subset-of-compact-set-has-limit-point
- Heine-Borel
- Weierstrass
- infinite-subset-of-countable-is-countable
- infinite-subset-of-countable-is-countable-note
- proof-of-union-of-a-sequence-of-countable-sets-is-countable
- only-infinite-sets-have-limit-points
- every-metric-space-where-every-infinite-subset-has-a-limit-point-is-separable
- proof-of-every-metric-space-where-every-infinite-subset-has-a-limit-point-is-separable
- infinite-subset-has-limit-point-implies-compact
- proof-of-infinite-subset-has-limit-point-implies-compact
- proof-of-baire-category-theorem-special-case
A set is said to be countable if there exists a bijection between and the set of all positive integers , that is, if
Referenced by (22 direct, 15 transitive)
Direct references:
- Discrete Sample Space
- Discrete Random Variable
- Uncountable
- At Most Countable
- infinite-subset-of-countable-is-countable
- proof-of-infinite-subset-of-countable-is-countable
- union-of-a-sequence-of-countable-sets-is-countable
- proof-of-union-of-a-sequence-of-countable-sets-is-countable
- n-tuples-of-countable-elements-are-countable
- proof-of-n-tuples-of-countable-elements-are-countable
- rationals-are-countable
- proof-of-binary-sequences-are-uncountable
- proof-of-non-empty-perfect-sets-in-rk-are-uncountable
- Separable
- every-separable-metric-space-has-a-countable-base
- proof-of-every-separable-metric-space-has-a-countable-base
- compact-metric-space-has-countable-base
- proof-of-infinite-subset-has-limit-point-implies-compact
- proof-of-condensation-points-of-an-uncountable-subset-of-rk-are-perfect
- countable-closed-set-has-isolated-points
- proof-of-countable-closed-set-has-isolated-points
- open-set-in-r1-is-countable-union-of-disjoint-segments
Transitive (depth 1):
- cantor-bendixson-theorem
- condensation-points-of-an-uncountable-subset-of-rk-are-perfect
- proof-of-cantor-bendixson-theorem
- proof-of-euclidean-space-is-separable
- proof-of-open-set-in-r1-is-countable-union-of-disjoint-segments
- euclidean-space-is-separable
- every-metric-space-where-every-infinite-subset-has-a-limit-point-is-separable
- proof-of-compact-metric-space-has-countable-base
- proof-of-every-metric-space-where-every-infinite-subset-has-a-limit-point-is-separable
- binary-sequences-are-uncountable
- every-interval-is-uncountable
- non-empty-perfect-sets-in-rk-are-uncountable
- reals-are-uncountable
Transitive (depth 2):
Referenced by (9 direct, 3 transitive)
Direct references:
- binary-sequences-are-uncountable
- proof-of-binary-sequences-are-uncountable
- reals-are-uncountable
- non-empty-perfect-sets-in-rk-are-uncountable
- proof-of-non-empty-perfect-sets-in-rk-are-uncountable
- every-interval-is-uncountable
- condensation-points-of-an-uncountable-subset-of-rk-are-perfect
- proof-of-condensation-points-of-an-uncountable-subset-of-rk-are-perfect
- proof-of-cantor-bendixson-theorem
Countably Infinite Sets
Every infinite subset of a countably infinite set is countable.
Assume is countably infinite, and Arrange a sequence from the distinct elements of . Let be the smallest positive integer such that and then pick by assigning the next in the sequence the index of the left-most entry in that has not yet been picked. Then, let be the smallest integer greater than such that Now, is a sequence of strictly increasing positive integers giving us the indices of the first elements of in
Now, define as , which is a bijection between the positive integers and , showing that is countable.
We can show this by putting into a sequence of distinct values, so it can be indexed with the positive integers, and then constructing a subsequence of that are only the indices of elements of
As an example, consider the even numbers as a subset of the non-negative integers Then, the indices of the even numbers are and
This means that countably infinite sets are the smallest infinite sets. Any infinite subset of one has the same cardinal number as the parent set, and the same cardinal number as the set of natural numbers - - "aleph null."
Intersections and Unions of Sets
Let be a sequence of countable sets. Then let Then, is countable.
We can construct an infinite array where the rows are sequence constructed by the sets that make up the entries of Then, we can create a single sequence from all the entries of the sets of by iterating over them in the following order:
sequence = []
for i in range(1, k):
for j in range(0, i):
n = i - j
m = j + 1
sequence.append(f"E_{n},{m}")
Which, for yields
This sequence may contain duplicates, so some indices may need to be skipped in constructing a subset of the positive integers such that but we've now shown that is at most countable. To show is infinite and therefore countable, note that the infinite set is a subset of , and therefore is infinite and countable.
Referenced by (1 direct)
Direct references:
Let be a countable set, and let be the set of all -tuples where and the elements need not be distinct. Then is countable.
We will proceed using proof by induction. First, for the base case, note that is the set of -tuples formed by elements of , so and is thus countable. Now, for the inductive step, assume is countable Then we have that
So, for any given -tuple , we form -tuples by appending each element of to it, and so the set of pairs has the same cardinality as and is thus countable. is thus the union of the countable set of countable sets (the set of sets formed by appending each element of to each element of ) and is therefore countable itself, by a theorem proved above. Therefore, by induction, every is countable.
The set of rational numbers is countable.
Rational numbers just formed from pairs of integers: so we use the above theorem with
Referenced by (2 direct)
Referenced by (1 direct)
Direct references:
Uncountably Infinite Sets
Let be the set of all sequences whose elements are the digits and . This set is uncountable.
Let be a countable subset of and call the elements of We will construct a new sequence in the following way:
That is, the th digit of will be the opposite of whatever the th digit of is. So, differs from in the first digit, from in the second digit, in the third digit, and so on, so that it differs from all elements of and therefore is not contained in But, is definitely in since it its elements are the digits and Therefore, is a proper subset of so any countable subset of must be a proper subset of But, can't be a proper subset of itself, and therefore must be uncountable.
This approach to proving this theorem is due to Cantor and is called diagonalization, and the animation below illustrates why.
The set of real numbers is uncountable.
I won't give a full proof here, but this can be accomplished by considering the binary representation of real numbers in the interval consists of infinite sequences of and .