Appendix B. Assumed knowledge
This appendix recalls elementary ideas used throughout the notes. The main text states the definitions it needs before using them. The explanations and examples here provide a fuller reminder.
B.1 Injective, surjective, and bijective maps
Functions, domains, and codomains
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.
The image of consists of the outputs that are actually reached,
If , we call a preimage of . An element of the codomain may have no preimage, one preimage, or several preimages. The domain and codomain are part of the function, so they must be specified when deciding whether a map has any of the following properties.
Surjectivity
The map is surjective, or onto, if every element of the codomain is the output of at least one input. Equivalently,
In terms of the image, this says . Different inputs may have the same output. In the middle panel of Figure B.1, every codomain element receives an arrow, and two inputs share an output.
Injectivity
The map is injective, or one-to-one, if distinct inputs have distinct outputs. Equivalently, for any ,
56 Each codomain element has at most one input mapping to it. Some codomain elements may have no such input, as the left panel of Figure B.1 shows.
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 right panel of Figure B.1. Bijectivity imposes both conditions, so it is stronger than either condition alone. For a bijection, the inverse function sends each to its unique preimage. Thus
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 inclusion of a plane.
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.2 shows a pair and its image in that plane. If we instead took the codomain to be the -plane itself, the same assignment would be bijective. This is why the codomain matters.
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.3 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.4 shows the reflection across the line .
B.2 Divisibility, primes, and greatest common divisors
Divisibility and multiples
For integers and , the notation , read “ divides ,” means
When and , this says that groups of size make up . For example, because . The multiplier may also be zero or negative. In particular, because , and because .
For , we can rearrange the defining equation as with a nonzero integer . The product form also handles , when . The notation means that there is no integer multiplier. Thus , since .
Greatest common divisors and lowest terms
For integers that are not both zero, their greatest common divisor, written , is the largest positive integer dividing both of them. For example, the positive common divisors of and are , so
The integers are coprime, or relatively prime, when . If a prime divides both and , it is a positive common divisor, so
Every rational number can be written as with , , and . This is a representation in lowest terms, obtained by dividing numerator and denominator by their GCD. Being rational, or even being a prime integer, does not make every representation reduced. For example,
We choose a lowest-terms representation when an argument needs coprime numerator and denominator.
Prime divisors and Euclid’s lemma
A prime is an integer whose only positive divisors are and . Euclid’s lemma, proved in Lemma 1.2.2, states that for ,
In particular, implies , since . Repeated application gives for every positive integer . The prime hypothesis is essential. For instance, , but divides neither nor .
How the prime-root contradiction uses GCD
In Exercise 1.11.2, is prime and we suppose for a contradiction that has a lowest-terms representation,
The full solution uses Euclid’s lemma to establish both and . These conclusions force
contradicting the choice . Rationality would have allowed a lowest-terms representation, so this contradiction proves that is irrational. Throughout the argument, is prime. The rationality of is the assumption being contradicted.