Type theory MOC

𝚷-type

𝚷-types, also known as dependent function types or dependent products, are motivated in several ways:

  1. 𝚷-types internalize hypothetical judgements.
  2. 𝚷-types generalize binary products ( ×) to a product of a family of types indexed by another type.
  3. 𝚷-types generalize functions so that the codomain can depend on the input.
  4. 𝚷-types correspond to spaces of sections.

The core idea is that given a type family (fibration) Γ,𝑥 :𝐴 𝐵(𝑥), a term

Γ𝑓:𝑥:𝐴𝐵(𝑥)

corresponds to a section

Γ,𝑥:𝐴𝑓(𝑥):𝐵(𝑥)

and vice versa.

Standard presentation

Here we give a formal presentation of 𝚷-types in the cartesian calculus of substitutions, following Principles of dependent type theory. The formation, introduction, and elimination rules are given by1

Γ.𝐴𝐵Γ𝚷Γ(𝐴.𝐵)(Π)Γ.𝐴𝑏:𝐵Γ𝜆Γ,𝐴,𝐵(𝑏):𝚷(𝐴.𝐵)(Π𝐼) Γ𝑎:𝐴Γ𝑓:𝚷(𝐴.𝐵)Γ𝐚𝐩𝐩Γ,𝐴,𝐵(𝑓,𝑎):𝐵[𝐢𝐝.𝑎](Π𝐸)

while we also have the substitution naturality rules

Δ𝛾:ΓΓ.𝐴𝐵Δ𝚷(𝐴.𝐵)[𝛾]=𝚷(𝐴[𝛾].𝐵[(𝛾𝐩).𝐪]) Δ𝛾:ΓΓ.𝐴𝑏:𝐵Δ𝜆(𝑏)[𝛾]=𝜆(𝑏[(𝛾𝐩).𝐪]):𝚷(𝐴.𝐵)[𝛾] Δ𝛾:ΓΓ𝑎:𝐴Γ𝑓:𝚷(𝐴.𝐵)Δ𝐚𝐩𝐩(𝑓,𝑎)[𝛾]=𝐚𝐩𝐩(𝑓[𝛾],𝑎[𝛾]):𝐵[(𝐢𝐝.𝑎)𝛾]

and judgemental computation rules for β-reduction and η-conversion

Γ𝑎:𝐴Γ.𝐴𝑏:𝐵Γ𝐚𝐩𝐩(𝜆(𝑏),𝑎)=𝑏[𝐢𝐝.𝑎]:𝐵[𝐢𝐝.𝑎](Π𝛽) Γ𝑓:𝚷(𝐴.𝐵)Γ𝑓=𝜆(𝐚𝐩𝐩(𝑓[𝐩,𝐪])):𝚷(𝐴.𝐵)(Π𝜂)

In terms of Internalizing judgemental structure, we can formalize the notion of the correspondence outlined above as an operation

𝚷Γ:⎜ ⎜𝐴Ty(Γ)Ty(Γ.𝐴)⎟ ⎟Ty(Γ)

natural in Γ with a family of bijections

𝜄Γ,𝐴,𝐵:Tm(Γ,𝚷Γ(𝐴,𝐵))Tm(Γ.𝐴,𝐵)

also natural in Γ. This gives the inference rules above.


tidy | en | SemBr

Footnotes

  1. For brevity and laziness, the 𝚷 formation rule will be considered a _presuppositi