Related vides from Bartosz Milewski:
In set theory,
In CT, these notions abstract to:
Since CT cannot refer to the elements of a set, these need to be defined in terms only of CT concepts: composition and morphisms. The technique is called “universal property” or “universal construction” because it’s necessary to consider all morphisms in the category.
Definition of monomorphism:
f is a monomorphism if, f : X → Y such that,
for all morphisms g1, g2 : Z → X,
f ∘ g1 = f ∘ g2 => g1 = g2
Definition of epimorphism:
f is an epimorphism if, f : X → Y such that,
for all morphisms g1, g2 : Y → Z,
g1 ∘ f = g2 ∘ f => g1 = g2
Note: apparently, in CT, isomorphism != monomorphism + epimorphism. I guess you need something a little stronger than in set theory.
TODO
TODO