Simulate
Check the claim with numbers
A map gives each element of the set one element of the set . Lesson 1.1.3 asked when a function can be run backwards. That depends on two properties: no two inputs share an output, and every element of is an output.
On small sets every map can be listed. A map from to is a tuple of three outputs, such as . The cell counts the maps between sets of sizes and , and how many have each property.
From 2 elements to 3, 6 of the 9 maps keep outputs apart, but none reaches all 3 elements. From 3 to 2, 6 of the 8 maps reach both elements, but none keeps 3 outputs apart. Only between sets of the same size, 3 and 3, do 6 maps have both properties.
Now chain two maps. The cell tries every from a 2-element set to a 3-element set, with every from there to a 4-element set.
In all 576 pairs, keeps outputs apart whenever and both do. The last line shows the reverse fails: in 144 pairs keeps them apart, but does not.
Conjecture
If and are both injective, then so is .
Every pair of maps between three small sets. The proof must work for every set, finite or not.
Three properties of a map
The two properties have names. A map with both has an inverse, as lesson 1.1.3 found with the horizontal line test.
Rule: Injective, surjective, bijective
Injective (one-to-one, as in lesson 1.1.3): different inputs give different outputs. Surjective (onto): every element of is an output. A bijective map, a bijection, pairs off and exactly, so it has an inverse .
To prove that a map is injective, take two inputs with the same output and show they are equal. To prove it is surjective, take any and find an input that gives it. Composition is as in lesson 1.1.3: .
Format 1
Reorder the steps
Here is the proof of the claim, with its lines shuffled. Put them in order with the arrows, or drag a line by its handle.
- So inputs of with the same output are equal: is injective.
- By the meaning of composition, that says .
- The map is injective, so gives .
- Suppose and are injective, and take any with .
- The map is injective, and and have the same output under , so .
Simulate
Is this map injective?
Take on all real numbers. The cell evaluates it at every quarter from to 5 with exact fractions, and looks for two inputs with the same output.
Of the 41 inputs, 16 share an output with an earlier one: , for example, and . Kept to , the 25 inputs give 25 different outputs.
Conjecture
is not injective on , but it is injective on .
A grid of 41 points. The collisions come in pairs placed evenly about , which the algebra should explain.
Format 3
Find the error
A proof that is injective on all of , which the simulation contradicts. One line loses part of the truth. Select it.
Simulate
Chains of surjective maps
Now the other property. The cell tries every from a 4-element set onto a 3-element set, with every from there to a 2-element set.
In all 648 pairs, reaches every element whenever and both do. Again the reverse fails: in 168 pairs reaches every element, but does not.
Conjecture
If and are both surjective, then so is .
Every pair of maps between three small sets, as before. With the first claim, this makes a chain of two bijections a bijection.
Format 4
Write it
Prove that if and are surjective, then is surjective. Then explain why a chain of two bijections is a bijection.
Saved in this browser as you type.
Write your own first: a proof you have tried to write teaches far more than one you only read.
Lesson PG6.3 uses bijections to compare the sizes of infinite sets.
Summary card
- is injective when forces , surjective when every is an output, and bijective when both hold. A bijection has an inverse.
- Prove injective from two inputs with the same output; prove surjective from an arbitrary .
- If and are injective, so is ; the same holds for surjective, so chains of bijections are bijections.
- is not injective on , since . Taking square roots gives ; on the minus sign cannot happen.