Lectures onType Theory
Names, HOL, and finite-type interpretation
appendix sectionrules

Names, HOL, and finite-type interpretation

Chapter 64: dependent nominal type theory

Contexts extend by variables or by fresh literal names. Restriction removes the selected name and every later variable, while retaining later fresh-name declarations: XΓ;fresh a:αrestricta:αΓRHere Γrestricta:αΓΓ;fresh b:βrestricta:αΓ;fresh b:βRName Γrestricta:αΓΓ,x:Arestricta:αΓRVar. The name type, fresh-name type former, and literal-name variable rule are

α:nameΣ
Γα:type
Name-Type
α:nameΣΓ;fresh a:αB:type
ΓNa:α.B:type
New-Type
a:αΓ
Γa:α
Name

Name abstraction and concretion are Γ;fresh a:αM:BΓa:αM:Na:α.BNameAbs Γrestrictb:αΓΓM:Na:α.BΓM@b:B[b/a]Concretion. Name substitutions retain the restriction premise:

Δrestrictb:αΔΔθ:Γ
Δ(θ,b/a):Γ;fresh a:α
Sub-Name

Their definitional equations are name beta and fresh-name eta; the latter has the full form

Γ;fresh a:αM@a=N@a:B
ΓM=N:Na:α.B
Name-Eta

Algorithmic equality erases Π to arrows and N to name-abstraction simple types. Its name-specific rules are

a:αΔ
Δaa:α
Alg-Name
Δrestricta:αΔΔMN:[α]τ
ΔM@aN@a:τ
Alg-Conc
Δ;fresh a:αM@aN@a:τ
ΔMN:[α]τ
Alg-New-Ext

Its completeness proof uses the chapter’s Kripke logical relation.

Chapter 65: classical simple type theory

The frozen HOL core has inhabited types generated by α,bool,ind,, simply typed lambda terms, polymorphic equality and choice. Its primitive theorem rules are

t=t
REFL
Γs=tΔt=u
ΓΔs=u
TRANS
Γf=gΔx=y
ΓΔfx=gy
COMB
Γs=txFV(Γ)
Γ(λx.s)=(λx.t)
ABS
(λx.t)x=t
BETA
{p}p
ASSUME
Γp=qΔp
ΓΔq
EQ-MP
ΓpΔq
(Γ{q})(Δ{p})p=q
DEDUCT-ANTISYM
Γp
θΓθp
INST
Γp
ρΓρp
INST-TYPE

The selected closed axioms are eta, selection, and infinity. Classical connectives, quantifiers, functional extensionality, and propositional extensionality are derived at this signature; they are not extra unlisted kernel constructors.

Constant definition requires a fresh name, a closed right-hand side, and no right-hand-side type variable absent from the declared type. Type definition requires a theorem that the representing predicate is nonempty. Its abstraction and representation equations characterize precisely that nonempty subset.

Chapter 66: System T and Dialectica

System T has finite types N and στ, with Rσ:σ(Nσσ)Nσ, Rσag0a,Rσag(Sn)gn(Rσagn). For AD=xy.AD and BD=uv.BD, the critical clause is (AB)D=U,Yx,v.(AD(x,Yxv)BD(Ux,v)). Conjunction concatenates witness and challenge tuples; a disjunction adds a numerical tag; universal quantification extracts a witness function; and existential quantification extracts the quantified object with its matrix witness.

Search the book

Type to search the local edition.