Counting
Based on 21-127 Concepts of Mathematics
We’re talking about counting how many things are in a set. Not to be confused with counting with finders.
H2 Finite and Infinite Sets
Note for some denotes . (Note )
H3 Finite sets and their sizes
A set is finite if we can find a bijection between for some and . Think of it as assigning a number to each element of . This number assignment is known as an enumeration of .
A consequence is that this number is unique and is equal to the size of . We can write . is called the size or cardinality of .
H3 Comparing sizes of finite sets
Let
- If an injective exists, then
- If a surjective exists, then
- A bijective iff
Since we can biject with set with and with set with , we can tweak the previous statement to conclude:
- If finite and an injective exists, then finite and
- If finite and a surjective exists, then finite and
- Suppose or finite, then a bijective exists iff
H3 Size of sets from manipulating finite sets
Let be finite sets. We have that:
- finite and
- finite and and .
- finite and
H3 Finite partition
A finite partition divides a finite set into subsets that are pairwise disjoint and union to the larger set.
- pairwise disjoint means the intersection between any two set in the partition is empty.
- union to the larger set just means all the element in the larger set can be found in one of sets in the partition.
H3 Counting by adding
Take finite set and suppose is a finite partition of , then .
H3 Multiplication principle
Omitted….
H3 Counting by multiplying
The multiplication principle allows us to count the number of elements in a finite set by specifying a procedure to specify elements in uniquely. When done correctly, will equal the product of the number of choices at each step.
Example:
Let be the set of all subsets of . Then we can specify an element of by the following procedure:
- Decide if is in the set — 2 choices
- Decide if is in the set — 2 choices
- Decide if is in the set — 2 choices
So .
H2 Binomial Coefficient
The bionomial coefficient for any is defined by . It can be understood as the number of subsets of a set of size that have size .
We can derive that (can be done by counting!):
H2 Factorial
Instead of defining factorial recursively, we can define it by counting!
Let , then is defined as:
- The number of bijections
- The number of ways to list things in an order so that each thing appear exactly once
- The number of ways to arrange things in order
- …
This is kind of nice isn’t it?
H2 Proof by double counting
To prove two expressions are equal, we can define a set in a way that we can count one way to get the RHS expression and another way to get the LHS expression.
H3 Categories of countability
Other than a set being finite (which obviously makes it countable), we can have:
A set being countably infinite if we can find a bijection
A set being countable if it’s finite or countably infinite
A set being uncountable if it’s not countable
Known countable sets:
- (of course it bijects itself!)
- (by doing some trick with number assignments, like )
- (we can list things diagonally)
- (we can define surjection via )
Known uncountable:
H3 Contability by jections
Given a set which is countable:
- If an injective exists, then countable. Think of it as being not bigger than a countable set.
- If an surjective exists, then countable. Think of it as a countable set being not smaller than .
H2 Operations on Countable Sets
We can prove that:
- Cartesian product of finitely many countable sets is countable (imagine going in diagonally in high dimensions where each axis is one component of the cartesian product)
- Union of countably many countable sets is countable. (imagine putting sets in grid and listing elements diagonally)
H2 Cantor’s Diagonal Argument
This is how we can prove a set is uncountable. To prove uncountable, we do:
- Let there be function . WTS this function cannot be surjective (and thus not bijective)
- Construct some bad element in terms of in a way that and disagrees on something for all
- Then show for any . This implies not all can be mapped from , hence making not surjective.
H2 Cardinality
The cardinality of set , denoted , is a measure of the “size” of in terms of how well can inject or surject with other sets.
Let be sets.
- If there is bijection , then
- If there is injection , then
- If there is injection but no surjection , then .
It can be easily proven that the cardinality relation is reflexive and transitive.
H3 Cantor–Schröder–Bernstein theorem (let’s call it CSB)
It says is antisymmetric on cardinalities. Therefor, for all sets , if there exists injection and injection , we will have and , which will imply .
H3 Cantor’s theorem
Says that the power set of all sets have strictly greater cardinality than the set itself viz. .
Proof: we want some injection but no surjection .
Well, for all is surjective.
Suppose there is a surjection
Let .
So for any . So not surjective.
Fun fact—this statement is provably unprovable: “?”