nLab dependent extension type

Context

Type theory

natural deduction metalanguage, practical foundations

  1. type formation rule
  2. term introduction rule
  3. term elimination rule
  4. computation rule

type theory (dependent, intensional, observational type theory, homotopy type theory)

syntax object language

computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory

logicset theory (internal logic of)category theorytype theory
propositionsetobjecttype
predicatefamily of setsdisplay morphismdependent type
proofelementgeneralized elementterm/program
cut rulecomposition of classifying morphisms / pullback of display mapssubstitution
introduction rule for implicationcounit for hom-tensor adjunctionlambda
elimination rule for implicationunit for hom-tensor adjunctionapplication
cut elimination for implicationone of the zigzag identities for hom-tensor adjunctionbeta reduction
identity elimination for implicationthe other zigzag identity for hom-tensor adjunctioneta conversion
truesingletonterminal object/(-2)-truncated objecth-level 0-type/unit type
falseempty setinitial objectempty type
proposition, truth valuesubsingletonsubterminal object/(-1)-truncated objecth-proposition, mere proposition
logical conjunctioncartesian productproductproduct type
disjunctiondisjoint union (support of)coproduct ((-1)-truncation of)sum type (bracket type of)
implicationfunction set (into subsingleton)internal hom (into subterminal object)function type (into h-proposition)
negationfunction set into empty setinternal hom into initial objectfunction type into empty type
universal quantificationindexed cartesian product (of family of subsingletons)dependent product (of family of subterminal objects)dependent product type (of family of h-propositions)
existential quantificationindexed disjoint union (support of)dependent sum ((-1)-truncation of)dependent sum type (bracket type of)
logical equivalencebijection setobject of isomorphismsequivalence type
support setsupport object/(-1)-truncationpropositional truncation/bracket type
n-image of morphism into terminal object/n-truncationn-truncation modality
equalitydiagonal function/diagonal subset/diagonal relationpath space objectidentity type/path type
completely presented setsetdiscrete object/0-truncated objecth-level 2-type/set/h-set
setset with equivalence relationinternal 0-groupoidBishop set/setoid with its pseudo-equivalence relation an actual equivalence relation
equivalence class/quotient setquotientquotient type
inductioncolimitinductive type, W-type, M-type
higher inductionhigher colimithigher inductive type
-0-truncated higher colimitquotient inductive type
coinductionlimitcoinductive type
presettype without identity types
set of truth valuessubobject classifiertype of propositions
domain of discourseuniverseobject classifiertype universe
modalityclosure operator, (idempotent) monadmodal type theory, monad (in computer science)
linear logic(symmetric, closed) monoidal categorylinear type theory/quantum computation
proof netstring diagramquantum circuit
(absence of) contraction rule(absence of) diagonalno-cloning theorem
synthetic mathematicsdomain specific embedded programming language

homotopy levels

semantics

Contents

Idea

In dependent type theories with more than one layer of type, dependent extension types are types which behave like dependent product types except the index type is the outer layer of type rather than the normal layer of type. Thus, dependent extension types can be defined in simplicial type theory and cubical type theory.

Definition

In type theory with shapes

In type theory with shapes, there are three different layers - there are the cube layer and the tope layer, which is logic over type theory where the cubes are the types and the topes are the propositions in the logic over type theory, and finally there is the type layer, which is a dependent type theory.

Shapes are formed in the usual set-builder notation in set theory: given a cube II and a predicate tope t:Iϕt:I \vdash \phi, one could construct the shape {t:I|ϕ}\{t:I \vert \phi\}. A cofibration in a type theory with shapes is an inclusion of shapes, which means shapes {t:I|ϕ}\{t:I \vert \phi\} and {t:I|ψ}\{t:I \vert \psi\} with a predicate t:I|ϕψt:I \vert \phi \vdash \psi.

Formation rules for dependent extension types:

{t:I|ϕ}shape{t:I|ψ}shapet:I|ϕψ Ξ|ΦΓctxΞ,t:I|Φ,ϕ|ΓAtypeΞ,t:I|Φ,ϕ|Γa:AΞ|Φ|Γ t:I|ψA| a ϕtype\frac{ \begin{array}{l} \{t:I \vert \phi\} \; \mathrm{shape} \quad \{t:I \vert \psi\} \; \mathrm{shape} \quad t:I \vert \phi \vdash \psi \\ \Xi \vert \Phi \vdash \Gamma \; \mathrm{ctx} \quad \Xi, t:I \vert \Phi, \phi \vert \Gamma \vdash A \; \mathrm{type} \quad \Xi, t:I \vert \Phi, \phi \vert \Gamma \vdash a:A \end{array} }{\Xi \vert \Phi \vert \Gamma \vdash \langle \prod_{t:I \vert \psi} A \vert_a^\phi \rangle \; \mathrm{type}}

Introduction rules for dependent extension types:

{t:I|ϕ}shape{t:I|ψ}shapet:I|ϕψ Ξ|ΦΓctxΞ,t:I|Φ,ϕ|ΓAtypeΞ,t:I|Φ,ϕ|Γa:A Ξ,t:I|Φ,ϕ|Γb:AΞ,t:I|Φ,ϕ|Γba Ξ|Φ|Γλt I|ϕ.b: t:I|ψA| a ϕ\frac{ \begin{array}{l} \{t:I \vert \phi\} \; \mathrm{shape} \quad \{t:I \vert \psi\} \; \mathrm{shape} \quad t:I \vert \phi \vdash \psi \\ \Xi \vert \Phi \vdash \Gamma \; \mathrm{ctx} \quad \Xi, t:I \vert \Phi, \phi \vert \Gamma \vdash A \; \mathrm{type} \quad \Xi, t:I \vert \Phi, \phi \vert \Gamma \vdash a:A \\ \Xi, t:I \vert \Phi, \phi \vert \Gamma \vdash b:A \quad \Xi, t:I \vert \Phi, \phi \vert \Gamma \vdash b \equiv a \\ \end{array} }{\Xi \vert \Phi \vert \Gamma \vdash \lambda t^{I\vert \phi}.b:\langle \prod_{t:I \vert \psi} A \vert_a^\phi \rangle}

Elimination rules for dependent extension types

{t:I|ϕ}shape{t:I|ψ}shapet:I|ϕψ Ξ|Φ|Γf: t:I|ψA| a ϕΞs:IΞ|Φψ(s)Ξ|Φ|Γf(s):A\frac{ \begin{array}{l} \{t:I \vert \phi\} \; \mathrm{shape} \quad \{t:I \vert \psi\} \; \mathrm{shape} \quad t:I \vert \phi \vdash \psi \\ \Xi \vert \Phi \vert \Gamma \vdash f:\langle \prod_{t:I \vert \psi} A \vert_a^\phi \rangle \quad \Xi \vdash s:I \quad \Xi \vert \Phi \vdash \psi(s) \end{array} }{\Xi \vert \Phi \vert \Gamma \vdash f(s):A}
{t:I|ϕ}shape{t:I|ψ}shapet:I|ϕψ Ξ|Φ|Γf: t:I|ψA| a ϕΞs:IΞ|Φϕ(s)Ξ|Φ|Γf(s)a(s)\frac{ \begin{array}{l} \{t:I \vert \phi\} \; \mathrm{shape} \quad \{t:I \vert \psi\} \; \mathrm{shape} \quad t:I \vert \phi \vdash \psi \\ \Xi \vert \Phi \vert \Gamma \vdash f:\langle \prod_{t:I \vert \psi} A \vert_a^\phi \rangle \quad \Xi \vdash s:I \quad \Xi \vert \Phi \vdash \phi(s) \end{array} }{\Xi \vert \Phi \vert \Gamma \vdash f(s) \equiv a(s)}

Computation rules for dependent extension types

{t:I|ϕ}shape{t:I|ψ}shapet:I|ϕψ Ξ|ΦΓctxΞ,t:I|Φ,ϕ|ΓAtypeΞ,t:I|Φ,ϕ|Γa:A Ξ,t:I|Φ,ϕ|Γb:AΞ,t:I|Φ,ϕ|Γba Ξs:IΞ|Φϕ(s)Ξ|Φ|Γ(λt I|ϕ.b)(s)b(s)\frac{ \begin{array}{l} \{t:I \vert \phi\} \; \mathrm{shape} \quad \{t:I \vert \psi\} \; \mathrm{shape} \quad t:I \vert \phi \vdash \psi \\ \Xi \vert \Phi \vdash \Gamma \; \mathrm{ctx} \quad \Xi, t:I \vert \Phi, \phi \vert \Gamma \vdash A \; \mathrm{type} \quad \Xi, t:I \vert \Phi, \phi \vert \Gamma \vdash a:A \\ \Xi, t:I \vert \Phi, \phi \vert \Gamma \vdash b:A \quad \Xi, t:I \vert \Phi, \phi \vert \Gamma \vdash b \equiv a \\ \Xi \vdash s:I \quad \Xi \vert \Phi \vdash \phi(s) \end{array} }{\Xi \vert \Phi \vert \Gamma \vdash (\lambda t^{I\vert \phi}.b)(s) \equiv b(s)}

Uniqueness rules for dependent extension types

{t:I|ϕ}shape{t:I|ψ}shapet:I|ϕψ Ξ|Φ|Γf: t:I|ψA| a ϕΞs:IΞ|Φϕ(s)Ξ|Φ|Γfλt I|ψ.f(t)\frac{ \begin{array}{l} \{t:I \vert \phi\} \; \mathrm{shape} \quad \{t:I \vert \psi\} \; \mathrm{shape} \quad t:I \vert \phi \vdash \psi \\ \Xi \vert \Phi \vert \Gamma \vdash f:\langle \prod_{t:I \vert \psi} A \vert_a^\phi \rangle \quad \Xi \vdash s:I \quad \Xi \vert \Phi \vdash \phi(s) \end{array} }{\Xi \vert \Phi \vert \Gamma \vdash f \equiv \lambda t^{I \vert \psi}.f(t)}

In two-level type theory

In two-level type theory, there are two different layers of types - there is the pretype or non-fibrant layer and there is the type or fibrant layer. A cofibration in two-level type theory is an inclusion of pretypes, which means pretypes AA and BB and an embedding i:ABi:A \hookrightarrow B. The rules for dependent extension types are then given as follows:

Formation rules for dependent extension types

ΞApretypeΞBpretypeΞi:AB ΞΓctxΞ,y:B|ΓC(y)typeΞ,x:A|Γc(x):C(x)Ξ|Γ y:BC(y)| c Atype\frac{ \begin{array}{l} \Xi \vdash A \; \mathrm{pretype} \quad \Xi \vdash B \; \mathrm{pretype} \quad \Xi \vdash i:A \hookrightarrow B \\ \Xi \vdash \Gamma \; \mathrm{ctx} \quad \Xi, y:B \vert \Gamma \vdash C(y) \; \mathrm{type} \quad \Xi, x:A \vert \Gamma \vdash c(x):C(x) \end{array} }{\Xi \vert \Gamma \vdash \langle \prod_{y:B} C(y) \vert_c^A \rangle \; \mathrm{type}}

Introduction rules for dependent extension types

ΞApretypeΞBpretypeΞi:AB ΞΓctxΞ,y:B|ΓC(y)typeΞ,x:A|Γc(x):C(x) Ξ,y:B|Γd(y):C(y)Ξ,x:A|Γd(i(x))c(x):C(x) Ξ|Γλy B.d(y): y:BC(y)| c A\frac{ \begin{array}{l} \Xi \vdash A \; \mathrm{pretype} \quad \Xi \vdash B \; \mathrm{pretype} \quad \Xi \vdash i:A \hookrightarrow B \\ \Xi \vdash \Gamma \; \mathrm{ctx} \quad \Xi, y:B \vert \Gamma \vdash C(y) \; \mathrm{type} \quad \Xi, x:A \vert \Gamma \vdash c(x):C(x) \\ \Xi, y:B \vert \Gamma \vdash d(y):C(y) \quad \Xi, x:A \vert \Gamma \vdash d(i(x)) \equiv c(x):C(x) \\ \end{array} }{\Xi \vert \Gamma \vdash \lambda y^B.d(y):\langle \prod_{y:B} C(y) \vert_c^A \rangle}

Elimination rules for dependent extension types

ΞApretypeΞBpretypeΞi:AB Ξ|Γf: y:BC(y)| c AΞb:BΞ|Γf(b):C(b)\frac{ \begin{array}{l} \Xi \vdash A \; \mathrm{pretype} \quad \Xi \vdash B \; \mathrm{pretype} \quad \Xi \vdash i:A \hookrightarrow B \\ \Xi \vert \Gamma \vdash f:\langle \prod_{y:B} C(y) \vert_c^A \rangle \quad \Xi \vdash b:B \end{array} }{\Xi \vert \Gamma \vdash f(b):C(b)}
ΞApretypeΞBpretypeΞi:AB Ξ|Γf: y:BC(y)| c AΞa:AΞ|Γf(i(a))c(a):C(a)\frac{ \begin{array}{l} \Xi \vdash A \; \mathrm{pretype} \quad \Xi \vdash B \; \mathrm{pretype} \quad \Xi \vdash i:A \hookrightarrow B \\ \Xi \vert \Gamma \vdash f:\langle \prod_{y:B} C(y) \vert_c^A \rangle \quad \Xi \vdash a:A \end{array} }{\Xi \vert \Gamma \vdash f(i(a)) \equiv c(a):C(a)}

Computation rules for dependent extension types

ΞApretypeΞBpretypeΞi:AB ΞΓctxΞ,y:B|ΓC(y)typeΞ,x:A|Γc(x):C(x) Ξ,y:B|Γd(y):C(y)Ξ,x:A|Γd(i(x))c(x):C(x)Ξ|b:B Ξ|Γ(λy B.d(y))(b)d(b):C(b)\frac{ \begin{array}{l} \Xi \vdash A \; \mathrm{pretype} \quad \Xi \vdash B \; \mathrm{pretype} \quad \Xi \vdash i:A \hookrightarrow B \\ \Xi \vdash \Gamma \; \mathrm{ctx} \quad \Xi, y:B \vert \Gamma \vdash C(y) \; \mathrm{type} \quad \Xi, x:A \vert \Gamma \vdash c(x):C(x) \\ \Xi, y:B \vert \Gamma \vdash d(y):C(y) \quad \Xi, x:A \vert \Gamma \vdash d(i(x)) \equiv c(x):C(x) \quad \Xi \vert b:B\\ \end{array} }{\Xi \vert \Gamma \vdash (\lambda y^B.d(y))(b) \equiv d(b):C(b)}

Uniqueness rules for dependent extension types

ΞApretypeΞBpretypeΞi:AB Ξ|Γf: y:BC(y)| c AΞ|Γfλy B.f(y): y:BC(y)| c A\frac{ \begin{array}{l} \Xi \vdash A \; \mathrm{pretype} \quad \Xi \vdash B \; \mathrm{pretype} \quad \Xi \vdash i:A \hookrightarrow B \\ \Xi \vert \Gamma \vdash f:\langle \prod_{y:B} C(y) \vert_c^A \rangle \end{array} }{\Xi \vert \Gamma \vdash f \equiv \lambda y^B.f(y):\langle \prod_{y:B} C(y) \vert_c^A \rangle}

Now, if the pretype layer has a Tarski type of all propositions (Ω,El Ω)(\Omega, \mathrm{El}_\Omega), then given a pretype II and predicates t:Iϕ(t):Ωt:I \vdash \phi(t):\Omega, t:Iψ(t):Ωt:I \vdash \psi(t):\Omega, one could construct the shapes defined in the above section via the dependent sum type in the pretype layer:

A t:IEl Ω(ϕ(t))B t:IEl Ω(ψ(t))A \coloneqq \sum_{t:I} \mathrm{El}_\Omega(\phi(t)) \qquad B \coloneqq \sum_{t:I} \mathrm{El}_\Omega(\psi(t))

The additional requirement above that t:I,ϕ(t):Ωψ(t):Ωt:I, \phi(t):\Omega \vdash \psi(t):\Omega implies that AA is a subtype of BB with an embedding i:ABi:A \hookrightarrow B in the pretype layer.

 References

Last revised on December 12, 2023 at 13:59:35. See the history of this page for a list of all contributions to it.