XTT: Cubical Syntax for Extensional Equality
(without equality reflection) June 11, 2019 Jonathan Sterling1 Carlo Angiuli1 Daniel Gratzer2
1Carnegie Mellon University 2Aarhus University 1 / 26
XTT : Cubical Syntax for Extensional Equality (without equality - - PowerPoint PPT Presentation
XTT : Cubical Syntax for Extensional Equality (without equality reflection) June 11, 2019 Jonathan Sterling 1 Carlo Angiuli 1 Daniel Gratzer 2 1 Carnegie Mellon University 2 Aarhus University 1 / 26 definitional equality, conversion (???),
(without equality reflection) June 11, 2019 Jonathan Sterling1 Carlo Angiuli1 Daniel Gratzer2
1Carnegie Mellon University 2Aarhus University 1 / 26
a thorny and controversial subject! here are some words that all type theorists fear: definitional equality, conversion (???), judgmental equality, propositional equality, โฆ the main scientific distinctions that can be made are in fact:
(weakly, strictly) coherent? these considerations are dialectically linked Nuprl and Andromeda make all equations โsilentโ: semantically advantageous, but unfortunate side efgect is that only ๐ฝ, ๐ can be fully automated (*). formalisms based on ITT maximize automatic equations, at the cost of some coercions appearing in terms. developing user-friendly ITT-style formalisms with well-behaved extensionality principles (OTT,HoTT,CuTT) has been a challenge. today, we examine XTT: a new take on OTT, using cubes.
2 / 26
a thorny and controversial subject! here are some words that all type theorists fear: definitional equality, conversion (???), judgmental equality, propositional equality, โฆ the main scientific distinctions that can be made are in fact:
(weakly, strictly) coherent? these considerations are dialectically linked Nuprl and Andromeda make all equations โsilentโ: semantically advantageous, but unfortunate side efgect is that only ๐ฝ, ๐ can be fully automated (*). formalisms based on ITT maximize automatic equations, at the cost of some coercions appearing in terms. developing user-friendly ITT-style formalisms with well-behaved extensionality principles (OTT,HoTT,CuTT) has been a challenge. today, we examine XTT: a new take on OTT, using cubes.
2 / 26
a thorny and controversial subject! here are some words that all type theorists fear: definitional equality, conversion (???), judgmental equality, propositional equality, โฆ the main scientific distinctions that can be made are in fact:
(weakly, strictly) coherent? these considerations are dialectically linked Nuprl and Andromeda make all equations โsilentโ: semantically advantageous, but unfortunate side efgect is that only ๐ฝ, ๐ can be fully automated (*). formalisms based on ITT maximize automatic equations, at the cost of some coercions appearing in terms. developing user-friendly ITT-style formalisms with well-behaved extensionality principles (OTT,HoTT,CuTT) has been a challenge. today, we examine XTT: a new take on OTT, using cubes.
2 / 26
a thorny and controversial subject! here are some words that all type theorists fear: definitional equality, conversion (???), judgmental equality, propositional equality, โฆ the main scientific distinctions that can be made are in fact:
(weakly, strictly) coherent? these considerations are dialectically linked Nuprl and Andromeda make all equations โsilentโ: semantically advantageous, but unfortunate side efgect is that only ๐ฝ, ๐ can be fully automated (*). formalisms based on ITT maximize automatic equations, at the cost of some coercions appearing in terms. developing user-friendly ITT-style formalisms with well-behaved extensionality principles (OTT,HoTT,CuTT) has been a challenge. today, we examine XTT: a new take on OTT, using cubes.
2 / 26
a thorny and controversial subject! here are some words that all type theorists fear: definitional equality, conversion (???), judgmental equality, propositional equality, โฆ the main scientific distinctions that can be made are in fact:
(weakly, strictly) coherent? these considerations are dialectically linked Nuprl and Andromeda make all equations โsilentโ: semantically advantageous, but unfortunate side efgect is that only ๐ฝ, ๐ can be fully automated (*). formalisms based on ITT maximize automatic equations, at the cost of some coercions appearing in terms. developing user-friendly ITT-style formalisms with well-behaved extensionality principles (OTT,HoTT,CuTT) has been a challenge. today, we examine XTT: a new take on OTT, using cubes.
2 / 26
a thorny and controversial subject! here are some words that all type theorists fear: definitional equality, conversion (???), judgmental equality, propositional equality, โฆ the main scientific distinctions that can be made are in fact:
(weakly, strictly) coherent? these considerations are dialectically linked Nuprl and Andromeda make all equations โsilentโ: semantically advantageous, but unfortunate side efgect is that only ๐ฝ, ๐ can be fully automated (*). formalisms based on ITT maximize automatic equations, at the cost of some coercions appearing in terms. developing user-friendly ITT-style formalisms with well-behaved extensionality principles (OTT,HoTT,CuTT) has been a challenge. today, we examine XTT: a new take on OTT, using cubes.
2 / 26
a thorny and controversial subject! here are some words that all type theorists fear: definitional equality, conversion (???), judgmental equality, propositional equality, โฆ the main scientific distinctions that can be made are in fact:
(weakly, strictly) coherent? these considerations are dialectically linked Nuprl and Andromeda make all equations โsilentโ: semantically advantageous, but unfortunate side efgect is that only ๐ฝ, ๐ can be fully automated (*). formalisms based on ITT maximize automatic equations, at the cost of some coercions appearing in terms. developing user-friendly ITT-style formalisms with well-behaved extensionality principles (OTT,HoTT,CuTT) has been a challenge. today, we examine XTT: a new take on OTT, using cubes.
2 / 26
a thorny and controversial subject! here are some words that all type theorists fear: definitional equality, conversion (???), judgmental equality, propositional equality, โฆ the main scientific distinctions that can be made are in fact:
(weakly, strictly) coherent? these considerations are dialectically linked Nuprl and Andromeda make all equations โsilentโ: semantically advantageous, but unfortunate side efgect is that only ๐ฝ, ๐ can be fully automated (*). formalisms based on ITT maximize automatic equations, at the cost of some coercions appearing in terms. developing user-friendly ITT-style formalisms with well-behaved extensionality principles (OTT,HoTT,CuTT) has been a challenge. today, we examine XTT: a new take on OTT, using cubes.
2 / 26
a thorny and controversial subject! here are some words that all type theorists fear: definitional equality, conversion (???), judgmental equality, propositional equality, โฆ the main scientific distinctions that can be made are in fact:
(weakly, strictly) coherent? these considerations are dialectically linked Nuprl and Andromeda make all equations โsilentโ: semantically advantageous, but unfortunate side efgect is that only ๐ฝ, ๐ can be fully automated (*). formalisms based on ITT maximize automatic equations, at the cost of some coercions appearing in terms. developing user-friendly ITT-style formalisms with well-behaved extensionality principles (OTT,HoTT,CuTT) has been a challenge. today, we examine XTT: a new take on OTT, using cubes.
2 / 26
a big inspiration for me to get into type theory: Altenkirch and McBride [AM06]. Towards Observational Type Theory. Altenkirch, McBride, and Swierstra [AMS07]. โObservational Equality, Now!โ
program, by recursion on type codes ๐ต, ๐ถ Eq(๐บ0 โถ ๐ต0 โ ๐ถ0, ๐บ1 โถ ๐ต1 โ ๐ถ1) =
(๐ฆ0 โถ ๐ต0)(๐ฆ1 โถ ๐ต1)(ฬ ๐ฆ โถ Eq(๐ฆ0 โถ ๐ต0, ๐ฆ1 โถ ๐ต1)) โ Eq(๐บ0(๐ฆ0) โถ ๐ถ0, ๐บ1(๐ฆ1) โถ ๐ถ1)
(funext)
irrelevance (see Altenkirch, McBride, and Swierstra [AMS07])
3 / 26
a big inspiration for me to get into type theory: Altenkirch and McBride [AM06]. Towards Observational Type Theory. Altenkirch, McBride, and Swierstra [AMS07]. โObservational Equality, Now!โ
program, by recursion on type codes ๐ต, ๐ถ Eq(๐บ0 โถ ๐ต0 โ ๐ถ0, ๐บ1 โถ ๐ต1 โ ๐ถ1) =
(๐ฆ0 โถ ๐ต0)(๐ฆ1 โถ ๐ต1)(ฬ ๐ฆ โถ Eq(๐ฆ0 โถ ๐ต0, ๐ฆ1 โถ ๐ต1)) โ Eq(๐บ0(๐ฆ0) โถ ๐ถ0, ๐บ1(๐ฆ1) โถ ๐ถ1)
(funext)
irrelevance (see Altenkirch, McBride, and Swierstra [AMS07])
3 / 26
a big inspiration for me to get into type theory: Altenkirch and McBride [AM06]. Towards Observational Type Theory. Altenkirch, McBride, and Swierstra [AMS07]. โObservational Equality, Now!โ
program, by recursion on type codes ๐ต, ๐ถ Eq(๐บ0 โถ ๐ต0 โ ๐ถ0, ๐บ1 โถ ๐ต1 โ ๐ถ1) =
(๐ฆ0 โถ ๐ต0)(๐ฆ1 โถ ๐ต1)(ฬ ๐ฆ โถ Eq(๐ฆ0 โถ ๐ต0, ๐ฆ1 โถ ๐ต1)) โ Eq(๐บ0(๐ฆ0) โถ ๐ถ0, ๐บ1(๐ฆ1) โถ ๐ถ1)
(funext)
irrelevance (see Altenkirch, McBride, and Swierstra [AMS07])
3 / 26
a big inspiration for me to get into type theory: Altenkirch and McBride [AM06]. Towards Observational Type Theory. Altenkirch, McBride, and Swierstra [AMS07]. โObservational Equality, Now!โ
program, by recursion on type codes ๐ต, ๐ถ Eq(๐บ0 โถ ๐ต0 โ ๐ถ0, ๐บ1 โถ ๐ต1 โ ๐ถ1) =
(๐ฆ0 โถ ๐ต0)(๐ฆ1 โถ ๐ต1)(ฬ ๐ฆ โถ Eq(๐ฆ0 โถ ๐ต0, ๐ฆ1 โถ ๐ต1)) โ Eq(๐บ0(๐ฆ0) โถ ๐ถ0, ๐บ1(๐ฆ1) โถ ๐ถ1)
(funext)
irrelevance (see Altenkirch, McBride, and Swierstra [AMS07])
3 / 26
a big inspiration for me to get into type theory: Altenkirch and McBride [AM06]. Towards Observational Type Theory. Altenkirch, McBride, and Swierstra [AMS07]. โObservational Equality, Now!โ
program, by recursion on type codes ๐ต, ๐ถ Eq(๐บ0 โถ ๐ต0 โ ๐ถ0, ๐บ1 โถ ๐ต1 โ ๐ถ1) =
(๐ฆ0 โถ ๐ต0)(๐ฆ1 โถ ๐ต1)(ฬ ๐ฆ โถ Eq(๐ฆ0 โถ ๐ต0, ๐ฆ1 โถ ๐ต1)) โ Eq(๐บ0(๐ฆ0) โถ ๐ถ0, ๐บ1(๐ฆ1) โถ ๐ถ1)
(funext)
irrelevance (see Altenkirch, McBride, and Swierstra [AMS07])
3 / 26
a big inspiration for me to get into type theory: Altenkirch and McBride [AM06]. Towards Observational Type Theory. Altenkirch, McBride, and Swierstra [AMS07]. โObservational Equality, Now!โ
program, by recursion on type codes ๐ต, ๐ถ Eq(๐บ0 โถ ๐ต0 โ ๐ถ0, ๐บ1 โถ ๐ต1 โ ๐ถ1) =
(๐ฆ0 โถ ๐ต0)(๐ฆ1 โถ ๐ต1)(ฬ ๐ฆ โถ Eq(๐ฆ0 โถ ๐ต0, ๐ฆ1 โถ ๐ต1)) โ Eq(๐บ0(๐ฆ0) โถ ๐ถ0, ๐บ1(๐ฆ1) โถ ๐ถ1)
(funext)
irrelevance (see Altenkirch, McBride, and Swierstra [AMS07])
3 / 26
๐ต โถ U ๐ฆ โถ ๐ต โข ๐ถ[๐ฆ] โถ U ๐0, ๐1 โถ ๐ต ฬ ๐ โถ Eq(๐0 โถ ๐ต, ๐1 โถ ๐ต)
resp๐ฆโถ๐ต.๐ถ[๐ฆ](๐0, ๐1, ฬ
๐) โถ Eq(๐ถ[๐0] โถ U, ๐ถ[๐1] โถ U)
๐ต, ๐ถ โถ U ๐ โถ Eq(๐ต โถ U, ๐ถ โถ U) ๐ โถ ๐ต [๐ ] โ๐ต
๐ถ ๐ โถ ๐ถ
๐ต, ๐ถ โถ U ๐ โถ Eq(๐ต โถ U, ๐ถ โถ U) ๐ โถ ๐ต ๐ โ๐ต
๐ถ ๐ โถ Eq(๐ต โถ ๐, ๐ถ โถ [๐ ] โ๐ต ๐ถ ๐)
(many of these can be defined in the Agda model of OTT, but must be primitive
4 / 26
๐ต โถ U ๐ฆ โถ ๐ต โข ๐ถ[๐ฆ] โถ U ๐0, ๐1 โถ ๐ต ฬ ๐ โถ Eq(๐0 โถ ๐ต, ๐1 โถ ๐ต)
resp๐ฆโถ๐ต.๐ถ[๐ฆ](๐0, ๐1, ฬ
๐) โถ Eq(๐ถ[๐0] โถ U, ๐ถ[๐1] โถ U)
๐ต, ๐ถ โถ U ๐ โถ Eq(๐ต โถ U, ๐ถ โถ U) ๐ โถ ๐ต [๐ ] โ๐ต
๐ถ ๐ โถ ๐ถ
๐ต, ๐ถ โถ U ๐ โถ Eq(๐ต โถ U, ๐ถ โถ U) ๐ โถ ๐ต ๐ โ๐ต
๐ถ ๐ โถ Eq(๐ต โถ ๐, ๐ถ โถ [๐ ] โ๐ต ๐ถ ๐)
(many of these can be defined in the Agda model of OTT, but must be primitive
4 / 26
๐ต โถ U ๐ฆ โถ ๐ต โข ๐ถ[๐ฆ] โถ U ๐0, ๐1 โถ ๐ต ฬ ๐ โถ Eq(๐0 โถ ๐ต, ๐1 โถ ๐ต)
resp๐ฆโถ๐ต.๐ถ[๐ฆ](๐0, ๐1, ฬ
๐) โถ Eq(๐ถ[๐0] โถ U, ๐ถ[๐1] โถ U)
๐ต, ๐ถ โถ U ๐ โถ Eq(๐ต โถ U, ๐ถ โถ U) ๐ โถ ๐ต [๐ ] โ๐ต
๐ถ ๐ โถ ๐ถ
๐ต, ๐ถ โถ U ๐ โถ Eq(๐ต โถ U, ๐ถ โถ U) ๐ โถ ๐ต ๐ โ๐ต
๐ถ ๐ โถ Eq(๐ต โถ ๐, ๐ถ โถ [๐ ] โ๐ต ๐ถ ๐)
(many of these can be defined in the Agda model of OTT, but must be primitive
4 / 26
๐ต โถ U ๐ฆ โถ ๐ต โข ๐ถ[๐ฆ] โถ U ๐0, ๐1 โถ ๐ต ฬ ๐ โถ Eq(๐0 โถ ๐ต, ๐1 โถ ๐ต)
resp๐ฆโถ๐ต.๐ถ[๐ฆ](๐0, ๐1, ฬ
๐) โถ Eq(๐ถ[๐0] โถ U, ๐ถ[๐1] โถ U)
๐ต, ๐ถ โถ U ๐ โถ Eq(๐ต โถ U, ๐ถ โถ U) ๐ โถ ๐ต [๐ ] โ๐ต
๐ถ ๐ โถ ๐ถ
๐ต, ๐ถ โถ U ๐ โถ Eq(๐ต โถ U, ๐ถ โถ U) ๐ โถ ๐ต
๐ โ๐ต
๐ถ ๐ โถ Eq(๐ต โถ ๐, ๐ถ โถ [๐ ] โ๐ต ๐ถ ๐)
(many of these can be defined in the Agda model of OTT, but must be primitive
4 / 26
๐ต โถ U ๐ฆ โถ ๐ต โข ๐ถ[๐ฆ] โถ U ๐0, ๐1 โถ ๐ต ฬ ๐ โถ Eq(๐0 โถ ๐ต, ๐1 โถ ๐ต)
resp๐ฆโถ๐ต.๐ถ[๐ฆ](๐0, ๐1, ฬ
๐) โถ Eq(๐ถ[๐0] โถ U, ๐ถ[๐1] โถ U)
๐ต, ๐ถ โถ U ๐ โถ Eq(๐ต โถ U, ๐ถ โถ U) ๐ โถ ๐ต [๐ ] โ๐ต
๐ถ ๐ โถ ๐ถ
๐ต, ๐ถ โถ U ๐ โถ Eq(๐ต โถ U, ๐ถ โถ U) ๐ โถ ๐ต
๐ โ๐ต
๐ถ ๐ โถ Eq(๐ต โถ ๐, ๐ถ โถ [๐ ] โ๐ต ๐ถ ๐)
(many of these can be defined in the Agda model of OTT, but must be primitive
4 / 26
goal: find smaller set of primitives which systematically generate (something in the spirit of) OTT idea: start with Cartesian cubical type theory [ABCFHL], restrict to Bishop sets ร la Coquand [Coq17]
the XTT paper
Sterling, Angiuli, and Gratzer [SAG19]. โCubical Syntax for Reflection-Free Extensional Equalityโ. Formal Structures for Computation and Deduction (FSCD 2019). see also Chapman, Forsberg, and McBride [CFM18] (โThe Box of Delights (Cubical Observational Type Theory)โ) for the beginnings of a difgerent account
(we wonโt talk about propositions or quotients today. but talk to me about it ater! there is a strictness mismatch in both OTT,XTT.)
5 / 26
rather than defining heterogeneous equality by recursion on type structure, define dependent equality all at once using a formal interval:
0, 1 โถ ๐
eq formation
๐ โถ ๐ โข ๐ต โถ U ๐ โถ ๐ต[0] ๐ โถ ๐ต[1]
Eq๐.๐ต[๐](๐, ๐) โถ U
eq introduction
๐ โถ ๐ โข ๐[๐] โถ ๐ต[๐] ๐[0] = ๐0 โถ ๐ต[0] ๐[1] = ๐1 โถ ๐ต[1] ๐๐.๐[๐] โถ Eq๐.๐ต[๐](๐0, ๐1)
eq elimination
๐ โถ Eq๐.๐ต[๐](๐0, ๐1) ๐ โถ ๐ ๐(๐ ) โถ ๐ต[๐ ] ๐(0) = ๐0 โถ ๐ต[0] ๐(1) = ๐1 โถ ๐ต[1]
(along with more ๐พ, ๐ rules, etc.)
6 / 26
we have function extensionality by swapping quantifiers:
๐บ0, ๐บ1 โถ ๐ต โ ๐ถ ๐ โถ (๐ฆ โถ ๐ต) โ Eq_.๐ถ(๐บ0(๐ฆ), ๐บ1(๐ฆ)) ๐๐.๐๐ฆ.๐ (๐ฆ)(๐) โถ Eq_.๐ตโ๐ถ(๐บ0, ๐บ1) โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
7 / 26
given ๐ต โถ U and ๐ฆ โถ ๐ต โข ๐ถ[๐ฆ] โถ U and ๐ โถ Eq_.๐ต(๐0, ๐1), we have:
๐๐.๐ถ[๐ (๐)] โถ Eq_.U(๐ถ[๐0], ๐ถ[๐1])
8 / 26
in OTT, we always have ๐ 0 = ๐ 1 โถ Eq(๐ โถ ๐ต, ๐ โถ ๐ถ); we achieve this modularly using a boundary separation1 rule:
๐ โถ ๐ ๐ = 0 โข ๐ = ๐ โถ ๐ต ๐ = 1 โข ๐ = ๐ โถ ๐ต ๐ = ๐ โถ ๐ต
(does not mention equality type!!) given ๐ 0, ๐ 1 โถ Eq๐.๐ต(๐, ๐), we have ๐ 0 = ๐ 1 โถ Eq๐.๐ต(๐, ๐) by the ๐พ, ๐, ๐ rules of the equality type, together with boundary separation.
1(it is a presheaf separation condition for a certain coverage on the category of contexts) 9 / 26
we generalize OTTโs coercion [๐ ] โ๐ต
๐ถ ๐ and coherence ๐ โ๐ต ๐ถ ๐ with a single
๐ , ๐ โฒ โถ ๐ ๐ โถ ๐ โข ๐ต[๐] โถ U ๐ โถ ๐ต[๐ ] [๐.๐ต[๐]] โ๐
๐ ๐ โถ ๐ต[๐ โฒ]
given ๐ โถ Eq_.U(๐ต, ๐ถ), we define:
[๐ ] โ๐ต
๐ถ ๐ = [๐.๐ (๐)] โ0 1 ๐
๐ โ๐ต
๐ถ ๐ = ๐๐.[๐.๐ (๐)] โ0 ๐ ๐
slogan: coherence is just coercion from a point to a line like in OTT (but unlike CuTT), coercion must be calculated by recursion on ๐ต, ๐ถ rather than ๐ ; requires closed universe. ask me why!
10 / 26
we used to study the metatheory of presentations of type theories, not of type theories.
determinate notion of model, nor interpretation) 2.
11 / 26
we used to study the metatheory of presentations of type theories, not of type theories.
determinate notion of model, nor interpretation)
11 / 26
we used to study the metatheory of presentations of type theories, not of type theories.
determinate notion of model, nor interpretation)
11 / 26
we used to study the metatheory of presentations of type theories, not of type theories.
determinate notion of model, nor interpretation)
2.1 operational semantics 2.2 PER โmodelโ of type theory 2.3 logical relation between syntax and PER โmodelโ
(โผ 200 pages of work)
11 / 26
we used to study the metatheory of presentations of type theories, not of type theories.
determinate notion of model, nor interpretation)
2.1 operational semantics 2.2 PER โmodelโ of type theory 2.3 logical relation between syntax and PER โmodelโ
(โผ 200 pages of work)
11 / 26
we used to study the metatheory of presentations of type theories, not of type theories.
determinate notion of model, nor interpretation)
2.1 operational semantics 2.2 PER โmodelโ of type theory 2.3 logical relation between syntax and PER โmodelโ
(โผ 200 pages of work)
actually this is totally intractable to do more than once! letโs bootstrap it a difgerent way.
11 / 26
a new (old) syntax-invariant approach to metatheory
Uem19]; presentations considered up to isomorphism
initial object (soundness and completeness); initial algebra is covered by fully-annotated De Bruijn syntax (but this doesnโt matter)
initial ๐-algebra using categorical gluing/logical families [Coq18]2
(using the above) the language of category theory makes each of the preceding steps โeasyโ, and independent of syntax / representation details. no raw terms, no PERs.
2See also Coquand, Huber, and Sattler [CHS19], Kaposi, Huber, and Sattler [KHS19], and
Shulman [Shu15].
12 / 26
a new (old) syntax-invariant approach to metatheory
Uem19]; presentations considered up to isomorphism
initial object (soundness and completeness); initial algebra is covered by fully-annotated De Bruijn syntax (but this doesnโt matter)
initial ๐-algebra using categorical gluing/logical families [Coq18]2
(using the above) the language of category theory makes each of the preceding steps โeasyโ, and independent of syntax / representation details. no raw terms, no PERs.
2See also Coquand, Huber, and Sattler [CHS19], Kaposi, Huber, and Sattler [KHS19], and
Shulman [Shu15].
12 / 26
a new (old) syntax-invariant approach to metatheory
Uem19]; presentations considered up to isomorphism
initial object (soundness and completeness); initial algebra is covered by fully-annotated De Bruijn syntax (but this doesnโt matter)
initial ๐-algebra using categorical gluing/logical families [Coq18]2
(using the above) the language of category theory makes each of the preceding steps โeasyโ, and independent of syntax / representation details. no raw terms, no PERs.
2See also Coquand, Huber, and Sattler [CHS19], Kaposi, Huber, and Sattler [KHS19], and
Shulman [Shu15].
12 / 26
a new (old) syntax-invariant approach to metatheory
Uem19]; presentations considered up to isomorphism
initial object (soundness and completeness); initial algebra is covered by fully-annotated De Bruijn syntax (but this doesnโt matter)
initial ๐-algebra using categorical gluing/logical families [Coq18]2
(using the above) the language of category theory makes each of the preceding steps โeasyโ, and independent of syntax / representation details. no raw terms, no PERs.
2See also Coquand, Huber, and Sattler [CHS19], Kaposi, Huber, and Sattler [KHS19], and
Shulman [Shu15].
12 / 26
a new (old) syntax-invariant approach to metatheory
Uem19]; presentations considered up to isomorphism
initial object (soundness and completeness); initial algebra is covered by fully-annotated De Bruijn syntax (but this doesnโt matter)
initial ๐-algebra using categorical gluing/logical families [Coq18]2
(using the above) the language of category theory makes each of the preceding steps โeasyโ, and independent of syntax / representation details. no raw terms, no PERs.
2See also Coquand, Huber, and Sattler [CHS19], Kaposi, Huber, and Sattler [KHS19], and
Shulman [Shu15].
12 / 26
a new (old) syntax-invariant approach to metatheory
Uem19]; presentations considered up to isomorphism
initial object (soundness and completeness); initial algebra is covered by fully-annotated De Bruijn syntax (but this doesnโt matter)
initial ๐-algebra using categorical gluing/logical families [Coq18]2
(using the above) the language of category theory makes each of the preceding steps โeasyโ, and independent of syntax / representation details. no raw terms, no PERs.
2See also Coquand, Huber, and Sattler [CHS19], Kaposi, Huber, and Sattler [KHS19], and
Shulman [Shu15].
12 / 26
to warm up, we proved canonicity for XTT using a cubical gluing technique (independently proposed by Awodey). Let
+ be the completion of
with an initial object (i.e. constrained dimension contexts); โ is the (fibered) category
โ
+
u
+
i
id
+
the splitting of u interprets dimension substitutions, as well as โrelatively terminalโ contexts i(ฮจ) โถ โ for each ฮจ โถ
+.
we further obtain a โnerveโ:3 N โถ โ Pr(
+)
N(ฮ) = โ[i(โ), ฮ]
3Circulated by S. Awodey in 2015. 13 / 26
to warm up, we proved canonicity for XTT using a cubical gluing technique (independently proposed by Awodey). Let โก+ be the completion of โก with an initial object (i.e. constrained dimension contexts); โ is the (fibered) category
โ
โก+
u
+
i
id
+
the splitting of u interprets dimension substitutions, as well as โrelatively terminalโ contexts i(ฮจ) โถ โ for each ฮจ โถ
+.
we further obtain a โnerveโ:3 N โถ โ Pr(
+)
N(ฮ) = โ[i(โ), ฮ]
3Circulated by S. Awodey in 2015. 13 / 26
to warm up, we proved canonicity for XTT using a cubical gluing technique (independently proposed by Awodey). Let โก+ be the completion of โก with an initial object (i.e. constrained dimension contexts); โ is the (fibered) category
โ
โก+
u
โก+
i
idโก+ the splitting of u interprets dimension substitutions, as well as โrelatively terminalโ contexts i(ฮจ) โถ โ for each ฮจ โถ
+.
we further obtain a โnerveโ:3 N โถ โ Pr(
+)
N(ฮ) = โ[i(โ), ฮ]
3Circulated by S. Awodey in 2015. 13 / 26
to warm up, we proved canonicity for XTT using a cubical gluing technique (independently proposed by Awodey). Let โก+ be the completion of โก with an initial object (i.e. constrained dimension contexts); โ is the (fibered) category
โ
โก+
u
โก+
i
idโก+ the splitting of u interprets dimension substitutions, as well as โrelatively terminalโ contexts i(ฮจ) โถ โ for each ฮจ โถ โก+. we further obtain a โnerveโ:3 N โถ โ Pr(
+)
N(ฮ) = โ[i(โ), ฮ]
3Circulated by S. Awodey in 2015. 13 / 26
to warm up, we proved canonicity for XTT using a cubical gluing technique (independently proposed by Awodey). Let โก+ be the completion of โก with an initial object (i.e. constrained dimension contexts); โ is the (fibered) category
โ
โก+
u
โก+
i
idโก+ the splitting of u interprets dimension substitutions, as well as โrelatively terminalโ contexts i(ฮจ) โถ โ for each ฮจ โถ โก+. we further obtain a โnerveโ:3 N โถ โ Pr(โก+) N(ฮ) = โ[i(โ), ฮ]
3Circulated by S. Awodey in 2015. 13 / 26
by gluing the codomain fibration along โ Pr(โก+)
N
, we obtain a category of cubical logical families (proof-relevant Kripke logical predicates):
ฬ โ
Pr(โก+)๐ Pr(โก+)
โ
cod N idea: lit the XTT-algebra structure from โ to ฬ
โ, yielding canonicity at base
type for any representative of the initial XTT-algebra โ.
14 / 26
by gluing the codomain fibration along โ Pr(โก+)
N
, we obtain a category of cubical logical families (proof-relevant Kripke logical predicates):
ฬ โ
Pr(โก+)๐ Pr(โก+)
โ
cod N idea: lit the XTT-algebra structure from โ to ฬ
โ, yielding canonicity at base
type for any representative of the initial XTT-algebra โ.
14 / 26
by gluing the codomain fibration along โ Pr(โก+)
N
, we obtain a category of cubical logical families (proof-relevant Kripke logical predicates):
ฬ โ
Pr(โก+)๐ Pr(โก+)
โ
cod N idea: lit the XTT-algebra structure from โ to ฬ
โ, yielding canonicity at base
type for any representative of the initial XTT-algebra โ.
14 / 26
15 / 26
[ABCFHL] Carlo Angiuli, Guillaume Brunerie, Thierry Coquand, Kuen-Bang Hou (Favonia), Robert Harper, and Daniel R. Licata. โSyntax and Models
https://github.com/dlicata335/cart-cube (cit. on pp. 22, 27). [ACD08] Andreas Abel, Thierry Coquand, and Peter Dybjer. โOn the Algebraic Foundation of Proof Assistants for Intuitionistic Type Theoryโ. In: Functional and Logic Programming. Ed. by Jacques Garrigue and Manuel V. Hermenegildo. Berlin, Heidelberg: Springer Berlin Heidelberg, 2008, pp. 3โ13. isbn: 978-3-540-78969-7 (cit. on
[AFH17] Carlo Angiuli, Kuen-Bang Hou (Favonia), and Robert Harper. Computational Higher Type theory III: Univalent Universes and Exact
16 / 26
[AK16a] Thorsten Altenkirch and Ambrus Kaposi. โNormalisation by Evaluation for Dependent Typesโ. In: 1st International Conference on Formal Structures for Computation and Deduction (FSCD 2016).
International Proceedings in Informatics (LIPIcs). Dagstuhl, Germany: Schloss DagstuhlโLeibniz-Zentrum fuer Informatik, 2016, 6:1โ6:16. isbn: 978-3-95977-010-1. doi: 10.4230/LIPIcs.FSCD.2016.6. [AK16b] Thorsten Altenkirch and Ambrus Kaposi. โType Theory in Type Theory Using Quotient Inductive Typesโ. In: Proceedings of the 43rd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages. POPL โ16. St. Petersburg, FL, USA: ACM, 2016, pp. 18โ29. isbn: 978-1-4503-3549-2. doi: 10.1145/2837614.2837638.
17 / 26
[AM06] Thorsten Altenkirch and Conor McBride. Towards Observational Type Theory. 2006. url: www.strictlypositive.org/ott.pdf (cit. on pp. 11โ16). [AMB13] Guillaume Allais, Conor McBride, and Pierre Boutillier. โNew Equations for Neutral Terms: A Sound and Complete Decision Procedure, Formalizedโ. In: Proceedings of the 2013 ACM SIGPLAN Workshop on Dependently-typed Programming. DTP โ13. Boston, Massachusetts, USA: ACM, 2013, pp. 13โ24. isbn: 978-1-4503-2384-0. doi: 10.1145/2502409.2502411. [AMS07] Thorsten Altenkirch, Conor McBride, and Wouter Swierstra. โObservational Equality, Now!โ In: Proceedings of the 2007 Workshop on Programming Languages Meets Program Verification. PLPV โ07. Freiburg, Germany: ACM, 2007, pp. 57โ68. isbn: 978-1-59593-677-6 (cit. on pp. 11โ16).
18 / 26
[Awo18] Steve Awodey. โNatural models of homotopy type theoryโ. In: Mathematical Structures in Computer Science 28.2 (2018),
[BD08] Alexandre Buisse and Peter Dybjer. โTowards formalizing categorical models of type theory in type theoryโ. In: Electronic Notes in Theoretical Computer Science 196 (2008), pp. 137โ151. [Car86] John Cartmell. โGeneralised algebraic theories and contextual categoriesโ. In: Annals of Pure and Applied Logic 32 (1986),
[CCD17] Simon Castellan, Pierre Clairambault, and Peter Dybjer. โUndecidability of Equality in the Free Locally Cartesian Closed Category (Extended version)โ. In: Logical Methods in Computer Science 13.4 (2017).
19 / 26
[CCHM17] Cyril Cohen, Thierry Coquand, Simon Huber, and Anders Mรถrtberg. โCubical Type Theory: a constructive interpretation of the univalence axiomโ. In: IfCoLog Journal of Logics and their Applications 4.10 (Nov. 2017), pp. 3127โ3169. url: http://www. collegepublications.co.uk/journals/ifcolog/?00019. [CFM18] James Chapman, Fredrik Nordvall Forsberg, and Conor McBride. โThe Box of Delights (Cubical Observational Type Theory)โ. Unpublished note. Jan. 2018. url: https://github.com/msp-strath/platypus/blob/ master/January18/doc/CubicalOTT/CubicalOTT.pdf (cit. on p. 22).
20 / 26
[CHS19] Thierry Coquand, Simon Huber, and Christian Sattler. โHomotopy canonicity for cubical type theoryโ. In: Proceedings of the 4th International Conference on Formal Structures for Computation and Deduction (FSCD 2019). Ed. by Herman Geuvers. Vol. 131. 2019 (cit. on
[Coq17] Thierry Coquand. Universe of Bishop sets. Feb. 2017. url: http://www.cse.chalmers.se/~coquand/bishop.pdf (cit. on p. 22). [Coq18] Thierry Coquand. Canonicity and normalization for Dependent Type
[Fio02] Marcelo Fiore. โSemantic Analysis of Normalisation by Evaluation for Typed Lambda Calculusโ. In: Proceedings of the 4th ACM SIGPLAN International Conference on Principles and Practice of Declarative
isbn: 1-58113-528-9. doi: 10.1145/571157.571161.
21 / 26
[Hub18] Simon Huber. โCanonicity for Cubical Type Theoryโ. In: Journal of Automated Reasoning (June 13, 2018). issn: 1573-0670. doi: 10.1007/s10817-018-9469-1. [JT93] Achim Jung and Jerzy Tiuryn. โA new characterization of lambda definabilityโ. In: Typed Lambda Calculi and Applications. Ed. by Marc Bezem and Jan Friso Groote. Berlin, Heidelberg: Springer Berlin Heidelberg, 1993, pp. 245โ257. isbn: 978-3-540-47586-6. [KHS19] Ambrus Kaposi, Simon Huber, and Christian Sattler. โGluing for type theoryโ. In: Proceedings of the 4th International Conference on Formal Structures for Computation and Deduction (FSCD 2019).
[KKA19] Ambrus Kaposi, Andrรกs Kovรกcs, and Thorsten Altenkirch. โConstructing Quotient Inductive-inductive Typesโ. In: Proc. ACM
10.1145/3290315.
22 / 26
[ML75a] Per Martin-Lรถf. โAbout Models for Intuitionistic Type Theories and the Notion of Definitional Equalityโ. In: Proceedings of the Third Scandinavian Logic Symposium. Ed. by Stig Kanger. Vol. 82. Studies in Logic and the Foundations of Mathematics. Elsevier, 1975,
[ML75b] Per Martin-Lรถf. โAn Intuitionistic Theory of Types: Predicative Partโ. In: Logic Colloquium โ73. Ed. by H. E. Rose and J. C. Shepherdson.
Elsevier, 1975, pp. 73โ118. doi: 10.1016/S0049-237X(08)71945-1. [MS93] John C. Mitchell and Andre Scedrov. โNotes on sconing and relatorsโ. In: Computer Science Logic. Ed. by E. Bรถrger, G. Jรคger,
Springer Berlin Heidelberg, 1993, pp. 352โ378. isbn: 978-3-540-47890-4.
23 / 26
[SAG19] Jonathan Sterling, Carlo Angiuli, and Daniel Gratzer. โCubical Syntax for Reflection-Free Extensional Equalityโ. In: Proceedings of the 4th International Conference on Formal Structures for Computation and Deduction (FSCD 2019). Ed. by Herman Geuvers. Vol. 131. 2019. doi: 10.4230/LIPIcs.FSCD.2019.32. arXiv: 1904.08562 (cit. on
[Shu06] Michael Shulman. Scones, Logical Relations, and Parametricity.
2013/04/scones_logical_relations_and_p.html. [Shu15] Michael Shulman. โUnivalence for inverse diagrams and homotopy canonicityโ. In: Mathematical Structures in Computer Science 25.5 (2015), pp. 1203โ1277. doi: 10.1017/S0960129514000565 (cit. on
[SS18] Jonathan Sterling and Bas Spitters. Normalization by gluing for free
๐-theories. Sept. 2018. arXiv: 1809.08646 [cs.LO].
24 / 26
[Ste18] Jonathan Sterling. Algebraic Type Theory and Universe Hierarchies.
[Str91] Thomas Streicher. Semantics of Type Theory: Correctness, Completeness, and Independence Results. Cambridge, MA, USA: Birkhauser Boston Inc., 1991. isbn: 0-8176-3594-7. [Str94] Thomas Streicher. Investigations Into Intensional Type Theory. Habilitationsschrit, Universitรคt Mรผnchen. 1994. [Str98] Thomas Streicher. โCategorical intuitions underlying semantic normalisation proofsโ. In: Preliminary Proceedings of the APPSEM Workshop on Normalisation by Evaluation. Ed. by O. Danvy and
[Uem19] Taichi Uemura. A General Framework for the Semantics of Type
25 / 26
[Voe16] Vladimir Voevodsky. Mathematical theory of type theories and the initiality conjecture. Research proposal to the Templeton Foundation for 2016-2019, project description. Apr. 2016. url: http://www.math.ias.edu/Voevodsky/other/Voevodsky% 20Templeton%20proposal.pdf.
26 / 26