Predicate Logic - Deductive Systems

Similar documents
Predicate Logic - Semantic Tableau

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

Predicate Logic. Andreas Klappenecker

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

Propositional Logic: Gentzen System, G

2. Use quantifiers to express the associative law for multiplication of real numbers.

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

Predicate Logic: Sematics Part 1

First-Order Logic. Chapter Overview Syntax

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

CHAPTER 10. Predicate Automated Proof Systems

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

2-4: The Use of Quantifiers

Temporal Logic - Soundness and Completeness of L

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

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

1 Introduction to Predicate Resolution

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

Propositional Calculus - Hilbert system H Moonzoo Kim CS Division of EECS Dept. KAIST

Formal (Natural) Deduction for Predicate Calculus

Marie Duží

α-formulas β-formulas

Propositional Calculus - Soundness & Completeness of H

Discrete Mathematics

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

First-Order Predicate Logic. Basics

Notes on the Foundations of Constructive Mathematics

Propositional Calculus - Hilbert system H Moonzoo Kim CS Dept. KAIST

CSE Discrete Structures

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

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them.

Chapter 11: Automated Proof Systems (1)

Logic: The Big Picture

Predicate Logic. CSE 191, Class Note 02: Predicate Logic Computer Sci & Eng Dept SUNY Buffalo

Propositional Logic Language

Philosophy 240 Symbolic Logic Russell Marcus Hamilton College Fall 2014

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

MAT 243 Test 1 SOLUTIONS, FORM A

Supplementary Logic Notes CSE 321 Winter 2009

CPSC 121: Models of Computation

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Version January Please send comments and corrections to

EECS 1028 M: Discrete Mathematics for Engineers

CHAPTER 2. FIRST ORDER LOGIC

CHAPTER 11. Introduction to Intuitionistic Logic

Denote John by j and Smith by s, is a bachelor by predicate letter B. The statements (1) and (2) may be written as B(j) and B(s).

Propositional Calculus - Deductive Systems

Introduction to Logic in Computer Science: Autumn 2006

CSE 311: Foundations of Computing. Lecture 6: More Predicate Logic

Intuitionistic Proof Transformations and their Application to Constructive Program Synthesis

02 Propositional Logic

Propositional and Predicate Logic - V

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Proseminar on Semantic Theory Fall 2013 Ling 720 First Order (Predicate) Logic: Syntax and Natural Deduction 1

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

Deductive Systems. Lecture - 3

03 Review of First-Order Logic

3.17 Semantic Tableaux for First-Order Logic

Some Rewriting Systems as a Background of Proving Methods

CPSC 121: Models of Computation. Module 6: Rewriting predicate logic statements

Chapter 11: Automated Proof Systems

Proofs. Chapter 2 P P Q Q

Discrete Mathematics Basic Proof Methods

Propositional Logic: Deductive Proof & Natural Deduction Part 1

Propositional Reasoning

Logical Structures in Natural Language: First order Logic (FoL)

Introduction to Metalogic

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

Propositional Dynamic Logic

Adam Blank Spring 2017 CSE 311. Foundations of Computing I

Modal Logic XX. Yanjing Wang

University of Ottawa CSI 2101 Midterm Test Instructor: Lucia Moura. February 9, :30 pm Duration: 1:50 hs. Closed book, no calculators

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Discrete Mathematics Logics and Proofs. Liangfeng Zhang School of Information Science and Technology ShanghaiTech University

Technische Universität München Summer term 2011 Theoretische Informatik Prof. Dr. Dr. h.c J. Esparza / M. Luttenberger / R.

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:

1 The Foundation: Logic and Proofs

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

An Introduction to Modal Logic III

1. Propositional Calculus

Automated Reasoning Lecture 5: First-Order Logic

Logic for Computer Scientists

1 The Foundation: Logic and Proofs

Logic for Computer Scientists

A SEQUENT CALCULUS FOR A NEGATIVE FREE LOGIC

Class 29 - November 3 Semantics for Predicate Logic

Review: Potential stumbling blocks

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions

Predicate Logic Quantifier Rules

MATH 1090 Problem Set #3 Solutions March York University

Introduction to Isabelle/HOL

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PREDICATE LOGIC

arxiv:math/ v1 [math.lo] 27 Jan 2003

Kreisel s Conjecture with minimality principle

CS 2336 Discrete Mathematics

Predicate language is more expressive than propositional language. It is used to express object properties and relations between objects.

Predicate Calculus - Syntax

Review for Midterm 1. Andreas Klappenecker

Chapter 3. The Logic of Quantified Statements

software design & management Gachon University Chulyun Kim

Transcription:

CS402, Spring 2018

G for Predicate Logic Let s remind ourselves of semantic tableaux. Consider xp(x) xq(x) x(p(x) q(x)). ( xp(x) xq(x) x(p(x) q(x))) xp(x) xq(x), x(p(x) q(x)) xp(x), x(p(x) q(x)) xq(x), x(p(x) q(x)) xp(x), (p(a) q(a)) xq(x), (p(a) q(a)) xp(x), p(a), q(a) xq(x), p(a), q(a) xp(x), p(a), p(a), q(a) (X) xq(x), q(a), p(a), q(a) (X)

Upside Down, Negated... xp(x), p(a), p(a), q(a) xp(x), p(a), q(a) xp(x), p(a) q(a) xp(x), x(p(x) q(x)) xq(x), q(a), p(a), q(a) xq(x), p(a), q(a) xq(x), p(a) q(a) xq(x), x(p(x) q(x)) ( xp(x) xq(x)), x(p(x) q(x)) xp(x) xq(x) x(p(x) q(x))

G for Predicate Logic Definition 1 (8.1) The Gentzen system, G, for predicate logic is a deductive system. Its axioms are sets of formulas, U, containing a complementary pair of literals. The rules of inference are the rules given for α and β formulas discussed for Proposition Logic, together with the following rules for γ and δ formulas. γ γ(a) δ δ(a) xa(x) A(a) xa(x) A(a) xa(x) A(a) xa(x) A(a) U {γ, γ(a)} U {γ} U {δ(a)} U {δ} The δ rule can be applied only if the constant a does not occur in any formula in U.

G for Predicate Logic γ γ(a) δ δ(a) xa(x) A(a) xa(x) A(a) xa(x) A(a) xa(x) A(a) U {γ, γ(a)} U {γ} U {δ(a)} U {δ} γ rule: if an existential formula and some instantiation of it are true, then the instantiation is redundant. δ rule: Let a be an arbitrary constand. Suppose A(a) can be proved. Since a was arbitrary, the proof holds for xa(x). For this to work, it is essential that a is an arbitrary constant, not constrained by any other subformula.

G: Example Prove x yp(x, y) y xp(x, y). 1. yp(a, y), p(a, b), xp(x, b), p(a, b) Axiom 2. yp(a, y), xp(x, b), p(a, b) γ, 1 3. yp(a, y), xp(x, b) γ, 2 4. yp(a, y), y xp(x, y) δ, 3 5. x yp(x, y), y xp(x, y) δ, 4 6. x yp(x, y) y xp(x, y) α, 5

H for Predicate Logic Definition 2 (8.4) The axioms of H for predicate logic are: Axiom 1 (A (B A)) Axiom 2 (A (B C)) ((A B) (A C)) Axiom 3 ( B A) (A B) Axiom 4 xa(x) A(a) Axiom 5 x(a B(x)) (A xb(x)) The rules of inference are modus ponens and generalisation: A B A A(a) MP: B, Gen.: xa(x) Note that Axiom 1, 2, 3 and MP rule are generalized to any formulas in predicate logic: hence we can use any derived rules and theorems that we proved for propositional logic.

Specialisation and Generalisation Axiom 4 can be used as an inference rule (specialisation): U xa(x) U A(a) Any occurrence of xa(x) can be replaced by A(a) for any a. If A(x) is true whatever the assignment of a domain element of an interpretation I to x, then A(a) is true for the domain element that I assigns to a. Note that this rule holds when we have U (i.e., other assumptions).

Specialisation and Generalisation Generalisation rule is given without a set of assumptions, U: A(a) xa(x) Suppose we allow applying generalisation to A(a) A(a), to obtain A(a) xa(x). Consider the following interpretation for this formula: (Z, {even(x)}, {2}). A(a) is true, but obviously xa(x) is not true. To cater for assumptions involved in proofs, generalisation can be also presented like the following: U A(a) U xa(x) provided that a does not appear anywyere in U.

Deduction Rule U {A} B U A B Theorem 1 (8.10) The deduction rule is a sound derived rule. Proof. See the proof for Theorem 3.14 for propositional logic. We use the induction on the length of the proof of U {A} B, and show that we can obtain a proof for U A B without using the deduction rule.

Deduction Rule Prof. Cont. For n = 1, B is proved in a single step, which means either B U {A}, an axiom, or a theorem. Refer to the proof of Theorem 3.14 for axioms. If n > 1, the last step in the proof of U {A} B is either an one-step inference of B, an inference based on MP, or an inference based on generalisation. We focus on generalisation: if the last rule applied was generalisation, we can assume that the preceding line was U {A} B(a) (by definition, a does not appear in U or A: i U {A} B(a) i + 1 U {A} xb(x) Generalisation The inductive hypothesis is that the deduction rule holds up to line i. i U {A} B(a) i U A B(a) Inductive Hypothesis, i i + 1 U x(a B(x)) Generalisation, i (a / U) i + 2 U x(a B(x)) (A xb(x)) Axiom 5 (a / A) i + 3 U A xb(x) MP, i + 1, i + 2

Equivalence between G and H We already know that any proof in G can be mechanically converted into a proof in H for propositional logic. We only need to extend the existing proof to cover γ and δ rules. Theorem 2 (8.11) The rule for a γ formula can be simulated in H. Proof. Suppose we use the following γ rule: U xa(x) A(a) U xa(x). Then: 1. xa(x) A(a) Axiom 4 2. (x)a(x) A(a) Propositional Deduction 3. U (x)a(x) A(a) Propositional Deduction (Weakening) 4. U (x)a(x) A(a) Assumption 5. U (x)a(x) Propositional Deduction 3, 4

Equivalence between G and H Theorem 3 (8.12) The rule for a δ formula can be simulated in H. Proof. Suppose we use the following γ rule: U A(a) U xa(x). Then: 1. U A(a) Assumption 2. U A(a) Propositional Deduction, 1 3. x( U A(x)) Gen., 2 4. x( U A(x)) ( U xa(x)) Axiom 5 5. U xa(x) MP, 3, 4 6. U xa(x) Propositional Deduction, 5

Equivalence between G and H This is one-direction: how do we prove that any proof in H can be done in G?

Examples of proofs in H Theorem 4 (8.14) A(a) xa(x) Proof. 1. x A(x) A(a) Axiom 4 2. A(a) x A(x) Prop. (Contrapositive) 1 3. A(a) xa(x) Duality, 2

Examples of proofs in H Theorem 5 (8.15) xa(x) xa(x) Proof. 1. { xa(x)} xa(x) Assumption 2. { xa(x)} xa(x) A(a) Axiom 4 3. { xa(x)} A(a) MP, 1, 2 4. { xa(x)} A(a) xa(x) Theorem 8.14 5. { xa(x)} xa(x) MP, 3, 4 6. xa(x) xa(x) Deduction

Examples of proofs in H Theorem 6 (8.19) x(a B(x)) (A xb(x)) x(a B(x)) (A xb(x))

Examples of proofs in H Theorem 7 (8.20) xa(x) ya(y) Proof. 1. xa(x) A(a) Axiom 4 2. y( xa(x) A(y)) Generalisation, 1 3. y( xa(x) A(y)) ( xa(x) ya(y)) Axiom 5 4. xa(x) ya(y) MP 2, 3 Repeat in the reverse direction.

Examples of proofs in H This may appear a bit counter-intuitive at first (careful with the parentheses). Theorem 8 (8.21) x(a(x) B) ( xa(x) B) Proof. 1. { x(a(x) B)} x(a(x) B) Assumption 2. { x(a(x) B)} B x(a(x)) 3. { x(a(x) B)} B x A(x) Axiom 5 + MP 4. { x(a(x) B)} x A(x) B Prop. (Contrapositive) 5. { x(a(x) B)} xa(x) B Duality 6. x(a(x) B) xa(x) B Deduction

Examples of proofs in H This may appear a bit counter-intuitive at first (careful with the parentheses). Theorem 9 (8.21) x(a(x) B) ( xa(x) B) Proof. 1. { xa(x) B} xa(x) B Assumption 2. { xa(x) B} x A(x) B Duality 3. { xa(x) B} B x A(x) Contrapositive 4. { xa(x) B} x( B A(x)) Theorem 8.19 5. { xa(x) B} x(a(x) B) 6. xa(x) B x(a(x) B) Deduction