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

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

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

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

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

4 Quantifiers and Quantified Arguments 4.1 Quantifiers

Discrete Mathematics Recitation Course 張玟翔

Predicate Logic. Andreas Klappenecker

MAT 243 Test 1 SOLUTIONS, FORM A

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

Propositional Logic Not Enough

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

Chapter 1 Elementary Logic

Logic Overview, I. and T T T T F F F T F F F F

MACM 101 Discrete Mathematics I. Exercises on Propositional Logic. Due: Tuesday, September 29th (at the beginning of the class)

Math 3336: Discrete Mathematics Practice Problems for Exam I

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

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

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

Introduction to Sets and Logic (MATH 1190)

First order Logic ( Predicate Logic) and Methods of Proof

What is the decimal (base 10) representation of the binary number ? Show your work and place your final answer in the box.

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction

Logic, Sets, and Proofs

Chapter 3. The Logic of Quantified Statements

ICS141: Discrete Mathematics for Computer Science I

Section Summary. Section 1.5 9/9/2014

Proof Terminology. Technique #1: Direct Proof. Learning objectives. Proof Techniques (Rosen, Sections ) Direct Proof:

Math 55 Homework 2 solutions

CSE Discrete Structures

Proofs. Introduction II. Notes. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

Announcement. Homework 1

1 Predicates and Quantifiers

Chapter 1, Logic and Proofs (3) 1.6. Rules of Inference

Chapter 2: The Logic of Quantified Statements

For all For every For each For any There exists at least one There exists There is Some

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions

Discrete Structures for Computer Science

CPSC 121: Models of Computation

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

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

2. Use quantifiers to express the associative law for multiplication of real numbers.

Predicate Logic & Quantification

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

(Refer Slide Time: 02:20)

CSE Discrete Structures

Mathematical Reasoning Rules of Inference & Mathematical Induction. 1. Assign propositional variables to the component propositional argument.

University of Ottawa CSI 2101 Midterm Test Instructor: Lucia Moura. February 9, :30 pm Duration: 1:50 hs. Closed book, no calculators

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them.

Proposi'onal Logic Not Enough

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)

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

DISCRETE MATH: FINAL REVIEW

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

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

1 The Foundation: Logic and Proofs

Solutions to Exercises (Sections )

CS0441 Discrete Structures Recitation 3. Xiang Xiao

Supplementary Logic Notes CSE 321 Winter 2009

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

Basic Logic and Proof Techniques

Today s Lecture 2/25/10. Truth Tables Continued Introduction to Proofs (the implicational rules of inference)

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

ECOM Discrete Mathematics

Section 1.1 Propositions

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

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.

1 The Foundation: Logic and Proofs

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

DISCRETE MATH: LECTURE Chapter 3.3 Statements with Multiple Quantifiers If you want to establish the truth of a statement of the form

Discrete Mathematics Logics and Proofs. Liangfeng Zhang School of Information Science and Technology ShanghaiTech University

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

Intro to Logic and Proofs

Lecture 2: Proof Techniques Lecturer: Lale Özkahya

software design & management Gachon University Chulyun Kim

Lecture Predicates and Quantifiers 1.5 Nested Quantifiers

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

CPSC 121: Models of Computation. Module 6: Rewriting predicate logic statements

Readings: Conjecture. Theorem. Rosen Section 1.5

Today. Proof using contrapositive. Compound Propositions. Manipulating Propositions. Tautology

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction.

Quantifiers. P. Danziger

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

CITS2211 Discrete Structures Proofs

Mat 243 Exam 1 Review

Test 1 Solutions(COT3100) (1) Prove that the following Absorption Law is correct. I.e, prove this is a tautology:

2/18/14. What is logic? Proposi0onal Logic. Logic? Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1.

COMP232 - Mathematics for Computer Science

CSE 20 DISCRETE MATH. Winter

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

1. Propositions: Contrapositives and Converses

1.1 Statements and Compound Statements

Section 1.2: Propositional Logic

Predicate Logic. Predicates. Math 173 February 9, 2010

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

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

Proofs. Chapter 2 P P Q Q

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

Full file at

9/5/17. Fermat s last theorem. CS 220: Discrete Structures and their Applications. Proofs sections in zybooks. Proofs.

Transcription:

MACM 101 Discrete Mathematics I Exercises on Predicates and Quantifiers. Due: Tuesday, October 13th (at the beginning of the class) Reminder: the work you submit must be your own. Any collaboration and consulting outside resourses must be explicitely mentioned on your submission. Please, use a pen. 30 points will be taken off for pencil written work. 1. Determine the truth value of each of these statements if the universe of each variable consists of (i) all real numbers, (ii) all integers. (a) x y(x + y y + x) (b) x y(x + y = 2 2x y = 2) (a) Formally negating the statement we get x y(x + y = y + x), which is the law of commutativity of addition. Thus statement (a) is false in both universes, because addition is commutative and for any x, y we have x + y = y + x. (b) The statement is false in both universes. To prove it we need to prove that negation of this statement is true. ( x y (x + y = 2 2x y = 2)) x y x + y 2 2x y 2) Let us assign x = 2 and then the quantified predicate turns into 2 + y 2 4 y 2 y 0 y 2. We see that the quantified statement is true for all y and thus we have the negation of statement (b) proven. 1

2. Use predicates and quantifiers to express this statement There is a man who has visited some park in every province of Canada Let V (x, y), where x is a person and y is a park be a predicate Person x visited park y. Let L(x, y), where x is a park and y is a province be a predicate Park x is located in province y. Then the statement under consideration can be expressed as follows x y z V (x, z) L(z, y). 3. Find a counterexample, if possible, to this universally quantified statement, where the universe for all variables consists of all integers x y (3xy = 12) A counterexample is in particular x = 12. If we assume that there is y such that 3xy = 12, then we would have 3 12 y = 12 and thus y = 1/3, which is does not belong to the universe of all integers. 4. Rewrite the following statement so that negations appear only within predicates (that is, no negation is outside a quantifier or an expression involving logical connectives) x (( y z P (x, y, z)) ( z y R(x, y, z))). Method 1 If you use connective the problem gets easier: x (( y z P (x, y, z)) ( z y R(x, y, z))) x (( y z P (x, y, z)) ( z y R(x, y, z))) x (( y z P (x, y, z)) ( z y R(x, y, z))) 2

Method 2 If you do not want to use then we have to recall that ( (p q)) (p q). And then after the second step we continue: x (( y z P (x, y, z)) ( z y R(x, y, z))) x (( y z P (x, y, z)) ( ( z y R(x, y, z)))) x (( y z P (x, y, z)) ( z y R(x, y, z))) 5. Let Q(x, y) be the statement x+y = x y. If the universe of discourse for both variables is the set of integers, what are the truth values of the following? a) Q(1, 1) b) Q(2, 0) c) x Q(x, 2) d) x y Q(x, y) e) y x Q(x, y) Prove your answers. a) 1 + 1 = 1 1 False. b) 2 + 0 = 2 0 True. c) x x + 2 = x 2 False, because the equality is equivalent to 2 = 2. d) x y x + y = x y False. Consider negation of this statement: x y x + y x y. (1) For arbitrary x we have x + 2 x 2 and we prove the statement (??) using x + 2 x 2 as a premise: 1) x + 2 x 2 (premise) 2) y x + y x y (rule of existential generalization applied to 1)) 3) x y x + y x y (rule of universal generalization app. to 2)) e) y x x + y = x y True. Indeed if we set y = 0 then the Q(x, y) turns into x + 0 = x 0 which is true for any x. 3

6. Are the following statements logically equivalent? xp (x) Q(x) and ( xp (x)) ( yq(y)) No they are not. In case the universe of discourse is the set of all integer numbers, P (x) is x is even, and Q(y) is y is odd we have the first statement saying There exists a number which is odd and even, while the second means There is an even number and there is an odd number. So the second statement gets to be true and the first gets to be false. I have received several emails asking whether its a typo that one of the expressions contain y while another does not. Note that some statements containing different variables are equivalent. For instance ( xp (x)) ( yq(y)) is equivalent to ( z P (z)) ( yq(y)). That happens because once variable is bounded by a quantifier it does not matter what name it was. 7. Determine whether the following argument is valid or invalid and explain why. No ducks are willing to waltz. No officers ever decline to waltz. All my poultry are ducks. Therefore, my poultry are not officers. The argument is valid. Let s prove the concluded statement by contradiction. Let x be an officer member of my poultry. All my poultry are ducks, consequently x is a duck. No ducks are willing to waltz thus x is not willing to waltz. But x is an officer and no officers ever decline to waltz, thus x never declines a waltz. We came to a contradiction x is not willing to waltz and x is willing to waltz. QED. 4

8. Given premises: All clear explanations are satisfactory Some excuses are unsatisfactory infer Some excuses are not clear explanations. Write the proof formally. Let S(x) be x is a satisfactory, C(x) be x is a clear explanation and E(x) be x is an excuse. Then the premises turn into: x C(x) S(x) x E(x) S(x). While conclusion is x E(x) C(x). The proof goes as follows: 1) x E(x) S(x) (premise) 2) E(x 0 ) S(x 0 ) (for some x 0, by existential specification of 1)) 3) x C(x) S(x) (premise) 4) C(x 0 ) S(x 0 ) (by universal specification of 3)) 5) S(x 0 ) (by simplification of 2) ) 6) C(x 0 ) (Modus Tollens of 4) and 5)) 7) E(x 0 ) (by simplification of 2) ) 8) E(x 0 ) C(x 0 ) (conjunction of 6) and 7)) 9) x E(x) C(x) (existential generalization of 8)) 9. Find a universe for variables x, y, z for which the statement x y((x = y) z z x) is true and another universe in which it is false. If the universe is {0, 1} then the statement is true. Indeed consider arbitrary x and y and the statement ((x = y) z z x). If x y then this statement is true, because premise is false. If x = y = 0 then there exists z = 1 for which z x. Similarly with x = y = 1. 5

If the universe is {0} then when x = y = 0 there is no such element in the universe that does not equal to x, because the universe contains the only element. 6