KE/Tableaux. What is it for?

Similar documents
Introduction to Logic in Computer Science: Autumn 2006

Introduction to Logic in Computer Science: Autumn 2007

Syntax of FOL. Introduction to Logic in Computer Science: Autumn Tableaux for First-order Logic. Syntax of FOL (2)

Automated Reasoning. Introduction to Logic in Computer Science: Autumn Different Forms of Reasoning. Tableaux for Propositional Logic

Introduction to Logic in Computer Science: Autumn 2006

Mathematical Logic Propositional Logic - Tableaux*

Mathematical Logics. 12. Soundness and Completeness of tableaux reasoning in first order logic. Luciano Serafini

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

Deductive Systems. Lecture - 3

Classical Propositional Logic

Propositional Calculus - Semantics (3/3) Moonzoo Kim CS Dept. KAIST

Warm-Up Problem. Is the following true or false? 1/35

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)

Semantics and Pragmatics of NLP

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Propositional Logic Language

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

CS 486: Applied Logic Lecture 7, February 11, Compactness. 7.1 Compactness why?

Discrete Mathematics. Instructor: Sourav Chakraborty. Lecture 4: Propositional Logic and Predicate Lo

Predicate Logic - Semantic Tableau

Logic and Proofs. (A brief summary)

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true.

The predicate calculus is complete

Deduction by Daniel Bonevac. Chapter 3 Truth Trees

Version January Please send comments and corrections to

Propositional Logic: Gentzen System, G

Propositional and Predicate Logic - V

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

Propositional Logic: Part II - Syntax & Proofs 0-0

MAI0203 Lecture 7: Inference and Predicate Calculus

Proofs. Joe Patten August 10, 2018

Propositional Logic: Review

Propositional Logic Truth-functionality Definitions Soundness Completeness Inferences. Modal Logic. Daniel Bonevac.

A Tableau Calculus for Minimal Modal Model Generation

Propositional logic. Programming and Modal Logic


First-Order Logic (FOL)

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

17.1 Correctness of First-Order Tableaux

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

Predicate Calculus - Semantic Tableau (2/2) Moonzoo Kim CS Division of EECS Dept. KAIST

Chapter 11: Automated Proof Systems

Propositional and Predicate Logic - IV

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

Comp487/587 - Boolean Formulas

First-Order Logic. Chapter Overview Syntax

Incomplete version for students of easllc2012 only. 6.6 The Model Existence Game 99

Learning Goals of CS245 Logic and Computation

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

LECTURE 1. Logic and Proofs

Saturation up to Redundancy for Tableau and Sequent Calculi

CTL-RP: A Computational Tree Logic Resolution Prover

02 Propositional Logic

Lecture 13: Soundness, Completeness and Compactness

Exercises 1 - Solutions

Logic and Proofs. (A brief summary)

Propositional Calculus - Soundness & Completeness of H

Logic for Computer Scientists

Natural Deduction for Propositional Logic

Gödel s Incompleteness Theorems

Logic for Computer Scientists

Some Rewriting Systems as a Background of Proving Methods

Supplementary Logic Notes CSE 321 Winter 2009

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence

Propositional Calculus - Deductive Systems

Introduction to Metalogic

Introduction to Isabelle/HOL

Propositional Resolution

CS 730/730W/830: Intro AI

In this chapter, we specify a deductive apparatus for PL.

Classical Propositional Logic

7 LOGICAL AGENTS. OHJ-2556 Artificial Intelligence, Spring OHJ-2556 Artificial Intelligence, Spring

Inference in first-order logic

Propositional logic II.

3 Propositional Logic

Logic: Propositional Logic Tableaux

Proving Completeness for Nested Sequent Calculi 1

Tableau Systems for Logics of Formal Inconsistency

Logic Overview, I. and T T T T F F F T F F F F

Outline. Logic. Definition. Theorem (Gödel s Completeness Theorem) Summary of Previous Week. Undecidability. Unification

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

Propositional logic. Programming and Modal Logic

Inference in first-order logic

6. Logical Inference

Chapter 4, Logic using Propositional Calculus Handout

Informal Statement Calculus

Resolution for Predicate Logic

Halting and Equivalence of Program Schemes in Models of Arbitrary Theories

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit:

First order Logic ( Predicate Logic) and Methods of Proof

Classical First-Order Logic

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

Predicate Logic: Sematics Part 1

Transcription:

CS3UR: utomated Reasoning 2002 The term Tableaux refers to a family of deduction methods for different logics. We start by introducing one of them: non-free-variable KE for classical FOL What is it for? Given: Task: How? set of premises and conclusion ϕ (all FOL sentences) prove = ϕ show { ϕ} is not satisfiable (which is equivalent), i.e. add the complement of the conclusion to the premises and derive a contradiction ( refutation procedure ) Ulle Endriss, King s College London 1 CS3UR: utomated Reasoning 2002 Constructing KE Proofs Data structure. KE proof is represented as a tableau: a binary tree whose nodes are labelled with formulas. Start. We start by writing the premises and the negated conclusion into the root of an otherwise empty tableau. Expansion. We apply expansion rules to the formulas on the tree; this results in new formulas being added and branches being split. Closure. branch that is obviously contradictory can be closed. Success. proof is successful iff we can close all branches. Ulle Endriss, King s College London 2

CS3UR: utomated Reasoning 2002 Propositional KE Rules lpha Rules ( ) ( ) -Elimination eta Rules ( ) ( ) Ulle Endriss, King s College London 3 CS3UR: utomated Reasoning 2002 Propositional KE Rules (2) P Closing branches Eta Rules ( ) ( ) ( ) ( ) Ulle Endriss, King s College London 4

CS3UR: utomated Reasoning 2002 Quantifier Rules Gamma Rules ( x) ( x) [x t] [x t] Delta Rules ( x) ( x) [x c] [x c] t is an arbitrary ground term c is a constant symbol new to the branch Ulle Endriss, King s College London 5 CS3UR: utomated Reasoning 2002 Observations Rule application order. The order in which rules are applied can change the size of proof trees significantly. Example: applying α before P is generally a good idea, etc. eta simplification. If we have a β-formula (like ) and the complement of a matching minor premise (like ) on the same branch, then we don t need to apply the β-rule. nalytic P. The choice of P-formulas can be restricted to subformulas appearing on the branch (more precisely: to subformulas of non-analysed β- and η-formulas). Gamma rule. The γ-rule is the only rule we may have to apply more than once to the same formula. (This is precisely what makes things so difficult: we don t know how often we have to apply it.) Ulle Endriss, King s College London 6

CS3UR: utomated Reasoning 2002 Can a proof ever fail? General answer: No! The algorithm can only return yes or don t know (but not no ). It is a so-called semi-decision procedure (there can be no decision procedure for FOL). Special cases. In special cases, however, we may be able to see that a proof could never succeed (i.e. we can declare it a failure). This is, for example, the case when we have enough information to construct a countermodel... Ulle Endriss, King s College London 7 CS3UR: utomated Reasoning 2002 Saturated ranches n open branch is called saturated iff every (complex) formulas has been analysed at least once and, additionally, every γ-formula has been instantiated with every term we can construct using the function symbols on the branch. Failing proofs. tableau with an open saturated branch can never be closed, i.e. we can stop an declare the proof a failure. The solution? This only helps us in special cases though. ( single 1-ary function symbol together with a constant is already enough to construct infinitely many terms... ) Propositional logic. In propositional logic (where we have no γ-formulas), after a limited number of steps, every branch will be either closed or saturated. This gives us a decision procedure. Ulle Endriss, King s College London 8

CS3UR: utomated Reasoning 2002 Countermodels If a KE proof fails with a saturated open branch, you can use it to help you define a model M for all the formulas on that branch: domain: set of all terms we can construct using the function symbols appearing on the branch (so-called Herbrand universe) terms are interpreted as themselves (sic!) interpretation of predicate symbols: see literals on branch In particular, M will be a model for the premises and the negated conclusion ϕ, thereby constituting a counterexample for the attempted proof of = ϕ. Careful: There s a bug in WinKE: sometimes, what is presented as a countermodel is in fact only part of a countermodel (but it can always be extended to an actual model). Ulle Endriss, King s College London 9 CS3UR: utomated Reasoning 2002 Soundness and Completeness gain, let ϕ be a sentence and let be a set of sentences. We write KE ϕ to say that there exists a closed KE tableau for { ϕ}. efore you can believe in KE you need to prove the following: Theorem 1 (Soundness) If KE ϕ then = ϕ. Theorem 2 (Completeness) If = ϕ then KE ϕ. Important note: The mere existence of a closed tableau does not entail that we have an effective method of finding it! Concretely: we don t know how often we need to apply the γ-rule and what terms to use in the substitutions. From now on, to simplify things, we shall not consider,,, and (which can be regarded as abbreviations). Ulle Endriss, King s College London 10

CS3UR: utomated Reasoning 2002 Smullyan s Uniform Notation Formulas of conjunctive (α) and disjunctive (β) type: α α 1 α 2 ( ) ( ) β β 1 β 2 ( ) We can now state alpha and beta rules as follows: α α 1 α 2 β β c 1 β 2 β β c 2 where c = β 1 for =, otherwise Ulle Endriss, King s College London 11 CS3UR: utomated Reasoning 2002 Smullyan s Uniform Notation (2) Formulas of universal (γ) and existential (δ) type: γ γ 1 (u) ( x) [x u] ( x) [x u] δ δ 1 (u) ( x) [x u] ( x) [x u] We can now state gamma and delta rules as follows: γ γ 1 (t) δ δ 1 (c) where: t is an arbitrary ground term c is a constant symbol new to the branch Ulle Endriss, King s College London 12

CS3UR: utomated Reasoning 2002 Soundness Proof Satisfiable branches. We say that a branch is satisfiable iff the set of sentences on that branch is satisfiable. Proof sketch. First prove the following lemma: Lemma 1 (Satisfiable branches) If a non-branching KE rule is applied to a satisfiable branch, the result is another satisfiable branch. If P is applied to a satisfiable branch, at least one of the resulting branches is also satisfiable. Now we can prove soundness by contradiction: assume KE ϕ but = ϕ and try to derive a contradiction. = ϕ { ϕ} satisfiable initial branch satisfiable always at least one branch satisfiable (by above lemma) This contradicts our assumption that at one point all branches will be closed ( KE ϕ), because a closed branch is not satisfiable. Ulle Endriss, King s College London 13 CS3UR: utomated Reasoning 2002 Hintikka s Lemma Definition 1 (Hintikka set) set of sentences H is called a Hintikka set provided the following hold: (i) not both P H and P H for propositional atoms P ; (ii) if ϕ H then ϕ H for all formulas ϕ; (iii) if α H then α 1 H and α 2 H for alpha formulas α; (iv) if β H then β 1 H or β 2 H for beta formulas β; (v) for all terms t constructible from function symbols in H (at least one constant symbol): if γ H then γ 1 (t) for gamma formulas γ; (vi) if δ H then δ 1 (t) H for some term t, for delta formulas δ. Lemma 2 (Hintikka) Every Hintikka set is satisfiable. Ulle Endriss, King s College London 14

CS3UR: utomated Reasoning 2002 Completeness Proof Fairness. We call a KE proof fair iff every (complex) formula gets eventually analysed on every branch and, additionally, every γ-formula gets eventually instantiated with every term constructible from the function symbols appearing on a branch. Proof sketch. We will show the contrapositive: assume KE and try to conclude = ϕ. If there is no KE proof for { ϕ} (assumption), then there can also be no fair KE proof. Show that a fairly constructed non-closable branch enumerates the elements of a Hintikka set H. H is satisfiable (Hintikka s Lemma) and we have H and ϕ H. So there is a model for { ϕ}, i.e. we get = ϕ. Ulle Endriss, King s College London 15 CS3UR: utomated Reasoning 2002 Smullyan Tableaux The standard Tableaux rules (introduced by R. Smullyan in 1968) differ from the KE rules as follows: There is no P rule. eta rules are branching rules: ( ) in short: β β 1 β 2 Similarly for eta rules. The rest is the same as with the KE system. Ulle Endriss, King s College London 16