surjection (changes) in nLab
Showing changes from revision #35 to #36: Added | Removed | Changed
Context
Type theory
natural deduction metalanguage, practical foundations
type theory (dependent, intensional, observational type theory, homotopy type theory)
computational trinitarianism = \linebreak propositions as types +programs as proofs +relation type theory/category theory
Contents
Definition
A function ff (of sets) from AA to BB is surjective if, given any element yy of BB, y=f(x)y = f(x) for some xx. A surjective function is also called onto or a surjection.
Surjections are the same as epimorphisms in the category of sets and effective epimorphisms in the (infinity,1)-category of sets.
A bijection is a function that is both surjective and injective.
The surjection preorder
In classical set theory, one writes |B|≤ *|A||B| \leq^* |A| to mean that either there is a surjection A→BA \to B or B=∅B=\empty. The relation ≤ *\leq^* is a preorder on the class of all sets, and its restriction to inhabited sets is the preorder reflection of the category Surj inhSurj_{inh} of inhabited sets and surjections.
To make this definition less piecemeal and more constructive, one can define |B|≤ *|A||B| \leq^* |A| to mean BB is a subquotient of AA, in other words one has a surjection B′→BB' \to B and an injection B′→AB' \to A. For BB inhabited and a subquotient of AA, excluded middle implies there is a surjection from AA to BB, so in classical mathematics this coincides with the piecemeal definition.
Contrast with the notation |B|≤|A||B| \leq |A| if there is an injection B→AB\to A. Since subobjects are subquotients (e.g. we can take B′=BB'=B above), |B|≤|A||B| \leq |A| implies |B|≤ *|A||B| \leq^* |A|. (If we wanted to prove this using the piecemeal definition, we would require excluded middle.)
Axioms of choice
The axiom of choice states precisely that every surjection in the category of sets has a section. Thus in this setting one has: |B|≤ *|A||B| \leq^* |A| implies |B|≤|A||B| \leq |A|, and so |B|≤ *|A||B| \leq^* |A| iff |B|≤|A||B| \leq |A| assuming AC. Some authors who doubt the axiom of choice use the term ‘onto’ for a surjection as defined above and reserve ‘surjective’ for the stronger notion of a function with a section (a split epimorphism).
The axiom WISC has an equivalent statement (that works in any Boolean topos) due to François Dorais phrased almost entirely in terms of surjections (or epimorphisms):
For every set XX there is a set YY such that for every surjection q:Z→Xq\colon Z \to X there is a function s:Y→Zs\colon Y \to Z such that q∘s:Y→Xq\circ s\colon Y\to X is a surjection.
One can view this as really a statement about the Grothendieck fibration over Set with fibre over XX the full subcategory of Set/XSet/X on the surjections: every fibre has a weakly initial object.
In other categories
Since an element aa in a set AA in the category of sets is just a global element a:1→Aa:1\rightarrow A, one could define surjections in any category 𝒞\mathcal{C} with a terminal object 11:
Definition
A morphism f:A→Bf:A\rightarrow B in a category 𝒞\mathcal{C} with a terminal object 11 is called a surjection. a surjective morphism, or an onto morphism if, given any global element y:1→By:1\rightarrow B, there exists a global element x:1→Ax:1\rightarrow A such that y=f∘xy = f \circ x.
Proposition
In a category 𝒞\mathcal{C} with a terminal object 11, the unique morphism !:A→1!:A\rightarrow 1 is a surjection for every object AA.
Proof
By definition of a terminal object, for every object AA there exists a unique morphism !:A→1!:A\rightarrow 1, and the identity morphism is the unique global element 1 1:1→11_{1}:1\rightarrow 1. The composite of a global element x:1→Ax:1\rightarrow A with the function !:A→1!:A\rightarrow 1 results in a function !∘x:1→1! \circ x:1\rightarrow 1, which by definition of a terminal object is the same as 1 1:1→11_{1}:1\rightarrow 1. Since !∘x=1 1! \circ x = 1_{1}, for every object AA, !:A→1!:A\rightarrow 1 is a surjection.
Proposition
In a category of pointed objects 𝒞\mathcal{C}, every morphism f:A→Bf:A\rightarrow B is a surjection for every object AA.
Proof
A pointed object in a category with terminal objects is a object AA with a global element a:1→Aa:1\rightarrow A to the object, and morphisms in the category preserve the global element, which means there is only a unique global element for each object AA. Therefore, for every morphism f:A→Bf:A\rightarrow B and global element y:1→By:1\rightarrow B, there exists a global element x:1→Ax:1\rightarrow A such that y=f∘xy = f \circ x.
Just because a morphism is a surjection in a concrete category does not mean that the morphism in the underlying category of sets is a surjection; equivalently, the forgetful functor from any category 𝒞\mathcal{C} to Set does not preserve surjections.
Well-pointedness
The fact that surjections are epimorphisms in Set is a result of the fact that Set is well-pointed. This could be generalised to any category with a terminal separator 11.
Proof
For any surjection f:A→Bf:A\rightarrow B, suppose there are parallel morphisms g,h:B→Cg, h:B\rightarrow C such that there g∘f=h∘fg \circ f = h \circ f (a fork). Then for every global element y:1→By:1\rightarrow B there exists a global element x:1→Ax:1\rightarrow A such that y=f∘xy = f \circ x, and thus g∘y=g∘f∘xg \circ y = g \circ f \circ x and h∘y=h∘f∘xh \circ y = h \circ f \circ x. But since g∘f=h∘fg \circ f = h \circ f, g∘f∘x=h∘f∘xg \circ f \circ x = h \circ f \circ x, which implies that g∘y=h∘yg \circ y = h \circ y. Since 11 is a separator, then for every global element y:1→By:1\rightarrow B, if g∘y=h∘yg \circ y = h \circ y, then g=hg = h. Therefore, every surjection is an epimorphism.
Axiom of choice
The axiom of choice for surjections in Set is the following statement:
- Every surjection is a split epimorphism.
This axiom could be defined in every category with a terminal object, and could be contrasted with the axiom of choice for epimorphisms, as not every epimorphism is an surjection, nor is every surjection an epimorphism.
Proof
Suppose there are parallel morphisms g,h:B→Cg, h:B\rightarrow C such that for every global element y:1→By:1\rightarrow B, g∘y=h∘yg \circ y = h \circ y. One could construct an equaliser f:eq(g,h)→Bf:eq(g,h)\rightarrow B, which implies that g∘f=h∘fg \circ f = h \circ f and that for any global element x:1→eq(g,h)x:1\rightarrow eq(g,h), g∘f∘x=h∘f∘xg \circ f \circ x = h \circ f \circ x. This implies that for every global element y:1→By:1\rightarrow B, there exists a global element x:1→eq(g,h)x:1\rightarrow eq(g,h) where y=f∘xy = f \circ x, and the equaliser f:eq(g,h)→Bf:eq(g,h)\rightarrow B is a surjection. Since every surjection is a split epimorphism, ff has a section i:B→eq(g,h)i:B\rightarrow eq(g,h) such that f∘i=1 Bf \circ i = 1_{B}, the identity morphism on BB, g∘f∘i=h∘f∘ig \circ f \circ i = h \circ f \circ i, g∘1 B=h∘1 Bg \circ 1_{B} = h \circ 1_{B}, and g=fg = f. Because for every global element y:1→By:1\rightarrow B, g∘y=h∘yg \circ y = h \circ y implies g=hg = h, the terminal object 11 is a separator.
In dependent type theory
In dependent type theory, surjections are defined in the same way as they are in set theory: a function f:A→Bf:A \to B between types AA and BB is a surjection if for all terms b:Bb:B the fiber of ff over bb is inhabited.
isSurjective(f)≔∏ b:B‖fiber(f,b)‖isSurjective(f) \coloneqq \prod_{b:B} \Vert fiber(f, b) \Vert
However, unlike set theory, surjections are not necessarily the same as epimorphisms in dependent type theory. For example, the unique function from the boolean domain 𝟚\mathbb{2} to the unit type is a surjection, but it is not a epimorphism if the type theory has the circle type with its large recursion principle. In fact, surjections and epimorphisms correspond in dependent type theory if and only if an axiom of set truncation holds in the type theory.
Instead, surjections in dependent type theory correspond to the effective epimorphisms in set theory and category theory. This is because in dependent type theory, types in general represent $\infty$-groupoids and form an (infinity,1)-category, and so the relevant notion is that of an effective epimorphism in an (infinity,1)-category.
References
For surjections in dependent type theory, see section 15.2 of:
- Egbert Rijke, Introduction to Homotopy Type Theory, Cambridge Studies in Advanced Mathematics, Cambridge University Press (arXiv:2212.11082)
or section 4.6 of:
see also:
- Egbert Rijke, The join construction, 26 Jan 2017, (arXiv:1701.07538)
Last revised on December 9, 2024 at 05:18:08. See the history of this page for a list of all contributions to it.