Skip to content
The Lumenary

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

The Lumenary · First-year graduate

Enriched categories

Name: ______________________

Date: ______________________

You will learn to

  • Define categories, functors and natural transformations enriched in a monoidal category V\mathcal{V}, and the underlying ordinary category
  • Show that Lawvere metric spaces are exactly the categories enriched in ([0,∞],≥,+,0)([0, \infty], \ge, +, 0), with the triangle inequality as composition, and that enriched functors are the non-expansive maps
  • Show that locally small categories, preorders and rings are the categories enriched in sets, truth values and abelian groups (one object)
  • Explain why additive categories are Ab\cat{Ab}-enriched and strict 2-categories are Cat\cat{Cat}-enriched, and derive the interchange law
  • Use closedness of V\mathcal{V} to prove the enriched Yoneda embedding for Lawvere metric spaces
  1. 1.

    In a category enriched in ([0,∞],≥,+,0)([0, \infty], \ge, +, 0), the hom-object from xx to yy is a number d(x,y)d(x, y). What does the composition morphism X(y,z)⊗X(x,y)→X(x,z)X(y, z) \otimes X(x, y) \to X(x, z) say?

    • A.d(x,z)≤d(x,y)+d(y,z)d(x, z) \le d(x, y) + d(y, z)
    • B.d(x,x)=0d(x, x) = 0
    • C.d(x,y)=d(y,x)d(x, y) = d(y, x)
    • D.d(x,z)≥d(x,y)+d(y,z)d(x, z) \ge d(x, y) + d(y, z)
  2. 2.

    Directed footpaths between four places take these times (minutes): A→BA \to B: 4, B→CB \to C: 3, C→DC \to D: 5, A→CA \to C: 9, D→AD \to A: 2, B→DB \to D: 10. In the free Lawvere metric space on this weighted graph (shortest-path distance), what is d(A,D)d(A, D)?

  3. 3.

    Replace ++ by max⁡\max: let V=([0,∞],≥,max⁡,0)\mathcal{V} = ([0, \infty], \ge, \max, 0). What is a V\mathcal{V}-category?

    • A.A set with d(x,x)=0d(x, x) = 0 and d(x,z)≤max⁡(d(x,y),d(y,z))d(x, z) \le \max(d(x, y), d(y, z)) — a generalised ultrametric space
    • B.An ordinary metric space
    • C.A preorder
    • D.Nothing: max⁡\max is not a monoidal structure
  4. 4.

    Which statement about one-object enriched categories is correct?

    • A.A one-object Ab\mathbf{Ab}-category is a ring
    • B.A one-object Vectk\mathbf{Vect}_k-category is a field extension of kk
    • C.A one-object Set\mathbf{Set}-category is a group
    • D.A one-object [0,∞][0, \infty]-category is any number d≥0d \ge 0
  5. 5.

    The category with abelian groups as objects and all functions as morphisms has an abelian group BAB^A of morphisms from AA to BB (pointwise addition). Why is it not an Ab\mathbf{Ab}-enriched category?

    • A.Composition is not bilinear: h∘(f+g)≠h∘f+h∘gh \circ (f + g) \neq h \circ f + h \circ g when hh is not additive
    • B.BAB^A is not an abelian group
    • C.There are no identity morphisms
    • D.There are too many objects
  6. 6.

    Let f,g:X→Yf, g : X \to Y be non-expansive maps between Lawvere metric spaces, viewed as [0,∞][0, \infty]-functors. When is there a [0,∞][0, \infty]-natural transformation f⇒gf \Rightarrow g?

    • A.Exactly when d(fx,gx)=0d(f x, g x) = 0 for every xx, and then it is unique
    • B.Always, since naturality is automatic
    • C.Exactly when sup⁡xd(fx,gx)<∞\sup_x d(fx, gx) < \infty
    • D.Only when f=gf = g
  7. 7.

    In the Lean file, Dist is the order dual of ℝ≥0∞, so a ⟶ b holds when a ≥ b as distances, and Mathlib writes the composition of an enriched category as comp x y z : Hom x y ⊗ Hom y z ⟶ Hom x z. In lawvereEquivEnriched, what does homOfLE (M.triangle x y z) provide?

    • A.The composition morphism, from the triangle inequality M.d x z ≤ M.d x y + M.d y z
    • B.The identity morphism 𝟙_ Dist ⟶ Hom x x
    • C.A proof of the associativity axiom
    • D.A proof that M.d is symmetric
  8. 8.

    Theorem 4 says d(x,y)=sup⁡z(d(z,y)−˙d(z,x))d(x, y) = \sup_z \big(d(z, y) \mathbin{\dot-} d(z, x)\big) in any Lawvere metric space. Which zz attains the supremum, and why is no term larger?

    • A.z=xz = x; each term is ≤d(x,y)\le d(x, y) by the triangle inequality d(z,y)≤d(z,x)+d(x,y)d(z, y) \le d(z, x) + d(x, y)
    • B.z=yz = y; by symmetry of dd
    • C.No single zz; the supremum is a limit
    • D.Every zz attains it, because the terms are all equal
  9. 9.

    Write free_metric(w): given a square matrix w (list of lists) of direct path lengths, with 0 on the diagonal and float('inf') where there is no path, return the shortest-path distance matrix — the free Lawvere metric. Use repeated min-plus squaring D↦D⊗DD \mapsto D \otimes D, (D⊗D)ik=min⁡j(Dij+Djk)(D \otimes D)_{ik} = \min_j (D_{ij} + D_{jk}), until the matrix stops changing.

    Computational — Practice

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