Appendix B. Assumed knowledge
B.1 Set theory
Proving equality of sets
To prove that sets and are equal, we show that they have exactly the same elements. This requires both inclusions,
First inclusion, . Let be arbitrary. Use the description of to show that also belongs to . Since was arbitrary, this proves that every element of belongs to .
Reverse inclusion, . Now let be arbitrary, and show that . This proves that every element of belongs to . With both inclusions established, conclude that .
Both branches in Figure B.1 must be completed. Each starts with membership in one set and establishes membership in the other.
B.2 Injective, surjective, and bijective maps
Let be a function, also called a map. The set is its domain, and is its codomain. Every element of has exactly one output in . This requirement alone does not say whether every element of is reached or whether two different inputs can have the same output.
Injectivity
The map is injective, or one-to-one, if distinct inputs have distinct outputs. Equivalently,
11 Each codomain element has at most one input mapping to it. Some codomain elements may have no such input, as the top panel of Figure B.2 shows.
Surjectivity
The map is surjective, or onto, if every element of the codomain is the output of at least one input. Equivalently,
Different inputs may have the same output. In the middle panel of Figure B.2, every codomain element receives an arrow, and two inputs share an output.
Bijectivity
The map is bijective if it is both injective and surjective. Every codomain element then has exactly one input mapping to it. This gives a one-to-one correspondence between the entire domain and codomain, as in the bottom panel of Figure B.2. Bijectivity imposes both conditions, so it is stronger than either condition alone.
Examples in Euclidean spaces
The same definitions apply to maps between spaces such as and . The domain and codomain are part of each example.
An injective plane inclusion.
Consider
Different pairs retain their distinct first two coordinates, so is injective. Its image is the -plane. It is not surjective onto , since an output with a nonzero third coordinate is never reached. Figure B.3 shows a pair and its image in that plane.
A surjective coordinate projection.
Consider
Every pair is attained, for instance from , so is surjective. It is not injective, since changing leaves the output unchanged. Figure B.4 shows inputs differing in the -direction sharing an output.
A bijective coordinate swap.
Consider
Each output has exactly one preimage, namely . Thus is bijective. Swapping coordinates again recovers the original input. Figure B.5 shows the reflection across the line .