Unifying Cubical Models of Univalent Type Theory
Introduction
| Diagonals | Additional structure | Kan operations | Diagonal cofibrations | |
|---|---|---|---|---|
| BCH | ✓ | ∧, ∨, ¬ (De Morgan) | 0 → r, 1 → r | |
| CCHM | ✓ | ∧, ∨ (distributive lattice) | 0 → 1 | |
| Dedekind | ✓ | 0 → 1, 1 → 0 | ||
| OP | ✓ | ∧, ∨ (connection algebra) | 0 → 1, 1 → 0 | |
| AFH/ABCFHL | ✓ | r → s | ✓ |
A general axiomatisation
Locally cartesian closed categories C P ∨ Q ≡ ||P + Q||, ¬A ≡ A → 0.
The interval and Path types
I : U, 0, 1 : I. (I to be connected) ax1 : ΠP : I → U (Πi : I P(i) + ¬(P(i))) → ((Πi : I P(i)) + (ΠP : I ¬(P(i)))), (0, 1 to be distinct) ax2 : ¬(0 = 1).
(Type of paths in A) A : I → U ⊢ Path(A) ≡ Πi : I → A(i). a : A(0), b : A(1) ⊢ a ∼ b ≡ Σp : Path(A) (p(0) = a) × (p(1) = b). p : a ∼ b, r : I ⊢ p @ r ≡ app of fst(p) to r, p @ 0 = a, p @ 1 = b.
Cofibrant propositions
cofibrant propositions Φ : U ⊢ (decoding function) [_] : Φ → hProp, (_ ≈ 0) : I → Φ ax3 : Πi : I [_ ≈ 0] = (i = 0), (_ ≈ 1) : I → Φ ax4 : Πi : I [_ ≈ 1] = (i = 1), ∨ : Φ → Φ → Φ ax5 : Πφ, ψ : Φ [φ ∨ ψ] = [φ] ∨ [ψ]. (bottom elements) (0 ≈ 1), (1 ≈ 0), (top elements) (0 ≈ 0), (1 ≈ 1). A : U ⊢ elim0 : [0 ≈ 1] → A (by ax2).
Remark 1
(partial element) f : [φ] → A. (extension) f : [φ] → A, x : A ⊢ f ↗ x ≡ Πu : [φ] f(u) = x. f ↗ x is the type of proofs that the partial element f extends to the total element x. (type of all elements of A extending f) A[φ ↦ f] ≡ Σx : A f ↗ x. f : [φ] → Path(A), r : I ⊢ f · r ≡ u ↦ f(u)(r) : [φ] → A(r).
Fibration structures
Weak composition
r : I, A : I → U, φ : Φ, f : [φ] → Path(A), x0 : A(r)[φ ↦ f · i] ⊢ wcom : Πs : I A(s)[φ ↦ f · s],wcom : fst(wcom(r)) ∼ fst(x0), Πi : I f · r ↗ wcom @ i. WComp(r, A, φ, f, x0) ≡ Σwcom : ... Σwcom : ... Πi : I f · r ↗ wcom @ i.
Weak fibrations and fibration structures
A weak fibration (A, α) over Γ : U is a family A : Γ → U equipped with a fibration structure α : isFib(A), where isFib(A) ≡ (r : I)(p : I )(φ : Φ)(f : [φ] → (i : I) → A(p(i)))(x0 : A(p(r))[φ ↦ f · r]) → WComp(r, (A ◦ p), φ, f, x0). (type of weak fibrations over Γ) Fib(Γ) ≡ ΣA : Γ → U isFib(A). We obtain a category with families (CwF) [21] where the families over Γ : U are (A, α) : Fib(Γ) and elements of such a family are dependent functions in (x : Γ) → A x. (reindexing of P along σ) P : Fib(Γ), σ : ∆ → Γ ⊢ P[σ] : Fib(∆).
Remark 5
α : isFib(A), s : I, r, p, φ, f, x0 ⊢ wcomαr → s p[φ ↦ f] x0 ≡ fst(fst(α r p φ f x0) s) : A(p(s)),wcomαr p[φ ↦ f] x0 ≡ fst(snd(α r p φ f x0)) : wcomαr → r p[φ ↦ f] x0 ∼ fst(x0). φ, ψ : Φ ⊢ [φ ↦ f, ψ ↦ g] : [ φ ∨ ψ ] → A for the union of partial elements f : [φ] → A and g : [ψ] → A that agree where they are both defined, i.e. such that ∀(u : [φ]) (v : [ψ]) ↦ f(u) = g(v). This generalises to [φ1 ↦ f1, ..., φn ↦ fn]. (cofibrant) isCofProp(A : hProp) ≡ Σφ : Φ A ↔ [φ]. When r, s : I are such that (r = s) is cofibrant, we will be able to 'improve' weak composition r → s to obtain a strict composition that is exactly equal to its cap when r = s.
Strict composition
r : I, A : I → U, φ : Φ, f : [φ] → Path(A), x0 : A(r)[φ ↦ f · i] ⊢ scom : Πs : I isCofProp(r = s) → A(s)[φ ↦ f · s], Πc : isCofProp(r = r) fst(scom r c) = fst(x0).
Strict fibrations
A strict fibration (A, α) over Γ : U is a family A : Γ → U equipped with a strict fibration structure α : isSFib A, where isSFib(A) ≡ (r : I)(p : I → Γ)(φ : Φ)(f : [φ] → (i : I) → A(p(i)))(x0 : A(p(r))[φ ↦ f · r]) → SComp(r, (A ◦ p), φ, f, x0).
Strictification
Γ : U, A : Γ → U ⊢ α : isFib(A), r, p, φ, f, x0 ⊢ w ≡ wcomαr → s p[φ ↦ f] x0,w ≡ wcomαr p[φ ↦ f] x0, s : I ⊢ scom(s) ≡ wcomα0 → 1 (_ ↦ p(s))[φ ↦ (u, _) ↦ f u s, (r = s) ↦ (_, i) ↦ w @ i] w, scom : isFib(A) → isSFib(A). As (r = ε) and (ε = r) are always cofibrant for ε = 0, 1, we have strict composition operations ε → r and r → ε in any fibration. Defining
AFH fibrations
(diagonal cofibrations) (_ ≈ _) : I → I → Φ, axΔ : Πr, s : I [r ≈ s] = (r = s).
AFH composition
r : I, A : I → U, φ : Φ, f : [φ] → Path(A), x0 : A(r)[φ ↦ f · i] ⊢ com : Πs : I A(s)[φ ↦ f · s], fst(com(r)) = fst(x0). AFHComp(r, A, φ, f, x0) ≡ ..., isAFHFib(A) ≡ (r : I)(p : I → Γ)(φ : Φ)(f : [φ] → (i : I) → A(p(i))) (x0 : A(p(r))[φ ↦ f · r]) → AFHComp(r, (A ◦ p), φ, f, x0).
Theorem 10
Γ : U, A : Γ → U ⊢ we have isAFHFib(A) iff we have isFib(A).
Remark 11
CCHM fibrations
⊓, ⊔ : I → I → I (from connection algebra), ax⊓ : Πr : I (0 ⊓ r = 0 = r ⊓ 0) ∧ (1 ⊓ r = r = r ⊓ 1), ax⊔ : Πr : I (0 ⊔ r = r = r ⊔ 0) ∧ (1 ⊔ r = 1 = r ⊔ 1).
Remark 12
CCHM composition
ε : 1, A : I → U, φ : Φ, f : [φ] → Path(A), x0 : A(ε)[φ ↦ f · i] ⊢ com : A(ε)[φ ↦ f · ε], CCHMComp(ε A φ f x0) ≡ ..., isCCHMFib(A) ≡ (ε : 1)(p : I → Γ)(φ : Φ)(f : [φ] → (i : I) → A(p(i))) (x0 : A(p(ε))[φ ↦ f · r]) → CCHMComp(ε (A ◦ p) φ f x0).
Theorem 14
Fibration structures for basic type formers
Fibrant Σ-types
Glueing
φ : Φ, A : [φ] → U, B : U, f : Πx : [φ] A(x) → B ⊢ Glue(φ, A, B, f) ≡ Σa : Πx : [φ] A(x) Σb : B Πx : [φ] f(x)(a(x)) = b.
Fibrant Glue types
Γ : U, φ : Γ → Φ, A : (x : Γ) → [φ(x)] → U, B : Γ → U, f : (x : Γ)(v : [φ(x)]) → A x v → B(x). If f has the structure of an equivalence then there is a function isFibGlue : isFib(A) → isFib(B) → isFib(Glue(φ, A, B, f)).
Univalence
Γ : U, A, B : Fib(Γ) ⊢ A ∼U B ≡ ΣP : Fib(Γ × I) P[(id, 0)] = A × P[(id, 1)] = B.
Univalence for ∼U
(A ∼U B) ≃ (fst(A) ≃ fst(B)).
Fibrant univalent universes
Crisp type theory. tiny = exponentiation by it has a right adjoint.
Universe construction
Model structures on cubical sets
δi : 1 → I for i : 1 for the endpoint inclusions. We use the subscript B when working with objects in a slice category C/B. In particular, we have an interval object IB defined as the projection I × B → B, with endpoint maps δBi :1B →IB.
Cofibrantly generated algebraic weak factorisation systems (AWFSs)
Cofibration and trivial fibration awfs
[−] : Φ → hProp as a monomorphism ⊤ : Φtrue ↣ Φ, where Φtrue ≡ Σφ : Φ [φ] = ⊤.