Lectures onType Theory
ch:sort-polymorphism: ch:sort-polymorphism
appendix sectionsolutions

ch:sort-polymorphism: ch:sort-polymorphism

Exercise 118.1.

For a motive in the same abstract sort s, Same-Sort applies: its premises are Θssort and the declaration of I at codomain sort s. A motive in Prop is rejected unless the environment also declares I at Prop; that declaration premise is unavailable for an abstract s. The Type case fails for the same reason, with the missing premise that I is declared at codomain sort Type. No equality or elimination constraint on the abstract s is present to derive either premise.

Exercise 118.2.

For I:SProp, a case expression with motive P:IType requires ΣΘelim(I,Type)allowed. Rule Same-Sort can conclude only elim(I,SProp)allowed, because the global declaration records codomain sort SProp. Its second premise would have to say that the same I was declared at Type, which is false. Therefore the case rule has no derivation for its elimination premise.

Exercise 118.3.

Suppose U is formed at stratum k. Its bound variable X:Type must lie at a strictly lower stratum j<k. Then PX=XType and P(PX) are formed using dependencies below k. The paradoxical substitution X:=U uses DT-AppTy, whose argument premise requires U:j. The available derivation is U:k, and cumulativity can supply the former only if kj. Together with DT-Pi’s j<k, this gives the impossible chain j<kj. In full StraTT, the mechanized type-safety result remains available, but consistency, normalization, and decidable checking remain open; the subStraTT logical-relation consistency theorem does not apply.

Exercise 118.4.

The stratum assignment j=0, k=1 gives Δ;ΓA:0Δ;Γ,x:0AB:10<1Δ;Γx:0A:B:1DTPi. Erasing the two stratum annotations recovers the requested unannotated product shape Πx:A.B. If both premises are assigned stratum 0, DT-Pi would require 0<0, which is false; no alternative rule in the displayed subStraTT fragment forms that dependent product.

Exercise 118.5.

In Uls, s is a sort and indexes the elimination judgment, whereas l is a universe level and indexes universe formation and level conversion. A run-time-use annotation is a grade and indexes a graded typing/context judgment. The linear-versus-affine selection is a mode and indexes the structural rules available to a context. The book supplies no general translation between any two of these four roles. For each of the six pairs, such a translation would require a syntax map, preservation of the two indexed judgments and substitution, and reflection or a countermodel showing which distinctions the map loses. Sharing a numerical notation or a finite carrier is not such a proof.

Exercise 118.6.

The assignment @{Type SProp; 0} instantiates the source sort of the natural-number family by Type and the motive sort by SProp. Its case rule therefore generates the premise edgeΘG(Type,SProp), which belongs to the bounded calculus’s ground elimination policy. Hence the large eliminator is accepted.

The assignment @{SProp Type; 0} generates instead the premise edgeΘG(SProp,Type). That edge is absent: unrestricted elimination from a proof-irrelevant source sort into computational data would permit the result to distinguish source inhabitants. Because both endpoints are ground sorts, a sort-variable assignment cannot manufacture the missing path. Condition 1 of definition 118.12 requires every ground path to be generated already by ground edges. The rejection is therefore not failure to form the motive or either branch body.

Search the book

Type to search the local edition.