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

Similar documents
CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

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

The Logic of Compound Statements cont.

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

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

PROPOSITIONAL CALCULUS

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

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Section 1.2: Propositional Logic

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

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

A. Propositional Logic

2.2: Logical Equivalence: The Laws of Logic

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

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

PHI Propositional Logic Lecture 2. Truth Tables

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

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

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

CSC Discrete Math I, Spring Propositional Logic

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

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

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

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.

Packet #1: Logic & Proofs. Applied Discrete Mathematics

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

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

CS250: Discrete Math for Computer Science. L6: CNF and Natural Deduction for PropCalc

Logic and Truth Tables

Propositional Logic. Spring Propositional Logic Spring / 32

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

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

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

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

Midterm: Sample 3. ECS20 (Fall 2017) 1) Using truth tables, establish for each of the two propositions below if it is a tautology, a contradiction

Compound Propositions

DISCRETE MATH: FINAL REVIEW

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

1.1 Statements and Compound Statements

Definition 2. Conjunction of p and q

Section 1.3: Valid and Invalid Arguments

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

Manual of Logical Style (fresh version 2018)

Logic and Proofs. Jan COT3100: Applications of Discrete Structures Jan 2007

III. Elementary Logic

ANALYSIS EXERCISE 1 SOLUTIONS

Discrete Mathematics for CS Spring 2006 Forbes HW 1 Solutions

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

COM S 330 Homework 02 Solutions. Type your answers to the following questions and submit a PDF file to Blackboard. One page per problem.

Rules Build Arguments Rules Building Arguments

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

Math 3336: Discrete Mathematics Practice Problems for Exam I

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

ICS141: Discrete Mathematics for Computer Science I

Math 102 Section 08, Fall 2010 Solutions Practice for Formal Proofs of Arguments

Propositional Equivalence

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

Homework 2: Solutions

We last time we began introducing equivalency laws.

FORMAL PROOFS DONU ARAPURA

Logic, Sets, and Proofs

Logic and Proofs. (A brief summary)

The proposition p is called the hypothesis or antecedent. The proposition q is called the conclusion or consequence.

Analyzing Arguments with Truth Tables

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

Quiz 1. Directions: Show all of your work and justify all of your answers.

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

Box. Turn in your e xam to Kathy Stackhouse in Chem 303 by noon on Thursday, March 30.

Chapter 2: The Logic of Compound Statements

software design & management Gachon University Chulyun Kim

CS 2336 Discrete Mathematics

Logic and Truth Tables

AMTH140 Lecture 8. Symbolic Logic

Proof strategies, or, a manual of logical style

Language of Propositional Logic

Predicate Logic. Andreas Klappenecker

1.3 Propositional Equivalences

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

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.

Propositional natural deduction

Discrete Mathematics Recitation Course 張玟翔

THE LOGIC OF COMPOUND STATEMENTS

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

Where are my glasses?

A Quick Lesson on Negation

Formal Logic. Critical Thinking

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

Rules of Inference. Arguments and Validity

Outline. Rules of Inferences Discrete Mathematics I MATH/COSC 1056E. Example: Existence of Superman. Outline

Manual of Logical Style

CSE 20: Discrete Mathematics

CSE 20 DISCRETE MATH. Winter

Valid Reasoning. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing February, Outline Truth and Validity Valid Reasoning

Equivalence and Implication

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

KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) RULES OF INFERENCE. Discrete Math Team

Logical forms and substitution instances. Philosophy and Logic Unit 2, Section 2.1

The Logic of Compound Statements. CSE 2353 Discrete Computational Structures Spring 2018

MAT 243 Test 1 SOLUTIONS, FORM A

Propositional Logic: Semantics

Transcription:

MACM 101 Discrete Mathematics I Exercises on Propositional Logic. Due: Tuesday, September 29th (at the beginning of the class) SOLUTIONS 1. Construct a truth table for the following compound proposition: (p q) (p q) p q (p q) (p q) 0 0 0 0 1 1 1 0 1 1 1 1 2. Which of the following statements are tautologies? (p q) ( p q) (p q) ( (p q)) (p q) (p q) Method 1: Use truth tables. Method 2: Reason about it: 1) Yes, each of (p q) and ( p q) is false if and only if p is true and q is false. 2) Yes, it follows from 1), De Morgan s law and double negation law: (p q) ( p q) (p q) ( ( p q)) (p q) ( ( p q)) (p q) ( (p q)) 3) No, if we set p = 0, q = 1 then the formula turns into 0. 3. Show that (p r) (q r) and (p q) r are logically equivalent. Method 1: Use truth table. 1

Method 2: Use the laws of logic. (p r) (q r) (definition of ) ( p r) ( q r) (distributivity) ( p q) r (De Morgan) ( (p q)) r (definition of ) (p q) r 4. Show that (a b c d e) f and (a b c d e) f are not logically equivalent If we set a = b = c = d = 0, e = 1, f = 0 then we have the first statement to be 1 and the second to be 0. 5. Simplify the compound statement (p (q r) ((p q) r)). Method 1: Use laws of logic. Method 2: p q r p (q r) ((p q) r) (p (q r) ((p q) r)) 0 0 0 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 0 0 1 1 0 1 1 0 1 1 0 0 1 1 1 1 1 0 We see that the third column is 1 if and only if p r. Thus our expression is equivalent to p r. 6. Prove that you can infer p from p q and q. Build a truth table of (p (p q)) q and observe that this statement is a tautology. 7. There are two tribes living on the island of Knights and Knaves: knights and knaves. Knights always tell truth and knaves always lie. You encounter two people A and B. What are A and B if A says If B is a knight then I am a knave!. 2

1) Let p be A is a knight and q be B is a knight. Then what we know is Method 1: Truth table. Method 2: p (q p). Let us assume that p = 0. Then statement q p is true and consequently p (q p) is false. We came to contradiction, thus our assumption was false and we have p = 1. Thus q p is true and by Modus Tollens q = 0. 8. Use inference rules to find out what relevant conclusion or conclusions can be drawn from this set of premises? Explain the rules of inference used to obtain each conclusion from the premises. I am going to hike this weekend. I will not go hiking on Sunday. If I go hiking on Sunday I will be tired on Monday. Let p = I will hike on Saturday, q = I will hike on Sunday, r = I will be tired on Monday. Then conditions can be written as p q, q, q r. By the rule of disjunctive syllogism we can infer p from p q and q. No other interesting facts can be inferred. In particular we can not say anything about the value of r. 9. Write the following argument in symbolic form. Then establish the validity of the argument or give a counterexample to show that it is invalid. If Dominic goes to the racetrack, then Helen will be mad. If Ralph plays cards all night, then Carmela will be mad. If either Helen or Carmela gets mad, then Veronica (their attorney) will be notified. Veronica has not heard from either of these two clients. Consequently, Dominic didn t make it to racetracks and Ralph didn t play cards all night. Let p = Dominic goes to the racetrack, q = Helen will be mad, 3

r = Ralph plays cards all night, s = Carmela will be mad, t = Veronica is notified. Then the argument can be written as The proof goes as follows. 1) t (premise) 2) (q s) t (premise) 3) (q s) (modus tollens) 4) q s (De Morgan s law) 5) q (simplification) 6) p q (premise) 7) p (modus tollens) p q, r s, (q s) t, t p q. and analogously you show q. 10. Using the Rule of Conjunction p q p q and other rules of inference and logic equivalences give the reasons for the steps verifying the following argument. Premises: ( p q) r, r (s t), s u, u t. Conclusion: p. Steps 1) s u 2) u 3) u t 4) t 5) s 6) s t 7) r (s t) 8) (s t) r 9) ( s t) r 10) r 11) ( p q) r 12) r ( p q) 13) r (p q) Reasons 4

14) p q 15) p Steps Reasons 1) s u premise 2) u conjunctive simplification to Step 1 3) u t premise 4) t modus ponens to Steps 2 and 3 5) s conjunctive simplification to Step 1 6) s t rule of conjunction to Steps 4 and 5 7) r (s t) premise 8) (s t) r contrapositive to Step 7 9) ( s t) r DeMorgan s law to Step 8 10) r modus ponens to Steps 6 and 9 11) ( p q) r premise 12) r ( p q) contrapositive to Step 11 13) r (p q) DeMorgan s law to Step 12 14) p q modus ponens to Steps 10 and 13 15) p conjunctive simplification to Step 14. 5