A Standard Theory for the Pure Lambda-Value Calculus lvaro - - PowerPoint PPT Presentation

a standard theory for the pure lambda value calculus
SMART_READER_LITE
LIVE PREVIEW

A Standard Theory for the Pure Lambda-Value Calculus lvaro - - PowerPoint PPT Presentation

A Standard Theory for the Pure Lambda-Value Calculus lvaro Garca-Prez Pablo Nogueira Paris, September 2014 1 / 18 Standard theory in the classical lambda calculus (a.k.a. Barendregts theme) Pure untyped lambda calculus ( K )


slide-1
SLIDE 1

A Standard Theory for the Pure Lambda-Value Calculus

Álvaro García-Pérez Pablo Nogueira Paris, September 2014

1 / 18

slide-2
SLIDE 2

Standard theory in the classical lambda calculus (a.k.a. Barendregt’s theme)

◮ Pure untyped lambda calculus (λK) with reduction (→∗ β) and

conversion (=β) theories.

◮ Solvability:

M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that Ch[M] =β I. [Barendregt, 1984]

◮ Unsolvable terms denote ⊥ in D∞ [Wadsworth, 1976]. ◮ H = {M =β N | M, N ∈ Λ0 unsolvables}+ is a lambda theory

[Barendregt, 1984].

◮ D∞ satifies H, i.e., D∞ is sensible [Barendregt, 1984]. ◮ Quasi-leftmost reduction characterises complete strategies

[Hindley and Seldin, 2008].

2 / 18

slide-3
SLIDE 3

Solvability and transformability in λK

M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that Ch[M] =β I. [Barendregt, 1984] M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that Ch[M] =β N ∈ NF. [Barendregt, 1971]

3 / 18

slide-4
SLIDE 4

Solvability and transformability in λK

M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that Ch[M] =β I. [Barendregt, 1984]

  • M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that

Ch[M] =β N ∈ NF. [Barendregt, 1971]

Theorem ([Wadsworth, 1976])

Let N ∈ NF. For every M, there exists Ch[ ] such that Ch[N] →∗

β M.

3 / 18

slide-5
SLIDE 5

Solvability and transformability in λK

M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that Ch[M] =β I. [Barendregt, 1984]

  • M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that

Ch[M] =β N ∈ NF. [Barendregt, 1971]

Theorem ([Wadsworth, 1976])

Let N ∈ NF. For every M, there exists Ch[ ] such that Ch[N] →∗

β M.

M is solvable iff it has a head normal form.

3 / 18

slide-6
SLIDE 6

Definition (Needed Redex in λK [Barendregt et al., 1987])

A redex R in M ≡ C[R] is needed iff R (or some residual of it) is contracted in every reduction sequence ending in normal form: M ≡ C[R] →β . . . →β N ∈ NF

4 / 18

slide-7
SLIDE 7

Polarity in λK

P(x) = x+ P(λx.B) = (λx.P(B))+ P(M N) = (P(M) N(N))+ N(x) = x− N(λx.B) = (λx.N(B))− N(M N) = (N(M) N(N))−

5 / 18

slide-8
SLIDE 8

Polarity in λK

P(x) = x+ P(λx.B) = (λx.P(B))+ P(M N) = (P(M) N(N))+ N(x) = x− N(λx.B) = (λx.N(B))− N(M N) = (N(M) N(N))− λx.(λy.y (λz.M1))(x M2) λx

  • λy
  • y

λz M1

  • x

λt M2

5 / 18

slide-9
SLIDE 9

Polarity in λK

P(x) = x+ P(λx.B) = (λx.P(B))+ P(M N) = (P(M) N(N))+ N(x) = x− N(λx.B) = (λx.N(B))− N(M N) = (N(M) N(N))− (λx.((λy.y + (λz.M−

1 )−)+(x− M− 2 )−)+)+

λx+

  • +

λy +

  • +

y + λz− M−

1

x− λt− M−

2

5 / 18

slide-10
SLIDE 10

Polarity in λK (a.k.a. head spine [Barendregt et al., 1987])

P(x) = x+ P(λx.B) = (λx.P(B))+ P(M N) = (P(M) N(N))+ N(x) = x− N(λx.B) = (λx.N(B))− N(M N) = (N(M) N(N))− hs(x) = x hs(λx.B) = λx.hs(B) hs(M N) = hs(M)N bn(x) = x bn(λx.B) = λx.B bn(M N) = bn(M)N λx.(λy.y (λz.M1))(x M2) λx

  • λy
  • y

λz M1

  • x

λt M2

5 / 18

slide-11
SLIDE 11

Polarity in λK (head reduction)

P(x) = x+ P(λx.B) = (λx.P(B))+ P(M N) = (P(M) N(N))+ N(x) = x− N(λx.B) = (λx.N(B))− N(M N) = (N(M) N(N))− hr(x) = x hr(λx.B) = λx.hr(B) hr(M N) = bn(M)N bn(x) = x bn(λx.B) = λx.B bn(M N) = bn(M)N λx.(λy.y (λz.M1))(x M2) λx

  • λy
  • y

λz M1

  • x

λt M2

5 / 18

slide-12
SLIDE 12

Head normal forms

HNF ::= x | λx.HNF | HNF Λ λx1 . . . xn.y M1 . . . Mm λx1 λxn

  • y

M1 Mm

6 / 18

slide-13
SLIDE 13

Pure lambda-value calculus (λV) [Egidi et al., 1991]

◮ λV in [Plotkin, 1975] without primitive constants and δ-rules.

N ∈ Val (λx.B)N =βV [N/x]B

(βV )

Val ::= x | λx.Λ

7 / 18

slide-14
SLIDE 14

Pure lambda-value calculus (λV) [Egidi et al., 1991]

◮ λV in [Plotkin, 1975] without primitive constants and δ-rules.

N ∈ Val (λx.B)N =βV [N/x]B

(βV )

Val ::= x | λx.Λ

◮ Why values as non applications?

An irreducible application may become a divergent term when the free variables in it are substituted by other terms [Plotkin, 1975].

7 / 18

slide-15
SLIDE 15

Pure lambda-value calculus (λV) [Egidi et al., 1991]

◮ λV in [Plotkin, 1975] without primitive constants and δ-rules.

N ∈ Val (λx.B)N =βV [N/x]B

(βV )

Val ::= x | λx.Λ

◮ Why values as non applications?

An irreducible application may become a divergent term when the free variables in it are substituted by other terms [Plotkin, 1975]. “Preserving confluence by preserving potential divergence”.

7 / 18

slide-16
SLIDE 16

Is there a standard theory for λV?

◮ Call-by-value solvability [Paolini and Ronchi Della Rocca, 1999]:

M is v-solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that Ch[M] =βV I. The order n of a v-unsolvable M informs about the number of preceding lambdas in the term, i.e., M =βV λx1 . . . λxn.B.

◮ The v-unsolvables of order 0 can be equated in a consistent way

[Paolini and Ronchi Della Rocca, 1999].

◮ Domain H constructed from canonical solution of equation

D ∼ = [D →⊥ D]⊥ [Egidi et al., 1991]. The v-unsolvable terms of order 0 denote ⊥ in H.

◮ Standard reduction in λV [Plotkin, 1975] is complete.

Does ‘complete’ imply ‘standard’?

8 / 18

slide-17
SLIDE 17

Objection on λV normal forms in [Paolini and Ronchi Della Rocca, 1999]

Ω and U ≡ (λy.∆)(x I)∆ are observationally equivalent.

9 / 18

slide-18
SLIDE 18

Objection on λV normal forms in [Paolini and Ronchi Della Rocca, 1999]

Ω and U ≡ (λy.∆)(x I)∆ are observationally equivalent. Consider the context (λx.[ ])V (λx.Ω)V

9 / 18

slide-19
SLIDE 19

Objection on λV normal forms in [Paolini and Ronchi Della Rocca, 1999]

Ω and U ≡ (λy.∆)(x I)∆ are observationally equivalent. Consider the context (λx.[ ])V (λx.Ω)V →βV Ω

9 / 18

slide-20
SLIDE 20

Objection on λV normal forms in [Paolini and Ronchi Della Rocca, 1999]

Ω and U ≡ (λy.∆)(x I)∆ are observationally equivalent. Consider the context (λx.[ ])V (λx.Ω)V →βV Ω →βV . . .

9 / 18

slide-21
SLIDE 21

Objection on λV normal forms in [Paolini and Ronchi Della Rocca, 1999]

Ω and U ≡ (λy.∆)(x I)∆ are observationally equivalent. Consider the context (λx.[ ])V (λx.Ω)V →βV Ω →βV . . . (λx.(λy.∆)(x I)∆)V

9 / 18

slide-22
SLIDE 22

Objection on λV normal forms in [Paolini and Ronchi Della Rocca, 1999]

Ω and U ≡ (λy.∆)(x I)∆ are observationally equivalent. Consider the context (λx.[ ])V (λx.Ω)V →βV Ω →βV . . . (λx.(λy.∆)(x I)∆)V →βV (λy.∆)(V I)∆

9 / 18

slide-23
SLIDE 23

Objection on λV normal forms in [Paolini and Ronchi Della Rocca, 1999]

Ω and U ≡ (λy.∆)(x I)∆ are observationally equivalent. Consider the context (λx.[ ])V (λx.Ω)V →βV Ω →βV . . . (λx.(λy.∆)(x I)∆)V →βV (λy.∆)(V I)∆

9 / 18

slide-24
SLIDE 24

Objection on λV normal forms in [Paolini and Ronchi Della Rocca, 1999]

Ω and U ≡ (λy.∆)(x I)∆ are observationally equivalent. Consider the context (λx.[ ])V (λx.Ω)V →βV Ω →βV . . . (λx.(λy.∆)(x I)∆)V →βV (λy.∆)(V I)∆ →∗

βV . . .

9 / 18

slide-25
SLIDE 25

Objection on λV normal forms in [Paolini and Ronchi Della Rocca, 1999]

Ω and U ≡ (λy.∆)(x I)∆ are observationally equivalent. Consider the context (λx.[ ])V (λx.Ω)V →βV Ω →βV . . . (λx.(λy.∆)(x I)∆)V →βV (λy.∆)(V I)∆ →∗

βV . . .

9 / 18

slide-26
SLIDE 26

Objection on λV normal forms in [Paolini and Ronchi Della Rocca, 1999]

Ω and U ≡ (λy.∆)(x I)∆ are observationally equivalent. Consider the context (λx.[ ])V (λx.Ω)V →βV Ω →βV . . . (λx.(λy.∆)(x I)∆)V →βV (λy.∆)(V I)∆ →∗

βV (λy.∆)V ′ ∆

9 / 18

slide-27
SLIDE 27

Objection on λV normal forms in [Paolini and Ronchi Della Rocca, 1999]

Ω and U ≡ (λy.∆)(x I)∆ are observationally equivalent. Consider the context (λx.[ ])V (λx.Ω)V →βV Ω →βV . . . (λx.(λy.∆)(x I)∆)V →βV (λy.∆)(V I)∆ →∗

βV (λy.∆)V ′ ∆

→βV ∆ ∆ ≡ Ω

9 / 18

slide-28
SLIDE 28

Objection on λV normal forms in [Paolini and Ronchi Della Rocca, 1999]

Ω and U ≡ (λy.∆)(x I)∆ are observationally equivalent. Consider the context (λx.[ ])V (λx.Ω)V →βV Ω →βV . . . (λx.(λy.∆)(x I)∆)V →βV (λy.∆)(V I)∆ →∗

βV (λy.∆)V ′ ∆

→βV ∆ ∆ ≡ Ω →βV . . .

9 / 18

slide-29
SLIDE 29

Objection on λV normal forms in [Paolini and Ronchi Della Rocca, 1999]

Ω and U ≡ (λy.∆)(x I)∆ are observationally equivalent. Consider the context (λx.[ ])V (λx.Ω)V →βV Ω →βV . . . (λx.(λy.∆)(x I)∆)V →βV (λy.∆)(V I)∆ →∗

βV (λy.∆)V ′ ∆

→βV ∆ ∆ ≡ Ω →βV . . .

  • But. . .

◮ Differences in sequentiality.

9 / 18

slide-30
SLIDE 30

Solvability and transformability in λV

M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that Ch[M] =βV I. M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that Ch[M] =βV N ∈ NFV .

10 / 18

slide-31
SLIDE 31

Solvability and transformability in λV

M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that Ch[M] =βV I.

  • M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that

Ch[M] =βV N ∈ NFV .

Theorem (Transformability for λV)

. . .

10 / 18

slide-32
SLIDE 32

Solvability and transformability in λV

M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that Ch[M] =βV I.

  • M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that

Ch[M] =βV N ∈ NFV .

Theorem (Transformability for λV)

. . . The U ≡ (λy.∆)(x I)∆ is a counterexample which is not transformable.

10 / 18

slide-33
SLIDE 33

Solvability and transformability in λV

M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that Ch[M] =βV I [Paolini and Ronchi Della Rocca, 1999].

  • M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that

Ch[M] =βV N ∈ NFV [our research].

Theorem (Transformability for λV)

. . . The U ≡ (λy.∆)(x I)∆ is a counterexample which is not transformable.

10 / 18

slide-34
SLIDE 34

Our research

◮ Reconsider definition of solvability in λV :

M is solvable iff there exists Ch[ ] ≡ (λx1 . . . xm[ ])N1 . . . Nn such that Ch[M] =βV N ∈ NFV . solvable = transformable + freezable A term which is freezable into a NFV is also operational relevant!

◮ Generalisation of needed reduction [Barendregt et al., 1987] to λV . ◮ HV = {M =βV N | M, N ∈ Λ0 unsolvables of the same order}+V is

a consistent theory. E.g., HV ⊢ λx.Ω =βv λx.(λy.∆)(x I)∆.

◮ A theory or a model is ω-sensible if it satisfies HV . ◮ Hereditary quasi-chest reduction (see next slides) characterises

complete strategies. Now ‘complete’ implies ‘hereditary quasi-chest’!

11 / 18

slide-35
SLIDE 35

Definition (Needed Redex in λV [Our research])

M ≡ C[R] is needed iff R (or some residual of it) is contracted in every reduction sequence ending in λV normal form: M ≡ C[R] →βV . . . →βV N ∈ NFV

12 / 18

slide-36
SLIDE 36

Polarity in λV

P(x) = x+ P(λx.B) = (λx.P(B))+ P(M N) = (P(M) N(N))+ N(x) = x− N(λx.B) = (λx.N(B))− N(M N) = (N(M) N(N))−

λx.(λy.y(λz.M1))(x(λt.M2)) λx

  • λy
  • y

λz M1

  • x

λt M2

13 / 18

slide-37
SLIDE 37

Polarity in λV

P(x) = x+ P(λx.B) = (λx.P(B))+ P(M N) = (P(M) A(N))+ A(x) = x− A(λx.B) = (λx.B(B))− A(M N) = (A(M) A(N))− B(x) = x− B(λx.B) = (λx.B(B))− B(M N) = (B(M) B(N))−

λx.(λy.y(λz.M1))(x(λt.M2)) λx

  • λy
  • y

λz M1

  • x

λt M2

13 / 18

slide-38
SLIDE 38

Polarity in λV

P(x) = x+ P(λx.B) = (λx.P(B))+ P(M N) = (P(M) A(N))+ A(x) = x− A(λx.B) = (λx.B(B))− A(M N) = (A(M) A(N))− B(x) = x− B(λx.B) = (λx.B(B))− B(M N) = (B(M) B(N))−

λx.(λy.y(λz.M1))(x(λt.M2)) λx

  • λy
  • y

λz M1

  • x

λt M2

13 / 18

slide-39
SLIDE 39

Polarity in λV

P(x) = x+ P(λx.B) = (λx.P(B))+ P(M N) = (P(M) A(N))+ A(x) = x− A(λx.B) = (λx.B(B))− A(M N) = (A(M) A(N))− B(x) = x− B(λx.B) = (λx.B(B))− B(M N) = (B(M) B(N))−

(λx.(λy.y +(λz.M−

1 )−)+(x−(λt.M− 2 )−)−)+

λx+

  • +

λy +

  • +

y + λz− M−

1

x− λt− M−

2

13 / 18

slide-40
SLIDE 40

Polarity in λV (ribcage reduction)

P(x) = x+ P(λx.B) = (λx.P(B))+ P(M N) = (P(M) A(N))+ A(x) = x− A(λx.B) = (λx.B(B))− A(M N) = (A(M) A(N))− B(x) = x− B(λx.B) = (λx.B(B))− B(M N) = (B(M) B(N))− rc(x) = x rc(λx.B) = λx.rc(B) rc(M N) = rc(M)bv(N) bv(x) = x bv(λx.B) = λx.B bv(M N) = bv(M)bv(N)

λx.(λy.y(λz.M1))(x(λt.M2)) λx

  • λy
  • y

λz M1

  • x

λt M2

13 / 18

slide-41
SLIDE 41

Polarity in λV (chest reduction)

P(x) = x+ P(λx.B) = (λx.P(B))+ P(M N) = (P(M) A(N))+ A(x) = x− A(λx.B) = (λx.B(B))− A(M N) = (A(M) A(N))− B(x) = x− B(λx.B) = (λx.B(B))− B(M N) = (B(M) B(N))− ch(x) = x ch(λx.B) = λx.ch(B) ch(M N) = bv(M)bv(N) bv(x) = x bv(λx.B) = λx.B bv(M N) = bv(M)bv(N)

λx.(λy.y(λz.M1))(x(λt.M2)) λx

  • λy
  • y

λz M1

  • x

λt M2

13 / 18

slide-42
SLIDE 42

Chest normal forms

CHNF ::= x | λx.CHNF | Stuck WNFV ::= Val | Stuck Val ::= x | λx.Λ Stuck ::= x WNFV | (λx.Λ)Stuck | Stuck WNFV

14 / 18

slide-43
SLIDE 43

Chest normal forms

CHNF ::= x | λx.CHNF | Stuck WNFV ::= Val | Stuck Val ::= x | λx.Λ Stuck ::= x WNFV | (λx.Λ)Stuck | Stuck WNFV λx1 . . . xn. (λyp.Bp) ( . . . ((λy1.B1)(z W 0

1 . . . W 0 m0)W 1 1 . . . W 1 m1)

. . . )W p

1 . . . Mp mp

λx1 λxn

  • λyp

Bp

  • λy1

B1

  • z

W 0

1

W 0

m0

W 1

1

W 1

m1

W p

1

W p

mp 14 / 18

slide-44
SLIDE 44

Semi-decision procedure for λV solvability

(λx.x ∆)(x I)∆ (λx.Ω)

15 / 18

slide-45
SLIDE 45

Semi-decision procedure for λV solvability

(λx.x ∆)(x I)∆ (λx.Ω)

◮ Mark-test-contract algorithm

◮ Positive subterms checked for solvability, negative subterms checked

  • nly for valuability.

◮ Stops anytime a (sub)term is freezable, avoiding to diverge when it is

not transformable.

◮ On-line implementation at

http://babel.ls.fi.upm.es/~agarcia/talks/DomainsXI

15 / 18

slide-46
SLIDE 46

To summarise

◮ Reconsider the definition of solvability in λV . ◮ The λv normal forms informs about sequentiality. ◮ Generalisation of needed reduction to λV . ◮ Hereditary chest reduction characterises complete strategies in λV . ◮ Semi-decision procedure for solvability in λV . ◮ Consistent theory HV equates unsolvables of the same order. ◮ A theory or model is ω-sensible iff it satisfies HV .

16 / 18

slide-47
SLIDE 47

Full abstraction

Questions:

◮ Fully abstract model w.r.t. HV ? ◮ Böhm trees for λV ?

17 / 18

slide-48
SLIDE 48

Full abstraction

Questions:

◮ Fully abstract model w.r.t. HV ? ◮ Böhm trees for λV ?

⊥ω ⊥1 ⊥0

17 / 18

slide-49
SLIDE 49

Full abstraction

Questions:

◮ Fully abstract model w.r.t. HV ? ◮ Böhm trees for λV ?

Thanks!

⊥ω ⊥1 ⊥0

17 / 18

slide-50
SLIDE 50

References I

Abramsky, S. (1990). The lazy lambda calculus. In Turner, D. A., editor, Research Topics in Functional Programming, pages 65–116. Addison-Welsey, Reading, MA. Barendregt, Kennaway, Klop, and Sleep (1987). Needed reduction and spine strategies for the lambda calculus. Information and Computation, 75(3):191–231. Barendregt, H. (1984). The Lambda Calculus, Its Syntax and Semantics. North Holland. Barendregt, H. P. (1971). Some Extensional Term Models for Combinatory Logics and Lambda Calculi. Ph.D. thesis, University of Utrecht, Utrecht, NL.

17 / 18

slide-51
SLIDE 51

References II

Egidi, L., Honsell, F., and Ronchi della Rocca, S. (1991). The lazy call–by–value λ–calculus. In Tarlecki, A., editor, Proceedings of Mathematical Foundations of Computer Science. (MFCS ’91), volume 520 of LNCS, pages 161–169, Berlin, Germany. Springer. Espírito Santo, J. (2007). Completing Herbelin’s programme. In Typed Lambda Calculi and Applications, 8th International Conference, TLCA 2007, Paris. Hindley, J. and Seldin, J. (2008). Lambda-calculus and combinators, an introduction. Cambridge University Press. Milner, R. (1990). Functions as processes. Research Report 1154, INRIA.

18 / 18

slide-52
SLIDE 52

References III

Paolini, L. and Ronchi Della Rocca, S. (1999). Call-by-value solvability. ITA, 33(6):507–534. Plotkin, G. (1975). Call-by-name, call-by-value and the lambda calculus. Theoretical Computer Science, 1:125–159. Wadsworth, C. (1976). The relation between computational and denotational properties for Scott’s D∞ models. Siam J. Comput., 5(3):488–521.

19 / 18

slide-53
SLIDE 53

Backup

17 / 18

slide-54
SLIDE 54

(λx.(λy.z)(x ∆))∆ (λx.z)∆ (λy.z)∆ ∆ z (recall ∆ ≡ (λx.x x))

17 / 18

slide-55
SLIDE 55

(λx.(λy.z)(x ∆))∆ (λx.z)∆ (λy.z)∆ ∆ z (recall ∆ ≡ (λx.x x))

17 / 18

slide-56
SLIDE 56

(λx.(λy.z)(x ∆))∆ (λx.z)∆ (λy.z)∆ ∆ z (recall ∆ ≡ (λx.x x))

17 / 18

slide-57
SLIDE 57

(λx.(λy.z)(x ∆))∆ (λx.z)∆ (λy.z)∆ ∆ z (recall ∆ ≡ (λx.x x))

17 / 18

slide-58
SLIDE 58

(λx.(λy.z)(x ∆))∆ (λx.z)∆ (λy.z)∆ ∆ z (recall ∆ ≡ (λx.x x))

17 / 18

slide-59
SLIDE 59

(λx.(λy.z)(x ∆))∆ (λx.z)∆ (λy.z)∆ ∆ z (recall ∆ ≡ (λx.x x))

17 / 18

slide-60
SLIDE 60

(λx.(λy.z)(x ∆))∆ (λx.z)∆ (λy.z)∆ ∆ z (recall ∆ ≡ (λx.x x))

17 / 18

slide-61
SLIDE 61

(λx.(λy.z)(x ∆))∆ (λx.z)∆ (λy.z)∆ ∆ z (recall ∆ ≡ (λx.x x))

17 / 18

slide-62
SLIDE 62

(λx.(λy.z)(x ∆))∆ (λx.z)∆ (λy.z)∆ ∆ z (recall ∆ ≡ (λx.x x))

17 / 18

slide-63
SLIDE 63

(λx.(λy.z)(x ∆))∆ (λx.z)∆ (λy.z)∆ ∆ ≡ (λy.z)Ω z (recall ∆ ≡ (λx.x x))

17 / 18

slide-64
SLIDE 64

(λx.(λy.z)(x ∆))∆ (λx.z)∆ (λy.z)∆ ∆ ≡ (λy.z)Ω z (recall ∆ ≡ (λx.x x))

17 / 18

slide-65
SLIDE 65

Chs[ ] ::= [ ] | Chs[ ] Λ | λx.Chs[ ] Chr[ ] ::= [ ] | Cbn[ ] Λ | λx.Chr[ ] Cbn[ ] ::= [ ] | Cbn[ ] Λ

17 / 18

slide-66
SLIDE 66

Crc[ ] ::= [ ] | Λ Cbv[ ] | Crc[ ] WNFV | λx.Crc[ ] Cbv[ ] ::= [ ] | Λ Cbv[ ] | Cbv[ ] WNFV Cch[ ] ::= [ ] | Λ Cbv[ ] | Cbv[ ] WNFV | λx.Cch[ ] Cbv[ ] ::= [ ] | Λ Cbv[ ] | Cbv[ ] WNFV

17 / 18

slide-67
SLIDE 67

Completeness in λK

Any strategy which eventually contracts the redices in the head of the active components of a term is complete with respect to normal form.

17 / 18

slide-68
SLIDE 68

Completeness in λK

Any strategy which eventually contracts the redices in the head of the active components of a term is complete with respect to normal form.

Theorem (Quasi-Leftmost Reduction [Hindley and Seldin, 2008])

Any strategy which eventually contracts the leftmost redex is complete with respect to normal form.

17 / 18

slide-69
SLIDE 69

Completeness in λK

Any strategy which eventually contracts the redices in the head of the active components of a term is complete with respect to normal form.

Theorem (Quasi-Leftmost Reduction [Hindley and Seldin, 2008])

Any strategy which eventually contracts the leftmost redex is complete with respect to normal form.

  • Reciprocally. . .

Theorem

Any strategy which is complete with respect to normal form eventually contracts the leftmost redex.

17 / 18

slide-70
SLIDE 70

Completeness in λK

Any strategy which eventually contracts the redices in the head of the active components of a term is complete with respect to normal form.

Theorem (Quasi-Leftmost Reduction [Hindley and Seldin, 2008])

Any strategy which eventually contracts the leftmost redex is complete with respect to normal form.

  • Reciprocally. . .

Theorem

Any strategy which is complete with respect to normal form eventually contracts the leftmost redex. (It turns out that the leftmost redex is in positive position with respect to the leftmost active component, and hence it is not discardable!)

17 / 18

slide-71
SLIDE 71

Completeness in λV

Theorem (Hereditary Quasi-Chest Reduction)

Any λV -strategy which eventually contracts the redices in the chest of the active components of a term is complete with respect to λV normal form.

18 / 18

slide-72
SLIDE 72

Completeness in λV

Theorem (Hereditary Quasi-Chest Reduction)

Any λV -strategy which eventually contracts the redices in the chest of the active components of a term is complete with respect to λV normal form.

  • Reciprocally. . .

Theorem

Any λV -strategy which is complete with respect to λV normal form eventually contracts the redices in the chest of the active components of a term.

18 / 18