No solvable lambda-value term left behind erez and Pablo Nogueira - - PowerPoint PPT Presentation

no solvable lambda value term left behind
SMART_READER_LITE
LIVE PREVIEW

No solvable lambda-value term left behind erez and Pablo Nogueira - - PowerPoint PPT Presentation

No solvable lambda-value term left behind erez and Pablo Nogueira Alvaro Garc a P Reykjavik University IMDEA Software Institute ICE-TCS Theory Week, May 27th 2016 1 / 13 Computable functions and pure lambda calculus f N N f = {


slide-1
SLIDE 1

No solvable lambda-value term left behind

Alvaro Garc´ ıa P´ erez and Pablo Nogueira

Reykjavik University IMDEA Software Institute

ICE-TCS Theory Week, May 27th 2016

1 / 13

slide-2
SLIDE 2

Computable functions and pure lambda calculus

f ∈ N → N f = { (0, 0), (1, 2), (2, 4), (3, 6), (4, 8), . . . } f = { (x, y) | y = x + x } f (x) = x + x

2 / 13

slide-3
SLIDE 3

Computable functions and pure lambda calculus

M, N ::= x | λx.M | M N f ∈ N → N f = { (0, 0), (1, 2), (2, 4), (3, 6), (4, 8), . . . } f = { (x, y) | y = x + x } f (x) = x + x f ≡ λx. ADD x x

2 / 13

slide-4
SLIDE 4

Computable functions and pure lambda calculus

M, N ::= x | λx.M | M N f ∈ N → N f = { (0, 0), (1, 2), (2, 4), (3, 6), (4, 8), . . . } f = { (x, y) | y = x + x } f (x) = x + x f ≡ λx. ADD x x ((ADD x1) ≡ g where g(x2) = x1 + x2)

2 / 13

slide-5
SLIDE 5

Computable functions and pure lambda calculus

M, N ::= x | λx.M | M N f ∈ N → N f = { (0, 0), (1, 2), (2, 4), (3, 6), (4, 8), . . . } f = { (x, y) | y = x + x } f (x) = x + x f ≡ λx. ADD x x ((ADD x1) ≡ g where g(x2) = x1 + x2) f (2) ≡ (λx.ADD x x) TWO − → ADD TWO TWO − → . . .

2 / 13

slide-6
SLIDE 6

Computable functions and pure lambda calculus

M, N ::= x | λx.M | M N f ∈ N → N f = { (0, 0), (1, 2), (2, 4), (3, 6), (4, 8), . . . } f = { (x, y) | y = x + x } f (x) = x + x f ≡ λx. ADD x x ((ADD x1) ≡ g where g(x2) = x1 + x2) f ≡ λx. MULT x TWO f ≡ λx. SUBS (MULT (ADD x ONE) TWO) TWO f (2) ≡ (λx.ADD x x) TWO − → ADD TWO TWO − → . . .

2 / 13

slide-7
SLIDE 7

I is λx. x I M − → M K is λx. λy. x K M N − → (λy.M)N − → M ∆ is λx. x x ∆ M − → M M Ω is ∆ ∆ is (λx. x x)(λx. x x) Ω − → Ω − → Ω − → . . .

3 / 13

slide-8
SLIDE 8

Reduction in λ

(λx.B) N − → [N/x]B

(β)

4 / 13

slide-9
SLIDE 9

Reduction in λ

(λx.B) N − → [N/x]B

(β)

M − → M′ M N − → M′ N N − → N′ M N − → M N′ B − → B′ λx.B − → λx.B′

4 / 13

slide-10
SLIDE 10

Reduction in λ

(λx.B) N − → [N/x]B

(β)

M − → M′ M N − → M′ N N − → N′ M N − → M N′ B − → B′ λx.B − → λx.B′ M − → M M − → N N − → P M − → P

4 / 13

slide-11
SLIDE 11

Reduction in λ

(λx.B) N − → [N/x]B

(β)

M − → M′ M N − → M′ N N − → N′ M N − → M N′ B − → B′ λx.B − → λx.B′ M − → M M − → N N − → P M − → P M is a normal form : no (λx.B)N subterm in M M has normal form : M − → Z and Z is a normal form

4 / 13

slide-12
SLIDE 12

Reduction in λ

(λx.B) N − → [N/x]B

(β)

M − → M′ M N − → M′ N N − → N′ M N − → M N′ B − → B′ λx.B − → λx.B′ M − → M M − → N N − → P M − → P M is a normal form : no (λx.B)N subterm in M M has normal form : M − → Z and Z is a normal form Z unique

4 / 13

slide-13
SLIDE 13

Conversion in λ

(λx.B) N = [N/x]B

(β)

M = M′ M N = M′ N N = N′ M N = M N′ B = B′ λx.B = λx.B′ M = M M = N N = P M = P M = N N = M M is a normal form : no (λx.B)N subterm in M M has normal form : M = Z and Z is a normal form Z unique : consistent proof theory

4 / 13

slide-14
SLIDE 14

Can all terms without normal form be considered equal?

Ω = λx.x Ω iff Ω (K I) = (λx.x Ω)(K I) iff Ω (K I) = K I Ω iff Ω (K I) = I

5 / 13

slide-15
SLIDE 15

Can all terms without normal form be considered equal?

Ω = λx.x Ω iff Ω (K I) = (λx.x Ω)(K I) iff Ω (K I) = K I Ω iff Ω (K I) = I Adding axioms that equate terms without normal form: inconsistent proof theory!

5 / 13

slide-16
SLIDE 16

Solvability

Definition (Barendregt ’71)

M closed is solvable iff there exist closed operands N1, . . . , Nn with n ≥ 0 s.t. M N1 · · · Nn = Z a normal form.

6 / 13

slide-17
SLIDE 17

Solvability

Definition (Barendregt ’71)

M closed is solvable iff there exist closed operands N1, . . . , Nn with n ≥ 0 s.t. M N1 · · · Nn = Z a normal form. Ω is unsolvable λx.x Ω is solvable

6 / 13

slide-18
SLIDE 18

Solvability

Definition (Barendregt ’71)

M closed is solvable iff there exist closed operands N1, . . . , Nn with n ≥ 0 s.t. M N1 · · · Nn = Z a normal form.

Definition (Wadsworth ’78)

M closed is solvable iff for every term X there exist closed

  • perands N1, . . . , Nn with n ≥ 0 s.t. M N1 · · · Nn = X.

Lemma (Wadsworth ’78)

If T closed has normal form then for every term X there exist X1, . . . , Xk s.t. T X1 · · · Xk = X.

6 / 13

slide-19
SLIDE 19

Solvability

Definition (Barendregt ’71)

M closed is solvable iff there exist closed operands N1, . . . , Nn with n ≥ 0 s.t. M N1 · · · Nn = Z a normal form.

Definition (Wadsworth ’78)

M closed is solvable iff for every term X there exist closed

  • perands N1, . . . , Nn with n ≥ 0 s.t. M N1 · · · Nn = X.

Lemma (Wadsworth ’78)

If T closed has normal form then for every term X there exist X1, . . . , Xk s.t. T X1 · · · Xk = X.

Definition (Barendregt ’84)

M closed is solvable iff there exist closed operands N1, . . . , Nn with n ≥ 0 s.t. M N1 · · · Nn = I.

6 / 13

slide-20
SLIDE 20

Solvability (open terms)

Definition (Wadsworth ’78)

M arbitrary is solvable iff there exists (λx1 . . . xm.[ ])N1 · · · Nn with m, n ≥ 0 s.t. (λx1 . . . xm.[M])N1 · · · Nn = Z a normal form.

7 / 13

slide-21
SLIDE 21

Solvability (open terms)

Definition (Wadsworth ’78)

M arbitrary is solvable iff there exists (λx1 . . . xm.[ ])N1 · · · Nn with m, n ≥ 0 s.t. (λx1 . . . xm.[M])N1 · · · Nn = Z a normal form. x Ω

7 / 13

slide-22
SLIDE 22

Solvability (open terms)

Definition (Wadsworth ’78)

M arbitrary is solvable iff there exists (λx1 . . . xm.[ ])N1 · · · Nn with m, n ≥ 0 s.t. (λx1 . . . xm.[M])N1 · · · Nn = Z a normal form. (λx.[x Ω])(K I)

7 / 13

slide-23
SLIDE 23

Solvability (open terms)

Definition (Wadsworth ’78)

M arbitrary is solvable iff there exists (λx1 . . . xm.[ ])N1 · · · Nn with m, n ≥ 0 s.t. (λx1 . . . xm.[M])N1 · · · Nn = Z a normal form. (λx.[x Ω])(K I) − → K I Ω − → I

7 / 13

slide-24
SLIDE 24

Solvability (open terms)

Definition (Wadsworth ’78)

M arbitrary is solvable iff for all X there exists (λx1 . . . xm.[ ])N1 · · · Nn with m, n ≥ 0 s.t. (λx1 . . . xm.[M])N1 · · · Nn = X. (λx.[x Ω])(K I) − → K I Ω − → I

7 / 13

slide-25
SLIDE 25

Solvability (open terms)

Definition (Wadsworth ’78)

M arbitrary is solvable iff there exists (λx1 . . . xm.[ ])N1 · · · Nn with m, n ≥ 0 s.t. (λx1 . . . xm.[M])N1 · · · Nn = I. (λx.[x Ω])(K I) − → K I Ω − → I

7 / 13

slide-26
SLIDE 26

Operational relevance and effective use

Genericity Lemma (Barendregt ’84)

M unsolvable then ∀C[ ]. C[M] = Z a normal form ⇒ ∀X. C[X] = Z.

8 / 13

slide-27
SLIDE 27

Operational relevance and effective use

Genericity Lemma (Barendregt ’84)

M unsolvable iff ∀C[ ]. C[M] = Z a normal form ⇒ ∀X. C[X] = Z.

8 / 13

slide-28
SLIDE 28

Operational relevance and effective use

Genericity Lemma (Barendregt ’84)

M is solvable iff ∃C[ ]. C[M] = Z a normal form ∧ ¬(∀X. C[X] = Z).

8 / 13

slide-29
SLIDE 29

Operational relevance and effective use

Genericity Lemma (Barendregt ’84)

M is solvable iff ∃C[ ]. C[M] = Z a normal form ∧ ¬(∀X. C[X] = Z). normal forms ⊂ solvables

8 / 13

slide-30
SLIDE 30

Operational relevance and effective use

Genericity Lemma (Barendregt ’84)

M is solvable iff ∃C[ ]. C[M] = Z a normal form ∧ ¬(∀X. C[X] = Z). normal forms ⊂ solvables Adding axioms that equate unsolvable terms: consistent proof theory! Full reduction and open terms: suitable for metaprogramming!

8 / 13

slide-31
SLIDE 31

Conversion in the lambda-value calculus (λ

V) (Plotkin ’75) N ∈ Val ::= x | λx.M (λx.B) N =V [N/x]B

(βV )

M =V M′ M N =V M′ N N =V N′ M N =V M N′ B =V B′ λx.B =V λx.B′ M =V M M =V N N =V P M =V P M =V N N =V M

9 / 13

slide-32
SLIDE 32

Why values instead of normal forms?

Preserving confluence by preserving potential divergence. (λx.(λy.I)(x ∆))∆

10 / 13

slide-33
SLIDE 33

Why values instead of normal forms?

Preserving confluence by preserving potential divergence. (λx.(λy.I)(x ∆))∆

10 / 13

slide-34
SLIDE 34

Why values instead of normal forms?

Preserving confluence by preserving potential divergence. (λx.(λy.I)(x ∆))∆

10 / 13

slide-35
SLIDE 35

Why values instead of normal forms?

Preserving confluence by preserving potential divergence. (λx.(λy.I)(x ∆))∆ − →V (λx.I)∆

10 / 13

slide-36
SLIDE 36

Why values instead of normal forms?

Preserving confluence by preserving potential divergence. (λx.(λy.I)(x ∆))∆ − →V (λx.I)∆ − →V I

10 / 13

slide-37
SLIDE 37

Why values instead of normal forms?

Preserving confluence by preserving potential divergence. (λx.(λy.I)(x ∆))∆ − →V (λx.I)∆ − →V I (λx.(λy.I)(x ∆))∆

10 / 13

slide-38
SLIDE 38

Why values instead of normal forms?

Preserving confluence by preserving potential divergence. (λx.(λy.I)(x ∆))∆ − →V (λx.I)∆ − →V I (λx.(λy.I)(x ∆))∆ − →V (λy.I)(∆ ∆)

10 / 13

slide-39
SLIDE 39

Why values instead of normal forms?

Preserving confluence by preserving potential divergence. (λx.(λy.I)(x ∆))∆ − →V (λx.I)∆ − →V I (λx.(λy.I)(x ∆))∆ − →V (λy.I)Ω

10 / 13

slide-40
SLIDE 40

Why values instead of normal forms?

Preserving confluence by preserving potential divergence. (λx.(λy.I)(x ∆))∆ − →V (λx.I)∆ − →V I (λx.(λy.I)(x ∆))∆ − →V (λy.I)Ω − →V . . .

10 / 13

slide-41
SLIDE 41

Why values instead of normal forms?

Preserving confluence by preserving potential divergence. (λx.(λy.I)(x ∆))∆ − →V (λx.I)∆ − →V I (λx.(λy.I)(x ∆))∆ − →V (λy.I)Ω − →V . . .

10 / 13

slide-42
SLIDE 42

Why values instead of normal forms?

Preserving confluence by preserving potential divergence. (λx.(λy.I)(x ∆))∆ − →V (λx.I)∆ − →V I (λx.(λy.I)(x ∆))∆ − →V (λy.I)Ω − →V . . . λ

V -normal-forms don’t have subterms (λx.B)N with N ∈ Val.

(λy.I)(x ∆) is a λ

V -normal-form

10 / 13

slide-43
SLIDE 43

Why values instead of normal forms?

Preserving confluence by preserving potential divergence. (λx.(λy.I)(x ∆))∆ − →V (λx.I)∆ − →V I (λx.(λy.I)(x ∆))∆ − →V (λy.I)Ω − →V . . . λ

V -normal-forms don’t have subterms (λx.B)N with N ∈ Val.

(λy.I)(x ∆) is a λ

V -normal-form

Sequential character of λ

V -normal-forms.

(x M)(y N) (λz.z(y N))(x M)

10 / 13

slide-44
SLIDE 44

v-solvability

Definition (Paolini & Ronchi della Rocca ’99)

M closed is v-solvable iff there exist closed values V1, . . . , Vn with n ≥ 0 s.t. M V1 · · · Vn =V I.

11 / 13

slide-45
SLIDE 45

v-solvability

Definition (Paolini & Ronchi della Rocca ’99)

M closed is v-solvable iff there exist closed values V1, . . . , Vn with n ≥ 0 s.t. M V1 · · · Vn =V I.

Lemma (analogous to Wadsworth ’78)

If T closed has λ

V -normal-form then for every term X there

exist values V1, . . . , Vk s.t. T V1 · · · Vk =V X.

11 / 13

slide-46
SLIDE 46

v-solvability

Definition (Paolini & Ronchi della Rocca ’99)

M closed is v-solvable iff there exist closed values V1, . . . , Vn with n ≥ 0 s.t. M V1 · · · Vn =V I.

Lemma (analogous to Wadsworth ’78)

If T closed has λ

V -normal-form then for every term X there

exist values V1, . . . , Vk s.t. T V1 · · · Vk =V X. Some λ

V -normal-forms are v-unsolvable!

λx.(λy.∆)(x I)∆

11 / 13

slide-47
SLIDE 47

v-solvability

Definition (Paolini & Ronchi della Rocca ’99)

M closed is v-solvable iff there exist closed values V1, . . . , Vn with n ≥ 0 s.t. M V1 · · · Vn =V I.

Lemma (analogous to Wadsworth ’78)

If T closed has λ

V -normal-form then for every term X there

exist values V1, . . . , Vk s.t. T V1 · · · Vk =V X. Some λ

V -normal-forms are v-unsolvable!

(λx.(λy.∆)(x I)∆)V1

11 / 13

slide-48
SLIDE 48

v-solvability

Definition (Paolini & Ronchi della Rocca ’99)

M closed is v-solvable iff there exist closed values V1, . . . , Vn with n ≥ 0 s.t. M V1 · · · Vn =V I.

Lemma (analogous to Wadsworth ’78)

If T closed has λ

V -normal-form then for every term X there

exist values V1, . . . , Vk s.t. T V1 · · · Vk =V X. Some λ

V -normal-forms are v-unsolvable!

(λx.(λy.∆)(x I)∆)V1 − →V (λy.∆)(V1 I)∆

11 / 13

slide-49
SLIDE 49

v-solvability

Definition (Paolini & Ronchi della Rocca ’99)

M closed is v-solvable iff there exist closed values V1, . . . , Vn with n ≥ 0 s.t. M V1 · · · Vn =V I.

Lemma (analogous to Wadsworth ’78)

If T closed has λ

V -normal-form then for every term X there

exist values V1, . . . , Vk s.t. T V1 · · · Vk =V X. Some λ

V -normal-forms are v-unsolvable!

(λx.(λy.∆)(x I)∆)V1 − →V (λy.∆)(V1 I)∆

11 / 13

slide-50
SLIDE 50

v-solvability

Definition (Paolini & Ronchi della Rocca ’99)

M closed is v-solvable iff there exist closed values V1, . . . , Vn with n ≥ 0 s.t. M V1 · · · Vn =V I.

Lemma (analogous to Wadsworth ’78)

If T closed has λ

V -normal-form then for every term X there

exist values V1, . . . , Vk s.t. T V1 · · · Vk =V X. Some λ

V -normal-forms are v-unsolvable!

(λx.(λy.∆)(x I)∆)V1 − →V (λy.∆)(V1 I)∆ − → . . .

11 / 13

slide-51
SLIDE 51

v-solvability

Definition (Paolini & Ronchi della Rocca ’99)

M closed is v-solvable iff there exist closed values V1, . . . , Vn with n ≥ 0 s.t. M V1 · · · Vn =V I.

Lemma (analogous to Wadsworth ’78)

If T closed has λ

V -normal-form then for every term X there

exist values V1, . . . , Vk s.t. T V1 · · · Vk =V X. Some λ

V -normal-forms are v-unsolvable!

(λx.(λy.∆)(x I)∆)V1 − →V (λy.∆)(V1 I)∆

11 / 13

slide-52
SLIDE 52

v-solvability

Definition (Paolini & Ronchi della Rocca ’99)

M closed is v-solvable iff there exist closed values V1, . . . , Vn with n ≥ 0 s.t. M V1 · · · Vn =V I.

Lemma (analogous to Wadsworth ’78)

If T closed has λ

V -normal-form then for every term X there

exist values V1, . . . , Vk s.t. T V1 · · · Vk =V X. Some λ

V -normal-forms are v-unsolvable!

(λx.(λy.∆)(x I)∆)V1 − →V (λy.∆)(V1 I)∆ − → (λy.∆)∆

11 / 13

slide-53
SLIDE 53

v-solvability

Definition (Paolini & Ronchi della Rocca ’99)

M closed is v-solvable iff there exist closed values V1, . . . , Vn with n ≥ 0 s.t. M V1 · · · Vn =V I.

Lemma (analogous to Wadsworth ’78)

If T closed has λ

V -normal-form then for every term X there

exist values V1, . . . , Vk s.t. T V1 · · · Vk =V X. Some λ

V -normal-forms are v-unsolvable!

(λx.(λy.∆)(x I)∆)V1 − →V (λy.∆)(V1 I)∆ − → (λy.∆)∆ − → ∆∆

11 / 13

slide-54
SLIDE 54

v-solvability

Definition (Paolini & Ronchi della Rocca ’99)

M closed is v-solvable iff there exist closed values V1, . . . , Vn with n ≥ 0 s.t. M V1 · · · Vn =V I.

Lemma (analogous to Wadsworth ’78)

If T closed has λ

V -normal-form then for every term X there

exist values V1, . . . , Vk s.t. T V1 · · · Vk =V X. Some λ

V -normal-forms are v-unsolvable!

(λx.(λy.∆)(x I)∆)V1 − →V (λy.∆)(V1 I)∆ − → (λy.∆)∆ − → Ω − → . . .

11 / 13

slide-55
SLIDE 55

v-solvability

Definition (Paolini & Ronchi della Rocca ’99)

M closed is v-solvable iff there exist closed values V1, . . . , Vn with n ≥ 0 s.t. M V1 · · · Vn =V I.

Lemma (analogous to Wadsworth ’78)

If T closed has λ

V -normal-form then for every term X there

exist values V1, . . . , Vk s.t. T V1 · · · Vk =V X. Some λ

V -normal-forms are v-unsolvable!

(λx.(λy.∆)(x I)∆)V1 − →V (λy.∆)(V1 I)∆ − → (λy.∆)∆ − → Ω − → . . . Does not capture operational relevance! Adding axioms that equate v-unsolvables: inconsistent proof theory!

11 / 13

slide-56
SLIDE 56

v-solvability

Definition (Paolini & Ronchi della Rocca ’99)

M closed is v-solvable iff there exist closed values V1, . . . , Vn with n ≥ 0 s.t. M V1 · · · Vn =V I. SECD Machine (Landin ’64). Lazy call-by-value evaluation (Egidi, Honsell, Ronchi della Rocca ’91). Only weak reduction and closed terms: not suitable for metaprogramming!

11 / 13

slide-57
SLIDE 57

Start from scratch

Definition (Garc´ ıa-P´ erez & Nogueira 2016)

M is λ

V -solvable iff there exists (λx1 . . . xm.[ ])N1 · · · Nn with

m, n ≥ 0 s.t. (λx1 . . . xm.[M])N1 · · · Nn has λ

V -normal-form.

12 / 13

slide-58
SLIDE 58

Start from scratch

Definition (Garc´ ıa-P´ erez & Nogueira 2016)

M is λ

V -solvable iff there exists (λx1 . . . xm.[ ])N1 · · · Nn with

m, n ≥ 0 s.t. (λx1 . . . xm.[M])N1 · · · Nn has λ

V -normal-form.

The λ

V -normal forms are λ V -solvable!

Adding axioms equating λ

V -unsolvables of the same order:

consistent proof theory! Full reduction and open terms: suitable for metaprogramming!

12 / 13

slide-59
SLIDE 59

Start from scratch

Definition (Garc´ ıa-P´ erez & Nogueira 2016)

M is λ

V -solvable iff there exists (λx1 . . . xm.[ ])N1 · · · Nn with

m, n ≥ 0 s.t. (λx1 . . . xm.[M])N1 · · · Nn has λ

V -normal-form.

The λ

V -normal forms are λ V -solvable!

Adding axioms equating λ

V -unsolvables of the same order:

consistent proof theory! Full reduction and open terms: suitable for metaprogramming! λ

V -solvability captures operational relevance: ◮ Transformability. Ability to send a term to a value of your

choice (captured by v-solvability too).

◮ Freezability. Ability to send a term to a λ V -normal-form,

albeit not of your choice (captured by λ

V -solvability only).

12 / 13

slide-60
SLIDE 60

Start from scratch

Definition (Garc´ ıa-P´ erez & Nogueira 2016)

M is λ

V -solvable iff there exists (λx1 . . . xm.[ ])N1 · · · Nn with

m, n ≥ 0 s.t. (λx1 . . . xm.[M])N1 · · · Nn has λ

V -normal-form.

The λ

V -normal forms are λ V -solvable!

Adding axioms equating λ

V -unsolvables of the same order:

consistent proof theory! Full reduction and open terms: suitable for metaprogramming! λ

V -solvability captures operational relevance: ◮ Transformability. Ability to send a term to a value of your

choice (captured by v-solvability too).

◮ Freezability. Ability to send a term to a λ V -normal-form,

albeit not of your choice (captured by λ

V -solvability only).

λx.(λy.∆)(x I)∆

12 / 13

slide-61
SLIDE 61

Start from scratch

Definition (Garc´ ıa-P´ erez & Nogueira 2016)

M is λ

V -solvable iff there exists (λx1 . . . xm.[ ])N1 · · · Nn with

m, n ≥ 0 s.t. (λx1 . . . xm.[M])N1 · · · Nn has λ

V -normal-form.

The λ

V -normal forms are λ V -solvable!

Adding axioms equating λ

V -unsolvables of the same order:

consistent proof theory! Full reduction and open terms: suitable for metaprogramming! λ

V -solvability captures operational relevance: ◮ Transformability. Ability to send a term to a value of your

choice (captured by v-solvability too).

◮ Freezability. Ability to send a term to a λ V -normal-form,

albeit not of your choice (captured by λ

V -solvability only).

(λx.(λy.∆)(x I)∆)(λx.z K)

12 / 13

slide-62
SLIDE 62

Start from scratch

Definition (Garc´ ıa-P´ erez & Nogueira 2016)

M is λ

V -solvable iff there exists (λx1 . . . xm.[ ])N1 · · · Nn with

m, n ≥ 0 s.t. (λx1 . . . xm.[M])N1 · · · Nn has λ

V -normal-form.

The λ

V -normal forms are λ V -solvable!

Adding axioms equating λ

V -unsolvables of the same order:

consistent proof theory! Full reduction and open terms: suitable for metaprogramming! λ

V -solvability captures operational relevance: ◮ Transformability. Ability to send a term to a value of your

choice (captured by v-solvability too).

◮ Freezability. Ability to send a term to a λ V -normal-form,

albeit not of your choice (captured by λ

V -solvability only).

(λx.(λy.∆)(x I)∆)(λx.z K) − → (λy.∆)((λx.z K)I)∆

12 / 13

slide-63
SLIDE 63

Start from scratch

Definition (Garc´ ıa-P´ erez & Nogueira 2016)

M is λ

V -solvable iff there exists (λx1 . . . xm.[ ])N1 · · · Nn with

m, n ≥ 0 s.t. (λx1 . . . xm.[M])N1 · · · Nn has λ

V -normal-form.

The λ

V -normal forms are λ V -solvable!

Adding axioms equating λ

V -unsolvables of the same order:

consistent proof theory! Full reduction and open terms: suitable for metaprogramming! λ

V -solvability captures operational relevance: ◮ Transformability. Ability to send a term to a value of your

choice (captured by v-solvability too).

◮ Freezability. Ability to send a term to a λ V -normal-form,

albeit not of your choice (captured by λ

V -solvability only).

(λx.(λy.∆)(x I)∆)(λx.z K) − → (λy.∆)((λx.z K)I)∆ − → (λy.∆)(z K)∆

12 / 13

slide-64
SLIDE 64

Start from scratch

Definition (Garc´ ıa-P´ erez & Nogueira 2016)

M is λ

V -solvable iff there exists (λx1 . . . xm.[ ])N1 · · · Nn with

m, n ≥ 0 s.t. (λx1 . . . xm.[M])N1 · · · Nn has λ

V -normal-form.

The λ

V -normal forms are λ V -solvable!

Adding axioms equating λ

V -unsolvables of the same order:

consistent proof theory! Full reduction and open terms: suitable for metaprogramming! λ

V -solvability captures operational relevance: ◮ Transformability. Ability to send a term to a value of your

choice (captured by v-solvability too).

◮ Freezability. Ability to send a term to a λ V -normal-form,

albeit not of your choice (captured by λ

V -solvability only).

(λx.(λy.∆)(x I)∆)(λx.z K) − → (λy.∆)((λx.z K)I)∆ − → (λy.∆)(z K)∆

12 / 13

slide-65
SLIDE 65

Our contributions

◮ Definition of λ V -solvability that captures operational

relevance of arbitrary terms (not necessarily closed).

◮ Full reduction and open terms. ◮ Sequentiality of terms matters. ◮ Consistent proof theory. ◮ Partial Genericity Lemma (order of a term matters). ◮ Characterisation of complete reduction strategies with

respect to λ

V -normal-form. ◮ Do models for sequentiality (Berry & Curien ’82) satisfy

  • ur theory?

13 / 13

slide-66
SLIDE 66

Our contributions

◮ Definition of λ V -solvability that captures operational

relevance of arbitrary terms (not necessarily closed).

◮ Full reduction and open terms. ◮ Sequentiality of terms matters. ◮ Consistent proof theory. ◮ Partial Genericity Lemma (order of a term matters). ◮ Characterisation of complete reduction strategies with

respect to λ

V -normal-form. ◮ Do models for sequentiality (Berry & Curien ’82) satisfy

  • ur theory?

Thanks!

13 / 13