Lectures onType Theory
ch:cubical-demorgan: ch:cubical-demorgan
appendix sectionsolutions

ch:cubical-demorgan: ch:cubical-demorgan

exercise 80.1.

The De Morgan equations give 1(rs)=(1r)(1s), 1(rs)=(1r)(1s), 10=1, 11=0, and 1(1r)=r. 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 i to 1i, 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 1x 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 i(1i)=1/21, and i(1i)=1/20, so the algebra is not Boolean. The distinct free De Morgan terms r=i(1i) and s=(i(1i))(j(1j)) have the same value under every [0,1] assignment: min(x,1x)max(y,1y). 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 p:PathA(a,b), Path-E gives pi:A in Γ,i:I. Application gives f(pi):B, and Path-I abstracts i; the endpoint computations use Path-β followed by function application, yielding fa and fb. Expanding definitions, apg(apfp)=λi.g(f(pi)) is literally apgfp, and apλx.xp=λi.pip by path eta. Identity-type functoriality needs path induction and is only propositional.

exercise 80.5.

For q(i,j)=p(ij), the faces are q(0,j)=p(j), q(1,j)=b, q(i,0)=p(i), and q(i,1)=b. Since i(1i) evaluates to 1 at both endpoints, abstraction gives a loop at b. It is not judgmentally reflb: the free De Morgan normal form i(1i) is not the constant 1, so for a neutral path p the body does not reduce to the constant body b.

exercise 80.6.

For p:PathA(a,b), the type line is iB(pi). The term line if(pi) has endpoints fa and fb by the two path beta rules, so it inhabits PathP((i,.)B(pi))(fa)(fb). If the line is constant B, 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 (i=0) and (i=1). Delete any meet containing both atoms for one name, since it equals 0F, 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, i retains precisely the information common to the i=0 and i=1 restrictions; equivalently it is the greatest formula not mentioning i below the original. For the displayed formula, the two restrictions are respectively 1(j=1)=1 and (j=0)(j=1). Their meet is therefore (j=0)(j=1). It satisfies the adjunction, and any i-free lower bound must lie below both restrictions, hence below this meet.

exercise 80.9.

If 0F=1F, 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 0F=1F in the empty dimension context, just as empty elimination is harmless unless a term of 0 is supplied.

exercise 80.10.

Define fill by composition with the extra branch (i=0)a. At i=0, this face becomes 1F, so Sys-sel selects a. On the original extent φ, selection chooses the tube u. At i=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 a(i):A. On φ, the third fill equality gives a(i)=pr1(u(i)). Therefore pr2(u(i)), originally in B(pr1(u(i))), converts to an element of B(a(i)). It is consequently a partial element of the line of types B[a(i)/x] 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 i=0, the first system branch is true and the composite selects p(j); at its target this is p(1)=b with the orientation chosen for the inverse. At i=1, the constant branch is true and selects a. The overlap at both branches is compatible by the endpoints of p. Hence abstraction is a path from b to a. Unlike the De Morgan definition ip(1i), this construction uses only endpoint equations and composition, so it remains available in the Cartesian theory.

exercise 80.13.

Use the connection square (i,j)p(ij). Its bottom and left faces are p, while its top and right faces are constant at b. Compose the open square in the remaining direction; the resulting line in the path type has one endpoint the concatenation preflb and the other p. 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 0 to 0 judgmentally. Its successor clause gives transpiN(sucn¯)suc(transpiNn¯), which reduces by the induction hypothesis to sucn¯. 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 T. The introduction rule similarly reduces glue[φt]a to t by system selection. Applying unglue-β and the same restriction yields unglue(t)=f(t) on the face. These are the two claimed face computations.

exercise 80.16.

For y:B, the fiber of idB is Σx:B(x=y), centered at (y,refly) and contracted by singleton contraction: path induction on p:x=y reduces every (x,p) to the center. This supplies idB. In the Glue line E, the face i=0 selects the glued type A by Glue-form-1; at i=1 the system is empty/identity and Glue reduces to B. Hence E[0/i]A and E[1/i]B.

exercise 80.17.

Fix b:B. Apply the extension operation to the empty partial element of fibf(b) to obtain a center cb. For any w:fibf(b), apply extension to the partial element that equals cb on one endpoint and w on the other; the resulting line is a path cb=w. The endpoint rules of extension provide the two boundaries. Thus every fiber has a center and a contraction, so f is an equivalence.

exercise 80.18.

At i=0, the face (i=0) is true, so restriction of the Glue system selects the A branch; Glue-form-1 gives ua(f)(0)A. At i=1, the (i=1) branch selects B with the identity equivalence, and the other face is false; system selection followed by Glue-form-1 gives ua(f)(1)B. Compatibility on the impossible overlap is automatic.

exercise 80.19.

For φ=(i=0)(i=1), no i-free face lies below it, so δ=i.φ=0F. The transport clause therefore uses the nonconstant Glue-composition branch. At the target i=1 the face is true and extension for the identity equivalence contracts the singleton fiber, producing a term connected to f(a). The Glue beta rule and that contraction yield a path transpi(ua(f)i)a=f(a) in B, which is the propositional computation rule for univalence.

exercise 80.20.

Let T:ΣXP(X)ΣXQ(X) be the total map induced by t over the identity base. If both total spaces are contractible, T is an equivalence. For fixed X and q:Q(X), its fiber is equivalent, by the fiberwise-total-space lemma, to the fiber of tX at q: a path in the base component of T must be reflX, and transport removes it. Fibers of the equivalence T are contractible, so every fiber of tX is contractible and each tX is an equivalence.

exercise 217.21.

For dimensions i,j, an open square with missing i=1 face has tube φ=(i=0)(j=0)(j=1) and compatible faces u0(j),v0(i),v1(i), with the two corner equalities u0(0)=v0(0) and u0(1)=v1(0). Composition in i with cap u0 produces the lid u1(j). The tube computation rule restricts it to v0(1) at j=0 and v1(1) at j=1; the cap rule recovers u0 when the endpoints coincide. Glue the Boolean swap on i=0 to 2 on the total face. Glue transport computes by the forward equivalence, so the two endpoint calculations are ttff and fftt.

Search the book

Type to search the local edition.