Free-cut elimination in linear logic and an application to a - - PowerPoint PPT Presentation

free cut elimination in linear logic and an application
SMART_READER_LITE
LIVE PREVIEW

Free-cut elimination in linear logic and an application to a - - PowerPoint PPT Presentation

Free-cut elimination in linear logic and an application to a feasible arithmetic Anupam Das Patrick Baillot LIP, Universit e de Lyon, CNRS, ENS de Lyon, INRIA, Universit e Claude-Bernard Lyon 1, Milyon 6 th October, 2016 Bologne ELICA


slide-1
SLIDE 1

Free-cut elimination in linear logic and an application to a feasible arithmetic

Anupam Das Patrick Baillot

LIP, Universit´ e de Lyon, CNRS, ENS de Lyon, INRIA, Universit´ e Claude-Bernard Lyon 1, Milyon

6th October, 2016 Bologne ELICA meeting

1 / 20

slide-2
SLIDE 2

Outline

Introduction Normal forms in first-order linear logic An arithmetic in linear logic Bellantoni-Cook programs and the WFM for IΣN+

1

Conclusions

2 / 20

slide-3
SLIDE 3

Implicit computational complexity (ICC)

3 / 20

slide-4
SLIDE 4

Implicit computational complexity (ICC)

In a nutshell: ICC studies correspondences between features of logic and complexity classes

3 / 20

slide-5
SLIDE 5

Implicit computational complexity (ICC)

In a nutshell: ICC studies correspondences between features of logic and complexity classes Proof-theoretic approach For a logic or theory, ‘representable’ functions = given complexity class where representability can mean definability, typability etc.

3 / 20

slide-6
SLIDE 6

Implicit computational complexity (ICC)

In a nutshell: ICC studies correspondences between features of logic and complexity classes Proof-theoretic approach For a logic or theory, ‘representable’ functions = given complexity class where representability can mean definability, typability etc. We distinguish the following two methodologies:

1 Theories whose definable functions = given complexity class. 2 Logics that type terms with normalisation complexity of a given class.

3 / 20

slide-7
SLIDE 7

Implicit computational complexity (ICC)

In a nutshell: ICC studies correspondences between features of logic and complexity classes Proof-theoretic approach For a logic or theory, ‘representable’ functions = given complexity class where representability can mean definability, typability etc. We distinguish the following two methodologies:

1 Theories whose definable functions = given complexity class. 2 Logics that type terms with normalisation complexity of a given class.

This work is about the first methodology.

3 / 20

slide-8
SLIDE 8

Provably convergent functions

Correspondence between a theory T and a class C: T ⊢ ∀x.∃y.A(x, y) ⇔ N | = ∀x.A(x, f(x)) for some f ∈ C

4 / 20

slide-9
SLIDE 9

Provably convergent functions

Correspondence between a theory T and a class C: T ⊢ ∀x.∃y.A(x, y) ⇔ N | = ∀x.A(x, f(x)) for some f ∈ C For example:

Theorem (Parsons ’68, Mints ’73, Buss ’95)

IΣ1 proves the totality of precisely the primitive recursive functions.

4 / 20

slide-10
SLIDE 10

Provably convergent functions

Correspondence between a theory T and a class C: T ⊢ ∀x.∃y.A(x, y) ⇔ N | = ∀x.A(x, f(x)) for some f ∈ C For example:

Theorem (Parsons ’68, Mints ’73, Buss ’95)

IΣ1 proves the totality of precisely the primitive recursive functions.

Parsons’ proof.

  • Via a Dialectica-style functional interpretation.
  • Extracted programs: higher-order variant of primitive recursive functions.

4 / 20

slide-11
SLIDE 11

Provably convergent functions

Correspondence between a theory T and a class C: T ⊢ ∀x.∃y.A(x, y) ⇔ N | = ∀x.A(x, f(x)) for some f ∈ C For example:

Theorem (Parsons ’68, Mints ’73, Buss ’95)

IΣ1 proves the totality of precisely the primitive recursive functions.

Parsons’ proof.

  • Via a Dialectica-style functional interpretation.
  • Extracted programs: higher-order variant of primitive recursive functions.

Buss’ and Mints’ proof.

  • Via the witness function method.
  • Extracted programs: regular primitive recursive functions of ground type.

4 / 20

slide-12
SLIDE 12

The witness function method (WFM)

The idea

  • A formal witness predicate over N for each ‘tame’ formula.
  • Arithmetic proofs functions from witnesses to witnesses:

π

Γ ⊢ ∆

  • f π :

witnesses

  • f Γ

witnesses

  • f ∆
  • 5 / 20
slide-13
SLIDE 13

The witness function method (WFM)

The idea

  • A formal witness predicate over N for each ‘tame’ formula.
  • Arithmetic proofs functions from witnesses to witnesses:

π

Γ ⊢ ∆

  • f π :

witnesses

  • f Γ

witnesses

  • f ∆
  • Crucial points
  • π free-cut free: tames the complexity of formulae; no bad ∀.

5 / 20

slide-14
SLIDE 14

The witness function method (WFM)

The idea

  • A formal witness predicate over N for each ‘tame’ formula.
  • Arithmetic proofs functions from witnesses to witnesses:

π

Γ ⊢ ∆

  • f π :

witnesses

  • f Γ

witnesses

  • f ∆
  • Crucial points
  • π free-cut free: tames the complexity of formulae; no bad ∀.
  • De Morgan normal form: only functions at ground type, i.e. Nk → N.

5 / 20

slide-15
SLIDE 15

The witness function method (WFM)

The idea

  • A formal witness predicate over N for each ‘tame’ formula.
  • Arithmetic proofs functions from witnesses to witnesses:

π

Γ ⊢ ∆

  • f π :

witnesses

  • f Γ

witnesses

  • f ∆
  • Crucial points
  • π free-cut free: tames the complexity of formulae; no bad ∀.
  • De Morgan normal form: only functions at ground type, i.e. Nk → N.
  • Right-contraction: tests the witness predicate (should be decidable).

5 / 20

slide-16
SLIDE 16

Context and motivation

Free-cut elimination

  • Used in various forms by Gentzen, Parikh, Paris & Wilkie, Cook,

Kraj´ ıcek,...

  • First presented for general fragments of PA by Takeuti.
  • Further generalised by Buss and others.

6 / 20

slide-17
SLIDE 17

Context and motivation

Free-cut elimination

  • Used in various forms by Gentzen, Parikh, Paris & Wilkie, Cook,

Kraj´ ıcek,...

  • First presented for general fragments of PA by Takeuti.
  • Further generalised by Buss and others.

Witness function method

  • Due to Buss and Mints.
  • bounded arithmetic. Theories for NCi, ACi, P, PH,...
  • The best method available to delineate hierarchies of classical theories.

6 / 20

slide-18
SLIDE 18

Context and motivation

Free-cut elimination

  • Used in various forms by Gentzen, Parikh, Paris & Wilkie, Cook,

Kraj´ ıcek,...

  • First presented for general fragments of PA by Takeuti.
  • Further generalised by Buss and others.

Witness function method

  • Due to Buss and Mints.
  • bounded arithmetic. Theories for NCi, ACi, P, PH,...
  • The best method available to delineate hierarchies of classical theories.

Question

Can WFM be useful for characterising complexity classes via linear logic?

6 / 20

slide-19
SLIDE 19

Outline

Introduction Normal forms in first-order linear logic An arithmetic in linear logic Bellantoni-Cook programs and the WFM for IΣN+

1

Conclusions

7 / 20

slide-20
SLIDE 20

Linear logic (LL)

8 / 20

slide-21
SLIDE 21

Linear logic (LL)

  • LL is a substructural logic:

A ` A A A A ` B

8 / 20

slide-22
SLIDE 22

Linear logic (LL)

  • LL is a substructural logic:

A ` A A A A ` B

  • It distinguishes multiplicative and additive rules by separate connectives:

Γ, A ∆, B Γ, ∆, A ⊗ B Γ, A Γ, B Γ, A&B

8 / 20

slide-23
SLIDE 23

Linear logic (LL)

  • LL is a substructural logic:

A ` A A A A ` B

  • It distinguishes multiplicative and additive rules by separate connectives:

Γ, A ∆, B Γ, ∆, A ⊗ B Γ, A Γ, B Γ, A&B

  • Controlled access to structural rules via modalities:

!A ⊢ !A⊗!A

8 / 20

slide-24
SLIDE 24

Linear logic (LL)

  • LL is a substructural logic:

A ` A A A A ` B

  • It distinguishes multiplicative and additive rules by separate connectives:

Γ, A ∆, B Γ, ∆, A ⊗ B Γ, A Γ, B Γ, A&B

  • Controlled access to structural rules via modalities:

!A ⊢ !A⊗!A (otherwise ! behaves just like in S4)

8 / 20

slide-25
SLIDE 25

Linear logic (LL)

  • LL is a substructural logic:

A ` A A A A ` B

  • It distinguishes multiplicative and additive rules by separate connectives:

Γ, A ∆, B Γ, ∆, A ⊗ B Γ, A Γ, B Γ, A&B

  • Controlled access to structural rules via modalities:

!A ⊢ !A⊗!A (otherwise ! behaves just like in S4)

  • De Morgan duality is everywhere!

8 / 20

slide-26
SLIDE 26

Free-cut elimination in linear logic

9 / 20

slide-27
SLIDE 27

Free-cut elimination in linear logic

A nonlogical rule has the following format: {!Γ, Σi ⊢ ∆i, ?Π}i∈I !Γ, Σ ⊢ ∆, ?Π The formulae in Σ and ∆ are considered principal.

9 / 20

slide-28
SLIDE 28

Free-cut elimination in linear logic

A nonlogical rule has the following format: {!Γ, Σi ⊢ ∆i, ?Π}i∈I !Γ, Σ ⊢ ∆, ?Π The formulae in Σ and ∆ are considered principal. A cut step is anchored if:

  • its cut-formulae are (almost) principal on both sides.
  • on at least one side it is (almost) principal for a nonlogical step.

9 / 20

slide-29
SLIDE 29

Free-cut elimination in linear logic

A nonlogical rule has the following format: {!Γ, Σi ⊢ ∆i, ?Π}i∈I !Γ, Σ ⊢ ∆, ?Π The formulae in Σ and ∆ are considered principal. A cut step is anchored if:

  • its cut-formulae are (almost) principal on both sides.
  • on at least one side it is (almost) principal for a nonlogical step.

Theorem

Any linear logic proof can be transformed into one where all cuts are anchored.

9 / 20

slide-30
SLIDE 30

Free-cut elimination in linear logic

A nonlogical rule has the following format: {!Γ, Σi ⊢ ∆i, ?Π}i∈I !Γ, Σ ⊢ ∆, ?Π The formulae in Σ and ∆ are considered principal. A cut step is anchored if:

  • its cut-formulae are (almost) principal on both sides.
  • on at least one side it is (almost) principal for a nonlogical step.

Theorem

Any linear logic proof can be transformed into one where all cuts are anchored.

  • Proof similar to usual cut-elimination arguments.
  • Special cases due to Lincoln et al., Baelde & Miller,...

9 / 20

slide-31
SLIDE 31

Free-cut elimination in linear logic

A nonlogical rule has the following format: {!Γ, Σi ⊢ ∆i, ?Π}i∈I !Γ, Σ ⊢ ∆, ?Π The formulae in Σ and ∆ are considered principal. A cut step is anchored if:

  • its cut-formulae are (almost) principal on both sides.
  • on at least one side it is (almost) principal for a nonlogical step.

Theorem

Any linear logic proof can be transformed into one where all cuts are anchored.

  • Proof similar to usual cut-elimination arguments.
  • Special cases due to Lincoln et al., Baelde & Miller,...

Corollary

Every theorem has a proof where all formulae are subformulae of the conclusion

  • r a principal formula of a nonlogical step.

9 / 20

slide-32
SLIDE 32

Outline

Introduction Normal forms in first-order linear logic An arithmetic in linear logic Bellantoni-Cook programs and the WFM for IΣN+

1

Conclusions

10 / 20

slide-33
SLIDE 33

An arithmetic in linear logic

We consider an axiomatisation inspired by Bellantoni & Hofmann: Ncntr ∀xN.(N(x) ⊗ N(x)) Nε N(ε) N0 ∀xN.N(s0x) N1 ∀xN.N(s1x) ε ∀xN.(ε = s0x ⊗ ε = s1x) inj0 ∀xN, y N.(s0x = s0y ⊸ x = y) inj1 ∀xN, y N.(s1x = s1y ⊸ x = y) tree ∀xN.s0x = s1x surj ∀xN.(x = ε ⊕ ∃y N.x = s0y ⊕ ∃y N.x = s1y) PIND A(ε) ⊸ !(∀x!N.(A(x) ⊸ A(s0x))) ⊸ !(∀x!N.(A(x) ⊸ A(s1x))) ⊸ ∀x!N.A(x) Peano’s N predicate: N(t) := “t is a natural number”.

11 / 20

slide-34
SLIDE 34

Convergence

Functions are specified by equational programs. E.g.: Φ            add(0, x) = x add(su, x) = s(add(u, y)) mult(0, x) = mult(su, x) = add(x, mult(u, x))

12 / 20

slide-35
SLIDE 35

Convergence

Functions are specified by equational programs. E.g.: Φ            add(0, x) = x add(su, x) = s(add(u, y)) mult(0, x) = mult(su, x) = add(x, mult(u, x)) Convergence statement: ∀x!N.Φ(x) ⊸ ∀xN, y N.N(mult(x, y))

12 / 20

slide-36
SLIDE 36

Convergence

Functions are specified by equational programs. E.g.: Φ            add(0, x) = x add(su, x) = s(add(u, y)) mult(0, x) = mult(su, x) = add(x, mult(u, x)) Convergence statement: ∀x!N.Φ(x) ⊸ ∀xN, y N.N(mult(x, y)) We will consider the theory IΣN+

1 , admitting PIND only over:

E ::= N(t) | s = t | s = t | E ` E | E ⊗ E | ∃x.E

12 / 20

slide-37
SLIDE 37

Outline

Introduction Normal forms in first-order linear logic An arithmetic in linear logic Bellantoni-Cook programs and the WFM for IΣN+

1

Conclusions

13 / 20

slide-38
SLIDE 38

Bellantoni-Cook characterisation of polytime functions

14 / 20

slide-39
SLIDE 39

Bellantoni-Cook characterisation of polytime functions

Arguments of a function are separated into normal and safe inputs: f (u; x) Normal: left of ; so u above. Safe: right of ; so x above.

14 / 20

slide-40
SLIDE 40

Bellantoni-Cook characterisation of polytime functions

Arguments of a function are separated into normal and safe inputs: f (u; x) Normal: left of ; so u above. Safe: right of ; so x above. Predicative recursion on notation If g, h0, h1 are BC then so is f defined by: f (ε, v; x) = g(v; x) f (s0u, v; x) = h0(u, v; x, f (u, v; x)) f (s1u, v; x) = h1(u, v; x, f (u, v; x))

14 / 20

slide-41
SLIDE 41

Bellantoni-Cook characterisation of polytime functions

Arguments of a function are separated into normal and safe inputs: f (u; x) Normal: left of ; so u above. Safe: right of ; so x above. Predicative recursion on notation If g, h0, h1 are BC then so is f defined by: f (ε, v; x) = g(v; x) f (s0u, v; x) = h0(u, v; x, f (u, v; x)) f (s1u, v; x) = h1(u, v; x, f (u, v; x)) Safe composition Can compose functions as long as safe inputs are hereditarily safe.

14 / 20

slide-42
SLIDE 42

Bellantoni-Cook characterisation of polytime functions

Arguments of a function are separated into normal and safe inputs: f (u; x) Normal: left of ; so u above. Safe: right of ; so x above. Predicative recursion on notation If g, h0, h1 are BC then so is f defined by: f (ε, v; x) = g(v; x) f (s0u, v; x) = h0(u, v; x, f (u, v; x)) f (s1u, v; x) = h1(u, v; x, f (u, v; x)) Safe composition Can compose functions as long as safe inputs are hereditarily safe. (Also an adequate stock of initial functions.)

14 / 20

slide-43
SLIDE 43

Bellantoni-Cook characterisation of polytime functions

Arguments of a function are separated into normal and safe inputs: f (u; x) Normal: left of ; so u above. Safe: right of ; so x above. Predicative recursion on notation If g, h0, h1 are BC then so is f defined by: f (ε, v; x) = g(v; x) f (s0u, v; x) = h0(u, v; x, f (u, v; x)) f (s1u, v; x) = h1(u, v; x, f (u, v; x)) Safe composition Can compose functions as long as safe inputs are hereditarily safe. (Also an adequate stock of initial functions.)

Theorem (Bellantoni & Cook ’92)

BC programs compute just the polynomial-time functions.

14 / 20

slide-44
SLIDE 44

Multiplication again. . .

add(0; x) = x add(su; x) = s(add(u; y)) mult(0, x; ) = mult(su, x; ) = add(x; mult(u, x))

15 / 20

slide-45
SLIDE 45

Main results

16 / 20

slide-46
SLIDE 46

Main results

Theorem

Every BC program is provably convergent in IΣN+

1 .

16 / 20

slide-47
SLIDE 47

Main results

Theorem

Every BC program is provably convergent in IΣN+

1 .

Proof.

  • Straightforward. Similar to previous arguments by Leivant, Bellantoni &

Hofmann, Cantini, taking care to respect linear considerations.

16 / 20

slide-48
SLIDE 48

Main results

Theorem

Every BC program is provably convergent in IΣN+

1 .

Proof.

  • Straightforward. Similar to previous arguments by Leivant, Bellantoni &

Hofmann, Cantini, taking care to respect linear considerations.

Theorem

Every function provably convergent in IΣN+

1

is polynomial-time computable.

16 / 20

slide-49
SLIDE 49

Main results

Theorem

Every BC program is provably convergent in IΣN+

1 .

Proof.

  • Straightforward. Similar to previous arguments by Leivant, Bellantoni &

Hofmann, Cantini, taking care to respect linear considerations.

Theorem

Every function provably convergent in IΣN+

1

is polynomial-time computable.

Main proof intuitions.

Via the WFM.

  • Free-cut elimination:

No ∀-formulae witness predicates of ground type, no ∀-right. No ?-formulae no contraction-right.

16 / 20

slide-50
SLIDE 50

Main results

Theorem

Every BC program is provably convergent in IΣN+

1 .

Proof.

  • Straightforward. Similar to previous arguments by Leivant, Bellantoni &

Hofmann, Cantini, taking care to respect linear considerations.

Theorem

Every function provably convergent in IΣN+

1

is polynomial-time computable.

Main proof intuitions.

Via the WFM.

  • Free-cut elimination:

No ∀-formulae witness predicates of ground type, no ∀-right. No ?-formulae no contraction-right.

  • !-formulae: normal inputs for the witness functions.

16 / 20

slide-51
SLIDE 51

Main results

Theorem

Every BC program is provably convergent in IΣN+

1 .

Proof.

  • Straightforward. Similar to previous arguments by Leivant, Bellantoni &

Hofmann, Cantini, taking care to respect linear considerations.

Theorem

Every function provably convergent in IΣN+

1

is polynomial-time computable.

Main proof intuitions.

Via the WFM.

  • Free-cut elimination:

No ∀-formulae witness predicates of ground type, no ∀-right. No ?-formulae no contraction-right.

  • !-formulae: normal inputs for the witness functions.
  • !, ?-free PIND: predicative recursion.

16 / 20

slide-52
SLIDE 52

Main results

Theorem

Every BC program is provably convergent in IΣN+

1 .

Proof.

  • Straightforward. Similar to previous arguments by Leivant, Bellantoni &

Hofmann, Cantini, taking care to respect linear considerations.

Theorem

Every function provably convergent in IΣN+

1

is polynomial-time computable.

Main proof intuitions.

Via the WFM.

  • Free-cut elimination:

No ∀-formulae witness predicates of ground type, no ∀-right. No ?-formulae no contraction-right.

  • !-formulae: normal inputs for the witness functions.
  • !, ?-free PIND: predicative recursion.
  • Anchored cuts: safe composition of functions.

16 / 20

slide-53
SLIDE 53

Example case: induction

17 / 20

slide-54
SLIDE 54

Example case: induction

  • By deduction and invertibility, we can assume PIND occurs as:

!Γ ⊢ A(ε), ?∆ !N(a), !Γ, A(a) ⊢ A(s0a), ?∆ !N(a), !Γ, A(a) ⊢ A(s0a), ?∆ !N(t), !Γ ⊢ A(t), ?∆

17 / 20

slide-55
SLIDE 55

Example case: induction

  • By deduction and invertibility, we can assume PIND occurs as:

!Γ ⊢ A(ε), ?∆ !N(a), !Γ, A(a) ⊢ A(s0a), ?∆ !N(a), !Γ, A(a) ⊢ A(s0a), ?∆ !N(t), !Γ ⊢ A(t), ?∆

  • By free-cut elimination we can assume ∆ is empty.

17 / 20

slide-56
SLIDE 56

Example case: induction

  • By deduction and invertibility, we can assume PIND occurs as:

!Γ ⊢ A(ε), ?∆ !N(a), !Γ, A(a) ⊢ A(s0a), ?∆ !N(a), !Γ, A(a) ⊢ A(s0a), ?∆ !N(t), !Γ ⊢ A(t), ?∆

  • By free-cut elimination we can assume ∆ is empty.
  • By inductive hypothesis suppose we have functions:

g

  • uΓ;
  • hi
  • uN(a), uΓ; xA(a)

17 / 20

slide-57
SLIDE 57

Example case: induction

  • By deduction and invertibility, we can assume PIND occurs as:

!Γ ⊢ A(ε), ?∆ !N(a), !Γ, A(a) ⊢ A(s0a), ?∆ !N(a), !Γ, A(a) ⊢ A(s0a), ?∆ !N(t), !Γ ⊢ A(t), ?∆

  • By free-cut elimination we can assume ∆ is empty.
  • By inductive hypothesis suppose we have functions:

g

  • uΓ;
  • hi
  • uN(a), uΓ; xA(a)
  • Define f by PRN:

f

  • 0, uΓ;
  • :=

g

  • uΓ;
  • f
  • siuN(t), uΓ;
  • :=

hi

  • uN(t), uΓ; f
  • uN(t), uΓ;
  • 17 / 20
slide-58
SLIDE 58

Outline

Introduction Normal forms in first-order linear logic An arithmetic in linear logic Bellantoni-Cook programs and the WFM for IΣN+

1

Conclusions

18 / 20

slide-59
SLIDE 59

Conclusions

Summary

  • General form of free-cut elimination for first-order linear logic.
  • Induces useful normal forms for arithmetic proofs.
  • Soundness and completeness of an arithmetic for BC-programs.

19 / 20

slide-60
SLIDE 60

Conclusions

Summary

  • General form of free-cut elimination for first-order linear logic.
  • Induces useful normal forms for arithmetic proofs.
  • Soundness and completeness of an arithmetic for BC-programs.

Further work

  • Bounded arithmetic style approach.

Finer use of the witness predicate: evaluation in polynomial-time. Relationships to BC-versions of equational theory PV ?

19 / 20

slide-61
SLIDE 61

Conclusions

Summary

  • General form of free-cut elimination for first-order linear logic.
  • Induces useful normal forms for arithmetic proofs.
  • Soundness and completeness of an arithmetic for BC-programs.

Further work

  • Bounded arithmetic style approach.

Finer use of the witness predicate: evaluation in polynomial-time. Relationships to BC-versions of equational theory PV ?

  • Characterise polynomial hierarchy via minimisation principles.

Functions conditional on Σp

i tests.

Relies on evaluation of witness predicate in ∆p

i .

19 / 20

slide-62
SLIDE 62

Thank you.

20 / 20