Transitivity Elimination: Where and Why Pierluigi Minari Section of - - PowerPoint PPT Presentation

transitivity elimination where and why
SMART_READER_LITE
LIVE PREVIEW

Transitivity Elimination: Where and Why Pierluigi Minari Section of - - PowerPoint PPT Presentation

Transitivity Elimination: Where and Why Pierluigi Minari Section of Philosophy, DILEF, University of Florence minari@unifi.it Advances in Proof Theory 2013 Bern, December 13-14, 2013 P . Minari (UNIFI) Transitivity Elimination JGERFEST


slide-1
SLIDE 1

Transitivity Elimination: Where and Why

Pierluigi Minari

Section of Philosophy, DILEF, University of Florence minari@unifi.it

Advances in Proof Theory 2013 Bern, December 13-14, 2013

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 1 / 1

slide-2
SLIDE 2

Intuitive motivations: two analogies

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 2 / 1

slide-3
SLIDE 3

Intuitive motivations: two analogies

Analogy 1: Modus ponens / transitivity rule for equality: A → B A B ≈ t = r r = s t = s

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 2 / 1

slide-4
SLIDE 4

Standard presentation of an equational proof system E:

certain specific axioms (a given set E of equation schemas) the usual inference rules for equality: t = t [refl] t = s s = t [symm] t = r r = s t = s

[trs]

ti = si f n(t1, . . . , tn) = f n(t1 . . . , ti−1, si, ti+1, . . . , tn) [congr: 1≤i≤n]

Birkhoff’s completeness theorem for equational logic (1935): ⊢E t = s ⇔ E | = t = s

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 3 / 1

slide-5
SLIDE 5

The transitivity rule (which cannot be dispensed with, except that in trivial cases) has an inherently synthetic character in combining derivations, like modus ponens in Hilbert-style proof systems Potential loss of relevant information along formal derivations (no kind of “subterm property” available!) As a consequence, naive proof-theoretic arguments are usually inapplicable (e.g.: syntactic consistency proofs by induction on the length of derivations) In general, derivations lack any significant mathematical structure All in all, ‘synthetic’ equational calculi do not lend themselves directly to proof-theoretical analysis

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 4 / 1

slide-6
SLIDE 6

Question

Are there significant cases in which it is both possible and useful to turn a ‘synthetic’ equational proof system into an equivalent ‘analytic’ proof system, one in which the transitivity rule is provably redundant?

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 5 / 1

slide-7
SLIDE 7

Analogy 2: Cut-elimination / Church-Rosser: (syntactic) proofs of cut-elimination for Gentzen-style calculi ≈? some proofs of the Church-Rosser theorem for (weak, β-, βη-) reduction (e.g., proofs à la Tait & Martin-Löf, using parallel reduction)

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 6 / 1

slide-8
SLIDE 8

(Partial) answer: where

Equational theories of type-free operations, in particular: combinatory logic (more generally: arbitrary “combinatory systems”) and lambda-calculus can be presented through an ‘analytic’ proof system.

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 7 / 1

slide-9
SLIDE 9

Answer: why

Conceptual interest: analyticity at work in an equational environment (subterm property); direct consistency proofs. New (and short) proofs of well-known key results concerning reductions (like Confluence, Standardization, Leftmost reduction, η-Postponement) can be given in a unified framework by purely proof-theoretical methods. Decidability of (pure, linear and recursive) fragments of CL with extensionality, like e.g. BCK + ext. Positive solution of Curry’s problem (1958) on combinatory strong reduction (a “Methodenreinheit” issue). . . .

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 8 / 1

slide-10
SLIDE 10

Overview

✞ ✝ ☎ ✆

synthetic (CL-like or λ) proof-systems (“S-systems”)

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 9 / 1

slide-11
SLIDE 11

Overview

✞ ✝ ☎ ✆

synthetic (CL-like or λ) proof-systems (“S-systems”) ⇓

✞ ✝ ☎ ✆

equivalent (candidate) analytic proof-systems (“A-systems”)

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 9 / 1

slide-12
SLIDE 12

Overview

✞ ✝ ☎ ✆

synthetic (CL-like or λ) proof-systems (“S-systems”) ⇓

✞ ✝ ☎ ✆

equivalent (candidate) analytic proof-systems (“A-systems”) ⇓ (effective) transitivity elimination for A-systems

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 9 / 1

slide-13
SLIDE 13

Overview

✞ ✝ ☎ ✆

synthetic (CL-like or λ) proof-systems (“S-systems”) ⇓

✞ ✝ ☎ ✆

equivalent (candidate) analytic proof-systems (“A-systems”) ⇓ (effective) transitivity elimination for A-systems ⇒ consistency Church-Rosser

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 9 / 1

slide-14
SLIDE 14

Overview

✞ ✝ ☎ ✆

synthetic (CL-like or λ) proof-systems (“S-systems”) ⇓

✞ ✝ ☎ ✆

equivalent (candidate) analytic proof-systems (“A-systems”) ⇓ (effective) transitivity elimination for A-systems ⇒ consistency Church-Rosser ⇓ “normalizability” of transitivity-free derivations

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 9 / 1

slide-15
SLIDE 15

Overview

✞ ✝ ☎ ✆

synthetic (CL-like or λ) proof-systems (“S-systems”) ⇓

✞ ✝ ☎ ✆

equivalent (candidate) analytic proof-systems (“A-systems”) ⇓ (effective) transitivity elimination for A-systems ⇒ consistency Church-Rosser ⇓ “normalizability” of transitivity-free derivations ⇓ applications to combinatory/ lambda reductions

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 9 / 1

slide-16
SLIDE 16

Combinatory Logic: CL (& generalizations)

P .M. 2004, Analytic combinatory calculi and the elimination of transitivity, Arch. Math. Logic 43, 159-191.

Lambda-Calculus: λβ, λβη

P .M. 2005, Proof-theoretical methods in combinatory logic and λ-calculus, in: S. Cooper et

  • al. (Eds), CiE 2005: New Computational Paradigms, Amsterdam, 148-157.

P .M. 2007, Analytic proof systems for λ-calculus: the elimination of transitivity, and why it matters, Arch. Math. Logic 46, 385-424.

Extensional Combinatory Logic: CLext (& generalizations)

P .M. 2009, A solution to Curry and Hindley’s problem on combinatory strong reduction,

  • Arch. Math. Logic 48, 159-184.

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 10 / 1

slide-17
SLIDE 17

Synthetic systems

CL

Axiom schemas: Kts = t Stsr = tr(sr) [ It = t ] Inference rules: ̺ (reflexivity) σ (symmetry) τ (transitivity) t = s rt = rs µ t = s tr = sr ν

(app-congruence rules)

CLext

:= CL + tx = sx t = s

Ext {x/ ∈V(ts)}

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 11 / 1

slide-18
SLIDE 18

CL generalized

A combinatory system X is a map, defined on a non-empty set X = dom(X) of primitive combinators (F, G . . . ), which associates to each F ∈ X a pair kF, dF s.t.: kF, the index of F under X, is a non negative integer; dF, the definition of F under X, is a term with V(dF) ⊆ {v1, . . . , vkF}. Intuitively, X fixes an axiom schema for each primitive combinator F ∈ X: Ft1 . . . tkF = dF[v1/t1, . . . , vkF/tkF] (AX F)X CL[X] / CLext[X] are now defined exactly as CL / CLext, except that the axiom schemas for the combinators K, S (I) are replaced by the set {(AX F)X | F ∈ X}

  • f axiom schemas induced by X.

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 12 / 1

slide-19
SLIDE 19

Example 1

The familiar pair {K, S} of primitive combinators of CL corresponds to the combinatory system C such that: C = {K, S} kK = 2 and dK = v1 kS = 3 and dS = v1v3(v2v3)

Example 2

But also the following is a perfectly legitimate (maybe odd!) combinatory system: X = {F, G, H} kF = 0 and dF = FF(HG)(GH) kG = 2 and dG = v2GHv1 kH = 4 and dH = v1v1((Hv2)(Fv1))(v4H)

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 13 / 1

slide-20
SLIDE 20

λβ

Axiom schema: (λx.t)r = t[x/r]

(β-conversion)

Inference rules: ̺, σ, τ, µ, ν, plus t = s λx.t = λx.s ξ

(abstr-congruence rule)

λβη

:= λβ + λx.tx = t {x/

∈V(t)}

(η-conversion)

  • r, equivalently, λβ + Ext

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 14 / 1

slide-21
SLIDE 21

Analytic “A”-systems: main features

1

combinatory axiom schemas / β-conversion schema are replaced by introduction rules (to the left / to the right), as follows.

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 15 / 1

slide-22
SLIDE 22

Example: introduction rules for the combinator S

Stsr = tr(sr)

[AX S]

  • tr(sr)p1 . . . pn = q

Stsrp1 . . . pn = q [Sl] q = tr(sr)p1 . . . pn q = Stsrp1 . . . pn

[Sr]

where n ≥ 0, i.e.: the “side terms” p1, . . . , pn may be missing

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 16 / 1

slide-23
SLIDE 23

In general: introduction rules for a primitive combinator F

Ft1 . . . tkF = dF[t1, . . . , tkF] (AX F)X

  • dF[t1, . . . , tkF]p1 . . . pn = s

Ft1 . . . tkFp1 . . . pn = s

[Fl]X

s = dF[t1, . . . , tkF]p1 . . . pn s = Ft1 . . . tkFp1 . . . pn

[Fr]X

where n ≥ 0. (We write t[s1, . . . , sn] short for t[v1/s1, . . . , vn/sn])

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 17 / 1

slide-24
SLIDE 24

β-introduction rules

(λx.t)r = t[x/r]

[β−conv]

  • t[x/r]p1 . . . pn = q

(λx.t)rp1 . . . pn = q [βl] q = t[x/r]p1 . . . pn q = (λx.t)rp1 . . . pn

[βr]

where n ≥ 0, i.e.: the “side terms” p1, . . . , pn may be missing

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 18 / 1

slide-25
SLIDE 25

Analytic “A”-systems: main features (contd)

1

combinatory axiom schemas / β-conversion schema are turned into the corresponding left/right introduction rules, as shown.

2

symmetry rule ◮ dropped

3

reflexivity (0-premises) rule ◮ restricted to atomic terms (̺′)

4

app-congruence (= monotony) rule(s) ◮ taken in the parallel version t = s p = q tp = sq

App

5

extensionality (if any) ◮ always taken in the rule-version tx = sx t = s

Ext {x/ ∈V(ts)}

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 19 / 1

slide-26
SLIDE 26

Analytic “A”-systems (summarizing)

A...[. . .] :=        ̺′, App, τ / and ξ “structural” rules Fl, Fr / or βl, βr introduction rules

  • Ext

extensionality rule

  • Synthetic systems
  • Equivalent analytic systems

CL

  • A[C]

CL[X]

  • A[X]

CLext / CLext[X]

  • Aext[C] / Aext[X]

λβ

  • A[β]

λβη

  • Aext[β]

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 20 / 1

slide-27
SLIDE 27

Main Result

τ-elimination

A-systems admit (effective) transitivity elimination Proofs (listed in order of increasing complexity): A[X] (X arbitrary) Aext[X] (X linear) A[β] and Aext[β] Aext[X] (X arbitrary)

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 21 / 1

slide-28
SLIDE 28

Immediate applications of τ-elimination

Fact

Transitivity-free derivations D ⊢ t = s trivially enjoy a sort of subterm property. Namely: for A-Systems without Ext: if D contains an application of a left (right) F-intro, resp. of a left (right) β-intro, then t (s) contains a F-redex, resp. a β-redex. for A-systems with Ext: if D contains an application of a left (right) F-intro, resp. of a left (right) β-intro, then t (s) contains an occurrence of F, resp. an

  • ccurrence of λ.

Corollary 1 [Consistency]

For every analytic system A: A x = y (with x distinct from y) A (hence the corresponding synthetic system) is consistent

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 22 / 1

slide-29
SLIDE 29

Corollary 2 [Church-Rosser]

The reductions ։X

(weak X-combinatory reduction)

։β , ։βη

(β- and βη-reduction)

> −

(strong combinatory reduction)

are confluent Proof. From any given τ-free derivation D ⊢ t = s in an analytic system A, we can extract a term r such that t ։ r և s by straightforward induction on the length of D (where ։ is the appropriate reduction, depending on A).

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 23 / 1

slide-30
SLIDE 30

Further applications

Normal form(s) of τ-free derivations

τ-free derivations have nice structural properties and can be shown to normalize to suitable normal forms. By exploiting this feature, new very short demonstrations of well known results concerning reductions can be given, including: Standardization Leftmost reduction (in particular for λβη-reduction) η-Postponement, . . . On can also prove, e.g. the decidability of a natural class of fragments of CLext

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 24 / 1

slide-31
SLIDE 31

τ-elimination

A[X] systems — Proof strategy

We show how to eliminate a topmost application of τ : D1 ⊢

− t = s , D2 ⊢ − s = r

◮ D∗ ⊢

− t = r

The proof runs by ω3-induction: main: h′(D1) + h′(D2) secondary: s(D1) + s(D2) ternary: s This strategy doesn’t work when the extensionality rule is present, coupled with non linear combinators.

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 25 / 1

slide-32
SLIDE 32

Aext[X] systems — Proof strategy

We show that the following deep transitivity rule t = s Φ[ [s] ] = r Φ[ [t] ] = r

τ ∗

is eliminable. The proof consists of four main steps (in this order):

1

deep F-inversion

2

left τ-elimination

3

deep F-introduction

4

elimination of a topmost occurrence of [τ ∗]

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 26 / 1

slide-33
SLIDE 33

Step 1: deep F-inversion Lemma

The following deep combinatory inversion rules are τ-free admissible for any F ∈ X: Φ[ [Ft1 . . . tk] ] = s Φ[ [dF[t1, . . . , tk]] ] = s [Finv

l ]

s = Φ[ [Ft1 . . . tk] ] s = Φ[ [dF[t1, . . . , tk]] ] [Finv

r ]

Moreover, [Finv

l ] and [Finv r ] preserve right-handedness, resp.

left-handedness.

Proof.

“Marking” technique . . .

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 27 / 1

slide-34
SLIDE 34

Step 2: left τ-elimination

To any given pair D1 ⊢

− L t = s

and D2 ⊢

− s = r

  • f τ-free derivations, such that D1 is a left derivation, we can effectively

associate a τ-free derivation D∗ ⊢

− t = r

which is a left derivation provided D2 is such.

Proof.

Main induction on s(D2), secondary induction on s(D1), ternary induction on s, using deep F-inversion.

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 28 / 1

slide-35
SLIDE 35

Step 3: deep F-introduction

The following deep combinatory introduction rules are τ-free admissible for any F ∈ X: Φ[ [dF[t1, . . . , tk]] ] = s Φ[ [Ft1 . . . tk] ] = s

[F+

l ]

s = Φ[ [dF[t1, . . . , tk]] ] s = Φ[ [Ft1 . . . tk] ]

[F+

r ]

Moreover, [F+

l ] and [F+ r ] preserve left-handedness, resp.

right-handedness.

Proof.

By left τ-elimination.

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 29 / 1

slide-36
SLIDE 36

Final step: main elimination Lemma

To each pair of τ-free derivations D1 ⊢

− t = s

and D2 ⊢

− Φ[

[s] ] = r we can effectively associate a τ-free derivation D∗ ⊢

− Φ[

[t] ] = r

Proof.

We use deep F introduction and inversion. The proof runs by ω3-induction main: s(D1) secondary: s ternary: h(D2) taking main cases according to the last inference R of D1.

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 30 / 1

slide-37
SLIDE 37

Combinatory strong reduction

Primitive combinators: I , K , S t t ρ It t I Kts t K Stsr tr(sr) S t s rt rs µ t s tr sr ν t r r s t s

τ

t s λ∗x.t λ∗x.s ξ Abstraction is defined according to the strong algorithm.

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 31 / 1

slide-38
SLIDE 38

Curry’s problem concerning > −

  • H. B. Curry and R. Feys, Combinatory Logic, Vol. I, 1958

List of “Unsolved problems” in § 6 F.5 “c. Is it possible to prove the Church-Rosser property directly for strong reduction, without having recourse to transformations between that theory and the theory of λ-conversion? . . . ”

Remark

A solution was advanced by K. Loewen in 1968. His proof, however, doesn’t work because of a serious mistake — as pointed out in Hindley’s MR review (1970).

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 32 / 1

slide-39
SLIDE 39

Hindley’s statement of the problem (2006)

— Problem #1, TLCA List of Open Problems, http://tlca.di.unito.it/opltlca/

Submitted by Roger Hindley Date: Known since 1958!

  • Statement. Is there a direct proof of the confluence of βη-strong reduction?

Problem Origin. First posed by Haskell Curry and Roger Hindley.

The βη-strong reduction is the combinatory analogue of βη-reduction in λ-calculus. It is confluent. Its only known confluence-proof is very easy, [Curry and Feys, 1958, 6F, p. 221 Theorem 3], but it depends on the having already proved the confluence of λβη-reduction. Thus the theory of combinators is not self-contained at present. Is there a confluence proof independent of λ-calculus?

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 33 / 1

slide-40
SLIDE 40

Hindley’s statement of the problem (2006)

— Problem #1, TLCA List of Open Problems, http://tlca.di.unito.it/opltlca/

Submitted by Roger Hindley Date: Known since 1958!

  • Statement. Is there a direct proof of the confluence of βη-strong reduction?

Problem Origin. First posed by Haskell Curry and Roger Hindley.

The βη-strong reduction is the combinatory analogue of βη-reduction in λ-calculus. It is confluent. Its only known confluence-proof is very easy, [Curry and Feys, 1958, 6F, p. 221 Theorem 3], but it depends on the having already proved the confluence of λβη-reduction. Thus the theory of combinators is not self-contained at present. Is there a confluence proof independent of λ-calculus? Our confluence proof for is independent of λ-calculus!

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 33 / 1

slide-41
SLIDE 41

P . Minari (UNIFI) Transitivity Elimination JÄGERFEST 2013 34 / 1