EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 11 Introduction to Predicate Logic Limitations of Propositional Logic Predicates, quantifiers and propositions.

Slides:



Advertisements
Similar presentations
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Advertisements

© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
1 Predicate Logic Rosen 6 th ed., § Predicate Logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
RMIT University; Taylor's College This is a story about four people named Everybody, Somebody, Anybody and Nobody. There was an important job to be done.
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
First Order Logic (chapter 2 of the book) Lecture 3: Sep 14.
 x (x 2  0) 1. True2. False.  x (3x + 2 = 12) 1. True2. False.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 12 Number theory Mathematical induction Proof by induction Examples.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 6 Limitations of propositional logic Introduction to predicate logic Symbols, terms and formulae, Parse.
EE1J2 – Discrete Maths Lecture 5 Analysis of arguments (continued) More example proofs Formalisation of arguments in natural language Proof by contradiction.
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
First Order Logic. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about first order.
Predicates and Quantifiers
Section 1.3: Predicates and Quantifiers
Lecture 8 Introduction to Logic CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Methods of Proof & Proof Strategies
Chapter 1: The Foundations: Logic and Proofs
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
The Foundations: Logic and Proofs
Formal Logic Mathematical Structures for Computer Science Chapter Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
(CSC 102) Lecture 7 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
Chapter 2 The Logic of Quantified Statements. Section 2.4 Arguments with Quantified Statements.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
First Order Logic Lecture 2: Sep 9. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Statements with Multiple Quantifiers. When a statement contains more than one quantifier, we imagine the actions suggested by the quantifiers as being.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
(CSC 102) Lecture 8 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
Predicates and Quantified Statements
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
1 Introduction to Abstract Mathematics Proofs in Predicate Logic , , ~, ,  Instructor: Hayk Melikya Purpose of Section: The theorems.
1 Sections 1.3 and 1.4 Predicates & Quantifiers. 2 Propositional Functions In a mathematical assertion, such as x < 3, there are two parts: –the subject,
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 02: QUANTIFIERS Sections 1.3 and 1.4 Jarek Rossignac CS1050:
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
Discrete Mathematics CS 2610 August 22, Agenda Last class Propositional logic Logical equivalences This week Predicate logic & rules of inference.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 1 The Foundations: Logic and Proofs Predicates and Quantifiers.
Discrete Structures – CNS 2300
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
Discrete Mathematics Mathematical reasoning: think logically; know how to prove Combinatorial analysis: know how to count Discrete structures: represent.
321 Section, Week 2 Natalie Linnell. Extra Credit problem.
1 Outline Quantifiers and predicates Translation of English sentences Predicate formulas with single variable Predicate formulas involving multiple variables.
PREDICATES AND QUANTIFIERS COSC-1321 Discrete Structures 1.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
1 Introduction to Abstract Mathematics Chapter 3: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 3.1.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Section 1.5. Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements.
Introduction to Predicates and Quantified Statements I Lecture 9 Section 2.1 Wed, Jan 31, 2007.
Discrete Mathematical الرياضيات المتقطعة. Example 12 June OR Q(x,y): x+y=x-y a) Q(1,1): 2=0 False b) Q(2,0): 2+0=2-0 True c) Q(1,y): 1+y=1-y False(take.
Lecture 1-3: Quantifiers and Predicates. Variables –A variable is a symbol that stands for an individual in a collection or set. –Example, a variable.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
3. The Logic of Quantified Statements Summary
CSE15 Discrete Mathematics 01/23/17
Chapter 3 The Logic of Quantified Statements
Chapter 1 The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
CS 1502 Formal Methods in Computer Science
CS 220: Discrete Structures and their Applications
Introduction to Predicates and Quantified Statements II
First Order Logic Rosen Lecture 3: Sept 11, 12.
Introduction to Predicates and Quantified Statements I
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Discrete Mathematics Lecture 3: Predicate and Quantifier
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Discrete Mathematics Lecture 4 Logic of Quantified Statements
CS201: Data Structures and Discrete Mathematics I
Presentation transcript:

EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 11 Introduction to Predicate Logic Limitations of Propositional Logic Predicates, quantifiers and propositions NL interpretation of statements in Predicate Logic Formalisation in Predicate Logic of statements in NL Some equivalences

EE1J2 - Slide 2 Limitations of propositional logic Consider the following statements All French people speak French Some French people speak French There are people in France who don’t speak French Although there are clear relations between these statements, these are not exposed by propositional logic

EE1J2 - Slide 3 Limitations of propositional logic (continued) Consider also: ‘person x’ speaks French This is not an elementary proposition because its truth or falsehood depends on x

EE1J2 - Slide 4 Examples from arithmetic There are many examples of this type in arithmetic: 7  3 = 21 7  3 = 23 are both elementary propositions, but: 7  x = 21 is not, because its truth or falsehood depends on the value of x

EE1J2 - Slide 5 Predicates In each of the examples, truth or falsehood depends on whether or not a particular property is satisfied In formal logic we use the term predicate to indicate a property which a variable may or may not have

EE1J2 - Slide 6 Example Predicates From the first examples we have the predicates: P(x) = ‘x is French’ Q(x) = ‘x speaks French’ In the example from arithmetic R(x) = ‘7x = 21’ S(x) = ‘sin(x)  1’ These are examples of one-place, or unary predicates – I.e. they have just one argument

EE1J2 - Slide 7 N -place Predicates There are also two-place, or binary predicates, e.g: P(x,y) = ‘3x + 5y = 25’ Q(x,y) = ‘sin(x) = sin(y)’ and 3-place predicates: R(x,y,z) = ‘6x + 3y 2 + z = 21’ S(x,y,z) = ‘x 2 + y 2  z 2 and, in general, N-place predicates

EE1J2 - Slide 8 Instantiation Once we choose values for its variables, a predicate becomes a proposition For example: R(x) = ‘7x = 21’ (from slide 6). So R(3) is the proposition ‘7  3=21’, which is true, but R(4) is the proposition ‘7  4=21’ which is false P(x,y) = ‘3x + 5y = 25’ (from slide 7). So P(6,7) is the proposition ‘3   7 = 25’, which is false

EE1J2 - Slide 9 Quantifiers Statements involving predicates can also be made into propositions using quantifiers:  x ‘for all x’, ‘for every x’  x ‘there exists an x’, ‘for some x’ For example, if P(x) = ‘sin(x)  1’, then  x:P(x) is a proposition, which is true

EE1J2 - Slide 10 Example 1 As a second example, suppose P(x,y) = ‘3x + 5y = 25’ then  x  y:P(x,y) is a proposition: “There exists x and there exists y such that 3x+5y=25” The proposition is true: e.g. take x=5 and y=2

EE1J2 - Slide 11 Example 2 Now consider:  x  y: P(x,y) In ‘natural language’the proposition is: “For every integer x there exists an integer y such that 3x+5y=25” Assuming that the values of x and y are integers, the proposition is false (why?)

EE1J2 - Slide 12 Example 3 Now consider the 3-place predicate P(x,y,z) = ‘x 2 + 5y + z 3 = 27’ and consider the statement:  x  y : P(x,y,z) This is not a proposition (why?)

EE1J2 - Slide 13 NL interpretation of statements in Predicate Logic Consider the following predicates: P(x) = ‘x is French’, Q(x) = ‘x was born in Paris’ R(x) = ‘x speaks French’, S(x,y) = ‘x is related to y’ Express the following as statements in ‘NL’  x : P(x)  Q(x) “For every x, if x is French then x was born in Paris’ “Everyone who is French was born in Paris” (Better!) “All French people were born in Paris”

EE1J2 - Slide 14 NL interpretation (continued) P(x) = ‘x is French’, Q(x) = ‘x was born in Paris’ R(x) = ‘x speaks French’, S(x,y) = ‘x is related to y’  x  y : P(x)  P(y)  S(x,y) “For every person x there is a person y such that x is French and y is French and x and y are not related” “For every French person there is another French person who they are not related to” “No French person is related to every other French Person”

EE1J2 - Slide 15 NL Interpretation P(x) = ‘x is French’, Q(x) = ‘x was born in Paris’ R(x) = ‘x speaks French’, S(x,y) = ‘x is related to y’  x :  Q(x)   R(x)  y : P(y)  (  x(Q(x)  S(x,y))  R(x))  x  y : (P(x)  P(y))  S(x,y)

EE1J2 - Slide 16 Formalisation of NL P(x) = ‘x is French’, Q(x) = ‘x was born in Paris’ R(x) = ‘x speaks French’, S(x,y) = ‘x is related to y’ “Everyone who was born in Paris speaks French”  x : Q(x)  R(x) “There is at least one French person whose relatives all speak French”  x : P(x)  (  y (S(x,y)  R(y))

EE1J2 - Slide 17 Formalisation of NL (cont.) P(x) = ‘x is French’, Q(x) = ‘x was born in Paris’ R(x) = ‘x speaks French’, S(x,y) = ‘x is related to y’ “There is a French person all of whose relatives are also French” “All French people who were not born in Paris cannot speak French” “There is at least one French person who was neither born in Paris nor speaks French”

EE1J2 - Slide 18 Proofs involving  To show that the statement  xP(x) is true, we have to show that P(a) is true for every possible a Conversely, if P(a) is true for every possible a then  xP(x) is true

EE1J2 - Slide 19 Proofs involving  To show that the statement  xP(x) is true, we have to show that P(a) is true for at least one a Conversely, if P(a) is true for some a then  xP(x) is true

EE1J2 - Slide 20 Some equivalences Let P be a predicate Suppose  (  xP(x)) Then it is not true that P(x) holds for every x So, there must be at least one x for which P(x) is false So  x(  P(x)) is true Hence  (  xP(x))   x(  P(x))

EE1J2 - Slide 21 Equivalences (continued) Suppose  (  xP(x)) Then it is not true that P(x) holds for at least one x So, P(x) is false for every x So  x(  P(x)) is true Hence  (  xP(x))   x(  P(x))

EE1J2 - Slide 22 More equivalences  x(P(x)  Q(x))   xP(x)  xQ(x)  x(P(x)  Q(x))   xP(x)   xQ(x) If  xP(x)   xQ(x) then  x(P(x)  Q(x)) If  x(P(x)  Q(x)) then  xP(x)   xQ(x)

EE1J2 - Slide 23 Summary Introduction to predicate logic Introduction to N-place predicates Turning predicates into propositions using instantiation or quantifiers NL interpretation of statements in predicate logic (and vice versa) Some equivalences