80-210: Logic & Proofs July 30, 2009 Karin Howe

Slides:



Advertisements
Similar presentations
Logic & Critical Reasoning
Advertisements

Section 1.3. More Logical Equivalences Constructing New Logical Equivalences We can show that two expressions are logically equivalent by developing.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Exam #3 will be given on Monday Nongraded Homework: Now that we are familiar with the universal quantifier, try
Predicate Calculus Formal Methods in Verification of Computer Systems Jeremy Johnson.
Knowledge Representation Methods
FOL Practice. Models A model for FOL requires 3 things: A set of things in the world called the UD A list of constants A list of predicates, relations,
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.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
March 10: Quantificational Notions Interpretations: Every interpretation interprets every individual constant, predicate, and sentence letter of PL. Our.
Predicate Calculus Subject / Predicate John / went to the store. The sky / is blue. Propositional Logic - uses statements Predicate Calculus - uses predicates.
Review Test 5 You need to know: How to symbolize sentences that include quantifiers of overlapping scope Definitions: Quantificational truth, falsity and.
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
First Order Logic. Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 11 Introduction to Predicate Logic Limitations of Propositional Logic Predicates, quantifiers and propositions.
Lecture # 21 Predicates & Quantifiers
1 Predicates and Quantifiers CS 202, Spring 2007 Epp, Sections 2.1 and 2.2 Aaron Bloomfield.
Predicates and Quantifiers
Chapter 1: The Foundations: Logic and Proofs
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
The Foundations: Logic and Proofs
Logical Equivalence & Predicate Logic
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Formal Logic Mathematical Structures for Computer Science Chapter Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
Chapter Six Sentential Logic Truth Trees. 1. The Sentential Logic Truth Tree Method People who developed the truth tree method: J. Hintikka— “model sets”
Section 1.5. Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements.
Quantifiers, Predicates, and Names Kareem Khalifa Department of Philosophy Middlebury College Universals, by Dena Shottenkirk.
1 Section 7.2 Equivalent Formulas Two wffs A and B are equivalent, written A  B, if they have the same truth value for every interpretation. Property:
PART TWO PREDICATE LOGIC. Chapter Seven Predicate Logic Symbolization.
Selected Exercises of Sec. 1.2~Sec.1.4 Sec. 1.2 Exercise 41 p, q, r 중에 두 개가 참이면 참이 되고, 그 외 의 경우에는 거짓이 되는 복합명제를 구하 시오. Find a compound proposition involving.
(CSC 102) Lecture 8 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
Nested Quantifiers Section 1.5.
CompSci 102 Discrete Math for Computer Science January 24, 2012 Prof. Rodger Slides modified from Rosen.
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
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-
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Rules of inference.
Chapter 9: Syntax and Semantics II : Logic & Proofs July 23, 2009 Karin Howe.
Statements Containing Multiple Quantifiers Lecture 11 Section 2.3 Mon, Feb 5, 2007.
1 Outline Quantifiers and predicates Translation of English sentences Predicate formulas with single variable Predicate formulas involving multiple variables.
1 Chapter 2.1 Chapter 2.2 Chapter 2.3 Chapter 2.4 All images are copyrighted to their respective copyright holders and reproduced here for academic purposes.
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.5. Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements.
Review for Final Exam : Logic & Proofs August 6, 2009 Karin Howe.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Chapter Eight Predicate Logic Semantics. 1. Interpretations in Predicate Logic An argument is valid in predicate logic iff there is no valuation on which.
Uniqueness Quantifier ROI for Quantified Statement.
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
8.1 Symbols and Translation
Proposition & Predicates
CSE 2353 – September 4th 2002 Logic.
Today’s Topics Universes of Discourse
CS201: Data Structures and Discrete Mathematics I
Natural deduction Gerhard Gentzen.
Introduction to Predicates and Quantified Statements II
Mathematical Structures for Computer Science Chapter 1
Computer Security: Art and Science, 2nd Edition
Discrete Mathematics Lecture 4 Logic of Quantified Statements
Predicate Logic Hurley 8.1 Translation.
Encoding Knowledge with First Order Predicate Logic
CS201: Data Structures and Discrete Mathematics I
The Foundations: Logic and Proofs
Presentation transcript:

80-210: Logic & Proofs July 30, 2009 Karin Howe Review for Midterm 3 80-210: Logic & Proofs July 30, 2009 Karin Howe

Definitions Validity/invalidity Tautology Contradictory statement Contingent statement

Skills you should be comfortable with Translating statements (universal and existential statements, as well as conjunctions, disjunctions, conditionals and negations involving quantified formulas Determining truth or falsity of a statement on a given interpretation Well-formed formulas (WFFs) of predicate logic, and parse trees Truth trees For determining validity/invalidity For determining whether a statement is a tautology/contradictory statement/contingent statement Derivations (using all of the propositional rules) Fill-in-the-blanks Complete derivations

Practice: Translating Statements Dictionary: R(x) = x is red, p = pen Everything is either red or not red Either everything is red or everything is not red Everything is red, although this pen is not red Dictionary: f(x) = x is female Someone is female, but not everyone is. Someone is female, although no one is. If everyone is female, then someone is. Dictionary: M(x) = x is a Muslim, P(x) = x is a plumber, j = Jones If there are Muslim plumbers, then there are Muslims and plumbers. If there are Muslims and plumbers, then there are Muslim plumbers. Jones is a Muslim plumber, although there are no Muslim plumbers.

Practice: Translating Statements Dictionary: L(x,y) = x loves y, f = Fred, a = Alice Fred loves Alice. Fred loves someone. Everyone loves Alice. There is a person who loves everyone. Each person loves someone or other. Everybody loves everybody. Everybody loves somebody. Somebody loves everybody. Dictionary: L(x,y) = x is located in place y Everthing is somewhere. Dictionary: S(x,y) = x scared y, g = Georgie Georgie never scared anybody. Dictionary: P(x,y) = x can please y No one can please everybody.

Practice: Determining Truth/Falsity Under an Interpretation Dictionary: R(x) = x is red Interpretation: Domain: {pen, cat, bull, rabbit, sandwich, kangaroo} I(R) = <bull, sandwich, kangaroo, pen> (x)(R(x)  R(x)) (x)(R(x)  (x)R(x) (x)R(x) & R(p) Dictionary: f(x) = x is female Interpretation: Domain: {our class} I(F) = <Karin, Amelie> (x)F(x) & (x)F(x) (x)F(x) & (x)F(x) (x)F(x)  (x)F(x)

Practice: Determining Truth/Falsity Under an Interpretation Dictionary: L(x,y) = x loves y Interpretation: Domain: {Fred, Alice, George, Samantha, Bruce, Kirsten} L(x,y) = <(f,a), (g,a), (k,a), (a, s), (k, f), (g, f), (f, b), (a, b), (f, k), (s, a)> L(f,a) (x)L(f,x) (x)L(x,a) (x)(y)L(x,y) (x)(y)L(x,y)  (x)(z)L(x,z) (x)(y)L(x,y) (x)(y)L(x,y)

Truth Tree Rules: Propositional (p & q) p q (p  q) p q (p  q) p q p  q p p q p (p & q) p q (p  q) p q (p  q) p q p (p  q) p p q q

Truth Tree Rules: Predicate (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))

Determining validity/invalidity with truth trees Steps: Place premises at the top of the tree Negate the conclusion and place it below the premises Take apart the statements according to the truth tree rules A branch may be closed …. when? Whenever it contains both p and p on the same branch The argument is valid iff … All the branches in the tree are closed If the argument has at least one open branch: Then it is probably invalid Need to construct a counter-example to show this for sure Constructing a counter-argument from a truth tree: Pick an open branch and "read off" the interpretation for each formula

Practice: Validity/Invalidity with Truth Trees ¬(x)(A(x)  B(x)), (x)(A(x)  C(x))  ¬(x)(¬B(x) & C(x)) ¬(x)[A(x) & (B(x)  C(x)], (x)(A(x) & B(x))  (x)(A(x) & C(x)) (x)(K(x)  F(x), F(j)  K(j) ¬(x)[(A(x) & B(x))  (C(x) & D(x))], ¬(x)(A(x) & C(x))  ¬(x)(B(x) & D(x)) (x)(y)[(N(x) & N(y))  R(x,y)], (x)(y) (z){[((N(x) & N(y)) & N(z)]  [(R(x,y) & R(y,z)  R(x,z)]}  (x)(N(x)  ¬R(x,x)) (x)[A(x)  (C(x)  D(x))], ¬(x)(A(x) & C(x)), (x)(A(x) & B(x))  (x)(A(x)  ¬C(x)) (x)[A(x)  (B(x)  D(x))], (x)(B(x) & D(x))  (x)[A(x)  (C(x)  D(x))] (¬C(b) & ¬C(f)), (x)(¬C(x)  ¬R(x))  (¬R(b) & ¬R(f)) (x)(C(x) & F(x))  (x)(C(x) & ¬F(x)) (x)(E(x)  G(x), E(c)  G(c) (x)(C(x)  G(x)  (x)(G(x)  C(x))

Determining types of statements using truth trees Recall that our truth tree rules operate off the assumption that a statement is true Thus, if we take apart a statement according to the rules, and all of its branch(es) close, what does that tell us about the statement? Contradictory statement! What if we wanted to check if a statement was a tautology? Negate the statement Take it apart according to the rules See if all the branch(es) close What about contingent statements? Have to check both ways! (both the negated and the non-negated form)

Practice: Determining Types of Statements with Truth Trees (x)(R(x)  ¬R(x)) (x)R(x)  (x)¬R(x) (x)R(x) & ¬R(p) (x)F(x) & ¬(x)F(x) (x)F(x) & (x)¬F(x) (x)F(x)  (x)F(x) (x)[A(x)  (¬A(x) & B(x))] (x)[A(x) & (A(x)  B(x))] (x)[(A(x) & B(x))  (B(x) & C(x))] (x)[(A(x) & B(x))  C(x)]  (x)[(A(x) & ¬B(x))  ¬C(x)] (x)(M(x) & P(x))  ((x)(M(x) & (x)(P(x)) ((x)(M(x) & (x)(P(x))  (x)(M(x) & P(x)) (M(j) & M(p)) & ¬(x)P(x)

Practice: Derivations (V(h,l,m) & V(j,l,m)) (V(h,l,m)  V(h,p,m)) (V(j,l,m)  V(j,p,m)) (V(h,p,m)  V(j,p,m))  (V(h,p,m) & V(j,p,m))  (A(p)  A(q))  (A(p) & A(q))  [(H(d) & B(l,r)) & S(s)]  [(H(d)  B(l,r))  (H(d)  S(s))]  (S(o)  S(o))  (R(p,m)  L(p))  (R(p,m)  L(p))

Practice: Derivations  (R(f)  R(h))  [(R(f) & R(f))  (R(f) & R(f))] (x)[(T(x,b)  S(x))  V(b,p,d)], (x)(T(x,b)  S(x))  S(j)  V(b,p,d) [A  (B  C)] [(B & A) & C] (x)(y)V(x,p,y), ((x)(y)V(x,p,y)  (x)(S(x)), (x)(S(x) V(p,b,m) ((x)P(x)  (x)H(x)), (x)H(x), ((x)P(x)  (x)S(x)) (x)S(x)