A model of PCF in Guarded Type Theory
Marco Paviotti1 Rasmus Møgelberg1 Lars Birkedal2
1IT University of Copenhagen 2Aarhus University
June 23th, 2015 MFPS 2015 Nijmegen, Netherlands
1 / 20
A model of PCF in Guarded Type Theory Marco Paviotti 1 Rasmus - - PowerPoint PPT Presentation
A model of PCF in Guarded Type Theory Marco Paviotti 1 Rasmus Mgelberg 1 Lars Birkedal 2 1 IT University of Copenhagen 2 Aarhus University June 23th, 2015 MFPS 2015 Nijmegen, Netherlands 1 / 20 Guarded Type Theory Birkedal and Mgelberg
1IT University of Copenhagen 2Aarhus University
1 / 20
Birkedal and Møgelberg ’12
e.g. fix(id) : A leads to every type to be inhabited
s.t. f (next(fix(f ))) = fix(f )
2 / 20
Birkedal and Møgelberg ’12
e.g. fix(id) : A leads to every type to be inhabited
s.t. f (next(fix(f ))) = fix(f )
2 / 20
3 / 20
A ∼
A
A → Strg A
A → A
A → ⊲ Strg A
A
A
A
3 / 20
Birkedal and Møgelberg ’12
A ∼
A
A
A
A
4 / 20
5 / 20
+ Model of PCF in GTT + Adequacy Theorem proved in GTT
1M.H. Escardo, “A metric model of PCF”. Presented at the Workshop on
Realizability Semantics and Applications, 1999
5 / 20
6 / 20
7 / 20
8 / 20
explicit step counting
8 / 20
explicit step counting Predicates on values can define M ⇓k v as M ⇓k λv′.v = v′
8 / 20
explicit step counting Predicates on values can define M ⇓k v as M ⇓k λv′.v = v′
8 / 20
explicit step counting Predicates on values can define M ⇓k v as M ⇓k λv′.v = v′
8 / 20
explicit step counting Predicates on values can define M ⇓k v as M ⇓k λv′.v = v′
8 / 20
explicit step counting Predicates on values can define M ⇓k v as M ⇓k λv′.v = v′ Synchronising with the type theory
8 / 20
∗ be the reflexive, transitive closure of →0.
∗ N and Q(N)
∗ M′
9 / 20
10 / 20
1Venanzio Capretta, “General Recursion via Co-Inductive Types”, In Logical
Methods in Computer Science, 2005
11 / 20
12 / 20
13 / 20
can be thought of
13 / 20
13 / 20
14 / 20
if M(∗) = δk v(∗) then M ⇓k v
15 / 20
∗ M′
16 / 20
∗ M′
LN ∼ = N + ⊲LN an element in this type is ei- ther of the form η(v) or θnat(r)
16 / 20
∗ M′
Delayed Relation ⊲R t ⊲Rnat u delayed version of R
16 / 20
∗ M′
16 / 20
17 / 20
18 / 20
19 / 20
19 / 20
19 / 20
19 / 20
We presented a model for PCF that is adequate w.r.t. the operational semantics. The work has been carried out entirely in guarded type theory:
with the time steps in the type theory
Future work
20 / 20
We presented a model for PCF that is adequate w.r.t. the operational semantics. The work has been carried out entirely in guarded type theory:
with the time steps in the type theory
Future work
20 / 20