Focused emulation of modal proof systems Sonia Marin with Dale - - PowerPoint PPT Presentation

focused emulation of modal proof systems
SMART_READER_LITE
LIVE PREVIEW

Focused emulation of modal proof systems Sonia Marin with Dale - - PowerPoint PPT Presentation

Focused emulation of modal proof systems Sonia Marin with Dale Miller and Marco Volpe Inria, LIX, Ecole Polytechnique Theory and Logic Group seminar TU Wien October 12, 2016 The quest Modal logics: program verification, artificial


slide-1
SLIDE 1

Focused emulation of modal proof systems

Sonia Marin

with Dale Miller and Marco Volpe

Inria, LIX, ´ Ecole Polytechnique

Theory and Logic Group seminar TU Wien October 12, 2016

slide-2
SLIDE 2

The quest

Modal logics: program verification, artificial intelligence, distributed systems . . .

slide-3
SLIDE 3

The quest

Modal logics: program verification, artificial intelligence, distributed systems . . . What if... one wants to have automated proof search for modal logics?

slide-4
SLIDE 4

The quest

Modal logics: program verification, artificial intelligence, distributed systems . . . What if... one wants to have automated proof search for modal logics? Their proof theory: tableaux, sequents, hypersequents, nested sequents, labeled sequents . . .

slide-5
SLIDE 5

The quest

We want to provide a general framework for:

  • 1. comparing formalisms;
  • 2. proof checking;
  • 3. proof reconstruction and sharing.
slide-6
SLIDE 6

The quest

We want to provide a general framework for:

  • 1. comparing formalisms;
  • 2. proof checking;
  • 3. proof reconstruction and sharing.

The ProofCert approach: proof in S proof in LMF∗ proof in LKFa

slide-7
SLIDE 7

The quest

We want to provide a general framework for:

  • 1. comparing formalisms;
  • 2. proof checking;
  • 3. proof reconstruction and sharing.

The ProofCert approach: proof in S proof in LMF∗ proof in LKFa

◮ LMF∗ : focused labeled framework for propositional modal logic ◮ LKFa : focused framework for classical first-order logic

slide-8
SLIDE 8

Modal logic

Formulas: A ::= P | A ∧ A | A ∨ A Logic K: Propositional Logic

slide-9
SLIDE 9

Modal logic

Formulas: A ::= P | A ∧ A | A ∨ A | ✷A | ✸A Logic K: Propositional Logic + ✷(A → B) → (✷A → ✷B) + A nec −

− −

✷A

slide-10
SLIDE 10

Modal logic

Formulas: A ::= P | A ∧ A | A ∨ A | ✷A | ✸A Logic K: Propositional Logic + ✷(A → B) → (✷A → ✷B) + A nec −

− −

✷A Kripke semantics: Relational structures

slide-11
SLIDE 11

Modal logic

Formulas: A ::= P | A ∧ A | A ∨ A | ✷A | ✸A Logic K: Propositional Logic + ✷(A → B) → (✷A → ✷B) + A nec −

− −

✷A Kripke semantics: Relational structures W : set of worlds; R : binary relation on W ; V : valuation at each world.

slide-12
SLIDE 12

Modal logic

Formulas: A ::= P | A ∧ A | A ∨ A | ✷A | ✸A Logic K: Propositional Logic + ✷(A → B) → (✷A → ✷B) + A nec −

− −

✷A Kripke semantics: Relational structures W : set of worlds; R : binary relation on W ; V : valuation at each world.

M, x | = ✷A iff for all y. xRy implies M, y | = A M, x | = ✸A iff there exists y. xRy and M, y | = A.

slide-13
SLIDE 13

Modal logic

Formulas: A ::= P | A ∧ A | A ∨ A | ✷A | ✸A Logic K: Propositional Logic + ✷(A → B) → (✷A → ✷B) + A nec −

− −

✷A Kripke semantics: Relational structures W : set of worlds; R : binary relation on W ; V : valuation at each world. Sequent system OS:

id −

− − − − − − − − − − −

⊢ Γ, P, ¬P ⊢ Γ, A ⊢ Γ, B ∧ −

− − − − − − − − − − − − − − −

⊢ Γ, A ∧ B ⊢ Γ, A, B ∨ −

− − − − − − − − − − −

⊢ Γ, A ∨ B ⊢ Γ, A ✷K −

− − − − − − − − − − − − −

⊢ ✸Γ, ✷A, ∆

slide-14
SLIDE 14

Labeled proof systems

Labeled deduction: encode semantical information in the syntax

slide-15
SLIDE 15

Labeled proof systems

Labeled deduction: encode semantical information in the syntax Two classes of formulas:

  • 1. Labeled logical formulas x : A
  • 2. Relational formulas xRy
slide-16
SLIDE 16

Labeled proof systems

Labeled deduction: encode semantical information in the syntax Two classes of formulas:

  • 1. Labeled logical formulas x : A
  • 2. Relational formulas xRy

◮ each label x refers to a world in the semantics ◮ an atomic relational symbol R refers to the accessibility relation

slide-17
SLIDE 17

A labeled proof system for modal logics (G3K)

id −

− − − − − − − − − − − − − − − − − − −

P, Γ ⊢ ∆, P A, B, Γ ⊢ ∆ L∧ −

− − − − − − − − − − − − − − − − − − −

A ∧ B, Γ ⊢ ∆ Γ ⊢ ∆, A Γ ⊢ ∆, B R∧ −

− − − − − − − − − − − − − − − − − − − − − − − − − − − − −

Γ ⊢ ∆, A ∧ B A, Γ ⊢ ∆ B, Γ ⊢ ∆ L ∨ −

− − − − − − − − − − − − − − − − − − − − − − − − − − − − −

A ∨ B, Γ ⊢ ∆ Γ ⊢ ∆, A, B R ∨ −

− − − − − − − − − − − − − − − − − − −

Γ ⊢ ∆, A ∨ B

[S. Negri, Proof analysis in modal logic, J. Philos. Logic 2005]

slide-18
SLIDE 18

A labeled proof system for modal logics (G3K)

id −

− − − − − − − − − − − − − − − − − − −

x : P, Γ ⊢ ∆, x : P x : A, x : B, Γ ⊢ ∆ L∧ −

− − − − − − − − − − − − − − − − − − −

x : A ∧ B, Γ ⊢ ∆ Γ ⊢ ∆, x : A Γ ⊢ ∆, x : B R∧ −

− − − − − − − − − − − − − − − − − − − − − − − − − − − − −

Γ ⊢ ∆, x : A ∧ B x : A, Γ ⊢ ∆ x : B, Γ ⊢ ∆ L ∨ −

− − − − − − − − − − − − − − − − − − − − − − − − − − − − −

x : A ∨ B, Γ ⊢ ∆ Γ ⊢ ∆, x : A, x : B R ∨ −

− − − − − − − − − − − − − − − − − − −

Γ ⊢ ∆, x : A ∨ B

[S. Negri, Proof analysis in modal logic, J. Philos. Logic 2005]

slide-19
SLIDE 19

A labeled proof system for modal logics (G3K)

id −

− − − − − − − − − − − − − − − − − − −

x : P, Γ ⊢ ∆, x : P x : A, x : B, Γ ⊢ ∆ L∧ −

− − − − − − − − − − − − − − − − − − −

x : A ∧ B, Γ ⊢ ∆ Γ ⊢ ∆, x : A Γ ⊢ ∆, x : B R∧ −

− − − − − − − − − − − − − − − − − − − − − − − − − − − − −

Γ ⊢ ∆, x : A ∧ B x : A, Γ ⊢ ∆ x : B, Γ ⊢ ∆ L ∨ −

− − − − − − − − − − − − − − − − − − − − − − − − − − − − −

x : A ∨ B, Γ ⊢ ∆ Γ ⊢ ∆, x : A, x : B R ∨ −

− − − − − − − − − − − − − − − − − − −

Γ ⊢ ∆, x : A ∨ B y : A, x : ✷A, xRy, Γ ⊢ ∆ L✷ −

− − − − − − − − − − − − − − − − − − − − − − − − − − −

x : ✷A, xRy, Γ ⊢ ∆ xRy, Γ ⊢ ∆, y : A R✷ −

− − − − − − − − − − − − − − − − − −

Γ ⊢ ∆, x : ✷A xRy, y : A, Γ ⊢ ∆ L✸ −

− − − − − − − − − − − − − − − − − −

x : ✸A, Γ ⊢ ∆ xRy, Γ ⊢ ∆, x : ✸A, y : A R✸ −

− − − − − − − − − − − − − − − − − − − − − − − − − − −

xRy, Γ ⊢ ∆, x : ✸A In R✷, y does not occur in the conclusion.

[S. Negri, Proof analysis in modal logic, J. Philos. Logic 2005]

slide-20
SLIDE 20

Hocus-Focus

Focusing is a way to control non-determinism in proof search and ...

◮ Better organize the structure of derivations. ◮ Emphasis on: non-invertible vs. invertible rules. ◮ Propositional connectives have:

◮ a positive version; ◮ a negative version.

⊢ Θ, Bi ∨

+ − − − − − − − − − − − − − −

⊢ Θ, B1 ∨ B2 ⊢ Θ, B1, B2 ∨

− − − − − − − − − − − − − − −

⊢ Θ, B1 ∨ B2 ◮ Polarization of a formula does not affect its provability.

slide-21
SLIDE 21

What is a bipole?

store ⊢ Θ ⇑ Γ release ⊢ Θ ⇓ A decide

slide-22
SLIDE 22

What is a bipole?

store (a positive formula to possibly focus on later) ⊢ Θ ⇑ Γ ∨

−, ∧ −, ∀

release ⊢ Θ ⇓ A ∨

+, ∧ +, ∃

decide (on a positive formula to focus on)

slide-23
SLIDE 23

What is a bipole?

store (a positive formula to possibly focus on later) ⊢ Θ ⇑ Γ NEGATIVE PHASE (invertible) release (change of phase) ⊢ Θ ⇓ A POSITIVE PHASE (non-invertible) decide (on a positive formula to focus on)

slide-24
SLIDE 24

A focused proof system for classical logic (LKF)

Negative introduction rules t− −

− − − − − − − − − − −

⊢ Θ ⇑ t− , Γ ⊢ Θ ⇑ A, Γ ⊢ Θ ⇑ B, Γ ∧

− − − − − − − − − − − − − − − − − − − − − − − − − − − −

⊢ Θ ⇑ A ∧

− B, Γ

⊢ Θ ⇑ Γ f − −

− − − − − − − − − − −

⊢ Θ ⇑ f − , Γ ⊢ Θ ⇑ A, B, Γ ∨

− − − − − − − − − − − − − − − − − − − −

⊢ Θ ⇑ A ∨

− B, Γ

⊢ Θ ⇑ [y/x]B, Γ ∀ −

− − − − − − − − − − − − − − − − −

⊢ Θ ⇑ ∀x.B, Γ Positive introduction rules t+ −

− − − − − − − − −

⊢ Θ ⇓ t+ ⊢ Θ ⇓ B1 ⊢ Θ ⇓ B2 ∧

+ − − − − − − − − − − − − − − − − − − − − − − − −

⊢ Θ ⇓ B1 ∧

+ B2

⊢ Θ ⇓ Bi ∨

+ − − − − − − − − − − − − − − − − −

⊢ Θ ⇓ B1 ∨

+ B2

⊢ Θ ⇓ [t/x]B ∃ −

− − − − − − − − − − − − −

⊢ Θ ⇓ ∃x.B Identity rules id −

− − − − − − − − − − − − − − −

⊢ ¬Pa, Θ ⇓ Pa ⊢ Θ ⇑ B ⊢ Θ ⇑ ¬B cut −

− − − − − − − − − − − − − − − − − − − − − − −

⊢ Θ ⇑ · Structural rules ⊢ Θ, C ⇑ Γ store −

− − − − − − − − − − −

⊢ Θ ⇑ C, Γ ⊢ Θ ⇑ N release −

− − − − − − − −

⊢ Θ ⇓ N ⊢ P, Θ ⇓ P decide −

− − − − − − − − − − −

⊢ P, Θ ⇑ ·

slide-25
SLIDE 25

Labeled modal inference rules as bipoles

An inference rule in the labeled modal proof system G3K corresponds to () a bipole in the focused proof system LKF. xRy, G ⊢ Γ, y : A R✷ −

− − − − − − − − − − − − − − − − − −

G ⊢ Γ, x : ✷A

G ⊢ Γ′, ∂+([✷A]x), ¬R(x, y), ∂+[A]y ⇑ · store −

− − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − −

G ⊢ Γ′, ∂+([✷A]x), ¬R(x, y) ⇑ ∂+[A]y store −

− − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − −

G ⊢ Γ′, ∂+([✷A]x) ⇑ ¬R(x, y), ∂+[A]y ∨

− − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − −

G ⊢ Γ′, ∂+([✷A]x) ⇑ ¬R(x, y) ∨

− ∂+[A]y

∀ −

− − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − −

G ⊢ Γ′, ∂+([✷A]x) ⇑ ∀y(¬R(x, y) ∨

− ∂+[A]y)

release −

− − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − −

G ⊢ Γ′, ∂+([✷A]x) ⇓ ∀y(¬R(x, y) ∨

− ∂+[A]y)

∂+ −

− − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − −

G ⊢ Γ′, ∂+([✷A]x) ⇓ ∂+(∀y(¬R(x, y) ∨

− ∂+[A]y))

decide −

− − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − −

G ⊢ Γ′, ∂+([✷A]x) ⇑ · [D.Miller & M.Volpe, Focused labeled proof systems for modal logic, 2015]

slide-26
SLIDE 26

A focused labeled proof system for modal logic (LMF)

proof in G3K proof in LMF proof in LKF

◮ A restriction of LKF targeting the language of G3K. ◮ Quantifier rules only applied to the translation of ✷A or ✸A.

slide-27
SLIDE 27

Negative introduction rules t−

K − − − − − − − − − − − − − − − −

⊢ Θ ⇑ x : t− , Γ ⊢ Θ ⇑ Γ f −

K − − − − − − − − − − − − − − − −

⊢ Θ ⇑ x : f − , Γ ⊢ Θ ⇑ x : A, Γ ⊢ Θ ⇑ x : B, Γ ∧

− K − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − −

⊢ Θ ⇑ x : A ∧

− B, Γ

⊢ Θ ⇑ x : A, x : B, Γ ∨

− K − − − − − − − − − − − − − − − − − − − − − −

⊢ Θ ⇑ x : A ∨

− B, Γ

⊢ Θ, ¬xRy ⇑ y : B, Γ ✷K −

− − − − − − − − − − − − − − − − − − − − − −

⊢ Θ ⇑ x : ✷B, Γ Positive introduction rules t+

K − − − − − − − − − − − − −

⊢ Θ ⇓ x : t+ ⊢ Θ ⇓ x : B1 ⊢ Θ ⇓ x : B2 ∧

+ K − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − −

⊢ Θ ⇓ x : B1 ∧

+ B2

⊢ Θ ⇓ x : Bi ∨

+ K , i ∈ {1, 2} − − − − − − − − − − − − − − − − − − − − −

⊢ Θ ⇓ x : B1 ∨

+ B2

⊢ Θ, ¬xRy ⇓ y : B ✸K −

− − − − − − − − − − − − − − − − − − − − −

⊢ Θ, ¬xRy ⇓ x : ✸B Identity rules initK −

− − − − − − − − − − − − − − − − − − − − − −

⊢ x : ¬Pa, Θ ⇓ x : Pa ⊢ Θ ⇑ x : B ⊢ Θ ⇑ x : ¬B cutK −

− − − − − − − − − − − − − − − − − − − − − − − − − − − − − −

⊢ Θ ⇑ · Structural rules ⊢ Θ, x : C ⇑ Γ storeK −

− − − − − − − − − − − − − −

⊢ Θ ⇑ x : C, Γ ⊢ Θ ⇑ x : N releaseK −

− − − − − − − − − − − −

⊢ Θ ⇓ x : N ⊢ x : P, Θ ⇓ x : P decideK −

− − − − − − − − − − − − − − − − − − −

⊢ x : P, Θ ⇑ ·

slide-28
SLIDE 28

What happens with ordinary sequent systems?

⊢ Γ, A ✷K −

− − − − − − − − − − − − −

⊢ ✸Γ, ✷A, ∆ This rule works at the same time on ✷s and ✸s.

slide-29
SLIDE 29

What happens with ordinary sequent systems?

⊢ Γ, A ✷K −

− − − − − − − − − − − − −

⊢ ✸Γ, ✷A, ∆ This rule works at the same time on ✷s and ✸s. Not A Bipole!

slide-30
SLIDE 30

What happens with ordinary sequent systems?

⊢ Γ, A ✷K −

− − − − − − − − − − − − −

⊢ ✸Γ, ✷A, ∆ This rule works at the same time on ✷s and ✸s. Not A Bipole!

◮ Correspondence between ordinary and labeled sequents:

◮ ordinary classical rules operate on a single world; ◮ ordinary modal rules move from one world to another.

slide-31
SLIDE 31

What happens with ordinary sequent systems?

⊢ Γ, A ✷K −

− − − − − − − − − − − − −

⊢ ✸Γ, ✷A, ∆ G ∪ {xRy} ⊢ Σ, x : ✸Γ ⇑ y : A

− − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − −

G ⊢ Σ, x : ✸Γ ⇑ x : ✷A

slide-32
SLIDE 32

What happens with ordinary sequent systems?

⊢ Γ, A ✷K −

− − − − − − − − − − − − −

⊢ ✸Γ, ✷A, ∆ G ∪ {xRy} ⊢ Σ, x : ✸Γ ⇑ y : A

− − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − −

G ⊢ Σ, x : ✸Γ ⇑ x : ✷A One bipole for the ✷-formula.

slide-33
SLIDE 33

What happens with ordinary sequent systems?

⊢ Γ, A R✷ −

− − − − − − − − − − − − −

⊢ ✸Γ, ✷A, ∆ G ∪ {xRy} ⊢ Σ, x : ✸Γ, y : A ⇑ y : Γ

− − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − −

G ∪ {xRy} ⊢ Σ, x : ✸Γ, y : A ⇓ x : ✸Γ

slide-34
SLIDE 34

What happens with ordinary sequent systems?

⊢ Γ, A R✷ −

− − − − − − − − − − − − −

⊢ ✸Γ, ✷A, ∆ G ∪ {xRy} ⊢ Σ, x : ✸Γ, y : A ⇑ y : Γ

− − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − − −

G ∪ {xRy} ⊢ Σ, x : ✸Γ, y : A ⇓ x : ✸Γ Multifocusing: the ✸s can be processed in parallel. One bipole for the ✸-formulas.

slide-35
SLIDE 35

The general framework LMF∗

Parameters of the framework: ∗ can be instantiated in a specific way by the following parameters (of the decide rule):

  • 1. restrictions on the formulas on which multifocusing can be applied;
  • 2. restrictions on the definition of the future σ of formulas in Ω;
  • 3. restriction of the present H′.
slide-36
SLIDE 36

The general framework LMF∗

Parameters of the framework: ∗ can be instantiated in a specific way by the following parameters (of the decide rule):

  • 1. restrictions on the formulas on which multifocusing can be applied;
  • 2. restrictions on the definition of the future σ of formulas in Ω;
  • 3. restriction of the present H′.

By playing with polarization and parameters, one can obtain different systems.

slide-37
SLIDE 37

The general framework LMF∗

Parameters of the framework: ∗ can be instantiated in a specific way by the following parameters (of the decide rule):

  • 1. restrictions on the formulas on which multifocusing can be applied;
  • 2. restrictions on the definition of the future σ of formulas in Ω;
  • 3. restriction of the present H′.

By playing with polarization and parameters, one can obtain different systems. Theorem The framework LMF∗ is sound and complete with respect to the logic K, for any polarization of formulas.

slide-38
SLIDE 38

Conclusion

◮ We showed the case of K; but it works for geometric extensions. ◮ Emulation of modal focused systems (e.g., [Lellmann-Pimentel,

2015] or [Chaudhuri-Marin-Strassburger, 2016]).

◮ What about nested sequents?

◮ Same polarization as for ordinary sequents. ◮ No need for multifocusing. ◮ No need for restrictions on futures. ◮ The present is always the set of all labels.

◮ What about hypersequents?

◮ the present is a multiset; ◮ external structural rules as operations on such a present; ◮ modal communication rules as a combination of relational and modal

rules.

◮ Superpowers can be implemented in the augmented version of the

focused system LKF used in the project ProofCert.