Chapter 9: Syntax and Semantics II 80-210: Logic & Proofs July 23, 2009 Karin Howe.

Slides:



Advertisements
Similar presentations
The Logic of Quantified Statements
Advertisements

Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Predicates and Quantifiers
Exam #3 will be given on Monday Nongraded Homework: Now that we are familiar with the universal quantifier, try
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Exam #3 is Friday. It will consist of proofs, plus symbolizations in predicate logic.
For Wednesday, read chapter 6, section 1. As nongraded HW, do the problems on p Graded Homework #7 is due on Friday at the beginning of class. In.
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
For Friday, read chapter 6, section 2. As nongraded HW, do the problems on p Graded Homework #7 is due on Friday at the beginning of class.
Discrete Structures Chapter 3: The Logic of Quantified Statements
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 6 Limitations of propositional logic Introduction to predicate logic Symbols, terms and formulae, Parse.
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
PL continued: Quantifiers and the syntax of PL 1. Quantifiers of PL 1. Quantifier symbols 2. Variables used with quantifiers 2. Truth functional compounds.
Predicates and Quantifiers
Section 1.3: Predicates and Quantifiers
Chapter 1: The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
Formal Logic Mathematical Structures for Computer Science Chapter Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
1st-order Predicate Logic (FOL)
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
PART TWO PREDICATE LOGIC. Chapter Seven Predicate Logic Symbolization.
Introduction to Quantification Chapter 9 Language, Proof and Logic.
CS344: Introduction to Artificial Intelligence Lecture: Herbrand’s Theorem Proving satisfiability of logic formulae using semantic trees (from Symbolic.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
Lecture 1.2: Equivalences, and Predicate Logic* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph.
Chapter 8: Syntax and Semantics I : Logic & Proofs July 21, 2009 Karin Howe.
Chapter 2 The Logic of Quantified Statements. Section 2.1 Intro to Predicates & Quantified Statements.
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
CSS342: Quantifiers1 Professor: Munehiro Fukuda. CSS342: Quantifiers2 Review of Propositions Proposition: a statement that is either true or false, but.
Natural Deduction for Predicate Logic Bound Variable: A variable within the scope of a quantifier. – (x) Px – (  y) (Zy · Uy) – (z) (Mz  ~Nz) Free Variable:
No new reading for Wednesday. Keep working on chapter 5, section 3. Exam #3 is next Monday.
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.
1 CMSC 250 Chapter 2, Predicate Logic. 2 CMSC 250 Definitions l Subject / predicate John / went to the store. The sky / is blue. l Propositional logic-
Semantics of Predicate Calculus For the propositional calculus, an interpretation was simply an assignment of truth values to the proposition letters of.
Lecture 1.2: Equivalences, and Predicate Logic CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph.
80-210: Logic & Proofs July 30, 2009 Karin Howe
1 Outline Quantifiers and predicates Translation of English sentences Predicate formulas with single variable Predicate formulas involving multiple variables.
Section 1.5 and 1.6 Predicates and Quantifiers. Vocabulary Predicate Domain Universal Quantifier Existential Quantifier Counterexample Free variable Bound.
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.
Review for Final Exam : Logic & Proofs August 6, 2009 Karin Howe.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
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
Modal, Dynamic and Temporal Logics
8.1 Symbols and Translation
Predicate Calculus Discussion #14 Chapter 2, Section 1 1/20.
Discussion #14 Predicate Calculus
The Finite Universe Method
Chapter 1 The Foundations: Logic and Proofs
Today’s Topics Universes of Discourse
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
Predicate Calculus Discussion #14 Chapter 2, Section 1.
Mathematical Structures for Computer Science Chapter 1
1st-order Predicate Logic (FOL)
Introduction to Predicates and Quantified Statements I
Proofs in Predicate Logic
Predicates and Quantifiers
Discrete Mathematics Lecture 4 Logic of Quantified Statements
Encoding Knowledge with First Order Predicate Logic
CS201: Data Structures and Discrete Mathematics I
Predicate Calculus. Predicate Calculus Topics Predicates Variables and instantiation Quantifiers Logical expressions Bound and free variables.
1st-order Predicate Logic (FOL)
Presentation transcript:

Chapter 9: Syntax and Semantics II : Logic & Proofs July 23, 2009 Karin Howe

Quantified Predicate Logic Universal Quantifier: "All" –Symbolization:  –Read as: "for all" Existential Quantifier: "Some" –Symbolization:  –Read as "there exists"

Scope We talk about the scope of a quantifier - the portion of the statement that the quantifier "applies" to. For example, in the formula: (  x)(B(x)  C(x)), all of the x's are within the scope of the universal quantifier. However, in the formula: (  x)B(x) & C(x), the final x (in the C(x)) is not under the scope of the universal quantifier (and thus that x is said to be "free").

Substitution Instances A substitution instance  [t/u] of a quantified formula (  u)  or (  u)  is the formula obtained by removing the quantifier, then replacing all bound occurrences of the variable u that were bound by the removed quantifier in the formula  by occurrences of the term t. Examples: –(  x)(B(x)  C(x)) B(a)  C(a) B(b)  C(b) –(  x)(B(x) & C(x)) B(a) & C(a) –(  x)(B(x)  (  y)(C(y)) (B(a)  (  y)(C(y)

Extending Interpretations Recall our definition from chapter 8 1.If  is a 0-place predicate letter, then  is true iff I(  ) = T. 2.If  is of the form  (x 1, …, x n ) where  is a n-place predicate letter (with n > 0), and x 1, …, x n are n terms, then  is true on I iff is in I(  ) Now add the following clauses: 3.If  is of the form (  u) , then  is true on I iff for each member a of the domain of discourse  is true on I[a/u], and false otherwise. 4.If  is of the form (  u) , then  is true on I iff there is at least one member a of the domain of discourse such that  is true on I[a/u,] and false otherwise.

Determining Validity/Invalidity in Predicate Logic (  x)(P(x) & Q(x)) (P(a) & Q(a))* * Constant introduced must be new to the branch (  x)(P(x)  Q(x)) (P(a)  Q(a))  (  x)(P(x) & Q(x)) (  x)  (P(x) & Q(x))  (  x)(P(x)  Q(x)) (  x)  (P(x)  Q(x))

Practice: Truth Trees 1.(  x)(K(x)  F(x)), K(j)  F(j) 2.(  x)[(A(x) & B(x))  C(x)], (  x)(A(x) & B(x))  (  x)(B(x)   C(x)) 3.(  x)[A(x) & (B(x) & C(x))], (  x)(B(x)  D(x))  (  x)(C(x)   D(x)) 4.  (  x)(A(x)  B(x)), (  x)(A(x)  C(x))   (  x)(  B(x) & C(x)) 5.  (  x)[(A(x) & B(x))  (C(x) & D(x))],  (  x)(A(x) & C(x))   (  x)(B(x) & D(x)) 6.(  x)[(A(x) & B(x))  (C(x) & D(x))], (  x)(A(x)  B(x)),  (  x)(A(x)  C(x)),   (  x)(A(x)  B(x))

Practice: Symbolization 1.All who love are blind. ~bumper sticker Dictionary: L(x) = x loves; B(x) = x is blind 2.HE WHO DIES WITH THE MOST TOYS IS DEAD ~bumper sticker Dictionary: D(x) = x is dead; T(x) = x dies with the most toys 3.What's good for M & M Enterprises is good for the country. ~Catch-22 Dictionary: E(x) = x is good for M & M Enterprises; C(x) = x is good for the country

1.The man who dies rich dies disgraced. ~Andrew Carnegie Dictionary: D(x) = x is dead; R(x) = x is rich; G(x) = x is disgraced 2.Those who deny freedom to others deserve it not for themselves. ~Abraham Lincoln Dictionary: O(x) = x denies freedom to others; T(x) = x deserves to be free 3.All that glitters is not gold. ~proverb Dictionary: L(x) = x glitters; G(x) = x is gold

1.Not all prostitutes are junkies ~newspaper Dictionary: P(x) = x is a prostitute; J(x) = x is a junkie 2.There are old pilots and there are bold pilots–but there are no old bold pilots. ~sign in an Air Force ready room Dictionary: O(x) = x is old; B(x) = x is bold; P(x) = x is a pilot 3. Vulcans never bluff ~Spock Dictionary: V(x) = x is a Vulcan B(x) = x is bluffing

1.He who hesitates is lost. ~proverb Dictionary: H(x) = x hesitates; L(x) = x is lost 2.With a name like Smuckers, it has to be good. ~advertisement Dictionary: S(x) = x is a product made by Smucker's; G(x) = x is a product that has to be good 3.There is an even prime. ~Mathematics text Dictionary: E(x) = x is even; P(x) = x is prime

Practice: Proofs Practice CPL Problems Lab #6