saturation up to redundancy for tableau and …saturation up to redundancy for tableau and sequent...

38
Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June 13, 2008 – p.1/30

Upload: others

Post on 06-May-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Saturation up to Redundancy

for Tableau and Sequent Calculi

Martin Giese

Dept. of Computer Science

University of Oslo

Norway

Oslo, June 13, 2008 – p.1/30

Page 2: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Acknowledgment

This work was done during my employment at the

Computational Logic Group

Johann Radon Institute for Computational and Applied Mathematics

Austrian Academy of Sciences, Linz

Oslo, June 13, 2008 – p.2/30

Page 3: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

A FOL Sequent calculus for NNF

α

φ, ψ, Γ ⊢

φ ∧ψ, Γ ⊢

β

φ, Γ ⊢ ψ, Γ ⊢

φ ∨ψ, Γ ⊢

γ

[x/t]φ, ∀x.φ, Γ ⊢

∀x.φ, Γ ⊢

for any ground term t

δ

[x/c]φ, Γ ⊢

∃x.φ, Γ ⊢

for some new constant c

CLOSE

⊥ ⊢

L, ¬L, Γ ⊢

Oslo, June 13, 2008 – p.3/30

Page 4: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Hintikka Sets

A set of formulae H is a Hintikka Set iff

• ⊥ 6∈ H

• φ,ψ ∈ H for all φ ∧ψ ∈ H

• φ ∈ H or ψ ∈ H for all φ ∨ψ ∈ H

. . .

Completeness beacause:

• Any Hintikka Set is satisfiable.

• Union of all sequents of exhausted open branch is Hintikka set

Oslo, June 13, 2008 – p.4/30

Page 5: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

A simplification rule

Simplification rule of Massacci, 1998:

SIMP

L, φ[L], Γ ⊢

L, φ, Γ ⊢

φ[L] := replace L in φ by ⊤ and do Boolean simplification

Example:

SIMP

p, r ⊢

p, (¬p ∧ q) ∨ (p ∧ r) ⊢

Because: (¬⊤∧ q) ∨ (⊤∧ r) ≡ (⊥∧ q) ∨ r ≡ ⊥∨ r ≡ r

Oslo, June 13, 2008 – p.5/30

Page 6: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

The problem

p, (¬p ∧ q) ∨ (p ∧ r) ⊢

SIMP

p, r ⊢

p, (¬p ∧ q) ∨ (p ∧ r) ⊢

Oslo, June 13, 2008 – p.6/30

Page 7: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

The problem

p, (¬p ∧ q) ∨ (p ∧ r) ⊢

SIMP

p, r ⊢

p, (¬p ∧ q) ∨ (p ∧ r) ⊢

β

p, ¬p ∧ q ⊢ p, p ∧ r ⊢

p, (¬p ∧ q) ∨ (p ∧ r) ⊢

Oslo, June 13, 2008 – p.6/30

Page 8: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

The problem

p, (¬p ∧ q) ∨ (p ∧ r) ⊢

SIMP

p, r ⊢

p, (¬p ∧ q) ∨ (p ∧ r) ⊢

β

p, ¬p ∧ q ⊢ p, p ∧ r ⊢

p, (¬p ∧ q) ∨ (p ∧ r) ⊢

➠ In either case, a derivable formula might not be derived

➠ Formulae on exhausted branch are not a Hintikka Set

Oslo, June 13, 2008 – p.6/30

Page 9: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Our contibution

[LPAR 2006 article]

Adapt Bachmair/Ganzinger framework of Saturation up to Redundancy

to Tableaux and Sequent calculi:

• Definitions take splitting rules into account

• Adapted to usual style of describing inferences

• Treatment of rigid free variables

Oslo, June 13, 2008 – p.7/30

Page 10: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Overview

Input:

• A noetherian order ≻ on formulae

• A ‘model functor’ I like the Defn. of a model from a Hintikka set.

Oslo, June 13, 2008 – p.8/30

Page 11: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Overview

Input:

• A noetherian order ≻ on formulae

• A ‘model functor’ I like the Defn. of a model from a Hintikka set.

Show that:

• all rules make formulae smaller w.r.t ≻

• rules drop only redundant formulae

• rules reduce counterexamples (like inductive model lemma)

Oslo, June 13, 2008 – p.8/30

Page 12: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Overview

Input:

• A noetherian order ≻ on formulae

• A ‘model functor’ I like the Defn. of a model from a Hintikka set.

Show that:

• all rules make formulae smaller w.r.t ≻

• rules drop only redundant formulae

• rules reduce counterexamples (like inductive model lemma)

Theorem:

• Any fair proof procedure is complete

Oslo, June 13, 2008 – p.8/30

Page 13: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Inferences

General form of an inference:

φ11, . . . , φ1m1, Γ ⊢ · · · φn1, . . . , φnmn , Γ ⊢

φ01, . . . , φ0m0, Γ ⊢

Upper semi-sequents are premises

Lower semi-sequent is conclusion

One of the φ0i is identified as main formula

Other required formulae are side formulae

Oslo, June 13, 2008 – p.9/30

Page 14: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Inferences

General form of an inference:

φ11, . . . , φ1m1, Γ ⊢ · · · φn1, . . . , φnmn , Γ ⊢

φ01, . . . , φ0m0, Γ ⊢

Upper semi-sequents are premises

Lower semi-sequent is conclusion

One of the φ0i is identified as main formula

Other required formulae are side formulae

➠ Possibly several premises

➠ possibly several introduced formulae

➠ possibly several simultaneously removed formulae

Oslo, June 13, 2008 – p.9/30

Page 15: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Derivations

Derivations are sequences of trees constructed by applying rules.

Define limit as union of trees.

T0 → T1 → T2 → · · · → T ∞

Branches of T ∞ are sequences (Γi)i∈N of semi-sequents.

Set of persistent formulae of a branch:

Γ∞ :=⋃

i∈N

j≥i

Γ j

Oslo, June 13, 2008 – p.10/30

Page 16: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Redundancy Criteria

A redundancy criterion is a pair (RF ,RI ) of mappings s.t.

(R1) if Γ ⊆ Γ ′ then RF (Γ) ⊆ RF (Γ ′), and RI (Γ) ⊆ RI (Γ ′).

(R2) if Γ ′ ⊆ RF (Γ) then RF (Γ) ⊆ RF (Γ \ Γ ′), and RI (Γ) ⊆ RI (Γ \ Γ ′).

(R3) if Γ is unsatisfiable, then so is Γ \ RF (Γ).

The criterion is called effective if, in addition,

(R4) an inference is in RI (Γ), whenever it has at least one premise

introducing only formulae P = {φk1, . . .φkmk} with P ⊆ Γ ∪RF (Γ).

Formulae, resp. inferences in RF (Γ) resp. RI (Γ) are called

redundant with respect to Γ .

Oslo, June 13, 2008 – p.11/30

Page 17: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

The Standard Redundancy Criterion

Fix a noetherian ordering ≻ on formulae.

For formulae: [just like BG]

A formula φ is redundant with respect to a set of formulae Γ , iff

there are formulae φ1, . . . ,φn ∈ Γ , such that φ1, . . . ,φn |= φ

and φ ≻ φi for i = 1, . . . , n.

Oslo, June 13, 2008 – p.12/30

Page 18: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

The Standard Redundancy Criterion

Fix a noetherian ordering ≻ on formulae.

For formulae: [just like BG]

A formula φ is redundant with respect to a set of formulae Γ , iff

there are formulae φ1, . . . ,φn ∈ Γ , such that φ1, . . . ,φn |= φ

and φ ≻ φi for i = 1, . . . , n.

For inferences:

An inference with main formula φ and side formulae φ1, . . .φn is

redundant w.r.t. a set of formulae Γ , iff it has one premise such that

for all formulae ξ introduced in that premise, there are formulae

ψ1, . . . ,ψm ∈ Γ , such that ψ1, . . . ,ψm,φ1, . . . ,φn |= ξ and

φ ≻ ψi for i = 1, . . . ,m.

Oslo, June 13, 2008 – p.12/30

Page 19: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Conformance

A calculus conforms to a redundancy criterion, if its inferences remove

formulae from a branch only if they are redundant with respect to the

formulae in the resulting semi-sequent.

Oslo, June 13, 2008 – p.13/30

Page 20: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Conformance

A calculus conforms to a redundancy criterion, if its inferences remove

formulae from a branch only if they are redundant with respect to the

formulae in the resulting semi-sequent.

Example:

SIMP

L, φ[L], Γ ⊢

L, φ, Γ ⊢

Removes φ: Need to show that φ redundant w.r.t. {L,φ[L]}

In this case: L ≺ φ, φ[L] ≺ φ, and L,φ[L] |= φ.

Oslo, June 13, 2008 – p.13/30

Page 21: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Reductive Calculi

A calculus is called reductive if all new formulae introduced by an

inference are smaller than the main formula of the inference w.r.t. ≻

Oslo, June 13, 2008 – p.14/30

Page 22: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Reductive Calculi

A calculus is called reductive if all new formulae introduced by an

inference are smaller than the main formula of the inference w.r.t. ≻

Example:

SIMP

L, φ[L], Γ ⊢

L, φ, Γ ⊢

Pick φ as main formula

Show that φ[L] ≺ φ.

Oslo, June 13, 2008 – p.14/30

Page 23: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Counterexamples

Define a model functor I that maps

a set of formulae Γ with ⊥ 6∈ Γ 7→ a model I(Γ)

Let Γ 6∋ ⊥ be a set of formulae

A counterexample for I(Γ) in Γ is a formula φ ∈ Γ with I(Γ) 6|= φ.

Since ≻ is Noetherian, if there is a counterexample for I(Γ) in Γ ,

then there is also a minimal one.

Oslo, June 13, 2008 – p.15/30

Page 24: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

The Counterexample Reduction Property

A calculus has the counterexample reduction property, if:

For any Γ 6∋ ⊥ and minimal counterexample φ, the calculus permits an

inference

φ11, . . . , φ1m1, Γ0 ⊢ · · · φn1, . . . , φnmn , Γ0 ⊢

φ, φ01, . . . , φ0m0, Γ0 ⊢

with main formula φ where Γ = {φ, φ01, . . . , φ0m0} ∪ Γ0 such that

I(Γ) satisfies all side formulae, i.e. I(Γ) |= φ01, . . . , φ0m0, and

each of the premises contains an even smaller counterexample φiki ,

i.e. I(Γ) 6|= φiki and φ ≻ φiki .

Oslo, June 13, 2008 – p.16/30

Page 25: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Counterexample Reduction, Example

Example:

Γ = {φ ∨ψ} ∪ Γ0

and I(Γ) 6|= φ ∨ψ is minimal counterexample

Apply

β

φ, Γ0 ⊢ ψ, Γ0 ⊢

φ ∨ψ, Γ0 ⊢

φ, ψ ≺ φ ∨ψ and I(Γ) 6|= φ, ψ ➠ smaller counterexamples

Oslo, June 13, 2008 – p.17/30

Page 26: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Fairness

A derivation (Ti)i∈N in a calculus that conforms to an effective redundancy

criterion is called fair if for every limit branch (Γi)i∈N of T ∞, and any

inference

φ11, . . . ,φ1m1, Γ0 ⊢ · · · φn1, . . . ,φnmn , Γ0 ⊢

φ01, . . . ,φ0m0, Γ0 ⊢

possible on formulae in Γ∞,

• the inference is redundant in Γ∞, or

• some of the φ0i is redundant in Γ∞, or

• There is a j ∈ {1, . . . , n} such that for all k ∈ {1, . . . ,m j}

• φ jk is redundant in⋃

i Γi or

• φ jk ∈⋃

i ΓiOslo, June 13, 2008 – p.18/30

Page 27: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Completeness

Theorem: If a calculus

• conforms to the standard redundancy criterion, and

• is reductive, and

• has the counterexample reduction property, then

any fair derivation for an unsatisfiable formula φ contains

a closed tableau.

Case study in paper: NNF variant of hyper-tableaux calculus

Oslo, June 13, 2008 – p.19/30

Page 28: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Free Variables

Treatment of free variables using constraints.

SIMP

p(a), r(X) ≪ X ≡ a, ¬p(X) ∨ r(X) ≪ X 6≡ a ⊢

p(a), ¬p(X) ∨ r(X) ⊢

• Correspondence between ‘constrained formula’ tableaux

and ‘ground’ tableaux

• Completeness theorem for free variable tableaux

• Fairness in some cases not easy to achieve

Oslo, June 13, 2008 – p.20/30

Page 29: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Syntactic (Dis-)unification Constraints

A constraint is a formula built from

• equality ≡ between terms with (free) variables X,Y, Z,

• negation !, and

• conjunction &

and interpreted over the term universe.

Sat(C) is the set of ground substitutions satisfying C:

Sat(s ≡ t) = {σ ∈ G | σs = σt}

Sat(C& D) = Sat(C) ∩ Sat(D)

Sat(!C) = G \ Sat(C)

Oslo, June 13, 2008 – p.21/30

Page 30: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Constrained Formula Tableaux

A constrained formula is a pair

φ≪ C

of a constraint and a formula.

A constrained formula semi-sequent is a set of constrained formulae.

A (constrained formula) tableau is a tree where each node is labeled with a

constrained formula semi-sequent.

It is closed under σ ∈ G if every branch contains a semi-sequent Γ

containing a constrained formula ⊥ ≪ C with σ ∈ Sat(C)

It is closable if there is a σ ∈ G under which it is closed.

Oslo, June 13, 2008 – p.22/30

Page 31: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Example: SIMP with constraints

SIMP

L ≪ B, µφ[µL] ≪ L ≡ M& A& B,φ≪ A& !(L ≡ M& B), Γ ⊢

L ≪ B, φ≪ A, Γ ⊢

where µ is a mgu of L and M, and M occurrs in φ

e.g.:

SIMP

p(a), r(X) ≪ X ≡ a, ¬p(X) ∨ r(X) ≪ X 6≡ a ⊢

p(a), ¬p(X) ∨ r(X) ⊢

Oslo, June 13, 2008 – p.23/30

Page 32: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Substitutions and Constraints

Let Γ be a set of constrained formulae. We define

σΓ := {σφ | φ≪ C ∈ Γ with σ ∈ Sat(C)} .

Let T be a tableau.

We construct σT by replacing the semi-sequent Γ in each node of T by σΓ .

Oslo, June 13, 2008 – p.24/30

Page 33: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Correspondence

Let

Γ1 ⊢ · · · Γn ⊢

Γ0

be an inference of a constrained formula tableau calculus. The

corresponding ground inference under σ for some σ ∈ G is

σΓ1 ⊢ · · · σΓn ⊢

σΓ0.

The corresponding ground calculus is the calculus consisting of all corre-

sponding ground inferences under anyσ of any inferences in the constrained

formula calculus.

Oslo, June 13, 2008 – p.25/30

Page 34: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Corresponding inferences for SIMP

SIMP

L ≪ B, µφ[µL] ≪ L ≡ M& A& B,φ≪ A& !(L ≡ M& B), Γ ⊢

L ≪ B, φ≪ A, Γ ⊢

Corresponding ground inference under σ ∈ Sat(L ≡ M& A& B):

SIMP

σL, σφ[σL], Γ ⊢

σL, σφ, Γ ⊢

For all σ 6∈ Sat(L ≡ M& A& B): ground semi-sequent unchanged

Oslo, June 13, 2008 – p.26/30

Page 35: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Lifting of notions

A constrained formula calculus conforms to a given redundancy criterion,

has the counterexample reduction property, or is reductive iff the

corresponding ground calculus has that property.

A constrained formula tableau derivation (Ti)i∈N in a calculus that conforms

to an effective redundancy criterion is called fair if there is a σ ∈ G, such that

(σTi)i∈N is a fair derivation of the corresponding ground calculus. We call

such a σ a fair instantiation for the constrained formula tableau derivation.

Oslo, June 13, 2008 – p.27/30

Page 36: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Completeness

Theorem: If a constrained formula calculus

• conforms to the standard redundancy criterion, and

• is reductive, and

• has the counterexample reduction property, then

any fair derivation for an unsatisfiable formula φ contains a closed tableau.

Case study in paper: NNF variant of hyper-tableaux calculus with rigid

variables.

Oslo, June 13, 2008 – p.28/30

Page 37: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

The Problem with Fairness

Consider rules deriving

φ≪ C0 → φ≪ C1 → φ≪ C2 → · · ·

such that for some σ ∈ G:

σ ∈ Sat(C0) ∩ Sat(C1) ∩ Sat(C2) · · ·

• None of the φ≪ Ci is persistent

• But σφ is in the corresp. ground derivation

➠ fairness in general requires rule application on some φ≪ Ci

How can this be implemented?

Oslo, June 13, 2008 – p.29/30

Page 38: Saturation up to Redundancy for Tableau and …Saturation up to Redundancy for Tableau and Sequent Calculi Martin Giese Dept. of Computer Science University of Oslo Norway Oslo, June

Conclusion

• Generalized Bachmair/Ganzinger saturation framework to

Tableaux/Sequent calculi

• Permits semantic completeness proofs for destructive calculi

• Free-variable tableaux considered, but results preliminary

Future work:

• more uniform treatment of free variables

• alternatives to constraints for lifting

Oslo, June 13, 2008 – p.30/30