Predicate Calculus - Semantics 1/4

Similar documents
Predicate Logic: Sematics Part 1

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

Propositional Calculus - Soundness & Completeness of H

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

Propositional Calculus - Deductive Systems

Propositional Calculus - Natural deduction Moonzoo Kim CS Dept. KAIST

First-Order Logic (FOL)

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

Automated Reasoning Lecture 5: First-Order Logic

First-Order Logic. Chapter Overview Syntax

Informal Statement Calculus

ICS141: Discrete Mathematics for Computer Science I

CS156: The Calculus of Computation Zohar Manna Winter 2010

Predicate Calculus. Formal Methods in Verification of Computer Systems Jeremy Johnson

Notes on Satisfiability-Based Problem Solving. First Order Logic. David Mitchell October 23, 2013

Introduction to Sets and Logic (MATH 1190)

LING 501, Fall 2004: Quantification

Introduction to first-order logic:

First Order Logic (FOL) 1 znj/dm2017

03 Review of First-Order Logic

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

Recall that the expression x > 3 is not a proposition. Why?

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

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

AAA615: Formal Methods. Lecture 2 First-Order Logic

Predicate Calculus lecture 1

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

06 From Propositional to Predicate Logic

Predicate Calculus - Undecidability of predicate calculus Moonzoo Kim CS Dept. KAIST

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

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

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

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

First order Logic ( Predicate Logic) and Methods of Proof

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

Outline. Formale Methoden der Informatik First-Order Logic for Forgetters. Why PL1? Why PL1? Cont d. Motivation

Introduction to Predicate Logic Part 1. Professor Anita Wasilewska Lecture Notes (1)

Discrete Mathematics and Its Applications

Mathematical Preliminaries. Sipser pages 1-28

CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati

Predicate Logic - Introduction


Section Summary. Section 1.5 9/9/2014

Predicate Calculus. CS 270 Math Foundations of Computer Science Jeremy Johnson

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

1 The Foundation: Logic and Proofs

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

All psychiatrists are doctors All doctors are college graduates All psychiatrists are college graduates

Herbrand Theorem, Equality, and Compactness

With Question/Answer Animations. Chapter 2

First-Order Logic. Chapter INTRODUCTION

First-Order Predicate Logic. Basics

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007)

software design & management Gachon University Chulyun Kim

PREDICATE LOGIC. Schaum's outline chapter 4 Rosen chapter 1. September 11, ioc.pdf

Learning Goals of CS245 Logic and Computation

Logic and Modelling. Introduction to Predicate Logic. Jörg Endrullis. VU University Amsterdam

Predicate Logic - Semantic Tableau

Propositional Logic Not Enough

CS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic:

2-4: The Use of Quantifiers

Logic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes:

Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3. Section 1.3 Predicates and Quantifiers

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

Announcements. Today s Menu

Introduction to Metalogic

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

Predicate in English. Predicates and Quantifiers. Predicate in Logic. Propositional Functions: Prelude. Propositional Function

1 The Foundation: Logic and Proofs

Predicate Logic. Andreas Klappenecker

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

AN EXTENSION OF THE PROBABILITY LOGIC LP P 2. Tatjana Stojanović 1, Ana Kaplarević-Mališić 1 and Zoran Ognjanović 2

Propositional Logic: Syntax

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

1 Completeness Theorem for Classical Predicate

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).

Predicate Calculus - Syntax

Lecture 2: Axiomatic semantics

Lecture 10: Predicate Logic and Its Language

Theory of Computation


Predicate Logic: Syntax

Predicate Calculus. Lila Kari. University of Waterloo. Predicate Calculus CS245, Logic and Computation 1 / 59

1 Predicates and Quantifiers

The predicate calculus is complete

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

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

Propositional and Predicate Logic - VII

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

ECOM Discrete Mathematics

Propositional and Predicate Logic

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

Chapter 2: The Logic of Quantified Statements. January 22, 2010

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

Logic and Propositional Calculus

1.1 Language and Logic

First-order logic Syntax and semantics

MAT 243 Test 1 SOLUTIONS, FORM A

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

Transcription:

Predicate Calculus - Semantics 1/4 Moonzoo Kim CS Dept. KAIST moonzoo@cs.kaist.ac.kr 1

Introduction to predicate calculus (1/2) Propositional logic (sentence logic) dealt quite satisfactorily with sentences using conjunctive words ( 접속사 ) like not, and, or, and if then. But it fails to reflect the finer logical structure of the sentence What can we reason about a sentence itself which deals with its target domain? ex. Jane is taller than Alice (target domain : human being) ex2. For natural numbers x and y, x+y - (x + y) (target domain: N) What can we reason about a sentence itself which also deal with modifiers like there exists, all, among and only.? Note that these modifiers enable us to reason about an infinite domain because we do not have to enumerate all elements in the domain 2

Introduction to predicate calculus (2/2) Ex. Every student is younger than some instructor We could simply identify this assertion with a propositional atom p. However, this fails to reflect the finer logical structure of this sentence This statement is about being a student, being an instructor and being younger than somebody else for a set of university members as a target domain We need to express them and use predicates for this purpose S(yunho), I(moonzoo), Y(yunho,moonzoo) We need variables x, y to not to write down all instance of S(-), I(-), Y(-) Every student x is young than some instructor y Finally, we need quantifiers to capture the actual elements by variables For every x, if x is a student, then there is some y which is an instructor such that x is younger than y x (S(x) ( y (I(y) Æ Y(x,y)))) 3

Relations and predicates The axioms and theorems of mathematics are defined on arbitrary sets (domain) such as the set of integers Z ex. Fermat's last theorem If an integer n is greater than 2, then the equation a n + b n = c n has no solutions in non-zero integers a, b, and c. Can we express the Fermat s last theorem in propositional logic? The predicate calculus extends the propositional calculus with predicate letters that are interpreted as relations on a domain i.e., predicates are interpreted upon domain Def 5.2. A relation can be represented by a boolean valued function R:D n {T,F}, by mapping an n-tuple to T iff it is included in the relation R(d 1, d n ) = T iff (d 1, d n ) R 4

Let P, A and V be countable sets of symbols called predicate letters, constants, and variables, respectively. P={p,q,r} A={a,b,c}, V={x,y,z} Def 5.4 Atomic formulas and formulas atomic formula argument ::= x for any x V argument ::= a for any a A argument_list ::= argument + atomic_formula ::= p p(argument_list) for any p P formula ::== atomic_formula formula ::= formula formula ::= formula Ç formula formula ::= x formula formula ::= x formula Predicate formulas 5

Free and bound variables Def 5.6 is the universal quantifier and is read for all. is the existential quantifier and is read there exists. In a quantified formula xa, x is the quantified variable and A is the scope of the quantified variable. Def 5.7 Let A be a formula. An occurrence of a variable x in A is a free variable of A iff x is not within the scope of a quantified variable x. Notation: A(x 1, x n ) indicates that the set of free variables of the formula A is a subset of {x 1, x n }. A variable which is not free is bound. If a formula has no free variable it is closed If {x 1,,x n } are all the free variables of A, the universal closure of A is x 1 x n A and the existential closure is x 1 x n A Ex 5.8 p(x,y), y p(x,y), x y p(x,y) Ex 5.9 In ( x p(x)) Æ q(x), the occurrence of x in p(x) is bound and the occurrence in q(x) is free. The universal closure is x ( xp(x) Æ q(x)). Obviously, it would have been better to write the formula as xp(x)æ q(y) where y is the free variable 6

Interpretations (1/5) Def 5.10 Let U be a set of formulas s.t. {p 1, p m } are all the predicate letters and {a 1,, a k } are all the constant symbols appearing in U. An interpretation I is a triple (D, {R 1, R m }, {d 1,,d k }), where D is a non-empty set, R i is an n i -ary relation on D that is assigned to the n i -ary predicate p i Notation: p ii = R i d i D is an element of D that is assigned to the constant a i Notation: a ii = d i Ex 5.11. Three numerical interpretations for x p(a,x): I 1 = (N, { }, {0}), I 2 =(N, { }, {1}). I 3 =(Z, { }, {0}). I 4 =(S, {substr},{ }) where S is the set of strings on some alphabet 7

Interpretations (2/5) Def 5.12 Let I be an interpretation. An assignment σ I : V D is a function which maps every variable to an element of the domain of I. σ I [x i d i ] is an assignment that is the same as σ I except that x i is mapped to d i Def 5.13 Let A be a formula, I an interpretation and σ I an assignment. v σi (A), the truth value of A under σ I is defined by induction on the structure of A: Let A = p k (c 1,,c n ) be an atomic formula where each c i is either a variable x i or a constant a i. v σi (A) = T iff <d 1, d n > R k where R k is the relation assigned by I to p k and d i is the domain element assigned to c i, either by I if c i is a constant or by σ I if c i is variable v σi ( A)= T iff v σi (A)= F v σi (A 1 Ç A 2 ) iff v σi (A 1 )= T or v σi (A 2 )= T v σi ( x A 1 ) = T iff v σi [x d](a 1 )= T for all d D v σi ( x A 1 ) = T iff v σi [x d](a 1 )= T for some d D 8

Interpretations (3/5) Thm 5.14 Let A be a closed formula. Then v σi (A) does not depend on σ I. In such cases, we use simply v I (A) instead of v σi (A) (important!) Thm 5.15 Let A = A(x 1,,x n ) be a non-closed formula and let I be an interpretation. Then: v σi (A )=T for some assignment σ I iff v I ( x 1 x n A ) = T v σi (A )=T for all assignment σ I iff v I ( x 1 x n A ) = T Thm 5.15 is important since we have many chances to add or remove quantified variables to and from formula during proofs. Def 5.16 A closed formula A is true in I or I is a model for A, if v I (A) = T. Notation: I ² A Note that we overload ² with usual logical consequence as in propositional logic {A 1, A 2, A 3 } ² A Def 5.18 A closed formula A is satisfiable if for some interpretation I, I ² A. A is valid if for all interpretations I, I ² A Notation: ² A. 9

Ex 5.19 ² ( x p(x)) p(a) Interpretation (4/5) Suppose that it is not. Then there must be an interpretation I = (D, {R}, {d}) such that v I ( x p(x)) = T and v I (p(a)) = F By Thm 5.15, v σi (p(x)) = T for all assignments σ I, in particular for the assignment σ I that assigns d to x (i.e. v σ I (p(x)) = T). But p(a) is closed, so v σ I (p(a)) = v I (p(a)) = F, a contradiction 10

Interpretation (5/5) 11