Κατέβασμα παρουσίασης
Η παρουσίαση φορτώνεται. Παρακαλείστε να περιμένετε
ΔημοσίευσεΣώστρατος Γεωργίου Τροποποιήθηκε πριν 6 χρόνια
1
Alexander J Summers Department of Computing Imperial College London
νλμ : A Curry-Howard Correspondence for a Canonical Classical Natural Deduction Alexander J Summers Department of Computing Imperial College London Set context of work/intro
2
Objectives Investigate computational content of Gentzen’s classical natural deduction Aim to faithfully inhabit the original logic Based on an adequate set of logical connectives Define reductions encompassing existing work Aim for the simulation of existing control operators Cut Elimination for classical sequent calculus Has well-understood and accepted reduction rules Reach something as general as cut elimination Adapt the λμ-calculus of Parigot to these aims What we’re going to talk about the effect of different connectives on term calculi Write this at the end, when all other slides are done.#
3
Extending λμ-calculus
Γ, x:A ⊢ x : A | Δ Γ, x:A ⊢ M : B | Δ Γ ⊢ N : A | Δ Γ ⊢ λx.M : A→B | Δ Γ ⊢ [α]N : | α:A, Δ Γ ⊢ M : A→B | Δ Γ ⊢ N : A | Δ Γ ⊢ M : | α:A, Δ Γ ⊢ (M N) : B | Δ Γ ⊢ μα.M : A | Δ
4
Extending λμ-calculus
Γ, x:A ⊢ x : A | Δ Γ, x:A ⊢ M : B | Δ Γ ⊢ N : A | Δ Γ ⊢ λx.M : A→B | Δ Γ ⊢ [α]N : | α:A, Δ Γ ⊢ M : A→B | Δ Γ ⊢ N : A | Δ Γ ⊢ M : | α:A, Δ Γ ⊢ (M N) : B | Δ Γ ⊢ μα.M : A | Δ
5
Extending λμ-calculus
Judgements have multiple conclusions Γ, x:A ⊢ x : A | Δ Γ, x:A ⊢ M : B | Δ Γ ⊢ N : A | Δ Γ ⊢ λx.M : A→B | Δ Γ ⊢ [α]N : | α:A, Δ Γ ⊢ M : A→B | Δ Γ ⊢ N : A | Δ Γ ⊢ M : | α:A, Δ Γ ⊢ (M N) : B | Δ Γ ⊢ μα.M : A | Δ
6
Extending λμ-calculus
Judgements have multiple conclusions Γ, x:A ⊢ x : A | Δ Γ, x:A ⊢ M : B | Δ Γ ⊢ N : A | Δ Γ ⊢ λx.M : A→B | Δ Γ ⊢ [α]N : | α:A, Δ Γ ⊢ M : A→B | Δ Γ ⊢ N : A | Δ Γ ⊢ M : | α:A, Δ Γ ⊢ (M N) : B | Δ Γ ⊢ μα.M : A | Δ
7
Extending λμ-calculus
Judgements have multiple conclusions Parigot: derivations can be transformed Γ, x:A ⊢ x : A | Δ Γ, x:A ⊢ M : B | Δ Γ ⊢ N : A | Δ Γ ⊢ λx.M : A→B | Δ Γ ⊢ [α]N : | α:A, Δ Γ ⊢ M : A→B | Δ Γ ⊢ N : A | Δ Γ ⊢ M : | α:A, Δ Γ ⊢ (M N) : B | Δ Γ ⊢ μα.M : A | Δ
8
Extending λμ-calculus
Judgements have multiple conclusions Parigot: derivations can be transformed Γ, x:A ⊢ x : A | Δ Γ, x:A ⊢ M : B | Δ Γ ⊢ N : A | Δ Γ ⊢ λx.M : A→B | Δ Γ ⊢ [α]N : | α:A, Δ Γ ⊢ M : A→B | Δ Γ ⊢ N : A | Δ Γ ⊢ M : | α:A, Δ Γ ⊢ (M N) : B | Δ Γ ⊢ μα.M : A | Δ
9
Extending λμ-calculus
Judgements have single conclusions Parigot: derivations can be transformed Γ, ¬Δ, x:A ⊢ x : A Γ, x:A ⊢ M : B | Δ Γ ⊢ N : A | Δ Γ ⊢ λx.M : A→B | Δ Γ ⊢ [α]N : | α:A, Δ Γ ⊢ M : A→B | Δ Γ ⊢ N : A | Δ Γ ⊢ M : | α:A, Δ Γ ⊢ (M N) : B | Δ Γ ⊢ μα.M : A | Δ
10
Extending λμ-calculus
Judgements have single conclusions Γ, ¬Δ, x:A ⊢ x : A Γ, x:A ⊢ M : B | Δ Γ ⊢ N : A | Δ Γ ⊢ λx.M : A→B | Δ Γ ⊢ [α]N : | α:A, Δ Γ ⊢ M : A→B | Δ Γ ⊢ N : A | Δ Γ ⊢ M : | α:A, Δ Γ ⊢ (M N) : B | Δ Γ ⊢ μα.M : A | Δ
11
Extending λμ-calculus
Γ, ¬Δ, x:A ⊢ x : A Γ, x:A ⊢ M : B | Δ Γ ⊢ N : A | Δ Γ ⊢ λx.M : A→B | Δ Γ ⊢ [α]N : | α:A, Δ Γ ⊢ M : A→B | Δ Γ ⊢ N : A | Δ Γ ⊢ M : | α:A, Δ Γ ⊢ (M N) : B | Δ Γ ⊢ μα.M : A | Δ
12
Extending λμ-calculus
Γ, ¬Δ, x:A ⊢ x : A Γ, x:A ⊢ M : B | Δ Γ ⊢ N : A | Δ Γ ⊢ λx.M : A→B | Δ Γ ⊢ [α]N : | α:A, Δ Γ ⊢ M : A→B | Δ Γ ⊢ N : A | Δ Γ ⊢ M : | α:A, Δ Γ ⊢ (M N) : B | Δ Γ ⊢ μα.M : A | Δ
13
Extending λμ-calculus
Γ, ¬Δ, x:A ⊢ x : A Γ, ¬Δ, x:A ⊢ M : B Γ, ¬Δ ⊢ N : A Γ, ¬Δ ⊢ λx.M : A→B Γ, ¬Δ, α: ¬A ⊢ [α]N : Γ, ¬Δ ⊢ M : A→B Γ, ¬Δ ⊢ N : A Γ, ¬Δ, α: ¬A ⊢ M : Γ, ¬Δ ⊢ (M N) : B Γ, ¬Δ ⊢ μα.M : A
14
Extending λμ-calculus
Γ, ¬Δ, x:A ⊢ x : A Γ, ¬Δ, x:A ⊢ M : B Γ, ¬Δ ⊢ N : A Γ, ¬Δ ⊢ λx.M : A→B Γ, ¬Δ, α: ¬A ⊢ [α]N : Γ, ¬Δ ⊢ M : A→B Γ, ¬Δ ⊢ N : A Γ, ¬Δ, α: ¬A ⊢ M : Γ, ¬Δ ⊢ (M N) : B Γ, ¬Δ ⊢ μα.M : A
15
Extending λμ-calculus
Greek ‘special’ assumptions are restricted Γ, ¬Δ, x:A ⊢ x : A Γ, ¬Δ, x:A ⊢ M : B Γ, ¬Δ ⊢ N : A Γ, ¬Δ ⊢ λx.M : A→B Γ, ¬Δ, α: ¬A ⊢ [α]N : Γ, ¬Δ ⊢ M : A→B Γ, ¬Δ ⊢ N : A Γ, ¬Δ, α: ¬A ⊢ M : Γ, ¬Δ ⊢ (M N) : B Γ, ¬Δ ⊢ μα.M : A
16
Extending λμ-calculus
Greek ‘special’ assumptions are restricted Idea: merge the two alphabets Γ, ¬Δ, x:A ⊢ x : A Γ, ¬Δ, x:A ⊢ M : B Γ, ¬Δ ⊢ N : A Γ, ¬Δ ⊢ λx.M : A→B Γ, ¬Δ, α: ¬A ⊢ [α]N : Γ, ¬Δ ⊢ M : A→B Γ, ¬Δ ⊢ N : A Γ, ¬Δ, α: ¬A ⊢ M : Γ, ¬Δ ⊢ (M N) : B Γ, ¬Δ ⊢ μα.M : A
17
Extending λμ-calculus
Greek ‘special’ assumptions are restricted Idea: merge the two alphabets Γ, ¬Δ, x:A ⊢ x : A Γ, ¬Δ, x:A ⊢ M : B Γ, ¬Δ ⊢ N : A Γ, ¬Δ ⊢ λx.M : A→B Γ, ¬Δ, α: ¬A ⊢ [α]N : Γ, ¬Δ ⊢ M : A→B Γ, ¬Δ ⊢ N : A Γ, ¬Δ, α: ¬A ⊢ M : Γ, ¬Δ ⊢ (M N) : B Γ, ¬Δ ⊢ μα.M : A
18
Extending λμ-calculus
Greek ‘special’ assumptions are restricted Idea: merge the two alphabets Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ N : A Γ ⊢ λx.M : A→B Γ, α: ¬A ⊢ [α]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, α: ¬A ⊢ M : Γ ⊢ (M N) : B Γ ⊢ μα.M : A
19
Extending λμ-calculus
Greek ‘special’ assumptions are restricted Idea: merge the two alphabets Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ N : A Γ ⊢ λx.M : A→B Γ, α: ¬A ⊢ [α]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, α: ¬A ⊢ M : Γ ⊢ (M N) : B Γ ⊢ μα.M : A
20
Extending λμ-calculus
Greek ‘special’ assumptions are restricted Idea: merge the two alphabets Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ N : A Γ ⊢ λx.M : A→B Γ, α: ¬A ⊢ [α]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, α: ¬A ⊢ M : Γ ⊢ (M N) : B Γ ⊢ μα.M : A
21
Extending λμ-calculus
Greek ‘special’ assumptions are restricted Idea: merge the two alphabets Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ N : A Γ ⊢ λx.M : A→B Γ, x: ¬A ⊢ [x]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : Γ ⊢ (M N) : B Γ ⊢ μx.M : A
22
Extending λμ-calculus
All assumptions have equal status Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ N : A Γ ⊢ λx.M : A→B Γ, x: ¬A ⊢ [x]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : Γ ⊢ (M N) : B Γ ⊢ μx.M : A
23
Extending λμ-calculus
Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ N : A Γ ⊢ λx.M : A→B Γ, x: ¬A ⊢ [x]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : Γ ⊢ (M N) : B Γ ⊢ μx.M : A
24
Extending λμ-calculus
(Ax) Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ N : A (→I) Γ ⊢ λx.M : A→B Γ, x: ¬A ⊢ [x]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
25
Extending λμ-calculus
(Ax) Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ N : A (→I) ? Γ ⊢ λx.M : A→B Γ, x: ¬A ⊢ [x]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
26
Extending λμ-calculus
Special case of (¬E) (Ax) Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ N : A (→I) Γ ⊢ λx.M : A→B Γ, x: ¬A ⊢ [x]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
27
Extending λμ-calculus
Special case of (¬E) (Ax) Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ x : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [x]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
28
Extending λμ-calculus
Special case of (¬E) First premise must be an axiom (Ax) Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ x : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [x]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
29
Extending λμ-calculus
Special case of (¬E) First premise must be an axiom (Ax) Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ x : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [x]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
30
Extending λμ-calculus
Special case of (¬E) First premise must be an axiom (Ax) Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ x : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [ x ]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
31
Extending λμ-calculus
Special case of (¬E) First premise must be an axiom (Ax) Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ x : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [ x ]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
32
Extending λμ-calculus
Special case of (¬E) First premise can be any proof (Ax) Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
33
Extending λμ-calculus
(Ax) Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
34
Extending λμ-calculus
(Ax) Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
35
Extending λμ-calculus
(Ax) Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
36
Extending λμ-calculus
(Ax) Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
37
Extending λμ-calculus
The rule (¬I) is entirely missing (Ax) Γ, x:A ⊢ x : A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
38
Extending λμ-calculus
Γ, x:A ⊢ M : (Ax) (¬I) Γ, x:A ⊢ x : A Γ ⊢ νx.M : ¬A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
39
Extending λμ-calculus
Γ, x:A ⊢ M : (Ax) (¬I) Γ, x:A ⊢ x : A Γ ⊢ νx.M : ¬A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
40
Extending λμ-calculus
Γ, x:A ⊢ M : (Ax) (¬I) Γ, x:A ⊢ x : A Γ ⊢ νx.M : ¬A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
41
Extending λμ-calculus
Γ, x:A ⊢ M : (Ax) (¬I) Γ, x:A ⊢ x : A Γ ⊢ νx.M : ¬A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
42
Extending λμ-calculus
Γ, x:A ⊢ M : (Ax) (¬I) Γ, x:A ⊢ x : A Γ ⊢ νx.M : ¬A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
43
Extending λμ-calculus
Classical Natural Deduction Γ, x:A ⊢ M : (Ax) (¬I) Γ, x:A ⊢ x : A Γ ⊢ νx.M : ¬A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
44
The νλμ-calculus Γ, x:A ⊢ M : Γ, x:A ⊢ x : A Γ ⊢ νx.M : ¬A
(¬I) Γ, x:A ⊢ x : A Γ ⊢ νx.M : ¬A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
45
The νλμ-calculus The νλμ-calculus Γ, x:A ⊢ M : Γ, x:A ⊢ x : A
(¬I) Γ, x:A ⊢ x : A Γ ⊢ νx.M : ¬A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
46
Important features The νλμ-calculus Γ, x:A ⊢ M : Γ, x:A ⊢ x : A
Γ ⊢ νx.M : ¬A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
47
Important features The νλμ-calculus Γ, x:A ⊢ M : Γ, x:A ⊢ x : A
Γ ⊢ νx.M : ¬A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
48
Important features The νλμ-calculus Γ, x:A ⊢ M : Γ, x:A ⊢ x : A
Γ ⊢ νx.M : ¬A Γ, x:A ⊢ M : B Γ ⊢ M : ¬A Γ ⊢ N : A (→I) (¬E) Γ ⊢ λx.M : A→B Γ ⊢ [M]N : Γ ⊢ M : A→B Γ ⊢ N : A Γ, x: ¬A ⊢ M : (→E) (PC) Γ ⊢ (M N) : B Γ ⊢ μx.M : A
49
Important features νx.M ¬A [M]N μx.M
50
Important features νx.M ¬A [M]N μx.M
51
Important features νx.M ¬A [M]N μx.M
52
Important features ¬A νx.M [M]N μx.M
53
Important features ¬A νx.M [M]N μx.M
54
Important features ¬A νx.M [M]N μx.M
55
Important features ¬A νx.M [M]N μx.M
56
Important features ¬A νx.M [M]N μx.M
57
Important features ¬A νx.M [M]N μx.M
58
Important features ¬A νx.M [M]N μx.M
59
Important features ¬A νx.M [M]N μx.M
60
Important features ¬A νx.M [M]N μx.M
61
Important features ¬A νx.M [M]N μx.M
62
Important features ¬A νx.M [M]N μx.M
63
Important features ¬A νx.M [M]N μx.M
64
Important features - bottom type represents ‘no output’
¬A - negated type for continuation with input of type A νx.M - terms to explicitly represent continuations Informally, terms which consume an input but produce no output [M]N - continuation application Pass the argument N to the continuation M μx.M - control operator Capture the surrounding ‘context’ and bind it to x What about reductions? Many alternative ideas exist, particularly for the μ-bound terms Identify a common theme, and generalise the existing work ¬A νx.M [M]N μx.M
65
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Γ ⊢ μx.M : A Γ, x: ¬A ⊢ M : (PC)
66
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Γ ⊢ μx.M : A Γ, x: ¬A ⊢ M : (PC)
67
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Γ ⊢ μx.M : A Γ, x: ¬A ⊢ M : (PC)
68
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ ⊢ μx.M : A Γ, x: ¬A ⊢ M : (PC)
69
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ ⊢ μx.M : A Γ, x: ¬A ⊢ M : (PC) μx.M : A
70
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A μx.M : A μx.M
71
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A μx.M : A μx.M
72
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A μx.M : A μx.M
73
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A μx.M : A μx.M
74
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A μx.M : A μx.M
75
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A μx.M : A μx.M
76
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A μx.M : A μx.M
77
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A μx.M : A μx.M
78
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A μx.M : A μx.M
79
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A μx.M : A μx.M
80
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A μx.M : A μx.M
81
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A μx.M : A μx.M
82
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A μx.M : A
83
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A z : A
84
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A Γ, x: ¬A ⊢ M : (PC) νz. Γ ⊢ μx.M : A z : A : ¬A
85
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A Γ, x: ¬A ⊢ M : (PC) νz. Γ ⊢ μx.M : A z : A : ¬A
86
μ reductions.. General idea: μ-bound terms consume their contexts
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A Γ, x: ¬A ⊢ M : (PC) νz. Γ ⊢ μx.M : A z : A : ¬A
87
μ reductions.. General idea: μ-bound terms consume their contexts.
Recall the typing rule: Find a term of type ¬A Substitute the term for x Term of type ¬A is a continuation with a ‘hole’ of type A Any context around μx.M must have a ‘hole’ of type A Γ, x: ¬A ⊢ M : (PC) Γ ⊢ μx.M : A Γ, x: ¬A ⊢ M : (PC) νz. Γ ⊢ μx.M : A z : A : ¬A
88
Ec{μx.M} → M< νz.Ec{z} / x >
μ reductions.. More formally, using a special kind of context Ec Ec{μx.M} → M< νz.Ec{z} / x > This behaviour can be broken down into ‘local’ rules The reductions are non-confluent, e.g., No obvious reason to choose one over the other Natural non-confluence, as in the sequent calculus [μx.M]μy.N M< νz.[z]μy.N / x > M< νz.[μx.M]z / x >
89
Control operators Griffin: C operator for double-negation elimination
Compare terms inhabiting double-negation elimination (DNE) Parigot: λy.μα.[γ](y (λx.μδ.[α]x)) Bierman/Py: λy.μα.(y (λx.[α]x)) νλμ calculus: λy.μx.[y]x The μ-binding construct provides delimited control Delimited by continuation applications [M]N Behaviour is related to the F operator of Felleisen We argue that F is ‘better’ than C for DNE
90
Cut Elimination and Classical Sequent Calculus
Classical Cut Elimination: well-known reductions Term calculi built on this notion of reduction X [vanBakel et.al.], Dual [Wadler], λμμ [Ariola&Herbelin] Unrestricted reductions are non-confluent We give an injective encoding of λμμ in νλμ calculus Reductions are preserved Typings are preserved (in both directions) Result depends on general μ reductions, plus a generalised β rule (see paper) First encoding of general classical cut elimination into a natural deduction paradigm (?) - ~ - ~
91
Conclusions Aim to faithfully inhabit the original logic
Aim for a set of reductions encompassing existing work Aim for the simulation of existing control operators Another yardstick: classical sequent calculus Has fairly well-understood and accepted reduction rules Aim to be able to encode, and simulate these The νλμ calculus manages all of this
92
Future Work Strong Normalisation proof
Adapt symmetric reducibility candidates But still hard, due to general reductions ‘Inverse’ encoding back to sequent calculus Some reductions harder to preserve than others Understand what these mean for the sequent calculus Confluent sub-systems of νλμ how does CBN differ from Parigot’s λμ ? how does CBV differ from Ong and Stewart’s CBV λμ ? Further comparison with delimited control operators Similar to work of Herbelin et. al.
93
More Details
94
More Details (don’t panic)
Coming soon to a thesis near you Also, there’s a paper on my web page google for “Alexander J Summers” Thank you for listening
Παρόμοιες παρουσιάσεις
© 2024 SlidePlayer.gr Inc.
All rights reserved.