if X is a set, you can treat it as a boring category (as "setoid") where objects are elements of X and morphisms x->y are equations x=y
then a function f:X->Y between sets easily upgrades to a functor between setoids.
almost done/not quite done
Conversation
a function f:X->Y is surjective iff it is essentially surjective, or "surjective on 0-cells" when viewed as a functor between setoids
a function f:X->Y is injective iff it is full, or "surjective on 1-cells", when viewed as a functor between setoids.
wake me up/can't wake up
2
15
tldr:
when ur a little bit category-brained, injectivity looks like a more fundamental concept than surjectivity
but if ur a bit *more* category-brained, then it looks like injectivity is a form of surjectivity, just shifted one dimension up
so umm, what's the deal with that??
3
15
hmm so part of the deal: the categories we like in practice differ systematically from their opposites, so category theory in practice isnât self-dual; e.g. we like locally presentable categories and the opposite of a lp category isnât lp (unless itâs a preorder or sth)
1
3
we like the yoneda embedding and not its opposite, and the yoneda embedding reflects and preserves limits, hence reflects and preserves kernel pairs, hence reflects and preserves monomorphisms; but it ignores colimits and substitutes new colimits in practice
1
4
moving up a categorical level, if f : X -> Y is a map of spaces / oo-groupoids, we like thinking of it as an object in the slice category over Y, not as an object in the coslice category under X, because spaces are locally cartesian closed so this is a family of spaces over Y
1
2
once weâve made that choice it becomes natural to write down the relative postnikov tower of f, which gives us two infinite families of conditions generalizing injectivity and surjectivity: âf is n-connectedâ and âf is n-truncatedâ
1
where (-1)-connected reduces to surjections for sets and (-1)-truncated reduces to injections for sets. this is quite funny though because itâs a definition of surjections based on limits, not colimits: a map of sets is a surjection iff its fibers are non-empty
1
1
(the relevant nlab page: ncatlab.org/nlab/show/%28n )
i didnât know where i was going with this in advance but i get a sense from all this that itâs sort of an accident that epimorphisms are surjections for sets. thereâs a similar flavor of thing going on with the disjoint union
1
where i think itâs sort of an accident that coproducts are disjoint unions for sets. one manifestation of this is that sum types in type theory are supposed to be coproducts but their defining feature is that a term of type A+B is either a term of type A or a term of type B
1
which is not the universal property of the coproduct, since itâs about maps in and not maps out! i still donât quite get whatâs going on here but it seems that the sum type is really supposed to be an âextensive coproductâ

