Skip to content
The Lumenary

Each worksheet prints cleanly on A4 or Letter. Answer keys are on a separate page.

The Lumenary · Early undergraduate

Categories

Name: ______________________

Date: ______________________

You will learn to

  • State the axioms of a category and verify them for Set\cat{Set}, Grp\cat{Grp}, Vectk\cat{Vect}_k, Top\cat{Top}, a category of matrices and a poset regarded as a category
  • Recognise a monoid as a category with one object and a preorder as a category with at most one morphism between any two objects
  • Define isomorphisms in a category and prove that inverses are unique
  • Prove that in Set\cat{Set} the monomorphisms are the injections and the epimorphisms are the surjections, and that Z→Q\Z \to \Q is an epimorphism of rings that is not surjective
  • Form the opposite category and use the duality principle to turn one theorem into two
  1. 1.

    Which of these are categories (with the obvious composition)? Choose all that apply.

    • A.Objects: positive integers. One morphism m→nm \to n exactly when mm divides nn.
    • B.Objects: integers. One morphism m→nm \to n exactly when m<nm < n.
    • C.Objects: sets. Morphisms: injective functions.
    • D.Objects: sets. Morphisms: functions that are at most two-to-one.
    • E.Objects: natural numbers. Morphisms m→nm \to n: n×mn \times m real matrices, composed by multiplication.
  2. 2.

    Regard the set {1,2,3,6}\{1, 2, 3, 6\}, ordered by divisibility, as a category. How many morphisms does it have in total, including the identities?

  3. 3.

    Let M=(Z/12,×,1)M = (\mathbb{Z}/12, \times, 1) be the monoid of residues modulo 1212 under multiplication, and BM\mathbf{B}M its one-object category. How many of the 1212 morphisms of BM\mathbf{B}M are isomorphisms?

  4. 4.

    In the proof that a left inverse gg and a right inverse hh of f:A→Bf : A \to B are equal, g=g∘idB=g∘(f∘h)=(g∘f)∘h=idA∘h=h,g = g \circ \mathrm{id}_B = g \circ (f \circ h) = (g \circ f) \circ h = \mathrm{id}_A \circ h = h, which axiom justifies the step g∘(f∘h)=(g∘f)∘hg \circ (f \circ h) = (g \circ f) \circ h?

    • A.Associativity of composition
    • B.The unit laws
    • C.Commutativity of composition
    • D.The hypothesis f∘h=idBf \circ h = \mathrm{id}_B
  5. 5.

    Which of these are epimorphisms that are not surjective? Choose all that apply.

    • A.The inclusion Z→Q\mathbb{Z} \to \mathbb{Q} in the category of rings
    • B.The inclusion (N,+)→(Z,+)(\mathbb{N}, +) \to (\mathbb{Z}, +) in the category of monoids
    • C.The inclusion {0}→{0,1}\{0\} \to \{0, 1\} in Set\mathbf{Set}
    • D.The homomorphism n↦2nn \mapsto 2n from (Z,+)(\mathbb{Z}, +) to (Z,+)(\mathbb{Z}, +) in the category of groups
  6. 6.

    Theorem: in every category, if g∘fg \circ f is a monomorphism then ff is a monomorphism. What does the duality principle give us for free?

    • A.If g∘fg \circ f is an epimorphism then gg is an epimorphism.
    • B.If g∘fg \circ f is an epimorphism then ff is an epimorphism.
    • C.If ff is a monomorphism then g∘fg \circ f is a monomorphism.
    • D.If g∘fg \circ f is an isomorphism then ff is an isomorphism.
  7. 7.

    Mathlib writes composition in diagrammatic order: a ≫ f means "first a, then f", i.e. f∘af \circ a. Which statement says that f : X ⟶ Y is a monomorphism?

    • A.∀ (T : C) (a b : T ⟶ X), a ≫ f = b ≫ f → a = b
    • B.∀ (T : C) (a b : Y ⟶ T), f ≫ a = f ≫ b → a = b
    • C.∀ x y : X, f x = f y → x = y
    • D.∃ g : Y ⟶ X, f ≫ g = 𝟙 X
  8. 8.

    A function between finite sets {0,…,m−1}→{0,…,n−1}\{0, \dots, m-1\} \to \{0, \dots, n-1\} is stored as a tuple f of length mm 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 k,l:{0,…,n−1}→{0,1}k, l : \{0, \dots, n-1\} \to \{0, 1\} (that is, k ∘ f == l ∘ f must force k == l). Do not test surjectivity directly!

    Computational — Practice

Code: Apache-2.0 · Content: CC BY-SA 4.0