Problem Set 1 Solutions

Similar documents
Quantifiers Here is a (true) statement about real numbers: Every real number is either rational or irrational.

Section 2.1: Introduction to the Logic of Quantified Statements

Solutions to Problem Set 1

Full file at

MATH 3012 N Homework Chapter 9

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

CS103 Handout 09 Fall 2012 October 19, 2012 Problem Set 4

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

PROBLEM SET 3: PROOF TECHNIQUES

Math.3336: Discrete Mathematics. Nested Quantifiers

Mat 243 Exam 1 Review

CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC

4 Quantifiers and Quantified Arguments 4.1 Quantifiers

CS Module 1. Ben Harsha Apr 12, 2017

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

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

1 Predicates and Quantifiers

A Little Deductive Logic

Predicate logic. G. Carl Evans. Summer University of Illinois. Propositional Logic Review Predicate logic Predicate Logic Examples

Section Summary. Section 1.5 9/9/2014

First order Logic ( Predicate Logic) and Methods of Proof

Quantifiers. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing February, 2018

III. Elementary Logic

A Little Deductive Logic

Mathematical Logic Part Three

What is a proof? Proofing as a social process, a communication art.

MAT2345 Discrete Math

6.042/18.062J Mathematics for Computer Science March 9, 2005 Srini Devadas and Eric Lehman. Quiz 1. Ishan Christos Grant

Notes for Recitation 1

Proving logical equivalencies (1.3)

Discrete Structures for Computer Science

THE LOGIC OF QUANTIFIED STATEMENTS

Ch 3.2: Direct proofs

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

Chapter 2: Introduction to Propositional Logic

1.1 Language and Logic

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

6.042/18.062J Mathematics for Computer Science. Induction I

Math 10850, fall 2017, University of Notre Dame

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

CSE 20 Discrete Math. Algebraic Rules for Propositional Formulas. Summer, July 11 (Day 2) Number Systems/Computer Arithmetic Predicate Logic

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

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

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

6.042/18.062J Mathematics for Computer Science. Logic

Lecture 5 : Proofs DRAFT

Foundations of Discrete Mathematics

Semantics I, Rutgers University Week 3-1 Yimei Xiang September 17, Predicate logic

Some Review Problems for Exam 1: Solutions

Discrete Mathematics for CS Spring 2006 Forbes HW 1 Solutions

DO NOT USE WITHOUT PERMISSION

Proof. Theorems. Theorems. Example. Example. Example. Part 4. The Big Bang Theory

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

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

Motivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory

Propositional Calculus. Problems. Propositional Calculus 3&4. 1&2 Propositional Calculus. Johnson will leave the cabinet, and we ll lose the election.

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.

MATH 341, Section 001 FALL 2014 Introduction to the Language and Practice of Mathematics

3 The language of proof

HOMEWORK 1: SOLUTIONS - MATH 215 INSTRUCTOR: George Voutsadakis

cse541 LOGIC FOR COMPUTER SCIENCE

Mathematical Logic Part Three

MATH 135 Fall 2006 Proofs, Part IV

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

CHAPTER 1. MATHEMATICAL LOGIC 1.1 Fundamentals of Mathematical Logic

Foundation of proofs. Jim Hefferon.

1.1 Language and Logic

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

Carmen s Core Concepts (Math 135)

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

Lines, parabolas, distances and inequalities an enrichment class

cs4004/cs4504: formal verification

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

Mathematical Reasoning (Part I) 1

School of Computer Science and Electrical Engineering 28/05/01. Digital Circuits. Lecture 14. ENG1030 Electrical Physics and Electronics

Propositional Logic Not Enough

Introduction to Sets and Logic (MATH 1190)

1.1 Statements and Compound Statements

Logic and Proofs. (A brief summary)

Direct Proofs. the product of two consecutive integers plus the larger of the two integers

CPSC 121 Midterm 1 Tuesday, October 11th, 2011

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

Solving Equations by Adding and Subtracting

A Guide for Making Proofs

Foundations of Advanced Mathematics, version 0.8. Jonathan J. White

Lecture 3 : Predicates and Sets DRAFT

Math Fundamentals of Higher Math

Propositional Logic. Fall () Propositional Logic Fall / 30

CS70 is a course about on Discrete Mathematics for Computer Scientists. The purpose of the course is to teach you about:

Sec$on Summary. Mathematical Proofs Forms of Theorems Trivial & Vacuous Proofs Direct Proofs Indirect Proofs

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

MAT 101 Exam 2 Logic (Part I) Fall Circle the correct answer on the following multiple-choice questions.

The natural numbers. The natural numbers come with an addition +, a multiplication and an order < p < q, q < p, p = q.

Chapter One Complex Numbers

Propositional and Predicate Logic

Background for Discrete Mathematics

Predicate Logic: Syntax

First-Order Logic (FOL)

Thinking of Nested Quantification

Transcription:

6.04/18.06J Mathematics for Computer Science February 1, 005 Srini Devadas and Eric Lehman Problem Set 1 Solutions Due: Monday, February 7 at 9 PM Problem 1. The connectives (and), (or), and (implies) come often not only in computer programs, but also everyday speech. But devices that compute the nand operation are preferable in computer chip designs. Here is the truth table for nand: P Q P nand Q T T F T F T F T T F F T For each of the following expressions, find an equivalent expression using only nand and (not). (a) A B (A nand B) (b) A B ( A) nand ( B) (c) A B A nand ( B) Problem. A self proclaimed great logician has invented a new quantifier, on par with ( there exists ) and ( for all ). The new quantifier is symbolized by U and read there exists a unique. The proposition Ux P (x) is true iff there is exactly one x for which P (x) is true. The logician has noted, There used to be two quantifiers, but now there are three! I have extended the whole field of mathematics by 50%! (a) Write a proposition equivalent to Ux P(x) using only the quantifier, =, and logical connectives. x (P (x) ( y ( (x = y) P (y)))

Problem Set 1 (b) Write a proposition equivalent to Ux P(x) using only the quantifier, =, and logical connectives. x ( P (x) y (x = y P (y))) Problem 3. A media tycoon has an idea for an all news television network called LNN: The Logic News Network. Each segment will begin with the definition of some relevant sets and predicates. The day s happenings can then be communicated concisely in logic notation. For example, a broadcast might begin as follows: THIS IS LNN. Let S be the set {Bill, Monica, Ken, Linda, Betty}. Let D(x) be a predicate that is true if x is deceitful. Let L(x, y) be a predicate that is true if x likes y. Let G(x, y) be a predicate that is true if x gave gifts to y. Complete the broadcast by translating the following statements into logic notation. (a) If neither Monica nor Linda is deceitful, then Bill and Monica like each other. ( (D(Monica) D(Linda))) (L(Bill, Monica) L(Monica, Bill)) (b) Everyone except for Ken likes Betty, and no one except Linda likes Ken. x S (x = Ken L(x, Betty)) (x = Ken L(x, Betty)) x S (x = Linda L(x, Ken)) (x = Linda L(x, Ken)) (c) If Ken is not deceitful, then Bill gave gifts to Monica, and Monica gave gifts to someone. D(Ken) (G(Bill, Monica) x S G(Monica, x)) (d) Everyone likes someone and dislikes someone else. x S y S z S (y = z) L(x, y) L(x, z) The remaining problems will be graded primarily on the clarity of your proofs not on whether you have the right idea. In fact, if you can t figure out the right idea, we ll give it to you just ask your TA!

Problem Set 1 3 Problem 4. Let n be a postive integer. Prove that log n is rational if and only if n is a power of. Assume any basic facts about divisibility that you need; just state your assumptions explicitly. Assumption: If n b is a power of, then n is a power of. Proof. We prove that if n is a power of, then log n is rational and vice versa. First, we prove that if n is a power of, then log n is rational. Assume that n is a power of. Then n = k for some integer k 0. Thus, log n = log k = k, which is a rational number. Next, we prove that if log n is rational, then n is a power of. Assume that log n is rational. That means there exist integers a and b such that: We can rewrite this equation as follows: a log n = b n = a/b n b = a (Take to power of each side.) (Take the b th power of each side.) Thus, n b is a power of. By our assumption, n is a power of. Problem 5. A triangle is a set of three people such that either every pair has shaken hands or no pair has shaken hands. Prove that among every six people there is a triangle. Suggestion: Initially, break the problem into two cases: 1. There exist at least three people who shook hands with person X.. There exist at least three people didn t shake hands with X (Why must at least one of these conditions hold?) Proof. We use case analysis. Let X denote one of the six people. There are two possibilities: 1. There exist three people who shook hands with person X. Now there are two further possibilities: (a) Among these three, some pair shook hands. Then these two and X form a triangle. (b) Among these three, no pair shook hands. Then these three form a triangle.

4 Problem Set 1. Otherwise, at most two people shook hands with person X. Thus, there exist three people who didn t shake hands with X. Again, there are two further possibilities: (a) Among these three, every pair shook hands. Then these three form a triangle. (b) Among these three, some pair didn t shake hands. Then these two and X for a triangle. Problem 6. Let x and y be nonnegative real numbers. The arithmetic mean of x and y is defined to be (x + y)/, and the geometric mean is defined to be xy. Prove that the arithmetic mean is equal to the geometric mean if and only if x = y. Proof. We construct a chain of if and only if implications. The arithmetic mean is equal to the geometric mean if and only if: x + y = xy x + y = xy (x + y) = 4xy x + xy + y = 4xy x xy + y = 0 (x y) = 0 x y = 0 x = y Problem 7. Use case analysis to prove that all integral solutions to the equation subject to these constraints 1 1 1 1 + = + m n e m 3 n 3 e > 0 are in this table: m n e 3 3 6 3 4 1 3 5 30 4 3 1 5 3 30 These equations reveal something fundamental about the geometry of our three dimensional world; we ll revisit them in about three weeks.

Problem Set 1 5 Proof. We use case analysis. Since m 3, one of four cases must hold: 1. m = 3. There are now four subcases: (a) n = 3. Rewriting the equation in the form 1 e = 1 + 1 1 m n and subtituting in m = n = 3 implies that e = 6, which is the first solution. (b) n = 4. Substituting the values of m and n into the equation show that e = 1, which is the second solution. (c) n = 5. Substituting into the equation shows that e = 30, which is the third solution. (d) n 6. This implies: m + n 3 + 6 = Thus, the left side of the equation is strictly less than the right for all e > 0, so there are no solutions in this case.. m = 4. There are two subcases: (a) n = 3. Subsituting gives e = 1, which is the fourth solution. (b) n 4. This implies: + = m + n 4 4 Again, the left side of the equation is strictly less than the right for all e > 0, so there are no solutions in this case. 3. m = 5. There are two subcases: (a) n = 3. Subsituting gives e = 30, which is the fifth solution. (b) n 4. This implies: + < m + n 5 4 Again, the equation can not hold, so there are no solutions in this case. 4. m 6. This implies: + = m + n 6 3 Once more, the equation can not hold, so there are no solutions in this case.