8.1.3 The universal cover in type theory


Let us consider how we might express the preceding proof in type theoryPlanetmathPlanetmath. We have already remarked that the path fibrationMathworldPlanetmath of π•Š1 is represented by the type family (x↦(π–»π–Ίπ—Œπ–Ύ=x)). We have also already seen a good candidate for the universal coverMathworldPlanetmath of π•Š1: it’s none other than the type family c:π•Š1→𝒰 which we defined in \autorefsec:pi1s1-initial-thoughts! By definition, the fiber of this family over π–»π–Ίπ—Œπ–Ύ is β„€, while the effect of transporting around π—…π—ˆπ—ˆπ—‰ is to add one β€” thus it behaves just as we would expect from \autoreffig:winding.

However, since we don’t know yet that this family behaves like a universal cover is supposed to (for instance, that its total space is simply connected), we use a different name for it. For reference, therefore, we repeat the definition.

Definition 8.1.1 (Universal Cover of S1).

Define code:S1β†’U by circle-recursion, with

π–Όπ—ˆπ–½π–Ύβ’(π–»π–Ίπ—Œπ–Ύ) :≑℀
π–Ίπ—‰π–Όπ—ˆπ–½π–Ύβ’(π—…π—ˆπ—ˆπ—‰) :=π—Žπ–Ίβ’(π—Œπ—Žπ–Όπ–Ό).

We emphasize briefly the definition of this family, since it is so different from how one usually defines covering spaces in classical homotopy theory. To define a function by circle recursion, we need to find a point and a loop in the codomain. In this case, the codomain is 𝒰, and the point we choose is β„€, corresponding to our expectation that the fiber of the universal cover should be the integers. The loop we choose is the successorMathworldPlanetmathPlanetmathPlanetmath/predecessor isomorphismMathworldPlanetmathPlanetmathPlanetmathPlanetmathPlanetmath on β„€, which corresponds to the fact that going around the loop in the base goes up one level on the helix. Univalence is necessary for this part of the proof, because we need to convert a non-trivial equivalence on β„€ into an identityPlanetmathPlanetmath.

We call this the fibration of β€œcodes”, because its elements are combinatorial data that act as codes for paths on the circle: the integer n codes for the path which loops around the circle n times.

From this definition, it is simple to calculate that transporting with π–Όπ—ˆπ–½π–Ύ takes π—…π—ˆπ—ˆπ—‰ to the successor function, and π—…π—ˆπ—ˆπ—‰-1 to the predecessor function:

Lemma 8.1.2.

π—π—‹π–Ίπ—‡π—Œπ—‰π—ˆπ—‹π—π–Όπ—ˆπ–½π–Ύβ’(π—…π—ˆπ—ˆπ—‰,x)=x+1 and transportcode⁒(loop-1,x)=x-1.

Proof.

For the first equation, we calculate as follows:

π—π—‹π–Ίπ—‡π—Œπ—‰π—ˆπ—‹π—π–Όπ—ˆπ–½π–Ύβ’(π—…π—ˆπ—ˆπ—‰,x) =π—π—‹π–Ίπ—‡π—Œπ—‰π—ˆπ—‹π—A↦A((π–Όπ—ˆπ–½π–Ύ(π—…π—ˆπ—ˆπ—‰)),x) (by \autorefthm:transport-compose)
=π—π—‹π–Ίπ—‡π—Œπ—‰π—ˆπ—‹π—A↦A⁒(π—Žπ–Ίβ’(π—Œπ—Žπ–Όπ–Ό),x) (by computation for $\mathsf{rec}_{\mathbb{S}^{1}}$)
=x+1. (by computation for $\mathsf{ua}$)

The second equation follows from the first, because π—π—‹π–Ίπ—‡π—Œπ—‰π—ˆπ—‹π—B⁒(p,–) and π—π—‹π–Ίπ—‡π—Œπ—‰π—ˆπ—‹π—B⁒(p-1,–) are always inversesPlanetmathPlanetmath, so π—π—‹π–Ίπ—‡π—Œπ—‰π—ˆπ—‹π—π–Όπ—ˆπ–½π–Ύβ’(π—…π—ˆπ—ˆπ—‰-1,–) must be the inverse of π—Œπ—Žπ–Όπ–Ό. ∎

We can now see what was wrong with our first approach: we defined f and g only on the fibers Ω⁒(π•Š1) and β„€, when we should have defined a whole morphism of fibrations over π•Š1. In type theory, this means we should have defined functions having types

∏x:π•Š1 ((π–»π–Ίπ—Œπ–Ύ=x)β†’π–Όπ—ˆπ–½π–Ύ(x))  and/or (1)
∏x:π•Š1 (π–Όπ—ˆπ–½π–Ύ(x)β†’(π–»π–Ίπ—Œπ–Ύ=x)) (2)

instead of only the special cases of these when x is π–»π–Ίπ—Œπ–Ύ. This is also an instance of a common observation in type theory: when attempting to prove something about particular inhabitants of some inductive type, it is often easier to generalize the statement so that it refers to all inhabitants of that type, which we can then prove by inductionMathworldPlanetmath. Looked at in this way, the proof of Ω⁒(π•Š1)=β„€ fits into the same pattern as the characterization of the identity types of coproductsMathworldPlanetmath and natural numbersMathworldPlanetmath in \autorefsec:compute-coprod,\autorefsec:compute-nat.

At this point, there are two ways to finish the proof. We can continue mimicking the classical argument by constructingΒ (1) orΒ (2) (it doesn’t matter which), proving that a homotopy equivalenceMathworldPlanetmathPlanetmath between total spaces induces an equivalence on fibers, and then that the total space of the universal cover is contractibleMathworldPlanetmath. The first type-theoretic proof of Ω⁒(π•Š1)=β„€ followed this pattern; we call it the homotopy-theoretic proof.

Later, however, we discovered that there is an alternative proof, which has a more type-theoretic feel and more closely follows the proofs in \autorefsec:compute-coprod,\autorefsec:compute-nat. In this proof, we directly construct bothΒ (1) andΒ (2), and prove that they are mutually inverse by calculation. We will call this the encode-decode proof, because we call the functionsΒ (1) andΒ (2) encode and decode respectively. Both proofs use the same construction of the cover given above. Where the classical proof induces an equivalence on fibers from an equivalence between total spaces, the encode-decode proof constructs the inverse map (decode) explicitly as a map between fibers. And where the classical proof uses contractibility, the encode-decode proof uses path induction, circle induction, and integer induction. These are the same tools used to prove contractibilityβ€”indeed, path induction is essentially contractibility of the path fibration composed with π—π—‹π–Ίπ—‡π—Œπ—‰π—ˆπ—‹π—β€”but they are applied in a different way.

Since this is a book about homotopy type theory, we present the encode-decode proof first. A homotopyMathworldPlanetmath theorist who gets lost is encouraged to skip to the homotopy-theoretic proof (\autorefsubsec:pi1s1-homotopy-theory).

Title 8.1.3 The universal cover in type theory
\metatable