Logical equivalences 12/8/2015. S T: Two statements S and T involving predicates and quantifiers are logically equivalent

Similar documents
Thinking of Nested Quantification

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

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

Discrete Mathematics and Its Applications

1.3 Predicates and Quantifiers

Discrete Structures Lecture 5

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Section Summary. Section 1.5 9/9/2014

Section Summary. Predicates Variables Quantifiers. Negating Quantifiers. Translating English to Logic Logic Programming (optional)

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

CSI30. Chapter 1. The Foundations: Logic and Proofs Nested Quantifiers

Predicate Calculus lecture 1

Discrete Structures Lecture Predicates and Quantifiers

! Predicates! Variables! Quantifiers. ! Universal Quantifier! Existential Quantifier. ! Negating Quantifiers. ! De Morgan s Laws for Quantifiers

Predicates and Quantifiers. Nested Quantifiers Discrete Mathematic. Chapter 1: Logic and Proof

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

Chapter 1, Part II: Predicate Logic

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

Predicate Calculus - Syntax

Variable Names. Some Ques(ons about Quan(fiers (but answers are not proven just stated here!) x ( z Q(z) y P(x,y) )

Propositional Logic Not Enough

Predicate Logic Thursday, January 17, 2013 Chittu Tripathy Lecture 04

ICS141: Discrete Mathematics for Computer Science I

Today s Lecture. ICS 6B Boolean Algebra & Logic. Predicates. Chapter 1: Section 1.3. Propositions. For Example. Socrates is Mortal

Lecture Predicates and Quantifiers 1.5 Nested Quantifiers

software design & management Gachon University Chulyun Kim

Introduction to Sets and Logic (MATH 1190)

Logic and Proof. Aiichiro Nakano

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

Nested Quantifiers. Predicates and. Quantifiers. Agenda. Limitation of Propositional Logic. Try to represent them using propositional.

ITS336 Lecture 6 First-Order Logic

Section A (not in the text) Which of the following are statements? Explain. 3. The President of the United States in 2089 will be a woman.

Predicate Logic. Andreas Klappenecker

cse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference

Mat 243 Exam 1 Review

Predicate Logic & Quantification

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

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

Discrete Structures for Computer Science

Proposi'onal Logic Not Enough

Lecture 4. Predicate logic

MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG

Introduction to Decision Sciences Lecture 2

Math.3336: Discrete Mathematics. Nested Quantifiers/Rules of Inference

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

Assignment 3 Logic and Reasoning KEY

Chapter 2: The Logic of Quantified Statements

CS 220: Discrete Structures and their Applications. Predicate Logic Section in zybooks

DISCRETE MATHEMATICS BA202

Announcements CompSci 102 Discrete Math for Computer Science

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

CS Module 1. Ben Harsha Apr 12, 2017

4 Quantifiers and Quantified Arguments 4.1 Quantifiers

Learning Goals of CS245 Logic and Computation

ECOM Discrete Mathematics

LOGIC CONNECTIVES. Students who have an ACT score of at least 30 OR a GPA of at least 3.5 can receive a college scholarship.

MATH 215 Discrete Mathematics Worksheets. Which of these are propositions? What are the truth values of those that are propositions?

2-4: The Use of Quantifiers

Math.3336: Discrete Mathematics. Nested Quantifiers

Solutions to Sample Problems for Midterm

EECS 1028 M: Discrete Mathematics for Engineers

Logic. Def. A Proposition is a statement that is either true or false.

Wollongong College Australia

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.

Department of Mathematics and Statistics Math B: Discrete Mathematics and Its Applications Test 1: October 19, 2006

Exercise Set 1 Solutions Math 2020 Due: January 30, Find the truth tables of each of the following compound statements.

MACM 101 Discrete Mathematics I. Exercises on Predicates and Quantifiers. Due: Tuesday, October 13th (at the beginning of the class)

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

Tools for reasoning: Logic. Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications:

Statements and Quantifiers

Computer Science 280 Spring 2002 Homework 2 Solutions by Omar Nayeem

CSE 20. Final Review. CSE 20: Final Review

MAT137 Calculus! Welcome!

We have seen that the symbols,,, and can guide the logical

Department of Computer Science & Software Engineering Comp232 Mathematics for Computer Science

Lecture 3. Logic Predicates and Quantified Statements Statements with Multiple Quantifiers. Introduction to Proofs. Reading (Epp s textbook)

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

Predicate Logic. Example. Statements in Predicate Logic. Some statements cannot be expressed in propositional logic, such as: Predicate Logic

University of Ottawa CSI 2101 Midterm Test Instructor: Lucia Moura. March 1, :00 pm Duration: 1:15 hs

Basic Logic and Proof Techniques

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

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

Predicates, Quantifiers and Nested Quantifiers

An Introduction to Logic 1.1 ~ 1.4 6/21/04 ~ 6/23/04

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

Foundation of proofs. Jim Hefferon.

CITS2211: Test One. Student Number: 1. Use a truth table to prove or disprove the following statement.

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

Predicates and Quantifiers. CS 231 Dianna Xu

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points

Intro to Logic and Proofs

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.

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

Day 5. Friday May 25, 2012

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

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

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.

Logic and Propositional Calculus

Propositional Logic: Review

Transcription:

1/8/015 Logical equivalences CSE03 Discrete Computational Structures Lecture 3 1 S T: Two statements S and T involving predicates and quantifiers are logically equivalent If and only if they have the same truth value no matter which predicates are substituted into these statements and which domain is used for the variables. : ) i.e., we can distribute a universal quantifier over a conjunction ) Both statements must take the same truth value no matter the predicates p and q, and non matter which domain is used Show If p is true, then q is true (p q) If q is true, then p is true (q p) ) ) 3 ) ) ( ) If a is in the domain, then a) q(a) is true. Hence, a) is true and q(a) is true. Because a) is true and q(a) is true for every element in the domain, so is true ( ) It follows that and q( are true. Hence, for a in the domain, a) is true and q(a) is true, hence a) q(a) is true. If follows ) is true 4 1

1/8/015 Negating quantified expressions What are the negations of x and x )? x ( x x x ) ( x ) x ) Negations of the following statements There is an honest politician Every politician is dishonest (Note All politicians are not honest is ambiguous) All Americans eat cheeseburgers 5 Show ) q( ) ( )) ( )) q( ) 6 Translating English into logical expressions Every student in this class has studied calculus Let c( that x has studied calculus. Let x is in this class c( if the domain consists of students of this class if the domain consists of all people? if the domain consists of all people Using quantifiers in system specifications Every mail message larger than one megabyte will be compressed Let m, be mail message m is larger than y megabytes where m has the domain of all mail messages and y is a positive real number. Let c(m) denote message m will be compressed m( m,1) m)) 7 8

1/8/015 If a user is active, at least one network link will be available Let a(u) represent user u is active where u has the domain of all users, and let n, denote network link n is in state x where n has the domain of all network links, and x has the domain of all possible states, {available, unavailable}. u a( u) n n, available) 1.5 Nested quantifiers Let the variable domain be real numbers x 0 same as q( where q( is y and is x y 0 x y y y z( x ( y z) ( x z) ( x 0) ( y 0) ( xy 0)) where the domain for these variables consists of real numbers 9 10 Quantification as loop For every for every y y Loop through x and for each x loop through y If we find is true for all x and then the statement is true If we ever hit a value x for which we hit a value for which is false, the whole statement is false For every there exists y y Loop through x until we find a y that is true If for every we find such a then the statement is true 11 Quantification as loop y : loop through the values for x until we find an x for which is always true when we loop through all values for y Once found such one then it is true y : loop though the values for x where for each x loop through the values of y until we find an x for which we find a y such that is true False only if we never hit an x for which we never find y such that is true 1 3

1/8/015 Order of quantification Quantification of two variables Let y y y? x y y Let q( yq( :There is a real number yq( : For every real number x there y y? x y 0, y s.t. for every real number is a real number q( y s.t. q( 13 14 Quantification with more variables Let q( z) x y z, y zq( z) : What does it mean? Is it true? z yq( z) : What does it mean? Is it true? Translating mathematical statements The sum of two positive integers is always positive ( x 0) ( y 0) ( x y 0)) where the domain for both variables consists of all integers x y 0) where the domain for both variables consists of all positive integers 15 16 4

1/8/015 Express limit using quantifiers Every real number except zero has a multiplicative inverse ( x 0) y( ) where the domain for both variables consists of real numbers 17 Recall lim f ( L x a For every real number ε>0, there exists a real number δ>0, such that f(-l <ε whenever 0< x-a <δ 0 x a f ( L ) where the domain for and ispositive real number, and the domain for x isreal number 0 00 x a f ( L ) where the domain for,,and is real number 18 Translating statements into English c( y( c( f ( )) where c( is x has a computer, f( is x and y are friends, and the domain for both x and y consists of all students in our school y z (( f ( f ( z) ( y z)) f ( z)) where f( means x and y are friends, and the domain consists of all students in our school 19 Negating nested quantifiers y( y ( xy 1) There does not exist a woman who has taken a flight on every airline in the world w a f ( w, f ) f, a)) w a f ( w, f ) q( f, a)) where w,f) is w has taken f, and q(f,a) is f is a flight on a 0 5