• Aucun résultat trouvé

Theories of bounded arithmetic for deep inference proof systems

N/A
N/A
Protected

Academic year: 2022

Partager "Theories of bounded arithmetic for deep inference proof systems"

Copied!
106
0
0

Texte intégral

(1)

Theories of bounded arithmetic for deep inference proof systems

Anupam Das

Ecole Normale Sup´´ erieure de Lyon

Team Carte, LORIA, Nancy March 9, 2015

(2)

Outline

1 Introduction 2 Monotone proofs

3 Atomic flows and normalisation 4 Relativised bounded arithmetic

5 Bounded arithmetics for monotone systems 6 Example: correctness of merge-sort

7 Conclusions

(3)

Outline

1 Introduction 2 Monotone proofs

3 Atomic flows and normalisation 4 Relativised bounded arithmetic

5 Bounded arithmetics for monotone systems 6 Example: correctness of merge-sort

7 Conclusions

(4)

Motivation

Proof complexity: find lower bounds for Frege systems.

Subproblem: lower bounds for certainrestrictionson proofs.

This talk: vary the permitted interactions betweenlogical and structuralsteps in proofs.

Closely related to normalisation procedures in deep inference.

(My motivation: proof complexity of deep inference.)

(5)

Motivation

Proof complexity: find lower boundsfor Frege systems.

Subproblem: lower bounds for certainrestrictionson proofs.

This talk: vary the permitted interactions betweenlogical and structuralsteps in proofs.

Closely related to normalisation procedures in deep inference.

(My motivation: proof complexity of deep inference.)

(6)

Motivation

Proof complexity: find lower boundsfor Frege systems.

Subproblem: lower bounds for certainrestrictionson proofs.

This talk: vary the permitted interactions betweenlogical and structuralsteps in proofs.

Closely related to normalisation procedures in deep inference.

(My motivation: proof complexity of deep inference.)

(7)

Motivation

Proof complexity: find lower boundsfor Frege systems.

Subproblem: lower bounds for certainrestrictionson proofs.

This talk: vary the permitted interactions betweenlogical andstructural steps in proofs.

Closely related to normalisation procedures in deep inference.

(My motivation: proof complexity of deep inference.)

(8)

Motivation

Proof complexity: find lower boundsfor Frege systems.

Subproblem: lower bounds for certainrestrictionson proofs.

This talk: vary the permitted interactions betweenlogical andstructural steps in proofs.

Closely related to normalisation procedures in deep inference.

(My motivation: proof complexity of deep inference.)

(9)

Motivation

Proof complexity: find lower boundsfor Frege systems.

Subproblem: lower bounds for certainrestrictionson proofs.

This talk: vary the permitted interactions betweenlogical andstructural steps in proofs.

Closely related to normalisation procedures in deep inference.

(My motivation: proof complexity of deep inference.)

(10)

Motivation

Theories of bounded arithmetic areuniform versions of propositional systems.

Induction formulae can only have bounded quantifiers. E.g.

∀x≤t.∃y ≤t0(x).φ(x,y)

Proofs of Π1 sentences areformal templates for associated classes of propositional proofs withlow complexity.

Other uses: bounded reverse mathematics, extraction of algorithms of low complexity,...

(11)

Motivation

Theories of bounded arithmetic areuniform versions of propositional systems.

Induction formulae can only have bounded quantifiers.

E.g.

∀x≤t.∃y ≤t0(x).φ(x,y)

Proofs of Π1 sentences areformal templates for associated classes of propositional proofs withlow complexity.

Other uses: bounded reverse mathematics, extraction of algorithms of low complexity,...

(12)

Motivation

Theories of bounded arithmetic areuniform versions of propositional systems.

Induction formulae can only have bounded quantifiers. E.g.

∀x≤t.∃y ≤t0(x).φ(x,y)

Proofs of Π1 sentences areformal templates for associated classes of propositional proofs withlow complexity.

Other uses: bounded reverse mathematics, extraction of algorithms of low complexity,...

(13)

Motivation

Theories of bounded arithmetic areuniform versions of propositional systems.

Induction formulae can only have bounded quantifiers. E.g.

∀x≤t.∃y ≤t0(x).φ(x,y)

Proofs of Π1 sentences areformal templates for associated classes of propositional proofs withlow complexity.

Other uses: bounded reverse mathematics, extraction of algorithms of low complexity,...

(14)

Motivation

Theories of bounded arithmetic areuniform versions of propositional systems.

Induction formulae can only have bounded quantifiers. E.g.

∀x≤t.∃y ≤t0(x).φ(x,y)

Proofs of Π1 sentences areformal templates for associated classes of propositional proofs withlow complexity.

Other uses: bounded reverse mathematics, extraction of algorithms of low complexity,...

(15)

The proposed programme of research

1 Formulate a bounded arithmetic for monotone proofs. Fixed pointssimulate formula classes ofunbounded depth.

2 Recover normal formsof proofs asfragmentsof this theory. Restricting topolynomial inductionsuffices.

. . . bygraph-rewriting-based normalisation indeep inference.

3 Deliver positiveproof complexity resultsand gain intuition towards possiblenegative results.

(16)

The proposed programme of research

1 Formulate a bounded arithmetic for monotone proofs.

Fixed pointssimulate formula classes ofunbounded depth.

2 Recover normal formsof proofs asfragmentsof this theory. Restricting topolynomial inductionsuffices.

. . . bygraph-rewriting-based normalisation indeep inference.

3 Deliver positiveproof complexity resultsand gain intuition towards possiblenegative results.

(17)

The proposed programme of research

1 Formulate a bounded arithmetic for monotone proofs.

Fixed pointssimulate formula classes ofunbounded depth.

2 Recover normal formsof proofs asfragmentsof this theory. Restricting topolynomial inductionsuffices.

. . . bygraph-rewriting-based normalisation indeep inference.

3 Deliver positiveproof complexity resultsand gain intuition towards possiblenegative results.

(18)

The proposed programme of research

1 Formulate a bounded arithmetic for monotone proofs.

Fixed pointssimulate formula classes ofunbounded depth.

2 Recover normal formsof proofs asfragmentsof this theory.

Restricting topolynomial inductionsuffices.

. . . bygraph-rewriting-based normalisation indeep inference.

3 Deliver positiveproof complexity resultsand gain intuition towards possiblenegative results.

(19)

The proposed programme of research

1 Formulate a bounded arithmetic for monotone proofs.

Fixed pointssimulate formula classes ofunbounded depth.

2 Recover normal formsof proofs asfragmentsof this theory.

Restricting topolynomial inductionsuffices.

. . . bygraph-rewriting-based normalisation indeep inference.

3 Deliver positiveproof complexity resultsand gain intuition towards possiblenegative results.

(20)

The proposed programme of research

1 Formulate a bounded arithmetic for monotone proofs.

Fixed pointssimulate formula classes ofunbounded depth.

2 Recover normal formsof proofs asfragmentsof this theory.

Restricting topolynomial inductionsuffices.

. . . bygraph-rewriting-based normalisation indeep inference.

3 Deliver positiveproof complexity resultsand gain intuition towards possiblenegative results.

(21)

The proposed programme of research

1 Formulate a bounded arithmetic for monotone proofs.

Fixed pointssimulate formula classes ofunbounded depth.

2 Recover normal formsof proofs asfragmentsof this theory.

Restricting topolynomial inductionsuffices.

. . . bygraph-rewriting-based normalisation indeep inference.

3 Deliver positiveproof complexity resultsand gain intuition towards possiblenegative results.

(22)

Outline

1 Introduction

2 Monotone proofs

3 Atomic flows and normalisation 4 Relativised bounded arithmetic

5 Bounded arithmetics for monotone systems 6 Example: correctness of merge-sort

7 Conclusions

(23)

Monotone and normal proofs

Monotone proofs are obtained by the followingrewrite system,

w1 :AB →A w2 :A→AB

c1 :A→AA c2 :AA→A s:A(BC)→(AB)C modulo associativity and commutativity of∧ and∨.

Equivalent to the class of negation-freesequent proofs.

Normal proofs: all 1-steps occur before all 2-steps.

(Monotone and normal proofs are also equivalent to certain

‘analytic’deep inferencesystems.)

(24)

Monotone and normal proofs

Monotone proofs are obtained by the followingrewrite system,

w1 :AB →A w2 :A→AB

c1 :A→AA c2 :AA→A s:A(BC)→(AB)C modulo associativity and commutativity of∧ and∨.

Equivalent to the class of negation-freesequent proofs.

Normal proofs: all 1-steps occur before all 2-steps.

(Monotone and normal proofs are also equivalent to certain

‘analytic’deep inferencesystems.)

(25)

Monotone and normal proofs

Monotone proofs are obtained by the followingrewrite system,

w1 :AB →A w2 :A→AB

c1 :A→AA c2 :AA→A s:A(BC)→(AB)C modulo associativity and commutativity of∧ and∨.

Equivalent to the class of negation-freesequent proofs.

Normal proofs: all 1-steps occur before all 2-steps.

(Monotone and normal proofs are also equivalent to certain

‘analytic’deep inferencesystems.)

(26)

Monotone and normal proofs

Monotone proofs are obtained by the followingrewrite system,

w1 :AB →A w2 :A→AB

c1 :A→AA c2 :AA→A s:A(BC)→(AB)C modulo associativity and commutativity of∧ and∨.

Equivalent to the class of negation-freesequent proofs.

Normal proofs: all 1-steps occur before all 2-steps.

(Monotone and normal proofs are also equivalent to certain

‘analytic’deep inferencesystems.)

(27)

Outline

1 Introduction 2 Monotone proofs

3 Atomic flows and normalisation 4 Relativised bounded arithmetic

5 Bounded arithmetics for monotone systems 6 Example: correctness of merge-sort

7 Conclusions

(28)

Normalisation procedures from deep inference

Deep inference enjoysfine-grained normalisation procedures.

These transform monotone proofs to normal ones.

The idea is as follows:

1 Atomic flow: trace the paths of atoms through proofs.

2 Graph rewritingsteps induce sound manipulationson their associated proofs.

3 Complexity determined bynumber of pathsin the input flow.

Path counting algorithms from graph theory can then be employed to give accurate estimates.

(29)

Normalisation procedures from deep inference

Deep inference enjoysfine-grained normalisation procedures.

These transform monotone proofs to normal ones.

The idea is as follows:

1 Atomic flow: trace the paths of atoms through proofs.

2 Graph rewritingsteps induce sound manipulationson their associated proofs.

3 Complexity determined bynumber of pathsin the input flow.

Path counting algorithms from graph theory can then be employed to give accurate estimates.

(30)

Normalisation procedures from deep inference

Deep inference enjoysfine-grained normalisation procedures.

These transform monotone proofs to normal ones.

The idea is as follows:

1 Atomic flow: trace the paths of atoms through proofs.

2 Graph rewritingsteps induce sound manipulationson their associated proofs.

3 Complexity determined bynumber of pathsin the input flow.

Path counting algorithms from graph theory can then be employed to give accurate estimates.

(31)

Normalisation procedures from deep inference

Deep inference enjoysfine-grained normalisation procedures.

These transform monotone proofs to normal ones.

The idea is as follows:

1 Atomic flow: trace the paths of atoms through proofs.

2 Graph rewritingsteps induce sound manipulationson their associated proofs.

3 Complexity determined bynumber of pathsin the input flow.

Path counting algorithms from graph theory can then be employed to give accurate estimates.

(32)

Normalisation procedures from deep inference

Deep inference enjoysfine-grained normalisation procedures.

These transform monotone proofs to normal ones.

The idea is as follows:

1 Atomic flow: trace the paths of atoms through proofs.

2 Graph rewritingsteps induce sound manipulationson their associated proofs.

3 Complexity determined bynumber of pathsin the input flow.

Path counting algorithms from graph theory can then be employed to give accurate estimates.

(33)

Normalisation procedures from deep inference

Deep inference enjoysfine-grained normalisation procedures.

These transform monotone proofs to normal ones.

The idea is as follows:

1 Atomic flow: trace the paths of atoms through proofs.

2 Graph rewritingsteps induce sound manipulationson their associated proofs.

3 Complexity determined bynumber of pathsin the input flow.

Path counting algorithms from graph theory can then be employed to give accurate estimates.

(34)

Example of an atomic flow

a

−→

w

aa

−→

c2

(aa)a

−→

c2

(aa)(aa)

−→

c1

aa

−→

w1

(ab)a

−→

s/AC

a(ba)

−→

c2

(aa)(ba)

−→

w2/AC (aa)b

(35)

Local rewriting rules

We consider the followingrewrite system on atomic flows:

Theorem

System isterminating and confluent.

Induces a transformation from monotone proofs to normal proofspreserving premisses and conclusions.

Time complexity: polynomial in number of paths of input.

(36)

Local rewriting rules

We consider the followingrewrite system on atomic flows:

Theorem

System isterminating and confluent.

Induces a transformation from monotone proofs to normal proofspreserving premisses and conclusions.

Time complexity: polynomial in number of paths of input.

(37)

Local rewriting rules

We consider the followingrewrite system on atomic flows:

Theorem

System isterminating and confluent.

Induces a transformation from monotone proofs to normal proofspreserving premisses and conclusions.

Time complexity: polynomial in number of paths of input.

(38)

Local rewriting rules

We consider the followingrewrite system on atomic flows:

Theorem

System isterminating and confluent.

Induces a transformation from monotone proofs to normal proofspreserving premisses and conclusions.

Time complexity: polynomial in number of paths of input.

(39)

Local rewriting rules

We consider the followingrewrite system on atomic flows:

Theorem

System isterminating and confluent.

Induces a transformation from monotone proofs to normal proofspreserving premisses and conclusions.

Time complexity: polynomial in number of paths of input.

(40)

Example of a flow reduction

→ → →

(41)

Complexity issues

When is normalisationefficient?

The typical problem: loops formed fromc1 andc2 nodes alternating in series. E.g.,

. . .

If there are n loops in total then the number of (maximal) paths is 2n.

(42)

Complexity issues

When is normalisationefficient?

The typical problem: loops formed fromc1 andc2 nodes alternating in series.

E.g.,

. . .

If there are n loops in total then the number of (maximal) paths is 2n.

(43)

Complexity issues

When is normalisationefficient?

The typical problem: loops formed fromc1 andc2 nodes alternating in series. E.g.,

.. .

If there are n loops in total then the number of (maximal) paths is 2n.

(44)

Complexity issues

When is normalisationefficient?

The typical problem: loops formed fromc1 andc2 nodes alternating in series. E.g.,

.. .

If there are n loops in total then the number of (maximal) paths is 2n.

(45)

Outline

1 Introduction 2 Monotone proofs

3 Atomic flows and normalisation

4 Relativised bounded arithmetic

5 Bounded arithmetics for monotone systems 6 Example: correctness of merge-sort

7 Conclusions

(46)

The Paris-Wilkie translation

Parikh first considered the theory I∆0, essentially Robinson’s Arithmetic with induction on ∆0-formulae.

By free-cut elimination all variables in a proof of a Π1 formula can be bounded by a term, i.e. a polynomial.

Paris and Wilkie gave a translation relating this theory to propositional proofs:

I0proofs of Π1formulae are translated toclassesof propositional proofs.

Proofs arepolynomialin size and boundedin depth. Relates concepts in logic to those in (proof) complexity.

(47)

The Paris-Wilkie translation

Parikh first considered the theory I∆0, essentially Robinson’s Arithmetic with induction on ∆0-formulae.

By free-cut elimination all variables in a proof of a Π1 formula can be bounded by a term, i.e. a polynomial.

Paris and Wilkie gave a translation relating this theory to propositional proofs:

I0proofs of Π1formulae are translated toclassesof propositional proofs.

Proofs arepolynomialin size and boundedin depth. Relates concepts in logic to those in (proof) complexity.

(48)

The Paris-Wilkie translation

Parikh first considered the theory I∆0, essentially Robinson’s Arithmetic with induction on ∆0-formulae.

By free-cut elimination all variables in a proof of a Π1 formula can be bounded by a term, i.e. a polynomial.

Paris and Wilkie gave a translation relating this theory to propositional proofs:

I0proofs of Π1formulae are translated toclasses of propositional proofs.

Proofs arepolynomialin size and boundedin depth. Relates concepts in logic to those in (proof) complexity.

(49)

The Paris-Wilkie translation

Parikh first considered the theory I∆0, essentially Robinson’s Arithmetic with induction on ∆0-formulae.

By free-cut elimination all variables in a proof of a Π1 formula can be bounded by a term, i.e. a polynomial.

Paris and Wilkie gave a translation relating this theory to propositional proofs:

I0proofs of Π1formulae are translated toclasses of propositional proofs.

Proofs arepolynomialin size andbounded in depth.

Relates concepts in logic to those in (proof) complexity.

(50)

The Paris-Wilkie translation

Parikh first considered the theory I∆0, essentially Robinson’s Arithmetic with induction on ∆0-formulae.

By free-cut elimination all variables in a proof of a Π1 formula can be bounded by a term, i.e. a polynomial.

Paris and Wilkie gave a translation relating this theory to propositional proofs:

I0proofs of Π1formulae are translated toclasses of propositional proofs.

Proofs arepolynomialin size andbounded in depth.

Relates concepts in logic to those in (proof) complexity.

(51)

Translation of formulae

Closed ∆0-formulae are translated as follows: hP(t)i := pval(t) hs ≤ti :=

(> val(s)≤val(t)

⊥ val(s)>val(t) hφ ? ψi := hφi?hψi

h(∃x ≤t)φ(x)i :=

val(t)

W

k=0

hφ(k)i

h(∀x ≤t)φ(x)i :=

val(t)

V

k=0

hφ(k)i

(52)

Translation of formulae

Closed ∆0-formulae are translated as follows:

hP(t)i := pval(t) hs ≤ti :=

(> val(s)≤val(t)

⊥ val(s)>val(t) hφ ? ψi := hφi?hψi

h(∃x ≤t)φ(x)i :=

val(t)

W

k=0

hφ(k)i

h(∀x ≤t)φ(x)i :=

val(t)

V

k=0

hφ(k)i

(53)

Translation of proofs

By free-cut elimination an I∆0-proof of ∀x.φ(x) can be assumed to contain only ∆0-formulae in the free variablex.

From here proof steps are translated locally.

For example, this is how the induction ruleis translated:

π(x)

Γ, φ(x)φ(x+ 1),

I N D−−−−−−−−−−−−−−−−−−−−−−−−

Γ, φ(0)φ(t),

hπ(0)i

hΓi,hφ(0)i → hφ(1)i,h∆i

· · · hπ(t)i

hΓi,hφ(t1)i → hφ(t)i,h∆i

cut==========================================================================

hΓi, . . . ,hΓi,hφ(0)i → hφ(t)i,h∆i, . . . ,h∆i

c===================================================

hΓi,hφ(0)i → hφ(t)i,h∆i

(54)

Translation of proofs

By free-cut elimination an I∆0-proof of ∀x.φ(x) can be assumed to contain only ∆0-formulae in the free variablex.

From here proof steps are translated locally.

For example, this is how the induction ruleis translated:

π(x)

Γ, φ(x)φ(x+ 1),

I N D−−−−−−−−−−−−−−−−−−−−−−−−

Γ, φ(0)φ(t),

hπ(0)i

hΓi,hφ(0)i → hφ(1)i,h∆i

· · · hπ(t)i

hΓi,hφ(t1)i → hφ(t)i,h∆i

cut==========================================================================

hΓi, . . . ,hΓi,hφ(0)i → hφ(t)i,h∆i, . . . ,h∆i

c===================================================

hΓi,hφ(0)i → hφ(t)i,h∆i

(55)

Translation of proofs

By free-cut elimination an I∆0-proof of ∀x.φ(x) can be assumed to contain only ∆0-formulae in the free variablex.

From here proof steps are translated locally.

For example, this is how the induction ruleis translated:

π(x)

Γ, φ(x)φ(x+ 1),

I N D−−−−−−−−−−−−−−−−−−−−−−−−

Γ, φ(0)φ(t),

hπ(0)i

hΓi,hφ(0)i → hφ(1)i,h∆i

· · · hπ(t)i

hΓi,hφ(t1)i → hφ(t)i,h∆i

cut==========================================================================

hΓi, . . . ,hΓi,hφ(0)i → hφ(t)i,h∆i, . . . ,h∆i

c===================================================

hΓi,hφ(0)i → hφ(t)i,h∆i

(56)

Translation of proofs

By free-cut elimination an I∆0-proof of ∀x.φ(x) can be assumed to contain only ∆0-formulae in the free variablex.

From here proof steps are translated locally.

For example, this is how the induction ruleis translated:

π(x)

Γ, φ(x)φ(x+ 1),

I N D−−−−−−−−−−−−−−−−−−−−−−−−

Γ, φ(0)φ(t),

hπ(0)i

hΓi,hφ(0)i → hφ(1)i,h∆i

· · · hπ(t)i

hΓi,hφ(t1)i → hφ(t)i,h∆i

cut==========================================================================

hΓi, . . . ,hΓi,hφ(0)i → hφ(t)i,h∆i, . . . ,h∆i

c===================================================

hΓi,hφ(0)i → hφ(t)i,h∆i

(57)

Outline

1 Introduction 2 Monotone proofs

3 Atomic flows and normalisation 4 Relativised bounded arithmetic

5 Bounded arithmetics for monotone systems 6 Example: correctness of merge-sort

7 Conclusions

(58)

Simulating monotonicity and deep inference

Monotonicity: nonlogical symbols must occur in positive contextin induction steps.

Deep inference: admit inductive definitions of predicates.

E.g. we can define the thresholdpredicate, which is true just when k of P(a), . . . ,P(b) are true:

TP(k,a,b) ↔ ∃i ≤k .

TP i,a,ba+b2 c

TP k−i,ba+b2 c+ 1,b

(We should somehow control the complexity of closure functions, but we will not address this in this talk.)

(59)

Simulating monotonicity and deep inference

Monotonicity: nonlogical symbols must occur in positive contextin induction steps.

Deep inference: admit inductive definitions of predicates.

E.g. we can define the thresholdpredicate, which is true just when k of P(a), . . . ,P(b) are true:

TP(k,a,b) ↔ ∃i ≤k .

TP i,a,ba+b2 c

TP k−i,ba+b2 c+ 1,b

(We should somehow control the complexity of closure functions, but we will not address this in this talk.)

(60)

Simulating monotonicity and deep inference

Monotonicity: nonlogical symbols must occur in positive contextin induction steps.

Deep inference: admit inductive definitionsof predicates.

E.g. we can define the thresholdpredicate, which is true just when k of P(a), . . . ,P(b) are true:

TP(k,a,b) ↔ ∃i ≤k .

TP i,a,ba+b2 c

TP k−i,ba+b2 c+ 1,b

(We should somehow control the complexity of closure functions, but we will not address this in this talk.)

(61)

Simulating monotonicity and deep inference

Monotonicity: nonlogical symbols must occur in positive contextin induction steps.

Deep inference: admit inductive definitionsof predicates.

E.g. we can define the thresholdpredicate, which is true just when k of P(a), . . . ,P(b) are true:

TP(k,a,b) ↔ ∃i ≤k .

TP i,a,ba+b2 c

TP k−i,ba+b2 c+ 1,b

(We should somehow control the complexity of closure functions, but we will not address this in this talk.)

(62)

Simulating monotonicity and deep inference

Monotonicity: nonlogical symbols must occur in positive contextin induction steps.

Deep inference: admit inductive definitionsof predicates.

E.g. we can define the thresholdpredicate, which is true just when k of P(a), . . . ,P(b) are true:

TP(k,a,b) ↔ ∃i ≤k .

TP i,a,ba+b2 c

TP k−i,ba+b2 c+ 1,b

(We should somehow control the complexity of closure functions, but we will not address this in this talk.)

(63)

Induction in deep inference

π(x)

Γ, φ(x)φ(x+ 1),

I N D

Γ, φ(0)φ(t),

= · · · ·

(64)

Induction in deep inference

Consider the translation of an induction step in deep inference:

π(x)

Γ, φ(x)φ(x+ 1),

I N D

Γ, φ(0)φ(t),

c↑ −−−−−Γ

ΓΓφ(0)

=−−−−−−−−−−−−−−−−−−−− c↑ −−−−−Γ

ΓΓ Γφ(0)

π(0)

φ(1)

s−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

Γ

c↑ −−−−−

ΓΓ

Γφ(1)

π(1)

φ(2)

c↓ −−−−−−

s−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

...

s−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

Γ

Γφ(t1)

π(t−2)

φ(t1)

c↓ −−−−−−

s−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

Γφ(t1)

π(t−1)

φ(t)

c↓ −−−−−−

=−−−−−−−−−−−−−−−−−−−−−−−−−

φ(t)

c↓ −−−−−−

= · · · ·

(65)

Induction in deep inference

Analysing this from astructural point of view:

π(x)

Γ, φ(x)φ(x+ 1),

I N D

Γ, φ(0)φ(t),

c↑−−−−−−Γ ΓΓφ(0)

=−−−−−−−−−−−−−−−−−−−−−−

c↑−−−−−−Γ ΓΓ

Γφ(0)

π(0)

φ(1)

s−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

c↑−−−−−−Γ ΓΓ

Γφ(1)

π(1)

φ(2)

c↓−−−−−−−

s−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

...

s−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

Γ Γφ(t1)

π(t−2)

φ(t1)

c↓−−−−−−−

s−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

Γφ(t1)

π(t−1)

φ(t)

c↓−−−−−−−

=−−−−−−−−−−−−−−−−−−−−−−−−−−−

= · · · ·

(66)

Induction in deep inference

Analysing this from astructural point of view:

π(x)

Γ, φ(x)φ(x+ 1),

I N D

Γ, φ(0)φ(t),

= · · · ·

(67)

Induction in deep inference

Analysing this from astructural point of view:

π(x)

Γ, φ(x)φ(x+ 1),

I N D

Γ, φ(0)φ(t),

= · · · ·

(68)

Induction in deep inference

Analysing this from astructural point of view:

π(x)

Γ, φ(x)φ(x+ 1),

I N D

Γ, φ(0)φ(t),

= · · · ·

(69)

Induction in deep inference

Multiple inductions induce flows with polynomial-length sequences of loops, meaninginefficient normalisation.

Solution: replace induction withpolynomial induction: Γ, φ(bx2c)→φ(x),∆

PIND−−−−−−−−−−−−−−−−−−−−−

Γ, φ(0)→φ(t),∆

Length of atomic flows is now polylogarithmicallybounded.

So time complexity of normalisation isquasipolynomially bounded.

(70)

Induction in deep inference

Multiple inductions induce flows with polynomial-length sequences of loops, meaninginefficient normalisation.

Solution: replace induction withpolynomial induction:

Γ, φ(bx2c)→φ(x),∆

PIND−−−−−−−−−−−−−−−−−−−−−

Γ, φ(0)→φ(t),∆

Length of atomic flows is now polylogarithmicallybounded.

So time complexity of normalisation isquasipolynomially bounded.

(71)

Induction in deep inference

Multiple inductions induce flows with polynomial-length sequences of loops, meaninginefficient normalisation.

Solution: replace induction withpolynomial induction:

Γ, φ(bx2c)→φ(x),∆

PIND−−−−−−−−−−−−−−−−−−−−−

Γ, φ(0)→φ(t),∆

Length of atomic flows is now polylogarithmicallybounded.

So time complexity of normalisation isquasipolynomially bounded.

(72)

Induction in deep inference

Multiple inductions induce flows with polynomial-length sequences of loops, meaninginefficient normalisation.

Solution: replace induction withpolynomial induction:

Γ, φ(bx2c)→φ(x),∆

PIND−−−−−−−−−−−−−−−−−−−−−

Γ, φ(0)→φ(t),∆

Length of atomic flows is now polylogarithmicallybounded.

So time complexity of normalisation isquasipolynomially bounded.

(73)

Outline

1 Introduction 2 Monotone proofs

3 Atomic flows and normalisation 4 Relativised bounded arithmetic

5 Bounded arithmetics for monotone systems 6 Example: correctness of merge-sort

7 Conclusions

(74)

Definition of merge sort

Aninductive definition for merge-sort on a stringσ =σ1σ2, with

1|=|σ2|=n, can be given as follows, Definition (Merge sort)

sort(σ) :=merge(sort(σ1),sort(σ2)) wheremerge(α1· · ·αm, β1· · ·βn) :=τ1τ2 with,

τ1 = merge(α1· · ·αk, β1· · ·βc−k), τ2 = merge(αk+1· · ·αn, βc−k+1· · ·αn) forc =bm+n2 cand the leastk such that τi1≤τj2 for all i,j. Naturally, we shouldformally prove that some suchk exists.

(75)

Definition of merge sort

Aninductive definition for merge-sort on a stringσ =σ1σ2, with

1|=|σ2|=n, can be given as follows,

Definition (Merge sort)

sort(σ) :=merge(sort(σ1),sort(σ2)) wheremerge(α1· · ·αm, β1· · ·βn) :=τ1τ2 with,

τ1 = merge(α1· · ·αk, β1· · ·βc−k), τ2 = merge(αk+1· · ·αn, βc−k+1· · ·αn) forc =bm+n2 cand the leastk such that τi1≤τj2 for all i,j. Naturally, we shouldformally prove that some suchk exists.

(76)

Definition of merge sort

Aninductive definition for merge-sort on a stringσ =σ1σ2, with

1|=|σ2|=n, can be given as follows, Definition (Merge sort)

sort(σ) :=merge(sort(σ1),sort(σ2))

wheremerge(α1· · ·αm, β1· · ·βn) :=τ1τ2 with, τ1 = merge(α1· · ·αk, β1· · ·βc−k), τ2 = merge(αk+1· · ·αn, βc−k+1· · ·αn) forc =bm+n2 cand the leastk such that τi1≤τj2 for all i,j. Naturally, we shouldformally prove that some suchk exists.

(77)

Definition of merge sort

Aninductive definition for merge-sort on a stringσ =σ1σ2, with

1|=|σ2|=n, can be given as follows, Definition (Merge sort)

sort(σ) :=merge(sort(σ1),sort(σ2)) wheremerge(α1· · ·αm, β1· · ·βn) :=τ1τ2 with,

τ1 = merge(α1· · ·αk, β1· · ·βc−k), τ2 = merge(αk+1· · ·αn, βc−k+1· · ·αn) forc =bm+n2 cand the leastk such that τi1≤τj2 for all i,j.

Naturally, we shouldformally prove that some suchk exists.

(78)

Definition of merge sort

Aninductive definition for merge-sort on a stringσ =σ1σ2, with

1|=|σ2|=n, can be given as follows, Definition (Merge sort)

sort(σ) :=merge(sort(σ1),sort(σ2)) wheremerge(α1· · ·αm, β1· · ·βn) :=τ1τ2 with,

τ1 = merge(α1· · ·αk, β1· · ·βc−k), τ2 = merge(αk+1· · ·αn, βc−k+1· · ·αn) forc =bm+n2 cand the leastk such that τi1≤τj2 for all i,j. Naturally, we shouldformally provethat some such k exists.

(79)

Sign-change lemma

Essentially we need the following lemma:

Lemma

If a<b, f(a)<0 and f(b)≥0 ⇒ then∃x ∈[a,b) such that f(x)<0and f(x+ 1)≥0.

We can prove this in our theory using aninterval-halving algorithm. Proof.

By induction onb−a. For thebase case we have thatb−a= 1, sox =a will do.

For theinductive step, let c =da+b2 e and we have that f(c)≥0 orf(c)<0. In the former case we appeal to the inductive

hypothesis on the interval [a,c), and in the latter [c,b).

(80)

Sign-change lemma

Essentially we need the following lemma:

Lemma

If a<b, f(a)<0 and f(b)≥0 ⇒ then∃x ∈[a,b) such that f(x)<0and f(x+ 1)≥0.

We can prove this in our theory using aninterval-halving algorithm.

Proof.

By induction onb−a. For thebase case we have thatb−a= 1, sox =a will do.

For theinductive step, let c =da+b2 e and we have that f(c)≥0 orf(c)<0. In the former case we appeal to the inductive

hypothesis on the interval [a,c), and in the latter [c,b).

(81)

Sign-change lemma

Essentially we need the following lemma:

Lemma

If a<b, f(a)<0 and f(b)≥0 ⇒ then∃x ∈[a,b) such that f(x)<0and f(x+ 1)≥0.

We can prove this in our theory using aninterval-halving algorithm.

Proof.

By induction onb−a. For thebase case we have thatb−a= 1, sox =a will do.

For theinductive step, let c =da+b2 e and we have that f(c)≥0 orf(c)<0. In the former case we appeal to the inductive

hypothesis on the interval [a,c), and in the latter [c,b).

(82)

Sign-change lemma

Essentially we need the following lemma:

Lemma

If a<b, f(a)<0 and f(b)≥0 ⇒ then∃x ∈[a,b) such that f(x)<0and f(x+ 1)≥0.

We can prove this in our theory using aninterval-halving algorithm.

Proof.

By induction onb−a. For thebase case we have thatb−a= 1, sox =a will do.

For theinductive step, let c =da+b2 e and we have that f(c)≥0 orf(c)<0. In the former case we appeal to the inductive

hypothesis on the interval [a,c), and in the latter [c,b).

(83)

Well-definedness

Theorem

The functions sort and merge are well-defined.

(84)

Correctness

A stringσ is sortedif, for every i <|σ|, we have that σi ≤σi+1. Theorem

For any stringσ, sort(σ) is sorted.

Proof sketch.

Letσ =σ1σ2 and proceed by induction on |σ|. By the inductive definition we have thatsort(σ) =merge(sort(σ1),sort(σ2)). The two arguments of the merge are sorted, by the inductive hypothesis and, byinvoking another inductionand appealing to the construction of merge, we have that the merge of two sorted strings is sorted, whence the result follows.

(85)

Correctness

A stringσ is sortedif, for every i <|σ|, we have that σi ≤σi+1.

Theorem

For any stringσ, sort(σ) is sorted.

Proof sketch.

Letσ =σ1σ2 and proceed by induction on |σ|. By the inductive definition we have thatsort(σ) =merge(sort(σ1),sort(σ2)). The two arguments of the merge are sorted, by the inductive hypothesis and, byinvoking another inductionand appealing to the construction of merge, we have that the merge of two sorted strings is sorted, whence the result follows.

(86)

Correctness

A stringσ is sortedif, for every i <|σ|, we have that σi ≤σi+1. Theorem

For any stringσ, sort(σ) is sorted.

Proof sketch.

Letσ =σ1σ2 and proceed by induction on |σ|. By the inductive definition we have thatsort(σ) =merge(sort(σ1),sort(σ2)). The two arguments of the merge are sorted, by the inductive hypothesis and, byinvoking another inductionand appealing to the construction of merge, we have that the merge of two sorted strings is sorted, whence the result follows.

(87)

Correctness

A stringσ is sortedif, for every i <|σ|, we have that σi ≤σi+1. Theorem

For any stringσ, sort(σ) is sorted.

Proof sketch.

Letσ =σ1σ2 and proceed by induction on |σ|.

By the inductive definition we have thatsort(σ) =merge(sort(σ1),sort(σ2)). The two arguments of the merge are sorted, by the inductive hypothesis and, byinvoking another inductionand appealing to the construction of merge, we have that the merge of two sorted strings is sorted, whence the result follows.

(88)

Correctness

A stringσ is sortedif, for every i <|σ|, we have that σi ≤σi+1. Theorem

For any stringσ, sort(σ) is sorted.

Proof sketch.

Letσ =σ1σ2 and proceed by induction on |σ|. By the inductive definition we have thatsort(σ) =merge(sort(σ1),sort(σ2)).

The two arguments of the merge are sorted, by the inductive hypothesis and, byinvoking another inductionand appealing to the construction of merge, we have that the merge of two sorted strings is sorted, whence the result follows.

(89)

Correctness

A stringσ is sortedif, for every i <|σ|, we have that σi ≤σi+1. Theorem

For any stringσ, sort(σ) is sorted.

Proof sketch.

Letσ =σ1σ2 and proceed by induction on |σ|. By the inductive definition we have thatsort(σ) =merge(sort(σ1),sort(σ2)).

The two arguments of the merge are sorted, by the inductive hypothesis and, byinvoking another inductionand appealing to the construction ofmerge, we have that the merge of two sorted strings is sorted, whence the result follows.

Références

Documents relatifs

• we show that the more induction a proof system uses, and the closest its coinduction style to our problem domain of proving reachability-logic formulas, the more compositional

Fuzzy Inference Systems (FISs) are fuzzy classifiers that can learn fuzzy “if-then” rules able to classify data [4].. They exhibit several interesting properties that may address

Györy, Effective finiteness results for binary forms with given discriminant, Compositio Math. Tijdeman, On S-unit equations in two

3 is devoted to the results on the perturbation of a Gaussian random variable (see Section 3.1) and to the study of the strict positivity and the sect-lemma lower bounds for the

• We provide a declarative treatment of several basic aspects of model checking by using a proof search semantics of a fragment of multiplicative additive linear logic (MALL)

However, the finer granularity of inference rules (one inference step in the sequent calculus corresponds to many inference steps in the calculus of structures) allows a finer

La Session 1 a concerné « Les nouveaux outils expérimentaux et de simulation pour la conception, la synthèse et la formulation de matériaux ».. Cette session a mis en exergue d

This paper has shown how the bounds of a significant time performance of automation systems: the response time, can be obtained by proving iteratively formal timed properties.. The