Surjective functions [00MF]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Definition Surjection [00M8]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
A function f\colon A\to B is said to be surjective or asurjection when for we have \forall b:B\mathpunct {.} \exists a:A\mathpunct {.} f{\mathopen {}\left (a\right )\mathclose {}}=b. A function satisfying this condition is written f\colon A\twoheadrightarrow B.
Corollary Isomorphisms are surjective [00M9]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Any isomorphism f\colon A\to B is surjective.
Proof.
- January 29, 2024
- Jon Sterling
Example Non-empty sets and surjections [00MA]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
The unique function !_A\colon A\to {\mathopen {}\left [1\right ]\mathclose {}} is surjective if and only if A \not =\varnothing .
Proof.
- January 29, 2024
- Jon Sterling
Suppose that A is nonempty, so that we have some a:A. We must show that for every i:{\mathopen {}\left [1\right ]\mathclose {}}, there exists some x:A such that !_A{\mathopen {}\left (x\right )\mathclose {}}=i. Letting i=0 be the unique element of {\mathopen {}\left [1\right ]\mathclose {}}, we may set x:= a.
Conversely, if !_A\colon A\to {\mathopen {}\left [1\right ]\mathclose {}} is surjective, we know that there exists some a:A such that !_A=0; therefore, A is nonempty.
Example Quotients and surjections [00MB]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Let E be an equivalence relation on a set A, and let q\colon A\to A/E be the quotient function that sends a:A to its equivalence class {\mathopen {}\left [a\right ]\mathclose {}}_{E}. Then q\colon A\to A/E is surjective.
Proof.
- January 29, 2024
- Jon Sterling
We must show that for every equivalence class u:A/E there exists an element a:A such that q{\mathopen {}\left (a\right )\mathclose {}}=u. By definition u={\mathopen {}\left [a\right ]\mathclose {}}_{E}=q{\mathopen {}\left (a\right )\mathclose {}} for some a:A.
Example Projection functions and surjections [00MC]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
The projection function \pi _1\colon A\times B\to A sending {\mathopen {}\left (a,b\right )\mathclose {}} to a is surjective if and only if either B \not =\varnothing or A=\varnothing .
Proof.
- January 29, 2024
- Jon Sterling
Suppose that \pi _1\colon A\times B\to A is surjective. We proceed by cases on whether A is empty:
- If A is empty, we are done.
- If A is inhabited by some a:A, then by assumption there exists u:A\times B such that \pi _1{\mathopen {}\left (u\right )\mathclose {}}=a. Thus B is inhabited by \pi _2{\mathopen {}\left (u\right )\mathclose {}}.
Conversely, suppose that either B\not =\varnothing or A=\varnothing . Fixing a:A, we must show that there exists u:A\times B such that \pi _1{\mathopen {}\left (u\right )\mathclose {}}=a. If A=\varnothing , then we have a contradiction already; on the other hand, if there exists any b:B, we may define u:={\mathopen {}\left (a,b\right )\mathclose {}} and we are done.
Theorem Closure of surjections under identity and composition [00MD]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
The identity function is a surjection and the composition of surjections yields a surjection.
Proof.
- January 29, 2024
- Jon Sterling
For the identity function on a set A, we must check that for all a:A, there exists an element a':A such that a'=a. Of course, we choose a' := a.
Let f\colon A\twoheadrightarrow B and g\colon B\twoheadrightarrow C be two surjections. To show that g\circ f\colon A\to C is a surjection, we fix c:C to exhibit some a:A such that g{\mathopen {}\left (f{\mathopen {}\left (a\right )\mathclose {}}\right )\mathclose {}} = c. Because g\colon B\twoheadrightarrow C is surjective, there exists b:B such that g{\mathopen {}\left (b\right )\mathclose {}} = c. Because f\colon A\twoheadrightarrow B is surjective, there exists a:A such that f{\mathopen {}\left (a\right )\mathclose {}} = b. Thus we have g{\mathopen {}\left (f{\mathopen {}\left (a\right )\mathclose {}}\right )\mathclose {}}=g{\mathopen {}\left (b\right )\mathclose {}}=c.