Categories
Warm-upHumanWhich of these are categories (with the obvious composition)? Choose all that apply.
Which of these are categories (with the obvious composition)? Choose all that apply.
Regard the set , ordered by divisibility, as a category. How many morphisms does it have in total, including the identities?
Let be the monoid of residues modulo under multiplication, and its one-object category. How many of the morphisms of are isomorphisms?
In the proof that a left inverse and a right inverse of are equal, which axiom justifies the step ?
Which of these are epimorphisms that are not surjective? Choose all that apply.
Theorem: in every category, if is a monomorphism then is a monomorphism. What does the duality principle give us for free?
Mathlib writes composition in diagrammatic order: a ≫ f means "first a, then f", i.e. . Which statement says that f : X ⟶ Y is a monomorphism?
A function between finite sets is stored as a tuple f of length with values in range(n). Write is_epi(f, n) that decides whether f is an epimorphism directly from the definition, by testing cancellation against all pairs of maps (that is, k ∘ f == l ∘ f must force k == l). Do not test surjectivity directly!