Show Your Work! Point values are in square brackets. There are 35 points possible. Tables of tautologies and contradictions are on the last page.

Similar documents
Show Your Work! Point values are in square brackets. There are 35 points possible. Some facts about sets are on the last page.

Proofs. Joe Patten August 10, 2018

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

CSC Discrete Math I, Spring Propositional Logic

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

1. From Lewis Carroll: extract a pair of premises and finish the conclusion.

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

Math 10850, fall 2017, University of Notre Dame

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

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

Homework 3: Solutions

Solutions to Homework Set 1

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

Computer Science Section 1.6

Argument. whenever all the assumptions are true, then the conclusion is true. If today is Wednesday, then yesterday is Tuesday. Today is Wednesday.

MATH 271 Summer 2016 Practice problem solutions Week 1

Foundations of Discrete Mathematics

HOMEWORK 1: SOLUTIONS - MATH 215 INSTRUCTOR: George Voutsadakis

MATH CSE20 Homework 5 Due Monday November 4

Math 3336: Discrete Mathematics Practice Problems for Exam I

Mathematics 220 Homework 4 - Solutions. Solution: We must prove the two statements: (1) if A = B, then A B = A B, and (2) if A B = A B, then A = B.

Intro to Algebra Today. We will learn names for the properties of real numbers. Homework Next Week. Due Tuesday 45-47/ 15-20, 32-35, 40-41, *28,29,38

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

MATH 13 SAMPLE FINAL EXAM SOLUTIONS

1.1 Language and Logic

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

2 Truth Tables, Equivalences and the Contrapositive

Mathematics 220 Midterm Practice problems from old exams Page 1 of 8

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

CSE 215: Foundations of Computer Science Recitation Exercises Set #5 Stony Brook University. Name: ID#: Section #: Score: / 4

MATH 13 FINAL EXAM SOLUTIONS

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

means is a subset of. So we say A B for sets A and B if x A we have x B holds. BY CONTRAST, a S means that a is a member of S.

CSE 20 DISCRETE MATH SPRING

Mathematics Review for Business PhD Students

Mathematical Reasoning (Part I) 1

Midterm Exam Solution

1.1 Language and Logic

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

Theorem. For every positive integer n, the sum of the positive integers from 1 to n is n(n+1)

Section 1.2: Propositional Logic

(4) Using results you have studied, show that if x, y are real numbers,

Proofs. Chapter 2 P P Q Q

Introduction to Decision Sciences Lecture 2

Your quiz in recitation on Tuesday will cover 3.1: Arguments and inference. Your also have an online quiz, covering 3.1, due by 11:59 p.m., Tuesday.

Chapter 2 Section 2.1: Proofs Proof Techniques. CS 130 Discrete Structures

Math 13, Spring 2013, Lecture B: Midterm

Some Review Problems for Exam 1: Solutions

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

The Process of Mathematical Proof

MCS-236: Graph Theory Handout #A4 San Skulrattanakulchai Gustavus Adolphus College Sep 15, Methods of Proof

Proofs. Chapter 2 P P Q Q

Mathematics Review for Business PhD Students Lecture Notes

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

Chapter 1 Elementary Logic

Contribution of Problems

Math 11 Foundations: Unit 1 - Logic. Unit 1: Logic

CSE 20 DISCRETE MATH WINTER

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

1.1 Statements and Compound Statements

Properties of the Integers

CITS2211 Discrete Structures Proofs

3 The language of proof

One-to-one functions and onto functions

Normal Forms Note: all ppts about normal forms are skipped.

1 Direct Proofs Technique Outlines Example Implication Proofs Technique Outlines Examples...

Example ( x.(p(x) Q(x))) ( x.p(x) x.q(x)) premise. 2. ( x.(p(x) Q(x))) -elim, 1 3. ( x.p(x) x.q(x)) -elim, x. P(x) x.

A Guide to Proof-Writing

RED. Name: Instructor: Pace Nielsen Math 290 Section 1: Winter 2014 Final Exam

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.

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Propositional Logic, Predicates, and Equivalence

Inference and Proofs (1.6 & 1.7)

CSE 20 DISCRETE MATH. Winter

Predicate Logic. Andreas Klappenecker

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

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

Logic, Sets, and Proofs

Proof by Contradiction

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

Introduction to Sets and Logic (MATH 1190)

MATH 2001 MIDTERM EXAM 1 SOLUTION

a. See the textbook for examples of proving logical equivalence using truth tables. b. There is a real number x for which f (x) < 0. (x 1) 2 > 0.

Fundamentals of Pure Mathematics - Problem Sheet

Carmen s Core Concepts (Math 135)

EECS 1028 M: Discrete Mathematics for Engineers

MATH 2200 Final LC Review

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

Section 1.1: Propositions and Connectives

2.2: Logical Equivalence: The Laws of Logic

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

Section 1.7 Proof Methods and Strategy. Existence Proofs. xp(x). Constructive existence proof:

Solutions Quiz 9 Nov. 8, Prove: If a, b, m are integers such that 2a + 3b 12m + 1, then a 3m + 1 or b 2m + 1.

More examples of mathematical. Lecture 4 ICOM 4075

MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG

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

Introduction to Basic Proof Techniques Mathew A. Johnson

CSE 20 DISCRETE MATH. Fall

Math.3336: Discrete Mathematics. Proof Methods and Strategy

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

Transcription:

Formal Methods Midterm 1, Spring, 2007 Name Show Your Work! Point values are in square brackets. There are 35 points possible. Tables of tautologies and contradictions are on the last page. 1. Use truth tables to prove that the following logical expressions are tautologies. [6 points] (a) P (P Q) (b) (P Q) P (c) [P (P Q)] Q (a) (b) (c) P Q P Q P (P Q) T T T T T F T T F T T T F F F T P Q P Q (P Q) P T T T T T F F T F T F T F F F T P Q P Q P (P Q) [P (P Q)] Q T T T T T T F F F T F T T F T F F T F T 1

2. Without using a truth table, prove that (P Q) (P Q) is a tautology. You can use any of the facts on page 7. [3] We give two proofs. The first uses the table of tautologies. The second uses our knowledge of the various logical operators. First Proof. (P Q) (P Q) (P Q) (P Q) Tautology 5 ( P Q) (P Q) Tautology 1.1d (P P ) (Q Q) Tautologies 6 and 1.2i T T Tautology 1 T Tautology 2 Second Proof. An implication can be false only if the hypothesis is true and the conclusion is false. Our hypothesis is P Q, which can only be true if both P and Q are true. But if both P and Q are true, then our conclusion, P Q, must also be true. So whenever the hypothesis is true, the conclusion must also be true. So the implication (P Q) (P Q) is always true, and hence a tautology. 3. Which (if any) of the following expressions are tautologies? Which (if any) are contradictions? You don t need to prove anything. [4] (a) P P Neither (b) P P Neither (c) P Neither (d) P P A tautology 2

4. Suppose that f(x) is a real-valued function defined on all the real numbers. Consider the following definitions. i. f(x) is injective iff for all real numbers x and for all real numbers y, f(x) = f(y) implies x = y. ii. f(x) is surjective iff for each real number y, there exists a real number x such that f(x) = y. Give clear, idiomatic definitions of the following expressions. (a) f(x) is not injective. (b) f(x) is not surjective. [4] (a) f(x) is not injective iff there exists a real number x and there exists a real number y, such that f(x) = f(y) but x y. (b) f(x) is not surjective iff there exists a real number y such that for each real number x, f(x) y. 5. Sally wants to prove that if n 2 is odd, then n is odd. She s decided to prove the contrapositive. (a) What can Sally assume? (b) What should she prove? (You don t need to prove anything.) [4] The contrapositive of P Q is Q P. In Sally s theorem, P is n 2 is odd, and Q is n is odd. (a) So Sally should assume that n is not odd. In light of a theorem proved in class, this is equivalent to assuming that n is even. (b) Sally should prove that n 2 is not odd. Once again, in light of a theorem proved in class, this is equivalent to proving that n 2 is even. 3

6. Bob is trying to prove the following theorem. If n is a positive integer that is not a perfect square, then n is irrational. He s decided to try using proof by contradiction. (a) What should Bob assume? (b) At some point in his proof, Bob deduces that 0 = 1. He asserts that this is the desired contradiction. Sally says that Bob is mistaken: a contradiction must have the form R R for some statement R. Who s right? Bob or Sally? (You don t need to prove anything.) [4] Bob wants to prove P Q by contradiction, where P is n is a positive integer that is not a perfect square, and Q is n is irrational. (a) In a proof by contradiction, you assume P Q. So Bob should assume that n is a positive integer that is not a perfect square. He should also assume that n is not irrational, i.e., n is rational. (b) Contrary to what the text says, a proof by contradiction does not require that we deduce a statement having the form R R. It only requires that we deduce a false statement. Since 0 = 1 is false, it will serve as the desired contradiction. Bob is right. 7. Bob and Sally have determined that the following statement is false. There exist positive integers n, a, b, and c such that n 3 and a n + b n = c n. However, they can t agree on how to show the statement is false. Bob says that they just need to find a counterexample. Sally says that they need to prove a theorem. Who s right? (You don t need to prove anything.) [2] This time Sally wins the prize. A counterexample will disprove a statement that has the form xp (x). In order to disprove a statement that has the form yq(y), you need to show y Q(y). So they need to prove that for all positive integers n, a, b, and c such that n 3, a n + b n c n. (This, by the way, is known as Fermat s last theorem, and, until recently, it was one of the most famous unsolved problems in mathematics.) 4

8. Suppose x is an irrational number. Prove that 1/x is also irrational. [3] Proof. First note that 0 = 0/1 is rational. So if x is irrational, x 0. So 1/x is a real number. Furthermore, since x 1/x = 1, 1/x 0. Now in order to prove that 1/x is irrational, we use contradiction. So we assume that x is irrational, but 1/x is rational. Since 1/x is rational, there exist integers m and n with n nonzero such that 1/x = m/n. Then since n 0 and 1/x 0, n 1/x = m is nonzero. Multiplying both sides of this equation by x gives n = xm, and since m is nonzero, n/m = x. But this says that x is rational, contradicting our assumption that x is irrational. Thus, the assumption that 1/x is rational must be false, and if x is irrational, then 1/x is also irrational. 5

9. Consider the following two statements. i. There exists a nonzero integer n such that for every real number x, x n. ii. For every real number x, there exists an integer n such that x n. One statement is true. The other is false. Which is which? (You don t need to prove anything.) [2] The first statement says that there is an integer n with the property that every real number is less than or equal to n. Clearly, this is false. For example, if n is any integer, then n + 1 is a real number, and n < n + 1. The second statement says that given a real number x, there is an integer that s at least as large as x. This, of course, is true. For example, if the decimal expansion of x is y.d 1 d 2 d 3..., then y is an integer and y + 1 is an integer that s greater than or equal to x. 10. Give a direct proof of the fact that for every rational number q, there exists a nonzero integer n such that nq is an integer. [3] Proof. Suppose that q is a rational number. Then there exist integers r and s, such that s 0 and q = r/s. So if n = s, we have n q = n r s = s r s = r, which, of course, is an integer. So n is a nonzero integer such that nq is an integer. 6

Tautologies 1. P P 2. P T 3. (P F) P 4. (P Q) ( Q P ) 5. (P Q) ( P Q) 6. (P Q) (Q P ) Commutativity 7. (P Q) (Q P ) Commutativity 8. (P P ) P 9. (P P ) P 1.1a (P Q) ( P Q) 1.1b (P Q) P Q 1.1c (P Q) P Q de Morgan Law 1.1d (P Q) P Q de Morgan Law 1.1e ( P ) P 1.2a P P 1.2b (P Q) (Q P ) 1.2c (P Q) ( P Q) 1.2d [(P Q) (Q P )] (P Q) 1.2e [(P Q) (Q R)] (P R) Transitivity 1.2f [(P Q) (Q R)] (P R) Transitivity 1.2g [P (Q R)] [(P Q) (P R)] Distributivity 1.2h [P (Q R)] [(P Q) (P R)] Distributivity 1.2i [(P Q) R)] [P (Q R)] Associativity 1.2j [(P Q) R)] [P (Q R)] Associativity 1.2k ( P Q Q) P 1.3a (P Q) (R P R Q) 1.3b (P Q) (R P R Q) Contradictions 1. P P 2. P F 1.4a (P Q) (P Q) 1.4b [(P Q) P ] Q 1.4c (P Q) P 7