MAT102 Lecture 24
2
a
Determine the Cardinality of the sets X = { f 1 : [ 2 ] → [ 3 ] } and Y = { f 2 : [ 3 ] → [ 2 ] }
We don't know the function but we assign to f 1 : { 0 , 1 } → { 0 , 1 , 2 }
So we have 3 2 options for X
X = { ( 0 , 0 ) ( 0 , 1 ) ( 0 , 2 ) ( 1 , 0 ) ( 1 , 1 ) ( 1 , 2 ) ( 2 , 0 ) ( 2 , 1 ) ( 2 , 2 )
We have the ( 2 , … ) cases here because even though ( 2 , … ) isn't part of the input, it's part of the output, we don't know the function so we have to assume that it can potentially get mapped and create it out of thin air.
| X | = 9
f 2 : { 0 , 1 , 2 } → { 0 , 1 }
So we have 2 3 options for Y
| Y | = 8
f : [ 2 ] → [ 3 ]
f ( 0 ) = 3
0 , 1 , 2
Those are our options
f ( 1 ) = 3
Our pairs: ( f ( 0 ) , f ( 1 ) ) = { ( 0 , 0 ) , ( 0 , 1 ) , ( 0 , 2 ) ( 1 , 0 ) , ( 1 , 1 ) , ( 1 , 2 ) ( 2 , 0 ) ⏟ , ( 2 , 1 ) , ( 2 , 2 ) f ( 0 ) = 2 f ( 1 ) = 1 }
b
If we have A and B as sets.
The function is B A = { f : A → B }
We know from part 2a that if we have f : [ 3 ] → [ 2 ] that we have 2 3 options in the set of these functions.
We also found that f : [ 2 ] → [ 3 ] has 3 2 options in that set of functions.
So the pattern here is | output | | input |
[ n ] [ m ] is { f : [ m ] → [ n ] } . So we have | [ n ] | | [ m ] |
So the Cardinality of [ n ] [ m ] is | [ n ] | | [ m ] |
m possible inputs, { f ( 0 ) = n f ( 1 ) = n … f ( m − 1 ) = n
c
Show that if A is an arbitrary set, there is a bijection between A n = A × A × ⋯ × A ⏟ n -times and A [ n ]
g : A n → A [ n ]
Let X = A n , Y = A [ n ]
A n = { ( a 1 , a 2 , a 3 , … , a n ) : a i ∈ A }
Injectivity:
If we have two outputs in y 1 , y 2 ∈ Y . This must mean that x 0 ∈ X produced these outputs.
By the axiom of choice, we choose two values from Y .
We have arbitrary y 1 , y 2 .
x 0 ∈ A × A × ⋯ × A
| A n | = | A | n
Because we take the Cardinality of the set, then when we × them, it's multiplying the Cardinality , n times.
y 1 ∈ A [ n ]
| [ n ] | = | n | = n
| A | [ n ] | | = | A n | = | A | n
If | X | ≤ | Y | then X → Y is injective.
The cardinalities are the same, so it's injective.
Surjectivity:
Let us have an arbitrary y 0 ∈ Y , we need to find some x ∈ X such that g : A n → A [ n ] , x ∈ X gives us y 0 ∈ Y .
I showed previously that | X | = | Y | , so this tells us it's surjective, because | Y | ≤ | X | .
So it's bijective.
h : { 1 , 2 , 3 } → R , h ( x ) = x
h ( x ) = x 2
h ( x ) { 1 2 2 3 3 1
h ( x ) { 0 2 2 3 3 1
Here to get the outputs, we don't know what they are, so we can just put in the inputs.
Show that if A is an arbitrary set, there is a bijection between A n = A × A × ⋯ × A ⏟ n -times and A [ n ]
We need to show that if we have g : X → Y ,
Every function from [ n ] → A is defined by the outputs from part A
Define Φ : A [ n ] → A n , Φ ( f ) = ( f ( 0 ) , f ( 1 ) , … , f ( n − 1 ) )
Define the inverse
Φ − 1 : A n → A [ n ] as Φ − 1 ( a ^ ) = f a ^
where a ^ = ( a 0 , … , a n − 1 ) and f a ^ ( k ) = a k
Φ ( Φ − 1 ( a ) ) = Φ ( f a ^ ) = ( f a ^ ( 0 ) , f a ^ ( 1 ) , … , f a ^ ( n − 1 ) ) = ( a 0 , a 1 , … , a n − 1 ) = a ^
Φ − 1 ( Φ ( f ) ) = Φ − 1 ( f ( 0 ) , … , f ( n − 1 ) ) = f ( f ( 0 ) , f ( 1 ) , … , f ( n − 1 ) )
Let k ∈ { 0 , 1 , … , n − 1 } be arbitrary, then f ( f ( 0 ) , . . , f ( n − 1 ) ) ( k ) = f ( k )