non classical logics lecture 2 classical logic part 2
play

Non-classical logics Lecture 2: Classical logic, Part 2 5.11.2014 - PowerPoint PPT Presentation

Non-classical logics Lecture 2: Classical logic, Part 2 5.11.2014 Viorica Sofronie-Stokkermans sofronie@uni-koblenz.de Winter Semester 2014/2015 1 Last time Propositional logic (Syntax, Semantics) Problems: Checking unsatisfiability


  1. Non-classical logics Lecture 2: Classical logic, Part 2 5.11.2014 Viorica Sofronie-Stokkermans sofronie@uni-koblenz.de Winter Semester 2014/2015 1

  2. Last time • Propositional logic (Syntax, Semantics) • Problems: Checking unsatisfiability NP complete PTIME for certain fragments of propositional logic • Normal forms (CNF/DNF) • Translations to CNF/DNF 2

  3. Decision Procedures for Satisfiability • Simple Decision Procedures truth table method • The Resolution Procedure • Tableaux ... 3

  4. Today • Methods for checking satisfiability The Resolution Procedure Semantic Tableaux 4

  5. The Propositional Resolution Calculus Resolution inference rule: C ∨ A ¬ A ∨ D C ∨ D Terminology: C ∨ D : resolvent; A : resolved atom (Positive) factorisation inference rule: C ∨ A ∨ A C ∨ A These are schematic inference rules; for each substitution of the schematic variables C , D , and A , respectively, by propositional clauses and atoms we obtain an inference rule. As “ ∨ ” is considered associative and commutative, we assume that A and ¬ A can occur anywhere in their respective clauses. 5

  6. Sample Refutation 1. ¬ P ∨ ¬ P ∨ Q (given) 2. (given) P ∨ Q 3. (given) ¬ R ∨ ¬ Q 4. (given) R 5. (Res. 2. into 1.) ¬ P ∨ Q ∨ Q 6. ¬ P ∨ Q (Fact. 5.) 7. (Res. 2. into 6.) Q ∨ Q 8. (Fact. 7.) Q 9. (Res. 8. into 3.) ¬ R 10. (Res. 4. into 9.) ⊥ 6

  7. Soundness and Completeness Theorem 1.6. Propositional resolution is sound. for both the resolution rule and the positive factorization rule the conclusion of the inference is entailed by the premises. If N is satisfiable, we cannot deduce ⊥ from N using the inference rules of the propositional resolution calculus. If we can deduce ⊥ from N using the inference rules of the propositional resolution calculus then N is unsatisfiable Theorem 1.7. Propositional resolution is refutationally complete. If N | = ⊥ we can deduce ⊥ starting from N and using the inference rules of the propositional resolution calculus. 7

  8. Notation N ⊢ Res ⊥ : we can deduce ⊥ starting from N and using the inference rules of the propositional resolution calculus. 8

  9. Completeness of Resolution How to show refutational completeness of propositional resolution: • We have to show: N | = ⊥ ⇒ N ⊢ Res ⊥ , or equivalently: If N �⊢ Res ⊥ , then N has a model. • Idea: Suppose that we have computed sufficiently many inferences (and not derived ⊥ ). Now order the clauses in N according to some appropriate ordering, inspect the clauses in ascending order, and construct a series of valuations. • The limit valuation can be shown to be a model of N . 9

  10. Clause Orderings 1. We assume that ≻ is any fixed ordering on propositional variables that is total and well-founded. 2. Extend ≻ to an ordering ≻ L on literals: [ ¬ ] P [ ¬ ] Q , if P ≻ Q ≻ L ¬ P P ≻ L 3. Extend ≻ L to an ordering ≻ C on clauses: ≻ C = ( ≻ L ) mul , the multi-set extension of ≻ L . Notation: ≻ also for ≻ L and ≻ C . (well-founded) 10

  11. Multi-Set Orderings Let ( M , ≻ ) be a partial ordering. The multi-set extension of ≻ to multi-sets over M is defined by S 1 ≻ mul S 2 : ⇔ S 1 � = S 2 and ∀ m ∈ M : [ S 2 ( m ) > S 1 ( m ) ∃ m ′ ∈ M : ( m ′ ≻ m and S 1 ( m ′ ) > S 2 ( m ′ ))] ⇒ Theorem 1.11: a) ≻ mul is a partial ordering. b) ≻ well-founded ⇒ ≻ mul well-founded c) ≻ total ⇒ ≻ mul total Proof: see Baader and Nipkow, page 22–24. 11

  12. Example Suppose P 5 ≻ P 4 ≻ P 3 ≻ P 2 ≻ P 1 ≻ P 0 . Then: P 0 ∨ P 1 P 1 ∨ P 2 ≺ ¬ P 1 ∨ P 2 ≺ ¬ P 1 ∨ P 4 ∨ P 3 ≺ ¬ P 1 ∨ ¬ P 4 ∨ P 3 ≺ ¬ P 5 ∨ P 5 ≺ 12

  13. Stratified Structure of Clause Sets Let A ≻ B . Clause sets are then stratified in this form: { . . . ∨ B all D where max( D ) = B B . . . . . . ∨ B ∨ B . . . ¬ B ∨ . . . . . ≺ . . { . . . . . ∨ A all C where max( C ) = A . . . . . . ∨ A ∨ A A . . . ¬ A ∨ . . . . . . 13

  14. Stratified Structure of Clause Sets Let A ≻ B . Clause sets are then stratified in this form: { . . . ∨ B all D where max( D ) = B B . . . . . . ∨ B ∨ B . . . ¬ B ∨ . . . . . ≺ . . { . . . . . ∨ A all C where max( C ) = A . . . . . . ∨ A ∨ A A . . . ¬ A ∨ . . . . . . 14

  15. Closure of Clause Sets under Res Res ( N ) = { C | C is concl. of a rule in Res w/ premises in N } Res 0 ( N ) = N Res n +1 ( N ) = Res ( Res n ( N )) ∪ Res n ( N ), for n ≥ 0 Res ∗ ( N ) = � n ≥ 0 Res n ( N ) N is called saturated (wrt. resolution), if Res ( N ) ⊆ N . Proposition 1.12 (i) Res ∗ ( N ) is saturated. (ii) Res is refutationally complete, iff for each set N of ground clauses: = ⊥ ⇔ ⊥ ∈ Res ∗ ( N ) N | 15

  16. Construction of Interpretations Given: set N of clauses, atom ordering ≻ . Wanted: Valuation A such that • “many” clauses from N are valid in A ; • A | = N, if N is saturated and ⊥ �∈ N . Construction according to ≻ , starting with the minimal clause. 16

  17. Main Ideas of the Construction • Clauses are considered in the order given by ≺ . We construct a model for N incrementally. • When considering C , one already has a partial interpretation I C (initially I C = ∅ ) available. In what follows, instead of referring to partial valuations A C we will refer to partial interpretations I C (the set of atoms which are true in the valuation A C ). • If C is true in the partial interpretation I C , nothing is done. (∆ C = ∅ ). • If C is false, one would like to change I C such that C becomes true. 17

  18. Example Let P 5 ≻ P 4 ≻ P 3 ≻ P 2 ≻ P 1 ≻ P 0 (max. literals in red) I C = A − 1 clauses C C (1) ∆ C Remarks 1 ¬ P 0 P 0 ∨ P 1 2 3 P 1 ∨ P 2 4 ¬ P 1 ∨ P 2 ¬ P 1 ∨ P 4 ∨ P 3 ∨ P 0 5 6 ¬ P 1 ∨ ¬ P 4 ∨ P 3 ¬ P 1 ∨ P 5 7 18

  19. Example Let P 5 ≻ P 4 ≻ P 3 ≻ P 2 ≻ P 1 ≻ P 0 (max. literals in red) I C = A − 1 clauses C C (1) ∆ C Remarks 1 ¬ P 0 ∅ ∅ true in A C P 0 ∨ P 1 2 3 P 1 ∨ P 2 4 ¬ P 1 ∨ P 2 ¬ P 1 ∨ P 4 ∨ P 3 ∨ P 0 5 6 ¬ P 1 ∨ ¬ P 4 ∨ P 3 ¬ P 1 ∨ P 5 7 19

  20. Example Let P 5 ≻ P 4 ≻ P 3 ≻ P 2 ≻ P 1 ≻ P 0 (max. literals in red) I C = A − 1 clauses C C (1) ∆ C Remarks 1 ¬ P 0 ∅ ∅ true in A C P 0 ∨ P 1 ∅ { P 1 } 2 P 1 maximal 3 P 1 ∨ P 2 4 ¬ P 1 ∨ P 2 ¬ P 1 ∨ P 4 ∨ P 3 ∨ P 0 5 6 ¬ P 1 ∨ ¬ P 4 ∨ P 3 ¬ P 1 ∨ P 5 7 20

  21. Example Let P 5 ≻ P 4 ≻ P 3 ≻ P 2 ≻ P 1 ≻ P 0 (max. literals in red) I C = A − 1 clauses C C (1) ∆ C Remarks 1 ¬ P 0 ∅ ∅ true in A C P 0 ∨ P 1 ∅ { P 1 } 2 P 1 maximal 3 P 1 ∨ P 2 { P 1 } ∅ true in A C 4 ¬ P 1 ∨ P 2 ¬ P 1 ∨ P 4 ∨ P 3 ∨ P 0 5 6 ¬ P 1 ∨ ¬ P 4 ∨ P 3 ¬ P 1 ∨ P 5 7 21

  22. Example Let P 5 ≻ P 4 ≻ P 3 ≻ P 2 ≻ P 1 ≻ P 0 (max. literals in red) I C = A − 1 clauses C C (1) ∆ C Remarks 1 ¬ P 0 ∅ ∅ true in A C P 0 ∨ P 1 ∅ { P 1 } 2 P 1 maximal 3 P 1 ∨ P 2 { P 1 } ∅ true in A C 4 ¬ P 1 ∨ P 2 { P 1 } { P 2 } P 2 maximal ¬ P 1 ∨ P 4 ∨ P 3 ∨ P 0 5 6 ¬ P 1 ∨ ¬ P 4 ∨ P 3 ¬ P 1 ∨ P 5 7 22

  23. Example Let P 5 ≻ P 4 ≻ P 3 ≻ P 2 ≻ P 1 ≻ P 0 (max. literals in red) I C = A − 1 clauses C C (1) ∆ C Remarks 1 ¬ P 0 ∅ ∅ true in A C P 0 ∨ P 1 ∅ { P 1 } 2 P 1 maximal 3 P 1 ∨ P 2 { P 1 } ∅ true in A C 4 ¬ P 1 ∨ P 2 { P 1 } { P 2 } P 2 maximal ¬ P 1 ∨ P 4 ∨ P 3 ∨ P 0 { P 1 , P 2 } { P 4 } 5 P 4 maximal 6 ¬ P 1 ∨ ¬ P 4 ∨ P 3 ¬ P 1 ∨ P 5 7 23

  24. Example Let P 5 ≻ P 4 ≻ P 3 ≻ P 2 ≻ P 1 ≻ P 0 (max. literals in red) I C = A − 1 clauses C C (1) ∆ C Remarks 1 ¬ P 0 ∅ ∅ true in A C P 0 ∨ P 1 ∅ { P 1 } 2 P 1 maximal 3 P 1 ∨ P 2 { P 1 } ∅ true in A C 4 ¬ P 1 ∨ P 2 { P 1 } { P 2 } P 2 maximal ¬ P 1 ∨ P 4 ∨ P 3 ∨ P 0 { P 1 , P 2 } { P 4 } 5 P 4 maximal 6 ¬ P 1 ∨ ¬ P 4 ∨ P 3 { P 1 , P 2 , P 4 } ∅ P 3 not maximal; min. counter-ex. ¬ P 1 ∨ P 5 { P 1 , P 2 , P 4 } { P 5 } 7 I = { P 1 , P 2 , P 4 , P 5 } = A − 1 (1): A is not a model of the clause set ⇒ there exists a counterexample. 24

  25. Main Ideas of the Construction • Clauses are considered in the order given by ≺ . • When considering C , one already has a partial interpretation I C (initially I C = ∅ ) available. • If C is true in the partial interpretation I C , nothing is done. (∆ C = ∅ ). • If C is false, one would like to change I C such that C becomes true. 25

  26. Main Ideas of the Construction • Changes should, however, be monotone . One never deletes anything from I C and the truth value of clauses smaller than C should be maintained the way it was in I C . • Hence, one chooses ∆ C = { A } if, and only if, C is false in I C , if A occurs positively in C ( adding A will make C become true ) and if this occurrence in C is strictly maximal in the ordering on literals ( changing the truth value of A has no effect on smaller clauses ). 26

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend