ANS: If you are in Kwangju then you are in South Korea but not in Seoul.

Similar documents
Chapter 1: The Logic of Compound Statements. January 7, 2008

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

THE LOGIC OF COMPOUND STATEMENTS

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

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

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

CSC Discrete Math I, Spring Propositional Logic

PROPOSITIONAL CALCULUS

n Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B

CS 173: Discrete Mathematical Structures, Spring 2008 Homework 1 Solutions

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

1.1 Statements and Compound Statements

THE LOGIC OF COMPOUND STATEMENTS

Propositional Equivalence

Section 1.1: Logical Form and Logical Equivalence

The Logic of Compound Statements cont.

1.3 Propositional Equivalences

PSU MATH RELAYS LOGIC & SET THEORY 2017

Compound Propositions

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

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

Section 1.2: Propositional Logic

Logic, Sets, and Proofs

DISCRETE MATHEMATICS BA202

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38

EECS 1028 M: Discrete Mathematics for Engineers

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

Proposition logic and argument. CISC2100, Spring 2017 X.Zhang

Where are my glasses?

Math.3336: Discrete Mathematics. Propositional Equivalences

FORMAL PROOFS DONU ARAPURA

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

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

Chapter 1 Elementary Logic

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.

EECS 1028 M: Discrete Mathematics for Engineers

2/13/2012. Logic: Truth Tables. CS160 Rosen Chapter 1. Logic?

ECOM Discrete Mathematics

Supplementary Logic Notes CSE 321 Winter 2009

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

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

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

software design & management Gachon University Chulyun Kim

1) Let h = John is healthy, w = John is wealthy and s = John is wise Write the following statement is symbolic form

MATH 2001 MIDTERM EXAM 1 SOLUTION

Announcements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013

CSE 20: Discrete Mathematics

Propositional Logic. Spring Propositional Logic Spring / 32

Glossary of Logical Terms

Math 3336: Discrete Mathematics Practice Problems for Exam I

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.

Logic and Propositional Calculus

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

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Review 1. Andreas Klappenecker

Predicate Logic. Andreas Klappenecker

COT 2104 Homework Assignment 1 (Answers)

Chapter 1: Formal Logic

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

Proving Things. Why prove things? Proof by Substitution, within Logic. Rules of Inference: applying Logic. Using Assumptions.

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

CITS2211 Discrete Structures Proofs

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9

DISCRETE MATH: FINAL REVIEW

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1)

Propositional logic (revision) & semantic entailment. p. 1/34

Tautologies, Contradictions, and Contingencies

Artificial Intelligence: Knowledge Representation and Reasoning Week 2 Assessment 1 - Answers

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

HOMEWORK 1: SOLUTIONS - MATH 215 INSTRUCTOR: George Voutsadakis

Language of Propositional Logic

1.1 Language and Logic

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

Discrete Structures & Algorithms. Propositional Logic EECE 320 // UBC

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

Introduction to Sets and Logic (MATH 1190)

Manual of Logical Style (fresh version 2018)

Propositional natural deduction

We last time we began introducing equivalency laws.

A Quick Lesson on Negation

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

The statement calculus and logic

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives

AN INTRODUCTION TO MATHEMATICAL PROOFS NOTES FOR MATH Jimmy T. Arnold

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

3 The Semantics of the Propositional Calculus

Truth-Functional Logic

A. Propositional Logic

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. Introductory Notes in Discrete Mathematics Solution Guide

FUNDAMENTALS OF MATHEMATICS HANDOUT 1.3 DR. MCLOUGHLIN

CISC-102 Fall 2018 Week 11

Section 1.1 Propositions

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

Logic and Proofs. (A brief summary)

Lecture 5 : Proofs DRAFT

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration

1.1 Language and Logic

PHIL 50 - Introduction to Logic

Transcription:

Math 15 - Spring 2017 - Homework 1.1 and 1.2 Solutions 1. (1.1#1) Let the following statements be given. p = There is water in the cylinders. q = The head gasket is blown. r = The car will start. (a) Translate the following statement into symbols of formal logic. If the head gasket is blown and there s water in the cylinders, the the car won t start. ANS: q p r (b) Translate the following formal statement into everyday English. r (q p) ANS: If the car will start then neither is the head gasket blown, nor is there water in the cylinders. 2. (1.1#2) Let the following statements be given. p = You are in Seoul. q = You are in Kwangju. r = You are in South Korea. (a) Translate the following statement into symbols of formal logic. If you are not in South Korea, then you are not in Seoul or Kwangju. ANS: r (p q) (b) Translate the following formal statement into everyday English. q (r p) ANS: If you are in Kwangju then you are in South Korea but not in Seoul. 3. (1.1#4)Let s be the following statement. If you are studying hard, then you are staying up late at night. (a) Give the converse of s. If you are staying up late at night, then you are studying hard. (b) Give the contrapositive of s. ANS: If you are not staying up late at night, then you are not studying hard. 4. (1.1#6) Give an example of a quadrilateral that shows that the converse of the statement is false. If a quadrilateral has a pair of parallel sides, then it has a pair of supplementary angles. Any circular quadrilateral will have two pairs of supplementary angles (opposite angles are supplementary, but only the square or trapezoid will have parallel sides. 5. (1.1#8) Give an example of a true if-then statement whose converse is also true. ANS:, If 3x = 12, then x = 4. 6. (1.1#10) Use truth tables to establish the following equivalencies. (a) Show that (p q) is logically equivalent to p q. p q p q (p q) p q T T T F F T F T F F F T T F F (b) Show that (p q) is logically equivalent to p q. p q p q (p q) p q T T T F F T F F T T F T F T T These equivalencies are known as De Morgan s laws, after the nineteenth century logician Augustus De Morgan.

Math 15 Homework 1.1 and 1.2 - Page 2 of 7 1/30/17 7. (1.1#12) Use truth tables to show that (a b) ( (a b)) is logically equivalent to a b. (This arrangement of T/F values is sometiemes called the exclusive or of a and b.) a b b a b a b (a b) (a b) ( (a b) a b T T F T T F F F T F T T F T T T F T F T F T T T F F T F F T F F 8. (1.1#14) Let the following statements be given. p = Andy is hungry. q = The refrigerator is empty. r = Andy is mad. (a) Use connectives to translate the following statement into formal logic. If Andy is is hungry and the refrigeartor is empty, then Andy is mad. ANS: (p q) r (b) Construct a truth table for the statement. p q r p q (p q) r T T F T F T F T F T T F F F T F T T F T F T F F T F F T F T F F F F T (c) Suppose that the statement given in part (a) is true, and suppose also that Andy is not mad and the refrigerator is empty. Is Andy hungry? Explain how to justify your answer using the truth table. ANS: The sixth row of the truth table is the only row in which (p q) r is T, r is F, and q is T. Therefore p is F, that is, Andy is not hungry. 9. (1.1#16) Use truth tables to prove the following distributive properties for propositional logic. (a) p (q]veer) is logically equivalent to (p q) (p r) p q r P q p r q r p (q r) (p q) (p r) T T T T T F T F T T T T F T F T T T T T F F F F F F F F T T F F T F F F T F F F T F F F F T F F T F F F F F F F F F F (b) p (q r) is logically equivalent to (p q) (p r) p q r P q p r q r p (q r) (p q) (p r) T T T T T F T T F T T T F T T T F T T T F F T T F T T F T T F T F T F F F F F F T F T F F F F F F F F F F F

Math 15 Homework 1.1 and 1.2 - Page 3 of 7 1/30/17 10. (1.1#18) Mathematicians say that statement P is stronger than statement Q if Q is true whenever P is true, but not conversely. (in other words, P is stringer that Q means that P Q is always true, but Q P is not true, in general.) Use truth tables to show the following. (a) a b is stronger than a. a b a b (a b) a a (a b) T F F T F F T F T T (b) a is stronger than a b a b a b a (a b) (a b) a T F T T T F T T T F (c) a b is stronger than a b a b a b a b (a b) (a b) (a b) (a b) T T F F T T F F T F T T F F F T T F T (d) b is stronger that a b. a b a b b (a b) (a b) b T F F T T F T T T F F F T T F 11. (1.1#22) Mathematicians say that Statement P is a sufficient condition for statement Q if P Q is true. In other words, in order to know that Q is true, it is sufficient to know that P is true. Let x be an integer. Give a sufficient condition on x for x/2 to be an integer. SOLN: For x/2 to be an even integer, it is sufficient that x be divisible by 100. 12. (1.1#24) Let Q be a quadrilateral. Give a sufficient but not necessary condition for Q to be a parallelogram. All four sides of Q are equal. 13. (1.1#26) Often a complicated expression in formal logic can be simplified. For example, consider the statement S = (p q) (p q). (a) Construct a truth table for S. p q p q q p q S T T T F F T T F F T T T F T F F F F F F F T F F (b) Find a simpler expression that is logically equivalent to S. ANS: The statement p is logically equivalent to S. 14. (1.1#28) The NAND connective is defined by the following truth table.

Math 15 Homework 1.1 and 1.2 - Page 4 of 7 1/30/17 p q p q T T F T F T F T T F F T Use truth tables to show that p q is logically equivalent to (p q). (This explains the name NAND: Not AND.) ANS: This is pretty obvious! 15. (1.1#30) Write p in terms of p and ANS: p p 16. (1.1#32) Use symbols of propositional logic to explain the difference between the following two statements. q = My team will win if I yell at the TV. ANS: Let w be the statement my team p = You are in Seoul. r = My team will win only if I yell at the TV. will win and let y be the statement I yell at the TV. The first statement ( my team will win if I yell at the TV ) is y w, and the second statement is w y. The applicable meaning of only is exclusively; solely. 17. (1.2#2) Fill in the reasons in the following proof sequence. Make sure you indicate which step(s) each derivation rule refers to. 1. q r given 2. ( p q) given 3. p q De Morgan, 2 4. p q Double negation, 3 5. q p commutativity, 4 6. q p implication, 5 7. q simplification, 1 8. p modus ponens, 7,6 18. (1.2#6) Fill in the reasons in the following proof sequence. Make sure you indicate which step(s) each derivation rule refers to. 1. p (q r) given 2. (p q) given 3. p q De Morgan, 2 4. q p commutativity, 3 5. q p implication, 4 6. p simplification, 1 7. p double negation, 6 8. q modus tollens, 7,5 9. (q r) p commutativity, 1 10. q r simplification, 9 11. r q commutativity, 10 12. ( r) q double negation, 11 13. r q implication, 12 14. ( r) modus tollens, 8, 13 15. r double negation, 14 16. p r conjuc5tion, 6, 15

Math 15 Homework 1.1 and 1.2 - Page 5 of 7 1/30/17 19. (1.2#8) Which derivation rule justifies the following argument? If n is a multiple of 4, then n is even. However, n is not even. Therefore, n is not a multiple of 4. ANS: modus tollens 20. (1.2#10) Let Q be a quadrilateral. Given the statements If Q is a rhombus, then Q is a parallelogram. Q is not a parallelogram. what statement follows by modul tollens? ANS: Q is not a rhombus. 21. (1.2#12) Write a statement that follows from the statement It is sunny and warm today. by the simplification rule. ANS: It is sunny today. 22. (1.2#14) Recall Exercise 31 of Section 1.1. Suppose that all the following status reports are correct: Processor B is not working and processor C is working. Processor A is working if and only if processor B is working. At least one of the two processors A and B is not working. ANS: Simplification of A s report. Let a = A is working, b = B is working, and c = C is working. (a) If you haven t already done so, write each status report in terms of a, b, and c, using the symbols of formal logic. ANS: A s report is b c; B s report is a b; C s report is a b. (b) How would you justify the conclusion that B is not working? (In other words, given the statements in part (a), which derivation rule allows you to conclude b?) ANS: Simplification of A s report. (c) How would you justify the conclusion that C is working? ANS: Simplification of A s report. (d) Write a proof sequence to conclude that A is not working. (In other words, given the statements in part (a), write a proof sequence to conclude a.) Statements Reasons 1. b c given (A s report) 2. a b given (B s report) 3. (a b) (b a) exercise from 1.1 4. a b simplification, 3 5. b simplification, 1 7. a modus tollens, 5, 4 23. (1.2#16) Write a proof sequence for the following assertion. Justify each step. 1. p given p 2. p r given p r q 3. q r given q r 4. r modus ponens, 1,2 5. r Double negation, 4 6. q modus tollens,5,3

Math 15 Homework 1.1 and 1.2 - Page 6 of 7 1/30/17 24. (1.2#18) Write a proof sequence for the following assertion. Justify one of the steps in your proof using the result of Example 1.8. 1. (a b) given 2. b given (a b) a 3. a b De Morgan s laws, 1 b 4. a b double negation, 3 5. b a commutivity, 4 6. a Example 1.10,5,2 25. (1.2#20) Write a proof sequence to establish that p p p is a tautology. ANS: All of the steps in the following proof sequence are reversible. 1. p p given 2. (p p) double negation, 1 3. ( p p) De Morgan s laws, 2 4. p Simplification, 3 5. p Double negation, 4 26. (1.2#22) Write a proof sequence for the following assertion. Justify each step. (p q) (p r) r (p q) 1. (p q) (p r) given 2. (q p) (p r) commutativity,1 3. q (p (p r)) associativity, 2 4. q ((p p) r) commutativity, 3 5. q (p r) Ecercise 20, 4 6. (q p) r associativity, 5 7. (p q) r commutativity, 6 8. r (p q commutativity, 7 9. ( r) (p q) double negation, 8 10. r (p q) implication, 9 27. (1.2#26) This exercise will lead you through a proof of the distributive property of over. We will prove: p (q r) (p q) (p r) (a) The above assertion is the same as the following: Why? ANS: Implication. p (q r) (p q) (p r) (b) Use the deduction method from Exercise 25(c) to rewrite the tautology from part (a). Problem 25 has you proving that p (q r) (p q) r with a sequence of equivalent statements like so:

Math 15 Homework 1.1 and 1.2 - Page 7 of 7 1/30/17 1. p (q r) given 2. p (q r) implication, 1 3. p ( q r) implication, 2 4. ( p q) 4 associative, 3 5. (p q) r de Morgan, 4 6. (p q) r implication 5 in which each step is an iff step, so we have the tautology, p (q r) (p q) r. Thus, to prove A B C it is sufficient to prove A B C instead. Use this fact to rewrite the tautology p (q r) q (p r) as a tautology of the form A C B where C does not contain the connective. (The process of rewriting a tautology this way is called the deductive method.) ANS: This is easy enough, as they have laid out all the steps and we simply write p (q r) p r (p q) (c) Prove your rewritten tautology. Go back and look at the proof given in ex. 6. This is exactly the same! 28. (1.2#28) Is a a a contradiction? Why or why not? ANS: It is not a contradiction. The truth table is not always false: a a a a T F F F T T