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

Similar documents
Introduction to Logic in Computer Science: Autumn 2006

Predicate Logic - Semantic Tableau

KE/Tableaux. What is it for?

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)

Predicate Logic - Deductive Systems

First-Order Predicate Logic. Basics

Mathematical Logic. Reasoning in First Order Logic. Chiara Ghidini. FBK-IRST, Trento, Italy

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method

Exercises for the Logic Course

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

Logic: The Big Picture

First-Order Logic. Resolution

First-Order Logic. Chapter Overview Syntax

17.1 Correctness of First-Order Tableaux

Saturation up to Redundancy for Tableau and Sequent Calculi

Exercises 1 - Solutions

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

Propositional and Predicate Logic - IV

Predicate Logic. Andreas Klappenecker

Predicate Logic: Sematics Part 1

Logic Part I: Classical Logic and Its Semantics

First-Order Logic (FOL)

A Tableau Calculus for Minimal Modal Model Generation

Notation for Logical Operators:

06 From Propositional to Predicate Logic

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing

Some Rewriting Systems as a Background of Proving Methods

Mathematical Logic Propositional Logic - Tableaux*

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

Semantics and Pragmatics of NLP

Version January Please send comments and corrections to

Introduction to Logic in Computer Science: Autumn 2006

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Temporal Logic - Soundness and Completeness of L

Automated Reasoning Lecture 5: First-Order Logic

INTRODUCTION TO LOGIC

Computational Logic. Recall of First-Order Logic. Damiano Zanardini

Handout Proof Methods in Computer Science

2-4: The Use of Quantifiers

4 Predicate / First Order Logic

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes)

VAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0. Contents

Part II. Logic and Set Theory. Year

Classical Propositional Logic

AAA615: Formal Methods. Lecture 2 First-Order Logic

CS156: The Calculus of Computation Zohar Manna Winter 2010

First order logic. Example The deduction of statements: This reasoning is intuitively correct. Every man is mortal. Since Ade is a man, he is mortal.

3.17 Semantic Tableaux for First-Order Logic

2.5.2 Basic CNF/DNF Transformation

03 Review of First-Order Logic

Dual-Intuitionistic Logic and Some Other Logics

Handout #7 Predicate Logic Trees

Relations to first order logic

Predicate Logic: Semantics

Class 29 - November 3 Semantics for Predicate Logic

Final Exam (100 points)

Victoria Gitman and Thomas Johnstone. New York City College of Technology, CUNY

Advanced Topics in LP and FP

Propositional and Predicate Logic - V

Computational Logic. Standardization of Interpretations. Damiano Zanardini

CHAPTER 2. FIRST ORDER LOGIC

Nonclassical logics (Nichtklassische Logiken)

Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures

Between proof theory and model theory Three traditions in logic: Syntactic (formal deduction)

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

CSCE 222 Discrete Structures for Computing. Predicate Logic. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

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

Existence and Consistency in Bounded Arithmetic

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

I thank the author of the examination paper on which sample paper is based. VH

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

Two hours. Examination definition sheet is available at the back of the examination. UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE

Formal (Natural) Deduction for Predicate Calculus

Foundations of Artificial Intelligence

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

Discrete Mathematics

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

Foundations of Artificial Intelligence

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

Propositions and Proofs

Model Evolution with Equality Revised and Implemented

Formal Methods for Java

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

CPSC 121: Models of Computation

First Order Logic Semantics (3A) Young W. Lim 9/17/17

arxiv: v1 [math.lo] 8 Mar 2018

Logic as a Tool Chapter 4: Deductive Reasoning in First-Order Logic 4.4 Prenex normal form. Skolemization. Clausal form.

First Order Logic (FOL) 1 znj/dm2017

Lecture 13: Soundness, Completeness and Compactness

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1

INF3170 / INF4171 Notes on Resolution

Mathematical Logic. First order logic: syntax and semantics. Luciano Serafini. FBK-IRST, Trento, Italy

07 Equational Logic and Algebraic Reasoning

An Introduction to Modal Logic III

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

The Absoluteness of Constructibility

Propositional and Predicate Logic - XIII

Advanced DB CHAPTER 5 DATALOG

Transcription:

12. Soundness and Completeness of tableaux reasoning in first order logic Fondazione Bruno Kessler, Trento, Italy November 14, 2013

Example of tableaux Example Consider the following formulas: (a) xyz(p(x, y) P(y, z) P(x, z) (b) xy(p(x, y) P(y, x)) (c) x yp(x, y) (d) xp(x, x) Show that (a), (b), (c) = (d). and that (a), (b) = (d).

Solution ((a), (b), (c) = (d)) (a), (b), (c), (d) P(a, a) yp(a, y) P(a, b) P(a, b) P(b, a) P(a, b) P(b, a) P(a, b) P(b, a) P(a, a) (P(a, b) P(b, a)) P(a, a) P(a, b) P(b, a)

Solution ((a), (b), = (d)) (a), (b), (d) P(a, a) P(a, a) P(a, a) P(a, a) P(a, a) P(a, a) P(a, a) P(a, a) (P(a, a) P(a, a)) P(a, a) P(a, a) P(a, a) The tableaux is complete, i.e., no other rules can be applied, and it contains at least an open branch (the one on the left). From this open branch we can construct an interpretation I with I = {a} (the constant that appear in the branch), and P I =, since P(a, a) occurs in the branch. Notice that I = (a), (b), (d). Therefore we can conclude that (a), (b) = (d).

Soundness and Completeness Definition (Derivation relation via tableaux) Let φ be a first-order formula and Γ a set of such formulas. Γ φ means that there exists a closed tableau for Γ { φ}. Theorem (Soundness) If Γ φ then Γ = φ. Theorem (Completeness) If Γ = φ then Γ φ. Important note The mere existence of a closed tableau does not mean that we have an effective method of finding it! Concretely: we dont know how often we need to apply the γ rule and what terms to use for the substitutions.

Proof of Soundness Soundness means that what you infer via syntactic manipulation ( ) is correct from the semantic point of view ( =). I.e., if you are able to infer φ from Γ (Γ φ), then φ is a logical consequence of Γ, (Γ = φ) We have to show that Γ φ = Γ = φ which is equivalent to show that Γ = φ = Γ φ which is equivalent to show that Γ { φ} is consistent = the saturated tableaux for γ 1 γ n φ is open, i.e., it contains an open branch. in practice we show that each of the expansion rules preserves satisfiability: If a non-branching rule is applied to a satisfiable branch, the result is another satisfiable branch. If a branching rule is applied to a satisfiable branch, at least one of the resulting branches is also satisfiable.

Proof of Soundness Definition (Satisfiable branch) A branch β of a tableaux τ is satisfiable if the set of formulas that occurs in β is satisfiable. I.e., if there is an interpretation I, such that I = φ for all φ β. Expansion rules preserve satisfiability We show that every rule extend a consistent branch β to a branch β which is consistent.

Proof of Soundness Propositional α-rules φ ψ φ ψ let I be such that I = β since φ ψ β then I = φ ψ which implies that I = φ and I = ψ which implies that I = β {φ, ψ}.

Proof of Soundness Propositional β Rules φ ψ φ ψ let I be such that I = β since φ ψ β then I = φ ψ which implies that I = φ or I = ψ which implies that I = β {φ} or I = β {ψ}.

Proof of Soundness γ-rules xφ(x) φ(a) Let β be a that contains the formula xφ(x). By applying the gamma rule we have that it is extended to β {φ(t)} where t is a term occurring in some formula of β. If β is satisfiable then there is an interpretation I = β This implies that I = xφ(x) which implies that I = φ(t) for any term t. therefore I satisfies the extended branch β {φ(t)}. Similar argument can be done for the second γ-rule. xφ(x) φ(t)

Proof of Soundness δ-rules xφ(x) φ(c) c is a fresh constant Let I be such that I = β since xφ(x) β, then I = xφ(x) this implies that for some d I, I = φ(x)[a[x/d]]. let I be an interpretation obtained by extending I with c I = d. Notice that c being fresh, is not interpreted in I and therefore I agrees with I on the interpretation of every symbol but c. The fact that c does not occurs in β, I = β. this implies that I = β {φ(c)}. i.e., β {φ(c)} is consistent. Similar argument can be done for the second γ-rule. xφ(x) φ(c) with c fresh.

Hintikkas Lemma Definition (Hintikka set) A set of first-order formulas Γ is called a Hintikka set provided the following hold: 1 not both P(t 1,..., t n ) H and P(t 1,..., t n ) H for atoms P(t 1,..., t n ); 2 if φ H then φ H for all formulas φ ; 3 if α H then α 1 H and α 2 H for alpha formulas α; 4 if β H then either β 1 H or β 2 H for beta formulas β. 5 for all terms t built from function symbols in H (at least one constant symbol): if γ H then γ 1 (t) for gamma formulas γ; 6 if δ H then δ 1 (t) H for some term t, for delta formulas δ. Lemma (Hintikka) Every Hintikka set is satisfiable

Proof of Hintikkas Lemma Construct a model I = I, I from a given Hintikka set H: I is the set of terms constructible from function symbols appearing in H (add one constant symbol in case there are none). Namely. if H contains the constants, c 1, c 2,... and the function symbols f 1, f 2,... with arity, then I is the set of strings recursively defined as follows: c 1, c 2, I if x 1,... x arity(fi ) I then f i (x 1,..., x arity(fi )) I I is defined as follows: 1 c I = c 2 function symbols are interpreted as themselves: f I (d 1,..., d n ) = f (d 1,..., d n ) 3 predicate symbols: P I = { d 1,..., d n I P(d 1,..., d n ) H} Claim: φ H implies I = φ Proof: By structural induction on φ.

Proof of Hintikkas Lemma - example Example Consider the following Hintikka set { P(a), P(f (a)), Q(a, b), Q(g(a, b), a), H = P(b) xq(x, b), xq(x, b) } Then the interpretation I associated to H is the following: I = a, b, f (a), f (b), g(a, a), g(a, b), g(b, a), g(b, b) f (f (a)), f (f (b)), f (g(a, a)), f (g(a, b)), f (g(b, a)), f (g(b, b)) g(a, f (a)), g(a, f (b)), g(b, f (a)), g(b, f (b)) g(f (a), a), g(f (a), b), g(f (b), a), g(f (b), b) g(f (a), f (a)), g(f (a), f (b)), g(f (b), f (a)), g(f (b), f (b)),... f I (x) = f (x) for every x I P I = {a}, Q I = { a, b, g(a, b), a }.

Proof of Completeness Definition (Fairness) We call a tableau fair if every non-literal of a branch gets eventually analysed on this branch and, additionally, every γ-formula gets eventually instantiated with every term constructible from the function symbols appearing on a branch.

Proof of Completeness Completeness proof (sketch). We show that Γ φ implies Γ = φ. Suppose that there is no proof for Γ { φ} Let τ a fair tableaux that start with Γ { φ}, The fact that Γ φ implies that there is at least an open branch β. fairness condition implies that the set of formulas in β constitute an Hintikka set H β From Hintikka lemma we have that there is an interpretation I β that satisfies β. since every branch of τ contains its root we have that Γ { φ} β and therefore I β = Γ { φ}. which implies that Γ = φ.