Skip to content
The Lumenary

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

The Lumenary · Research pathways

Homotopy type theory

Name: ______________________

Date: ______________________

You will learn to

  • Explain identity types and their reading as path spaces, and derive transport, the action of functions on paths and the groupoid laws by path induction
  • Define equivalences of types, state the univalence axiom, and prove that it is incompatible with uniqueness of identity proofs for the universe
  • Define the circle as a higher inductive type and outline the encode–decode proof that its loop space is equivalent to Z\Z
  • Describe the models of homotopy type theory and separate established results from open questions
  • Use Lean to see precisely where an ordinary proof assistant departs from homotopy type theory
  1. 1.

    In the homotopy interpretation, what is the identity type a=Aba =_A b?

    • A.The space of paths in AA from aa to bb
    • B.A truth value: true if aa and bb are equal, false otherwise
    • C.The set {a,b}\{a, b\}
    • D.The set of isomorphisms between aa and bb, by definition
  2. 2.

    Assume univalence. How many elements does the identity type Fin(3)=Fin(3)\mathsf{Fin}(3) = \mathsf{Fin}(3) have (it is a set, so count elements up to paths)?

  3. 3.

    Let P(x):≡(a=x)P(x) :\equiv (a = x) for a fixed a:Aa : A. For p:b=cp : b = c and q:a=bq : a = b, what is trP(p,q):a=c\mathsf{tr}^P(p, q) : a = c?

    • A.q⋅pq \cdot p
    • B.p⋅qp \cdot q
    • C.qq, since transport is just substitution
    • D.p−1⋅qp^{-1} \cdot q
  4. 4.

    A student argues: 'Let p:a=ap : a = a. By path induction we may assume pp is refla\mathsf{refl}_a, so every loop equals refla\mathsf{refl}_a.' What is wrong?

    • A.Path induction applies only to families over paths with a free endpoint, ΠxΠp:a=xC(x,p)\Pi_{x}\Pi_{p : a = x} C(x, p); here both endpoints are fixed at aa
    • B.Nothing: this is a valid proof of uniqueness of identity proofs
    • C.The argument forgot to use symmetry of equality
    • D.Path induction requires function extensionality
  5. 5.

    Which Lean statement expresses that univalence fails in Lean, for the type Bool?

    • A.¬ Function.Surjective (idtoeqv : Paths Bool Bool → (Bool ≃ Bool))
    • B.¬ Nonempty (Paths Bool Bool)
    • C.Function.Injective (idtoeqv : Paths Bool Bool → (Bool ≃ Bool))
    • D.¬ (Bool ≃ Bool)
  6. 6.

    In the encode–decode proof that (base=base)≃Z(\mathsf{base} = \mathsf{base}) \simeq \Z, where is the univalence axiom used?

    • A.To define the universal cover code\mathsf{code}, sending loop\mathsf{loop} to the path ua(succ):Z=Z\mathsf{ua}(\mathsf{succ}) : \Z = \Z in the universe
    • B.To prove decode(encode(p))=p\mathsf{decode}(\mathsf{encode}(p)) = p
    • C.To prove succn(0)=n\mathsf{succ}^n(0) = n by induction on nn
    • D.Nowhere; the higher inductive circle suffices
  7. 7.

    Which principles are consistent with (or follow from) univalence? (Choose all that apply.)

    • A.Excluded middle for propositions
    • B.The axiom of choice for sets
    • C.Function extensionality
    • D.Uniqueness of identity proofs for all types, including the universe
    • E.Excluded middle for all types, ΠA:U(A+¬A)\Pi_{A : \mathcal{U}} (A + \neg A)
  8. 8.

    In homotopy type theory with univalence and the higher inductive circle, which of these types are sets (all of their identity types are propositions)? (Choose all that apply.)

    • A.N\mathbb{N}
    • B.Bool\mathsf{Bool}
    • C.base=base\mathsf{base} = \mathsf{base} in S1S^1
    • D.S1S^1
    • E.The universe U\mathcal{U}
  9. 9.

    Loops in the circle built from loop\mathsf{loop} (+1+1) and loop−1\mathsf{loop}^{-1} (−1-1) are words, e.g. (1, 1, -1). The groupoid laws let us cancel an adjacent pair 1, -1 or -1, 1. Write reduce_word(word) returning the fully reduced word as a tuple. (The tests check that your reduced word is always decode(encode(w))\mathsf{decode}(\mathsf{encode}(w)).)

    Computational — Practice

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