exercise 80.1.
The De Morgan equations give 1 −(𝑟 ∧𝑠) =(1 −𝑟) ∨(1 −𝑠), 1 −(𝑟 ∨𝑠) =(1 −𝑟) ∧(1 −𝑠), 1 −0 =1, 1 −1 =0, and 1 −(1 −𝑟) =𝑟. Thus reversal is an involutive order-reversing isomorphism. A homomorphism out of the free algebra is determined by the images of its names; reversal sends each name 𝑖 to 1 −𝑖, so these equations determine it uniquely on every generated term.
exercise 80.2.
Minimum and maximum form a bounded distributive lattice on [0,1], and 1 −𝑥 is an involution satisfying the two De Morgan laws. Freeness extends any assignment of names uniquely by interpreting the operations. Taking a name at 1/2 shows 𝑖 ∨(1 −𝑖) =1/2 ≠1, and 𝑖 ∧(1 −𝑖) =1/2 ≠0, so the algebra is not Boolean. The distinct free De Morgan terms 𝑟 =𝑖 ∧(1 −𝑖) and 𝑠 =(𝑖 ∧(1 −𝑖)) ∧(𝑗 ∨(1 −𝑗)) have the same value under every [0,1] assignment: min(𝑥,1 −𝑥) ≤max(𝑦,1 −𝑦). Thus passage to the Kleene algebra imposes a genuine quotient.
exercise 80.3.
Write every term as a finite join of finite meets of literals by distributivity and De Morgan normalization. In the free bounded distributive lattice, a meet of literals lies below a finite join only if it lies below one summand: assign its literals true and choose incompatible literals false to refute any contrary inequality. Remove absorbed monomials and sort literals and monomials; the result is a unique antichain normal form. Equality is decided by computing these finite normal forms and comparing their sorted antichains.
exercise 80.4.
From 𝑝 :𝖯𝖺𝗍𝗁𝐴(𝑎,𝑏), Path-E gives 𝑝 𝑖 :𝐴 in Γ,𝑖 :𝕀. Application gives 𝑓(𝑝 𝑖) :𝐵, and Path-I abstracts 𝑖; the endpoint computations use Path-𝛽 followed by function application, yielding 𝑓𝑎 and 𝑓𝑏. Expanding definitions, 𝖺𝗉𝑔(𝖺𝗉𝑓𝑝) =𝜆𝑖.𝑔(𝑓(𝑝𝑖)) is literally 𝖺𝗉𝑔∘𝑓𝑝, and 𝖺𝗉𝜆𝑥.𝑥𝑝 =𝜆𝑖.𝑝𝑖 ≡𝑝 by path eta. Identity-type functoriality needs path induction and is only propositional.
exercise 80.5.
For 𝑞(𝑖,𝑗) =𝑝(𝑖 ∨𝑗), the faces are 𝑞(0,𝑗) =𝑝(𝑗), 𝑞(1,𝑗) =𝑏, 𝑞(𝑖,0) =𝑝(𝑖), and 𝑞(𝑖,1) =𝑏. Since 𝑖 ∨(1 −𝑖) evaluates to 1 at both endpoints, abstraction gives a loop at 𝑏. It is not judgmentally 𝗋𝖾𝖿𝗅𝑏: the free De Morgan normal form 𝑖 ∨(1 −𝑖) is not the constant 1, so for a neutral path 𝑝 the body does not reduce to the constant body 𝑏.
exercise 80.6.
For 𝑝 :𝖯𝖺𝗍𝗁𝐴(𝑎,𝑏), the type line is 𝑖 ↦𝐵(𝑝𝑖). The term line 𝑖 ↦𝑓(𝑝𝑖) has endpoints 𝑓𝑎 and 𝑓𝑏 by the two path beta rules, so it inhabits 𝖯𝖺𝗍𝗁𝖯((𝑖,.)𝐵(𝑝𝑖))(𝑓𝑎)(𝑓𝑏). If the line is constant 𝐵, PathP formation, abstraction, application, beta, and eta reduce respectively to the ordinary Path rules because every endpoint conversion is reflexive.
exercise 80.7.
Distribute conjunction over disjunction to obtain a join of meets of atoms (𝑖 =0) and (𝑖 =1). Delete any meet containing both atoms for one name, since it equals 0𝔽, and delete absorbed monomials. The remaining finite antichain of consistent partial endpoint assignments is canonical: an assignment satisfies the formula exactly when it extends one of these monomials. Enumerating the finitely many endpoint assignments, or comparing the canonical antichains, decides equality of face formulas.
exercise 80.8.
On a DNF, ∀𝑖 retains precisely the information common to the 𝑖 =0 and 𝑖 =1 restrictions; equivalently it is the greatest formula not mentioning 𝑖 below the original. For the displayed formula, the two restrictions are respectively 1 ∨(𝑗 =1) =1 and (𝑗 =0) ∨(𝑗 =1). Their meet is therefore (𝑗 =0) ∨(𝑗 =1). It satisfies the adjunction, and any 𝑖-free lower bound must lie below both restrictions, hence below this meet.
exercise 80.9.
If 0𝔽 =1𝔽, the empty face is true. The system with no branches then has any prescribed type by the inconsistent-context rule, and two such terms agree because restriction to the true empty face collapses all judgments. This does not threaten consistency: there is no derivation of 0𝔽 =1𝔽 in the empty dimension context, just as empty elimination is harmless unless a term of 𝟎 is supplied.
exercise 80.10.
Define fill by composition with the extra branch (𝑖 =0) ↦𝑎. At 𝑖 =0, this face becomes 1𝔽, so Sys-sel selects 𝑎. On the original extent 𝜑, selection chooses the tube 𝑢. At 𝑖 =1, the definition is exactly the original composition term, since the cap branch is the one required by Comp. These are the three asserted equalities.
exercise 80.11.
First fill the first projection to obtain a line 𝑎(𝑖) :𝐴. On 𝜑, the third fill equality gives 𝑎(𝑖) =𝗉𝗋1(𝑢(𝑖)). Therefore 𝗉𝗋2(𝑢(𝑖)), originally in 𝐵(𝗉𝗋1(𝑢(𝑖))), converts to an element of 𝐵(𝑎(𝑖)). It is consequently a partial element of the line of types 𝐵[𝑎(𝑖)/𝑥] with extent 𝜑, and its cap at the source agrees with the second projection of the original cap. The second composition is well typed.
exercise 80.12.
At 𝑖 =0, the first system branch is true and the composite selects 𝑝(𝑗); at its target this is 𝑝(1) =𝑏 with the orientation chosen for the inverse. At 𝑖 =1, the constant branch is true and selects 𝑎. The overlap at both branches is compatible by the endpoints of 𝑝. Hence abstraction is a path from 𝑏 to 𝑎. Unlike the De Morgan definition 𝑖 ↦𝑝(1 −𝑖), this construction uses only endpoint equations and composition, so it remains available in the Cartesian theory.
exercise 80.13.
Use the connection square (𝑖,𝑗) ↦𝑝(𝑖 ∨𝑗). Its bottom and left faces are 𝑝, while its top and right faces are constant at 𝑏. Compose the open square in the remaining direction; the resulting line in the path type has one endpoint the concatenation 𝑝 ⋅𝗋𝖾𝖿𝗅𝑏 and the other 𝑝. For associativity, paste the three connection squares for the constituent paths into the boundary of a cube and compose its open face. The two opposite lids are the two parenthesizations, producing the associativity path.
exercise 80.14.
Induct externally on the numeral. The natural-number transport clause sends 𝟢 to 𝟢 judgmentally. Its successor clause gives 𝗍𝗋𝖺𝗇𝗌𝗉𝑖ℕ(𝗌𝗎𝖼¯𝑛) ≡𝗌𝗎𝖼(𝗍𝗋𝖺𝗇𝗌𝗉𝑖ℕ¯𝑛), which reduces by the induction hypothesis to 𝗌𝗎𝖼¯𝑛. The argument applies only to constructor-headed numerals; it does not add a schematic regularity rule for neutral terms.
exercise 80.15.
Under restriction by 𝜑, admissible context restriction makes the face true. Glue-form-1 therefore reduces the Glue type to the partial type 𝑇. The introduction rule similarly reduces 𝗀𝗅𝗎𝖾[𝜑 ↦𝑡]𝑎 to 𝑡 by system selection. Applying unglue-𝛽 and the same restriction yields 𝗎𝗇𝗀𝗅𝗎𝖾(𝑡) =𝑓(𝑡) on the face. These are the two claimed face computations.
exercise 80.16.
For 𝑦 :𝐵, the fiber of id𝐵 is Σ𝑥:𝐵(𝑥 =𝑦), centered at (𝑦,𝗋𝖾𝖿𝗅𝑦) and contracted by singleton contraction: path induction on 𝑝 :𝑥 =𝑦 reduces every (𝑥,𝑝) to the center. This supplies 𝗂𝖽≃𝐵. In the Glue line 𝐸, the face 𝑖 =0 selects the glued type 𝐴 by Glue-form-1; at 𝑖 =1 the system is empty/identity and Glue reduces to 𝐵. Hence 𝐸[0/𝑖] ≡𝐴 and 𝐸[1/𝑖] ≡𝐵.
exercise 80.17.
Fix 𝑏 :𝐵. Apply the extension operation to the empty partial element of 𝖿𝗂𝖻𝑓(𝑏) to obtain a center 𝑐𝑏. For any 𝑤 :𝖿𝗂𝖻𝑓(𝑏), apply extension to the partial element that equals 𝑐𝑏 on one endpoint and 𝑤 on the other; the resulting line is a path 𝑐𝑏 =𝑤. The endpoint rules of extension provide the two boundaries. Thus every fiber has a center and a contraction, so 𝑓 is an equivalence.
exercise 80.18.
At 𝑖 =0, the face (𝑖 =0) is true, so restriction of the Glue system selects the 𝐴 branch; Glue-form-1 gives 𝗎𝖺(𝑓)(0) ≡𝐴. At 𝑖 =1, the (𝑖 =1) branch selects 𝐵 with the identity equivalence, and the other face is false; system selection followed by Glue-form-1 gives 𝗎𝖺(𝑓)(1) ≡𝐵. Compatibility on the impossible overlap is automatic.
exercise 80.19.
For 𝜑 =(𝑖 =0) ∨(𝑖 =1), no 𝑖-free face lies below it, so 𝛿 =∀𝑖.𝜑 =0𝔽. The transport clause therefore uses the nonconstant Glue-composition branch. At the target 𝑖 =1 the face is true and extension for the identity equivalence contracts the singleton fiber, producing a term connected to 𝑓(𝑎). The Glue beta rule and that contraction yield a path 𝗍𝗋𝖺𝗇𝗌𝗉𝑖(𝗎𝖺(𝑓)𝑖)𝑎 =𝑓(𝑎) in 𝐵, which is the propositional computation rule for univalence.
exercise 80.20.
Let 𝑇 :Σ𝑋𝑃(𝑋) →Σ𝑋𝑄(𝑋) be the total map induced by 𝑡 over the identity base. If both total spaces are contractible, 𝑇 is an equivalence. For fixed 𝑋 and 𝑞 :𝑄(𝑋), its fiber is equivalent, by the fiberwise-total-space lemma, to the fiber of 𝑡𝑋 at 𝑞: a path in the base component of 𝑇 must be 𝗋𝖾𝖿𝗅𝑋, and transport removes it. Fibers of the equivalence 𝑇 are contractible, so every fiber of 𝑡𝑋 is contractible and each 𝑡𝑋 is an equivalence.
exercise 217.21.
For dimensions 𝑖,𝑗, an open square with missing 𝑖 =1 face has tube 𝜑 =(𝑖 =0) ∨(𝑗 =0) ∨(𝑗 =1) and compatible faces 𝑢0(𝑗),𝑣0(𝑖),𝑣1(𝑖), with the two corner equalities 𝑢0(0) =𝑣0(0) and 𝑢0(1) =𝑣1(0). Composition in 𝑖 with cap 𝑢0 produces the lid 𝑢1(𝑗). The tube computation rule restricts it to 𝑣0(1) at 𝑗 =0 and 𝑣1(1) at 𝑗 =1; the cap rule recovers 𝑢0 when the endpoints coincide. Glue the Boolean swap on 𝑖 =0 to 𝟐 on the total face. Glue transport computes by the forward equivalence, so the two endpoint calculations are 𝗍𝗍 ↦𝖿𝖿 and 𝖿𝖿 ↦𝗍𝗍.