Unfolding FOLDS
Matthew Weaver and Dimitris Tsementzis
Princeton Rutgers
HoTT/UF Workshop
- Sept. 9, 2017
Unfolding FOLDS HoTT/UF Workshop Sept. 9, 2017 Matthew Weaver and - - PowerPoint PPT Presentation
Unfolding FOLDS HoTT/UF Workshop Sept. 9, 2017 Matthew Weaver and Dimitris Tsementzis Princeton Rutgers The Syntax of Syntax Type theory has a rich syntax which is why we love it! and is also what makes everything di ffi
Matthew Weaver and Dimitris Tsementzis
Princeton Rutgers
HoTT/UF Workshop
2
construct in the metatheory, but not internally
metatheory
and preserves logical consistency
3
Tactic languages in proof assistants:
5
6
Generic programming over datatypes:
7
Reflection of abstract syntax:
8
Classical mathematics:
that can break its good properties
9
manipulate and interpret (some of) its own syntax
type of semi-simplicial types
semantics of reflection in type theory
10
tetrahedron made from 4 triangles, etc…
11
there is a type T₁ x y of lines between x and y
lines a : T₁ x y, b : T₁ y z and c : T₁ x z, there is a type T₂ a b c of triangles outlined by a, b and c
12
Σ T₀ : Type, Σ T₁ : (Π x y : T₀, Type), Σ (T₂ : Π (x y z : T₀) (a : T₁ x y) (b : T₁ y z) (c : T₁ x z), Type), etc…
13
given by ΣT₀, ΣT₁, …, Tₙ
the homotopy limit of sstₙ over n : ℕ [ACS15]
syntax where where πₙ is the obvious projection from sstₙ₊₁ to sstₙ:
14
X
(x:Π(n:N)sstn)
Y
(n:N)
πnxn+1 = xn
truncated semi-simplicial type proves challenging:
equalities on terms of arbitrary types…
equalities of terms of arbitrary types…
proofs of equalities of terms of arbitrary types…
15
be indexed by elements of other sorts (i.e. dependent types)
(equivalently a Finite Inverse Category)
O : Sort A : O × O → Sort I : Π x : O, A x x → Sort
signature with a sort for each dimension
16
17
following:
sort by its dependencies
18
Cat ≔ O : ∙, A : (c : O, d : O), I : (x : O, i : A x x)
following:
sort by its dependencies
type theory in type theory [AK16]
19
following:
sort by its dependencies
20
I(Γ₀, Γ₁, …, Γₙ) ≔ Σ(T₀:⟦Γ₀⟧→Type), Σ(T₁:⟦Γ₁⟧→Type), …, ⟦Γₙ⟧→Type
21
Cat ≔ O : ∙, A : (c : O, d : O), I : (x : O, i : A x x) I(Cat) ≔ Σ(O : Type), Σ(A : O × O → Type), (Σ(x : O), A(x, x)) → Type
I(Γ₀, Γ₁, …, Γₙ) ≔ Σ(T₀:⟦Γ₀⟧→Type), Σ(T₁:⟦Γ₁⟧→Type), …, ⟦Γₙ⟧→Type
simplicial type leveraging the strictness of Sig and Ctx
22
X
(x:Π(n:N)sstn)
Y
(n:N)
πnxn+1 = xn
types corresponding to well-formed FOLDS signatures
the types they represent
never encode actual terms
23
type U along with a decode function el : U → Type
universe!
25
with families (CwF) is a model of type theory with contexts given by 𝒟 described by the following data:
well-formed types in context Γ
all well-typed terms of type A in context Γ
26
Tm : ∫Tyᵒᵖ → Set. A universe is given by
and the action of morphisms on the UΓ is given by U
in Paolo’s thesis [Cap17]
27
second universe with a strict equality on its codes of types, it doesn’t provide a way to model strictness on (representations of) terms
their strictness
29
(∫Uᵒᵖ → Set) → (∫Tyᵒᵖ → Set) induced by el
Tm(Γ, AΓ) = R(Γ, A)
30
theory with reflection
(yet) generalized in semantics I’ve proposed
reflection of abstract syntax in (univalent) type theory?
31
adds a second univalent universe that decodes into MLTT
with axiom-K, and the one used to decode the equality
decodes into HoTT
32
semi-simplicial types
semi-simplicial types and only have one notion of equality
reflection makes any sense
33
are easy!
interesting and possible
34
[ACK16] Thorsten Altenkirch, Paolo Capriotti, and Nicolai Kraus, Extending homotopy type theory with strict equality, 25th EACSL Annual Conference on Computer Science Logic 21 (2016), 1–17. [ACK17] Danil Annenkov, Paolo Capriotti, and Nicolai Kraus, Two-level type theory and applications, arXiv preprint arXiv:1705.03307 (2017). [ACS15] Benedikt Ahrens, Paolo Capriotti, and Régis Spadotti, Non-wellfounded trees in homotopy type theory, arXiv preprint arXiv:1504.02949 (2015). [AK16] Thorsten Altenkirch and Ambrus Kaposi, Type theory in type theory using quotient inductive types, ACM SIGPLAN Notices 51 (2016), no. 1, 18–29. [Cap17] Paolo Capriotti, Models of Type Theory with Strict Equality, PhD Thesis (2017). [Her15] Hugo Herbelin, A dependently-typed construction of semi-simplicial types, Mathematical Structures in Computer Science 25 (2015), no. 5, 1116–1131. [TW17] Dimitris Tsementzis and Matthew Weaver, Finite Inverse Categories as Dependently Typed Signatures, arXiv preprint arXiv:1707.07339 (2017).
35
Matthew Weaver and Dimitris Tsementzis
Princeton Rutgers
HoTT/UF Workshop