Cubical Type Theory II: Cartesian Cubes and Computation
Without interval reversal, a coercion from 𝐴(0) to 𝐴(𝑠) does not produce the backward coercion 𝐴(𝑠)→𝐴(0) needed to coerce a function. Cartesian cubical type theory therefore gives 𝖼𝗈𝖾𝑟→𝑠 arbitrary source and target dimensions and separates coercion from homogeneous composition. A diagonal cofibration is a face equation between dimensions; such cofibrations make the resulting cap equation expressible, and a behavioral semantics proves canonicity.
The Cartesian interval has only the dimension terms 0, 1, and variables, but dimension substitution remains unrestricted. Thus [𝑗/𝑖] is allowed even when 𝑗 is already in scope. Contexts may be extended by 𝑖:𝕀 and restricted by a cofibration 𝜑; the judgments Γ⊢𝑟:𝕀, Γ⊢𝜑𝖼𝗈𝖿, and Γ⊢𝜑𝗍𝗋𝗎𝖾 retain their meanings from chapter 80. We write Γ⊢𝑏:𝐴▹(𝜑↦𝑡) for the pair of judgments Γ⊢𝑏:𝐴 and Γ,𝜑⊢𝑏≡𝑡:𝐴. Path abstraction ⟨𝑖⟩𝑡 and application 𝑝@𝑟 are as in definition 80.8; their formation premises are those of convention 26.14.
The displayed calculations use exactly the rules explicitly printed here.
CA
Computational semantics, V-types, and universes use Angiuli’s Definitions 4.3–4.29 and Rules 4.78–4.104.
CSA
Normalization uses the source’s universe-free Π/Σ/𝖯𝖺𝗍𝗁/𝖦𝗅𝗎𝖾/𝕊1 signature.
The teaching fragment is not asserted to be an independently complete calculus. A theorem tagged CA or CSA imports the named source signature; a displayed local equation is then either a transcription of that signature or a representative derivation within it. No metatheorem transfers among the three rows without an explicit statement.
The dimension terms of the Cartesian theory are generated by the rules
Γ𝖼𝗍𝗑
Γ⊢0:𝕀
i-zero
Γ𝖼𝗍𝗑
Γ⊢1:𝕀
i-one
(𝑖:𝕀)∈Γ
Γ⊢𝑖:𝕀
i-var
and by no others: relative to definition 80.1, the term formers 𝑖∧𝑗, 𝑖∨𝑗, and 1−𝑖 are removed, together with all equations of the De Morgan algebra. The structural rules for dimension variables (weakening, exchange, substitution) are those of chapter 80 and remain unrestricted.
A context of 𝑛 dimension variables denotes the 𝑛-cube. Substitutions between such contexts are generated by faces ([0/𝑖], [1/𝑖]), degeneracies (weakening), symmetries (exchange), and diagonals ([𝑗/𝑖]); the resulting category is the Cartesian cube category, the free finite-product category on an interval object with two points [ABC^+21]. The De Morgan cube category already permits the substitution [𝑗/𝑖]. What the Cartesian cofibration language adds is the face condition 𝑖=𝑗, which allows a term to reduce specifically on that diagonal. Connections and reversal, by contrast, are absent.
A Cartesian cofibration is a face condition generated by equations between dimension terms, disjunction, and universal quantification over the interval:
Γ⊢𝑟:𝕀Γ⊢𝑠:𝕀
Γ⊢𝑟=𝑠𝖼𝗈𝖿
cof-eq
Γ⊢𝜑𝖼𝗈𝖿Γ⊢𝜓𝖼𝗈𝖿
Γ⊢𝜑∨𝜓𝖼𝗈𝖿
cof-disj
Γ,𝑖:𝕀⊢𝜑𝖼𝗈𝖿
Γ⊢∀𝑖.𝜑𝖼𝗈𝖿
cof-forall
The exact package is ABCFHL §2.4 [ABC^+21]. Besides formation, it has a proof-irrelevant entailment judgment 𝜑⊢Γ𝜓, a separate judgmental equality Γ;𝜒⊢𝜑≡𝜓𝖼𝗈𝖿, and substitution in all three judgments. Entailment has hypothesis and weakening; both introductions for ∨; case analysis from 𝜑∨𝜓; introduction of ∀𝑖.𝜑 from a derivation with fresh 𝑖, and specialization at every dimension term. For equality cofibrations it has congruence generated by equality of interval terms; equality reflection instead turns an entailed interval equation into judgmental equality of interval terms. Here Γ⊢𝜑𝗍𝗋𝗎𝖾 abbreviates ⊤⊢Γ𝜑. Its distinctive term-level consequences are reflection, collapse at 0=1, and case splitting; the additional propositional-univalence rule used by the identity-type extension of remark 81.21 produces equality in the separate cofibration-equality judgment [ABC^+21]:
Γ⊢𝑟:𝕀
Γ⊢𝑟=𝑟𝗍𝗋𝗎𝖾
cof-refl
Γ⊢𝑟=𝑠𝗍𝗋𝗎𝖾
Γ⊢𝑟≡𝑠:𝕀
cof-reflect
Γ⊢0=1𝗍𝗋𝗎𝖾Γ⊢𝐴𝗍𝗒𝗉𝖾
Γ⊢𝖺𝖻𝗈𝗋𝗍:𝐴
cof-absurd
Γ⊢𝜑∨𝜓𝗍𝗋𝗎𝖾Γ,𝜑⊢𝑢:𝐴Γ,𝜓⊢𝑣:𝐴Γ,𝜑,𝜓⊢𝑢≡𝑣:𝐴
Γ⊢[𝜑↦𝑢,𝜓↦𝑣]:𝐴
cof-case
Γ,𝜒,𝜑⊢𝜓𝗍𝗋𝗎𝖾Γ,𝜒,𝜓⊢𝜑𝗍𝗋𝗎𝖾
Γ;𝜒⊢𝜑≡𝜓𝖼𝗈𝖿
cof-ext
The case-split term satisfies Γ,𝜑⊢[𝜑↦𝑢,𝜓↦𝑣]≡𝑢:𝐴 and its mirror image, and any 𝑏 with the same restrictions equals the split; under 0=1 every term equals 𝖺𝖻𝗈𝗋𝗍. Replacing the terms 𝑢,𝑣,𝑏 by types gives the type-formation and type-selection rules under a true disjunction. Cofibration equality converts restricted judgments, and all rules are stable under dimension substitution. Thus 𝜑≡𝜓 is not an undeclared connective of the cofibration grammar.
The scheme 𝑟=𝑠 includes endpoint faces, diagonals, truth 0=0, and falsity 0=1. The diagonal 𝑟=𝑠 lets homogeneous composition reduce to its cap when source and target agree; ∀𝑖.𝜑 is required to detect the part of a 𝖦𝗅𝗎𝖾 extent that persists along an entire filling dimension. The selected calculus omits conjunction; adding it supports Swan’s identity type with strict computation on 𝗋𝖾𝖿𝗅 (remark 81.21) [ABC^+21, Ang19].
No proof terms inhabit Γ⊢𝜑𝗍𝗋𝗎𝖾: like the conversion rule, it licenses judgments without leaving a trace in the term. This is tenable only because the grammar of cofibrations is deliberately impoverished — entailment between cofibrations over a fixed dimension context is decidable. Normalize a case by recording a partition of its finitely many dimension variables together with the blocks identified with 0 or 1; disjunction branches over cases, and ∀𝑖 checks every extension of the partition by the fresh variable. There are finitely many such extensions, so this recursion decides the imported entailment rules. Decidability of type checking for the normalized fragment (corollary 81.34) depends on this.
★☆☆ Show that the Cartesian theory has no connection: there is no dimension term 𝑡 with 𝑖:𝕀,𝑗:𝕀⊢𝑡:𝕀 such that 𝑗:𝕀⊢𝑡[0/𝑖]≡0:𝕀 and 𝑗:𝕀⊢𝑡[1/𝑖]≡𝑗:𝕀. (By definition 81.2, 𝑡 is one of 0, 1, 𝑖, 𝑗; refute each case, using the fact that distinct constants and variables are not judgmentally equal: their raw dimension terms are distinct, and definition 81.2 has no equation that identifies them.)
★☆☆ Derive the transport rule for cofibrations: if Γ,𝑖:𝕀⊢𝛼𝖼𝗈𝖿, Γ⊢𝑟=𝑠𝗍𝗋𝗎𝖾, and Γ⊢𝛼[𝑟/𝑖]𝗍𝗋𝗎𝖾, then Γ⊢𝛼[𝑠/𝑖]𝗍𝗋𝗎𝖾. (Use cof-reflect and congruence of substitution in judgmentally equal dimension terms.)
★★☆ Show that consecutive restrictions commute: any judgment derivable in context Γ,𝜑,𝜓 is derivable in Γ,𝜓,𝜑, and both restrict Γ by the same subshape. Conclude that the iterated constrained judgment Γ⊢𝑏:𝐴▹(𝜑,𝜓↦𝑡,𝑢) of convention 81.1 is well defined irrespective of the order of constraints: 𝑏=𝑡 holds under 𝜑 and 𝑏=𝑢 holds under 𝜓.
The Kan structure of the Cartesian theory consists of two operators: coercion moves an element along a line of types; homogeneous composition caps a tube within a single type.
Every type of the Cartesian theory supports coercion, which moves an element along a line of types, and homogeneous composition, which caps a tube in one fixed type:
(In hcom-cap and hcom-tube the typing premises of hcom are presupposed, per convention 26.14.) The data 𝜑↦𝑖.𝑡 is the tube, 𝑎 the cap; 𝑟 is the source and 𝑠 the target. Both operators commute with substitution — for dimension variables this is the uniformity of the Kan operation, automatic for a syntactic constant.
𝖼𝗈𝖾𝑟→𝑠𝑖.𝐴 realizes, judgmentally, the principle that a family over the interval cannot distinguish its fibers; taking 𝑟,𝑠:=0,1 and the line 𝑖.𝐶[𝑝@𝑖/𝑥] over a path 𝑝 yields transport, hence the recursor of the identity type (cf. definition 30.1). 𝗁𝖼𝗈𝗆 solves a filling problem: the tube prescribes faces on 𝜑 moving in a fresh direction 𝑖 from the cap; the composite is the face at 𝑖=𝑠. Unlike the operator 𝖼𝗈𝗆𝗉0→1 of definition 80.21, source and target are arbitrary dimension terms, and the two boundary equations exhaust the constraints: hcom-cap fires on the diagonal𝑟=𝑠, a cofibration available only by definition 81.4.
From the operations of definition 81.7 one defines composition in a line of types, for Γ,𝑖:𝕀⊢𝐴𝗍𝗒𝗉𝖾, with tube and cap as in hcom but heterogeneously typed (𝑡 in 𝐴, the cap 𝑎 in 𝐴[𝑟/𝑖], agreement at [𝑟/𝑖]): 𝖼𝗈𝗆𝑟→𝑠𝑖.𝐴[𝜑↦𝑖.𝑡](𝑎):=𝗁𝖼𝗈𝗆𝑟→𝑠𝐴[𝑠/𝑖][𝜑↦𝑗.𝖼𝗈𝖾𝑗→𝑠𝑖.𝐴(𝑡[𝑗/𝑖])](𝖼𝗈𝖾𝑟→𝑠𝑖.𝐴(𝑎)). Each tube entry coerces the face 𝑡[𝑗/𝑖] from the fiber over 𝑗 into the fiber over 𝑠; the cap is coerced likewise; the composition is then homogeneous in 𝐴[𝑠/𝑖]. The expected equations hold: on 𝜑 the right-hand side equals 𝖼𝗈𝖾𝑠→𝑠𝑖.𝐴(𝑡[𝑠/𝑖])≡𝑡[𝑠/𝑖] by hcom-tube and coe-id; when Γ⊢𝑟≡𝑠:𝕀 it equals 𝖼𝗈𝖾𝑟→𝑠𝑖.𝐴(𝑎)≡𝑎 by hcom-cap and coe-id; and the tube–cap compatibility at 𝑗:=𝑟 follows from Γ,𝜑⊢𝑡[𝑟/𝑖]≡𝑎:𝐴[𝑟/𝑖] by congruence.
If heterogeneous composition is taken as primitive, coercion and homogeneous composition are instances of it: 𝖼𝗈𝖾𝑟→𝑠𝑖.𝐴(𝑎) is 𝖼𝗈𝗆𝑟→𝑠𝑖.𝐴 with the empty tube 𝜑:=(0=1), and 𝗁𝖼𝗈𝗆𝑟→𝑠𝐴 is 𝖼𝗈𝗆𝑟→𝑠𝑖.𝐴 with 𝑖 not free in 𝐴. Hence a type theory may take either the pair (𝖼𝗈𝖾,𝗁𝖼𝗈𝗆) or the single operator 𝖼𝗈𝗆 as primitive; the two presentations are interderivable.
Proof. For the empty-tube instance, the formation rule returns an element of 𝐴[𝑠/𝑖] from the cap 𝑎:𝐴[𝑟/𝑖]; its diagonal equation is coe-id. For the constant-line instance, every tube and the cap have type 𝐴, and the two composition boundary equations are exactly hcom-cap and hcom-tube. Conversely, construction 81.9 derives heterogeneous composition from the pair and checks both equations there. Thus the two primitive signatures generate the same three operations and boundary equations; see [Ang19, ABC^+21] for the two choices. ◻
Let 𝑗 be fresh. The filler of a composition problem is composition to the variable 𝑗: 𝖿𝗂𝗅𝗅𝑟→𝑗𝑖.𝐴[𝜑↦𝑖.𝑡](𝑎):=𝖼𝗈𝗆𝑟→𝑗𝑖.𝐴[𝜑↦𝑖.𝑡](𝑎), a term in context Γ,𝑗:𝕀 satisfying, by hcom-cap, hcom-tube, and substitution: (𝖿𝗂𝗅𝗅𝑟→𝑗𝑖.𝐴(…))[𝑟/𝑗]≡𝑎,(𝖿𝗂𝗅𝗅𝑟→𝑗𝑖.𝐴(…))[𝑠/𝑗]≡𝖼𝗈𝗆𝑟→𝑠𝑖.𝐴(…),Γ,𝜑,𝑗:𝕀⊢𝖿𝗂𝗅𝗅𝑟→𝑗𝑖.𝐴(…)≡𝑡[𝑗/𝑖]:𝐴[𝑗/𝑖]. In chapter 80 the filler is manufactured from 𝖼𝗈𝗆𝗉 by reindexing the type line along a connection, 𝐴[(𝑗∧𝑖)/𝑖] (cf. definition 80.21); here it is a substitution instance of the composition operator itself. This is the precise sense in which the generalized source and target replace connections.
One might fix 𝑟:=0 and recover only targets 𝑠. But the computation rule for 𝖼𝗈𝖾 at ∏𝑥:𝐴𝐵 in construction 81.14 coerces the argument backwards, from 𝑠 to 𝑗 and to 𝑟; with reversal 1−𝑖 absent, backwards coercions are not derivable from forward ones. Closure of Π-types under the Kan operation therefore forces both endpoints of a composition to be arbitrary dimension terms [ABC^+21].
Concretely, the one-way candidate would have to start 𝖼𝗈𝖾0→𝑠𝑖.∏𝑥:𝐴𝐵(𝑓)≡𝜆𝑥:𝐴[𝑠/𝑖].𝑓(?). The hole must have type 𝐴[0/𝑖], but the only available argument has type 𝐴[𝑠/𝑖]; a forward-only primitive cannot move it backwards. Allowing the source 𝑠 in 𝖼𝗈𝖾𝑠→0𝑖.𝐴(𝑥) fills exactly this hole and yields construction 81.14.
At each type former, 𝖼𝗈𝖾 follows the dependent fibers and 𝗁𝖼𝗈𝗆 acts on constructor structure. For a dependent pair, coerce the first component first; its intermediate values determine the family in which to coerce the second.
Let Γ,𝑖:𝕀⊢∑𝑥:𝐴𝐵𝗍𝗒𝗉𝖾 and Γ⊢𝑝:(∑𝑥:𝐴𝐵)[𝑟/𝑖]. Write ¯𝑎(𝑗):=𝖼𝗈𝖾𝑟→𝑗𝑖.𝐴(𝗉𝗋1𝑝) for the coercion of the first component to a variable endpoint 𝑗, so that ¯𝑎(𝑟)≡𝗉𝗋1𝑝 by coe-id. The rule is 𝖼𝗈𝖾𝑟→𝑠𝑖.∑𝑥:𝐴𝐵(𝑝)≡(¯𝑎(𝑠),𝖼𝗈𝖾𝑟→𝑠𝑗.𝐵[𝑗/𝑖][¯𝑎(𝑗)/𝑥](𝗉𝗋2𝑝)). The second coercion is along the line 𝑗.𝐵[𝑗/𝑖][¯𝑎(𝑗)/𝑥], which at 𝑗=𝑟 is the type of 𝗉𝗋2𝑝 and at 𝑗=𝑠 is 𝐵[𝑠/𝑖][¯𝑎(𝑠)/𝑥], as required. When Γ⊢𝑟≡𝑠:𝕀 both components collapse by coe-id, and the pair equals 𝑝 by 𝜂 for Σ (definition 27.9).
With Γ,𝑖:𝕀⊢∏𝑥:𝐴𝐵𝗍𝗒𝗉𝖾 and Γ⊢𝑓:(∏𝑥:𝐴𝐵)[𝑟/𝑖]: 𝖼𝗈𝖾𝑟→𝑠𝑖.∏𝑥:𝐴𝐵(𝑓)≡𝜆𝑥.𝖼𝗈𝖾𝑟→𝑠𝑗.𝐵[𝑗/𝑖][𝖼𝗈𝖾𝑠→𝑗𝑖.𝐴(𝑥)/𝑥](𝑓(𝖼𝗈𝖾𝑠→𝑟𝑖.𝐴(𝑥)))(𝑥:𝐴[𝑠/𝑖]). The argument 𝑥 lives in the fiber over the target; it is coerced backwards to 𝑟 to be fed to 𝑓, and the result is coerced forwards along the line of codomains over the backwards-coerced argument. At 𝑗=𝑟 the line is the type of 𝑓(𝖼𝗈𝖾𝑠→𝑟𝑖.𝐴(𝑥)); at 𝑗=𝑠 it is 𝐵[𝑠/𝑖][𝑥/𝑥] by coe-id. When Γ⊢𝑟≡𝑠:𝕀 the term collapses to 𝜆𝑥.𝑓𝑥≡𝑓 by coe-id and 𝜂 (definition 27.2).
Let Γ,𝑖:𝕀,𝑘:𝕀⊢𝐴𝗍𝗒𝗉𝖾 with endpoints Γ,𝑖:𝕀⊢𝑢:𝐴[0/𝑘] and Γ,𝑖:𝕀⊢𝑣:𝐴[1/𝑘]. Heterogeneous composition in the line of path types 𝑖.𝖯𝖺𝗍𝗁𝖯𝑘.𝐴(𝑢,𝑣) is computed under the path binder, with the endpoint constraints adjoined to the tube: put 𝑤𝑘:=[𝜑↦𝑖.𝑡@𝑘,𝑘=0↦𝑖.𝑢,𝑘=1↦𝑖.𝑣]. Then 𝖼𝗈𝗆𝑟→𝑠𝑖.𝖯𝖺𝗍𝗁𝖯𝑘.𝐴(𝑢,𝑣)[𝜑↦𝑖.𝑡](𝑝)≡⟨𝑘⟩𝖼𝗈𝗆𝑟→𝑠𝑖.𝐴𝑤𝑘(𝑝@𝑘). The extra tube entries are compatible with 𝜑↦𝑖.𝑡@𝑘 because the path type of 𝑡 forces 𝑡@0≡𝑢 and 𝑡@1≡𝑣. Coercion in path types is the instance 𝜑:=(0=1). Definitional function extensionality survives from chapter 80 unchanged (theorem 80.29): it is a property of the 𝜆-calculus of dimension binders, not of the Kan structure.
For 𝐶:=∑𝑥:𝐴𝐵, tube 𝑡:𝐶 over 𝜑,𝑖:𝕀, and cap 𝑝:𝐶, define the first-component filler 𝑎(𝑗):=𝖿𝗂𝗅𝗅𝑟→𝑗𝑖.𝐴[𝜑↦𝑖.𝗉𝗋1(𝑡)](𝗉𝗋1𝑝). It satisfies 𝑎(𝑟)≡𝗉𝗋1𝑝 and, under 𝜑, 𝑎(𝑗)≡𝗉𝗋1(𝑡[𝑗/𝑖]). The canonical rule is 𝗁𝖼𝗈𝗆𝑟→𝑠∑𝑥:𝐴𝐵[𝜑↦𝑖.𝑡](𝑝)≡(𝑎(𝑠),𝖼𝗈𝗆𝑟→𝑠𝑗.𝐵[𝑎(𝑗)/𝑥][𝜑↦𝑗.𝗉𝗋2(𝑡[𝑗/𝑖])](𝗉𝗋2𝑝)). The filler equality converts the tube’s second component to the displayed dependent fiber. At 𝑟=𝑠, both components return the cap; on 𝜑, both return 𝑡[𝑠/𝑖]. Thus this main-line rule, rather than an exercise, establishes the Σ-Kan structure used by equivalence types.
Homogeneous composition at ∏𝑥:𝐴𝐵 is pointwise. The constant families 𝑖.𝟐 and 𝑖.ℕ have identity coercions, while composition acts on constructors: 𝗁𝖼𝗈𝗆𝑟→𝑠∏𝑥:𝐴𝐵[𝜑↦𝑖.𝑡](𝑓)≡𝜆𝑥.𝗁𝖼𝗈𝗆𝑟→𝑠𝐵[𝜑↦𝑖.𝑡𝑥](𝑓𝑥),𝖼𝗈𝖾𝑟→𝑠𝑖.𝟐(𝑏)≡𝑏,𝗁𝖼𝗈𝗆𝑟→𝑠𝟐[𝜑↦𝑖.𝗍𝗍](𝗍𝗍)≡𝗍𝗍,𝗁𝖼𝗈𝗆𝑟→𝑠𝟐[𝜑↦𝑖.𝖿𝖿](𝖿𝖿)≡𝖿𝖿. Likewise at ℕ, 𝗁𝖼𝗈𝗆 commutes with 𝟢 and 𝗌𝗎𝖼. These formulas define the Π, 𝟐, and ℕ cases used in this section. The Σ-𝗁𝖼𝗈𝗆 case is construction 218.17, and the universe case is remark 81.26; theorem 81.29 concerns the complete calculus CA.
★★☆ Verify proposition 81.10: check that the two instantiations are well typed and that each boundary equation of 𝖼𝗈𝗆 specializes to the corresponding equation of coe-id, hcom-cap, hcom-tube. Where is cof-absurd used?
★★★ Using 𝗁𝖼𝗈𝗆0→1 with tube cofibration 𝑘=0∨𝑘=1, construct from 𝑝:𝖯𝖺𝗍𝗁𝐴(𝑎,𝑏) and 𝑞:𝖯𝖺𝗍𝗁𝐴(𝑏,𝑐) a composite 𝑝⋅𝑞:𝖯𝖺𝗍𝗁𝐴(𝑎,𝑐), and from 𝑝 an inverse 𝑝−1:𝖯𝖺𝗍𝗁𝐴(𝑏,𝑎). Check all boundary conditions. (Draw the squares: the cap is 𝑝@𝑘, resp. the degenerate line at 𝑎.)
★★★ Define the path-based eliminator: given Γ,𝑥:𝐴,𝑝:𝖯𝖺𝗍𝗁𝐴(𝑎,𝑥)⊢𝐶𝗍𝗒𝗉𝖾 and Γ⊢𝑐:𝐶[𝑎/𝑥][⟨𝑖⟩𝑎/𝑝], construct a term of 𝐶[𝑏/𝑥][𝑞/𝑝] for any 𝑞:𝖯𝖺𝗍𝗁𝐴(𝑎,𝑏), using 𝖼𝗈𝖾 along a line built from the filler of 𝑞. Show that its computation rule on the reflexivity path holds only up to a path, and locate the 𝗁𝖼𝗈𝗆 responsible. (This is the sense in which 𝖯𝖺𝗍𝗁 is not 𝖨𝖽; cf. remark 81.21.)
In a theory with connections and reversal, the fixed-direction operator 𝖼𝗈𝗆𝗉0→1 of definition 80.21 derives the filler — by composing along the reindexed line 𝐴[(𝑗∧𝑖)/𝑖] with the cap constraint adjoined to the tube — and reversal derives composition 1→0; in a theory with both connections and diagonal cofibrations, 𝖼𝗈𝗆𝗉0→1 and the operations of definition 81.7 are interderivable. The two displayed derivations do not transfer to either smaller signature: one mentions connections and reversal, the other a diagonal cofibration. No general non-definability claim is made.
Proof. For filling, reindex the line by the connection 𝑗∧𝑖 and add the face 𝑗=0↦𝑎 to the tube; at 𝑗=0 the connection makes the line constant at the cap, and at 𝑗=1 it recovers the requested composite. Reindexing by 1−𝑖 exchanges the two endpoints and hence derives composition from 1 to 0. The full interderivation in the joint theory is the rule calculation of [ABC^+21]; its hypotheses are exactly connections plus diagonal cofibrations. The Cartesian derivation displayed here uses the diagonal equation hcom-cap, unavailable over 𝔽; the displayed De Morgan derivation uses connections, absent from definition 81.2. These observations bound these constructions only; failure of a construction is not a separation theorem. ◻
A Kan operation is regular when composition along a degenerate line with a degenerate tube is the identity. Regularity would make 𝖯𝖺𝗍𝗁 satisfy the computation rule of 𝖨𝖽 on the nose, eliminating Swan’s detour; but no known model combines regularity with univalent universes, and the early De Morgan constructions that assumed it were found to fail exactly there [ABC^+21, Ang19]. The diagonal equations coe-id and hcom-cap are the surviving trace of regularity: the identity is recovered when source and target coincide, not when the problem is degenerate.
After extending the displayed Cartesian cofibration grammar with conjunction, both cubical theories recover the rules of definition 30.1 exactly — including the judgmental computation of 𝖩 on 𝗋𝖾𝖿𝗅 — by Swan’s construction: an element of 𝖨𝖽𝐴(𝑎,𝑏) is a path together with a cofibration on which it is degenerate. The construction requires cofibrations closed under ∧ and the extensionality rule cof-ext. Consequently the extended theories are extensions of the intensional base of chapter 26–chapter 30, and every construction of part IV can be interpreted [ABC^+21].
Semantically, the two designs are cofibrantly generated notions of fibration in presheaves over two different cube categories; both cube categories are strict test categories, so both presheaf categories classically model the homotopy theory of spaces, but neither type-theoretic model structure is known to be Quillen equivalent to spaces — for the Cartesian operation as stated the answer is negative, repaired by the equivariant refinement of Awodey, Cavallo, Coquand, Riehl, and Sattler, which the syntax of this chapter also interprets [ABC^+21]. The Bezem–Coquand–Huber model, historically first, lives over a monoidal cube category without diagonals: there interval variables are substructural, and it is the absence of contraction — not of connections — that obstructs eliminators for higher inductive types. The Cartesian theory can thus be read as the closure of BCH under contraction, at the price of re-engineering every Kan operation.
★★☆ In the De Morgan theory, verify that the filler defined from 𝖼𝗈𝗆𝗉0→1 by the connection formula of proposition 81.19 satisfies the three equations of construction 81.11 (with 𝑟,𝑠:=0,1). Which De Morgan algebra equations are used?
★★☆ In the De Morgan theory, derive composition from 1 to 0 by reindexing along the reversal, and state precisely the equation between the two composites of a tube and its reversed tube.
𝖦𝗅𝗎𝖾 types transfer to the Cartesian theory verbatim once their composition structure uses diagonal cofibrations; the Cartesian literature also isolates a minimal universe-path primitive, the V-type, which we present in the fourfold order of convention 27.1.
Fix Γ⊢𝑟:𝕀. The data of a V-type is a partial type and cubical equivalence on 𝑟=0 over a total type (≃ per definition 80.31):
Γ⊢𝑟:𝕀Γ,𝑟=0⊢𝐴𝗍𝗒𝗉𝖾Γ⊢𝐵𝗍𝗒𝗉𝖾Γ,𝑟=0⊢𝑒:𝐴≃𝐵
Γ⊢𝖵𝑟(𝐴,𝐵,𝑒)𝗍𝗒𝗉𝖾
v-form
Γ,𝑟=0⊢𝑎:𝐴Γ⊢𝑏:𝐵Γ,𝑟=0⊢𝗉𝗋1𝑒𝑎≡𝑏:𝐵
Γ⊢𝖵𝗂𝗇𝑟(𝑎,𝑏):𝖵𝑟(𝐴,𝐵,𝑒)
v-intro
Γ⊢𝑣:𝖵𝑟(𝐴,𝐵,𝑒)
Γ⊢𝖵𝗈𝗎𝗍𝑟(𝑣):𝐵
v-elim
subject to the boundary equations Γ,𝑟=0⊢𝖵𝑟(𝐴,𝐵,𝑒)≡𝐴𝗍𝗒𝗉𝖾Γ,𝑟=1⊢𝖵𝑟(𝐴,𝐵,𝑒)≡𝐵𝗍𝗒𝗉𝖾Γ,𝑟=0⊢𝖵𝗂𝗇𝑟(𝑎,𝑏)≡𝑎:𝐴Γ,𝑟=1⊢𝖵𝗂𝗇𝑟(𝑎,𝑏)≡𝑏:𝐵Γ,𝑟=0⊢𝖵𝗈𝗎𝗍𝑟(𝑣)≡𝗉𝗋1𝑒𝑣:𝐵Γ,𝑟=1⊢𝖵𝗈𝗎𝗍𝑟(𝑣)≡𝑣:𝐵 and the computation and uniqueness rules 𝖵𝗈𝗎𝗍𝑟(𝖵𝗂𝗇𝑟(𝑎,𝑏))≡𝑏,𝑣≡𝖵𝗂𝗇𝑟(𝑣,𝖵𝗈𝗎𝗍𝑟(𝑣)), where in the uniqueness rule the first argument is 𝑣 read at 𝑟=0, where 𝖵𝑟(𝐴,𝐵,𝑒)≡𝐴. The universe is closed under 𝖵: a code former with the same rules.
The partiality in v-form is forced by diagonals: 𝑟 may be a variable occurring in 𝐴, 𝐵, 𝑒, so one cannot demand that the “left” data be dimension-independent; and if 𝐴 were required only on 𝑟=0and𝐵 only on 𝑟=1, the equivalence relating them could not be stated. The chosen shape — 𝐴, 𝑒 partial on 𝑟=0, 𝐵 total — is the minimal one making both the equivalence and coercion across the line expressible [Ang19].
The primary presentation in CA is the primitive 𝖵 of definition 81.22. Its boundary behavior can be remembered by a Glue mnemonic: glue (𝐴,𝑒) to the total 𝐵 on 𝑟=0; at 𝑟=1 the extent is empty and the result is 𝐵. One may also draw a redundant identity branch (𝐵,id𝐵) on 𝑟=1, but this chapter asserts neither judgmental equality nor an internal equivalence between those two Glue expressions and primitive 𝖵. General Cartesian Glue/formal-composition packages do more work, including universe composition, and belong to the exact imported signatures in convention 218.2[Ang19, ABC^+21].
The complete 𝖼𝗈𝖾/𝗁𝖼𝗈𝗆 clauses for Σ, 𝖵, the universe hierarchy, base types, 𝟎, and the circle are imported from Angiuli’s Rules 4.78–4.104 and Appendix A [Ang19]. The complete Cartesian Glue/universe package used in the proof-theoretic presentation is imported from ABCFHL §§2.12–2.15 [ABC^+21]. The local Σ-equation construction 218.17 and the V-coercion equation below are transcriptions or consequences of those packages; they are not advertised as an exhaustive replacement for them. The V-coercion clause used by the theorem is fixed before use: 𝖼𝗈𝖾0→1𝑖.𝖵𝑖(𝐴,𝐵,𝑒)(𝑎)≡𝖼𝗈𝖾0→1𝑗.𝐵((𝗉𝗋1𝑒)𝑎).(𝑉−𝖼𝗈𝖾)
For Kan types 𝐴,𝐵:U and 𝑒:𝐴≃𝐵, there are terms 𝗎𝖺(𝑒):=⟨𝑖⟩𝖵𝑖(𝐴,𝐵,𝑒):𝖯𝖺𝗍𝗁U(𝐴,𝐵) and 𝗎𝖺𝛽(𝑒,𝑎):𝖯𝖺𝗍𝗁𝐵(𝖼𝗈𝖾0→1𝑖.𝖵𝑖(𝐴,𝐵,𝑒)(𝑎),(𝗉𝗋1𝑒)(𝑎)). These are the universe-path and transport clauses used from Angiuli’s Theorem 4.105. No claim that a separately defined 𝗉𝖺𝗍𝗁𝖳𝗈𝖤𝗊𝗎𝗂𝗏 is an equivalence is included here.
Proof of Theorem 218.27 — Imported: computational universe paths in C_ A
Proof. The imported V-coercion rule first builds a V-element with v-intro. At 𝑖=1 this element reduces to its 𝐵-component, and its correcting homogeneous composition has the true tube 1=1↦(𝗉𝗋1𝑒)𝑎. Rule hcom-tube therefore gives the right-hand side of (V-𝖼𝗈𝖾); the remaining faces ensure uniformity when the index is a variable.
Define 𝗎𝖺𝛽(𝑒,𝑎):=⟨𝑥⟩𝖼𝗈𝖾𝑥→1𝑗.𝐵((𝗉𝗋1𝑒)𝑎). At 𝑥=0, equation (V-𝖼𝗈𝖾) gives the required transported endpoint; at 𝑥=1, coe-id gives (𝗉𝗋1𝑒)𝑎. Thus 𝗎𝖺𝛽(𝑒,𝑎) has type 𝖯𝖺𝗍𝗁𝐵(𝖼𝗈𝖾0→1𝑖.𝖵𝑖(𝐴,𝐵,𝑒)(𝑎),(𝗉𝗋1𝑒)𝑎). The boundary equations of v-form make 𝗎𝖺(𝑒) a universe path, and the displayed calculation constructs 𝗎𝖺𝛽. The typing and Kan-coherence proof is imported from Theorem 4.105 of [Ang19]; the calculation above isolates its only nonformal endpoint, the unfolding of V-coercion. ◻
For the universe itself to be Kan, 𝗁𝖼𝗈𝗆𝑟→𝑠U must produce a type. The complete rule belongs to the packages of convention 218.26. Its load-bearing diagnostic clause converts the tube of type codes into equivalences by backwards coercion and glues them onto the cap. On 𝜑 take (𝑇[𝑠/𝑖],𝖼𝗈𝖾𝑠→𝑟𝑖.𝑇); on 𝑟=𝑠 take (𝐵,id𝐵). Writing U for this compatible system, the clause is 𝗁𝖼𝗈𝗆𝑟→𝑠U[𝜑↦𝑖.𝑇](𝐵)≡𝖦𝗅𝗎𝖾U(𝐵). Here equip 𝖼𝗈𝖾𝑠→𝑟𝑖.𝑇 with inverse 𝖼𝗈𝖾𝑟→𝑠𝑖.𝑇 and the two filler homotopies witnessing the composites; equip id𝐵 with the contraction of each singleton fiber. The second component of the system — gluing 𝐵 along the diagonal cofibration 𝑟=𝑠 — is what makes the equation hcom-cap hold at the universe; it is precisely here that the Cartesian cofibration 𝑟=𝑠 is load-bearing, and this step was the discovery that unblocked the Cartesian model [Ang19, ABC^+21].
The diagonal component is forced. Without it the naive clause 𝗁𝖼𝗈𝗆𝑟→𝑠U[𝜑↦𝑖.𝑇](𝐵)?=𝖦𝗅𝗎𝖾[𝜑↦(𝑇[𝑠/𝑖],𝖼𝗈𝖾𝑠→𝑟𝑖.𝑇)]𝐵 does not satisfy hcom-cap: after imposing 𝑟=𝑠, its right-hand side remains a Glue type rather than reducing to 𝐵. Adding 𝑟=𝑠↦(𝐵,id𝐵) makes that extent total on the diagonal, so 𝖦𝗅𝗎𝖾[1↦(𝐵,id𝐵)]𝐵≡𝐵 by Glue-form-1. This is exactly hcom-cap.
Let 𝗇𝗈𝗍:𝟐≃𝟐. Equation (V-𝖼𝗈𝖾) gives the annotated closed calculation 𝖼𝗈𝖾0→1𝑖.𝖵𝑖(𝟐,𝟐,𝗇𝗈𝗍)(𝗍𝗍)≡𝖼𝗈𝖾0→1𝑗.𝟐(𝗇𝗈𝗍(𝗍𝗍))by(V-𝖼𝗈𝖾),≡𝗇𝗈𝗍(𝗍𝗍)bytheconstant-𝟐coercionrule,≡𝖿𝖿by𝟐-𝛽. Unlike transport along an opaque univalence axiom, this closed term reduces to a canonical constructor.
★☆☆ Using the mnemonic of remark 81.24, match the two endpoint equations of primitive 𝖵 with the corresponding Glue faces. Explain why this boundary comparison does not establish a judgmental equality of type formers, and name the imported Kan package needed to make the comparison internal.
★★☆ Check the coherence of definition 81.22: on 𝑟=0 the uniqueness rule asserts 𝑣≡𝖵𝗂𝗇0(𝑣,𝗉𝗋1𝑒𝑣)≡𝑣, and on 𝑟=1 likewise. Show also that the 𝛽- and boundary rules for 𝖵𝗈𝗎𝗍 agree on the overlaps 𝑟=0 and 𝑟=1 with the equations for 𝖵𝗂𝗇 — i.e. no critical pair of judgmental equalities is ambiguous.
★☆☆ Repeat example 218.29 with 𝖿𝖿, tracking the V-coercion, constant-𝟐 coercion, and Boolean computation rules. Then explain exactly which first step is unavailable when univalence is postulated as an opaque axiom (definition 65.6).
Evaluation is not stable under dimension substitution: 𝗅𝗈𝗈𝗉𝑖 is a value, but its face 𝗅𝗈𝗈𝗉𝑖[0/𝑖]⟼𝖻𝖺𝗌𝖾. A computational cubical type system therefore relates a program to all of its substituted evaluations. Its inference rules are soundness theorems for that relation.
The programs are the raw terms of this chapter (two sorts: dimension terms and ordinary terms), with free dimension variables permitted and free term variables excluded, under a deterministic weak-head operational semantics: judgments 𝑀𝗏𝖺𝗅 and 𝑀⟼𝑀′, with 𝑀⇓𝑉 when 𝑀⟼∗𝑉𝗏𝖺𝗅. Representative steps: (𝜆𝑥.𝑏)𝑎⟼𝑏[𝑎/𝑥],𝗅𝗈𝗈𝗉𝑖[0/𝑖]=𝗅𝗈𝗈𝗉0⟼𝖻𝖺𝗌𝖾,𝖼𝗈𝖾𝑟→𝑠𝑖.𝐴(𝑎)⟼…bytheheadof𝐴. Here the coercion step first evaluates 𝐴under the dimension binder 𝑖 and then dispatches on its head constructor. Evaluation preserves free dimension variables but is not stable under dimension substitution: 𝗅𝗈𝗈𝗉𝑖 is a value whose face 𝗅𝗈𝗈𝗉𝑖[0/𝑖] is not.
Let Ψ range over dimension contexts and 𝜓:Ψ′→Ψ over total dimension substitutions. A cubical type system is a relation 𝜏(Ψ;𝐴0,𝐵0,𝜑), between values 𝐴0,𝐵0 with dimensions in Ψ and binary relations 𝜑 on such values, that is symmetric, transitive, and assigns each type a unique relation, and whose value relations are PERs. The need for two substitutions is visible in the evaluation square 𝐴𝜓1𝜓2⇓𝐴12,𝐴𝜓1⇓𝐴1,𝐴1𝜓2⇓𝐴′12. The two routes need not produce the same syntax, so 𝐴12 and 𝐴′12 must belong to the same PER. Write ≐ for these semantic behavior judgments; it is distinct from the formal equality ≡. Relative to 𝜏, the judgments are defined:
𝐴≐𝐵𝗍𝗒𝗉𝖾[Ψ] holds when for every 𝜓1:Ψ1→Ψ and 𝜓2:Ψ2→Ψ1 there are evaluations 𝐴𝜓1⇓𝐴1,𝐴𝜓1𝜓2⇓𝐴12,𝐴1𝜓2⇓𝐴′12,𝐵𝜓1⇓𝐵1,𝐵𝜓1𝜓2⇓𝐵12,𝐵1𝜓2⇓𝐵′12. One PER 𝜑𝜓1𝜓2 selected by 𝜏 relates all five required pairs (𝐴′12,𝐴12),(𝐴12,𝐴′12),(𝐵′12,𝐵12),(𝐵12,𝐵′12),(𝐴12,𝐵12). Thus evaluating after two substitutions agrees with substituting into the first value and evaluating again, on each side and across the claimed type equality.
𝑀≐𝑁∈𝐴[Ψ], presupposing 𝐴𝗍𝗒𝗉𝖾[Ψ], holds when every pair of instances 𝑀𝜓1𝜓2, 𝑁𝜓1𝜓2 evaluates into the corresponding 𝜑𝜓1𝜓2, again coherently across further substitution.
𝐴 is Kan when the family 𝜑𝜓 is closed under 𝖼𝗈𝖾 and 𝗁𝖼𝗈𝗆: the operations of definition 81.7 applied to related data yield related results satisfying the boundary equations up to ≐.
Open judgments are defined by functionality: 𝑎≐𝑎′∈𝐴[Ψ∣Γ] means that equal closing instantiations of Γ (themselves defined by induction on Γ) yield ≐-equal elements at every dimension substitution instance. For type families, equal closing instantiations instead yield ≐-equal types at every dimension substitution instance.
The double-substitution quantification in (1)–(2) is what replaces the head-expansion discipline of theorem 49.18’s proof: because evaluation and restriction do not commute (definition 81.27), coherence must be imposed on all faces of all instances, not checked once. The five-pair condition is Definition 4.5(1) of [Ang19]; clause (2) above is its element analogue, Definition 4.5(2), and open functionality is Definition 4.5(3–4).
Angiuli’s computational Cartesian calculus CA has a Kan cubical type system constructed as the least fixed point of a monotone operator on candidate type systems. It contains universe hierarchies of pretypes and Kan types closed under Π, Σ, path, 𝖵, 𝟐, ℕ, 𝟎, and the higher-inductive circle, and validates the computational rules stated for that calculus. In particular CA is consistent.
Proof. The construction is imported from Angiuli’s Definitions 4.3–4.10 (candidate judgments and their fixed points), Definition 4.29 (Kan closure), the type-former-by-type-former Rules 4.35–4.104, and Theorem 4.58 (consistency) [Ang19]. Those results construct the monotone operators, prove closure and coherence, and build the universe hierarchy. They discharge the theorem’s imported obligations.
Two representative verifications explain how the imported argument meets the equations displayed in this chapter. First, Boolean coercion evaluates immediately: 𝖼𝗈𝖾𝑟→𝑠𝑖.𝟐(𝑀)⇓𝑀. If 𝑀 and 𝑀′ are related by the Boolean PER, their reducts are related by the same PER; when 𝑟=𝑠, the same reduction proves coe-id. On the diagonal 𝑟=𝑠, the V-type 𝗁𝖼𝗈𝗆 clause reduces its Glue system to the cap PER, so related caps remain related after composition. These checks illustrate coherent expansion; they do not stand in for the imported fixed-point and universe construction. Consistency is the local corollary of the imported empty-type PER: a closed inhabitant of 𝟎 would contradict Theorem 4.58. ◻
𝑀≐𝑁∈𝐴[Ψ] asserts that every dimension instance of 𝑀 and 𝑁 evaluates to values related by 𝐴’s PER. A formal typing rule is sound when it preserves this relation. Pretypes omit the Kan-closure clause; Kan types include it, so strict pretypes and univalent Kan types can coexist.
This dimension-indexed PER construction refines the meaning-explanation tradition of Martin-Löf, Allen, and Nuprl; its fixed point and universe hierarchy are developed in [Ang19].
★★☆ Exhibit a program 𝑀 and substitution 𝜓 with 𝑀𝗏𝖺𝗅 but not 𝑀𝜓𝗏𝖺𝗅, and a well-typed 𝑀 where evaluating-then-substituting and substituting-then-evaluating produce syntactically distinct values. Then show, directly from definition 81.28, that in any cubical type system the two results are nevertheless ≐-equal elements.
★☆☆ Show that in the empty dimension context the clauses of definition 81.28 collapse to PER semantics of the style used for theorem 49.18: the only 𝜓 are identities, coherence is vacuous, and 𝑀≐𝑁∈𝟐[⋅] holds iff 𝑀 and 𝑁 evaluate to a common canonical boolean.
If 𝑀∈𝟐[⋅] in Angiuli’s computational Cartesian calculus CA, with the context empty of dimension and term variables, then exactly one of 𝑀≐𝗍𝗍∈𝟐[⋅]or𝑀≐𝖿𝖿∈𝟐[⋅] holds; equivalently, deterministic evaluation of 𝑀 ends at exactly one Boolean constructor.
Proof of Theorem 81.31 — Canonicity for cubical type theory
Proof. Membership in the Boolean PER means that 𝑀 evaluates to 𝗍𝗍 or 𝖿𝖿. Determinism gives uniqueness, and consistency separates the two constructors: identifying them would let Boolean elimination inhabit 𝟎[Ang19]. ◻
The operational proof reads a closed Boolean from its PER, whose coherence relates evaluation to every face. The normalization proof instead glues computability data to syntax and obtains a recursive normal form; comparing normal forms decides judgmental equality [Ang19, SA21]. Circle canonicity is the corresponding closed-element result [Ang19]: in the empty interval context no valid all-false tube shape can contribute an 𝗁𝖼𝗈𝗆 generator, so every closed computational circle element satisfies 𝑀≐𝖻𝖺𝗌𝖾∈𝕊1[⋅].
Let CSA be the universe-free Cartesian cubical calculus of [SA21]: its type formers are Π, Σ, path, 𝖦𝗅𝗎𝖾, and the higher-inductive circle. Types and terms of CSA in atomic contexts admit a recursive normalization function that is sound and complete for judgmental equality. Here atomic contexts are generated from the empty context by dimension extension Γ.𝐼 and typed variable extension Γ.𝐴; their substitutions are generated by projections, the newest variable, older variables weakened through an extension, and dimension terms. They carry no primitive cofibration-restriction entries. The normal-form presentation is tight: every term has exactly one normal form and normalization is an isomorphism onto normal-form syntax.
Proof of Theorem 81.33 — Normalization; Sterling–Angiuli
Proof. The gluing construction defines 𝗇𝖿(𝑀) recursively and proves 𝗇𝖿(𝑀)≡𝑀. Completeness gives 𝑀≡𝑁 exactly when the normal-form syntax 𝗇𝖿(𝑀)=𝗇𝖿(𝑁), while reflection at stabilized neutrals handles cofibration-restricted contexts. These are Theorem 42, Corollaries 45–46, and Remark 48 of [SA21] for the signature in the statement. ◻
Judgmental equality of well-formed types and terms of CSA is decidable, and its type constructors are injective up to judgmental equality in the admissible sense.
The obstruction that delayed theorem 81.33 for years is that cubical neutrality is not absolute. In the base theory a variable-headed term stays neutral under all substitutions of variables for variables (definition 49.14 is stable along renamings); but the cubical neutral 𝑝@𝑟, for a path variable 𝑝, ceases to be neutral on the cofibration (𝑟=0)∨(𝑟=1), where it is judgmentally an endpoint — and in the Cartesian theory even a diagonal substitution [𝑗/𝑖] can awaken a redex, e.g. in 𝖼𝗈𝖾𝑖→𝑗. The proof therefore indexes each neutral by a cofibration recording its locus of instability, and the reflection map of the normalization model takes as input a neutral together with computability data on that locus — a pairing with no counterpart in the NbE of definition 49.23. Normal and neutral forms are otherwise as in chapter 49, extended by dimension binders, tubes, and systems [SA21].
The normalization theorem covers CSA, not every feature of Cubical Agda, cubicaltt, RedPRL, redtt, cooltt, or yacctt. Each implementation must separately check that its universes, higher inductives, and system-normalization rules preserve conversion. Brunerie’s number, extracted from 𝜋4(𝕊3)≅ℤ/2ℤ, is a practical stress test: canonicity predicts a closed numeral while normalization must process large cubical systems.
★★★ Working only in CSA, use theorem 81.33 and decidability of cofibration entailment to outline a bidirectional type checker extending definition 48.16: what new judgment forms must be checked, and where is cof-case dispatched? Identify the two places where the algorithm invokes the normalization function.
★★☆ Compute the locus of instability, in the sense of remark 81.35, of the terms 𝑝@𝑖, 𝑝@0, and 𝗁𝖼𝗈𝗆𝑟→𝑠𝟐[𝜑↦𝑖.𝑡](𝑥) for a boolean variable 𝑥: on which cofibration does each cease to be variable-blocked, and to what does it then reduce?
★★☆ Instantiate the V-type coercion rule at Boolean negation. Calculate the two endpoint coercions and the composite line, then compare the result with the corresponding Glue transport in the De Morgan system.
★★★Practical project.cartesian-cofibration-checker Implement in Agda or Kappa finite Cartesian cofibration entailment and system-overlap checking. Preserve truth under all endpoint assignments. Accept diagonal, universal-quantification, and disjunction examples; reject an invalid shape for homogeneous composition and a disagreeing overlap. Mutation test: treat a diagonal as an endpoint equation and ensure the truth-table suite detects the changed entailment.
Cartesian cubical type theory has two intertwined sources. The computational line — judgments as behaviors of untyped programs — runs from Martin-Löf’s meaning explanations through Allen’s semantics of Nuprl to the Cartesian cubical programming language of Angiuli, Hou (Favonia), and Harper, consolidated in Angiuli’s dissertation [Ang19], from which section 81.5 is abstracted and where V-types, the valid-shape restriction on compositions, and the strengthened higher-inductive canonicity appear. The proof-theoretic line begins with Coquand’s 2014 note on a Kan operation for Cartesian cubical sets and the Brunerie–Licata formalism, and culminates in the syntax and mechanized cubical-sets model of Angiuli, Brunerie, Coquand, Hou (Favonia), Harper, and Licata [ABC^+21], our source for definition 81.4, definition 81.7, the 𝖦𝗅𝗎𝖾-based universe, and the comparison of Kan operations; the diagonal cofibration as the enabling ingredient is due to Angiuli–Hou (Favonia)–Harper. The De Morgan counterpoint is Cohen–Coquand–Huber–Mörtberg [CCHM18], with canonicity due to Huber; our comparison follows [ABC^+21] and the textbook treatment of Angiuli and Gratzer [AG26], whose “programming exercises” shaped section 81.2. Normalization for cubical type theory is Sterling–Angiuli [SA21], built on synthetic Tait computability [Ste21] and the gluing reformulation of computability [Coq19]; Gratzer’s dissertation extends the method to modal settings [Gra23], and Abel’s habilitation [Abe13] develops the non-cubical NbE refined here. The universe-path and transport computation exhibited here is the computational ingredient associated with the univalence axiom of [Uni13]; full book univalence (cf. chapter 65) is not claimed.