Notes for Recitation 1

Similar documents
HOMEWORK 1: SOLUTIONS - MATH 215 INSTRUCTOR: George Voutsadakis

Mat 243 Exam 1 Review

1.1 Language and Logic

Propositional Logic. Spring Propositional Logic Spring / 32

LOGIC CONNECTIVES. Students who have an ACT score of at least 30 OR a GPA of at least 3.5 can receive a college scholarship.

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

Introduction to Decision Sciences Lecture 2

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

A Little Deductive Logic

Propositional Logic. Fall () Propositional Logic Fall / 30

A Little Deductive Logic

MAT2345 Discrete Math

1.1 Language and Logic

THE LOGIC OF COMPOUND STATEMENTS

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

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

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

Chapter 1 Elementary Logic

Truth Table Definitions of Logical Connectives

Introduction to Sets and Logic (MATH 1190)

EECS 1028 M: Discrete Mathematics for Engineers

Sets and Logic Linear Algebra, Spring 2012

Glossary of Logical Terms

2 Truth Tables, Equivalences and the Contrapositive

GÖDEL S COMPLETENESS AND INCOMPLETENESS THEOREMS. Contents 1. Introduction Gödel s Completeness Theorem

Foundation of proofs. Jim Hefferon.

Lecture 11: Measuring the Complexity of Proofs

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Logic and Proofs 1. 1 Overview. 2 Sentential Connectives. John Nachbar Washington University December 26, 2014

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

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

Proofs. Joe Patten August 10, 2018

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Gödel s Incompleteness Theorems

Chapter 1: Formal Logic

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

3 The language of proof

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

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

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

DISCRETE MATHEMATICS BA202

CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC

Math 10850, fall 2017, University of Notre Dame

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

6.042/18.062J Mathematics for Computer Science. Logic

Equivalence and Implication

MATH 215 Discrete Mathematics Worksheets. Which of these are propositions? What are the truth values of those that are propositions?

Section 1.2: Conditional Statements

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

Handout on Logic, Axiomatic Methods, and Proofs MATH Spring David C. Royster UNC Charlotte

Math 414, Fall 2016, Test I

Introduction to Metalogic

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

Chapter 1, Section 1.1 Propositional Logic

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

Solutions for the fourth week s homework Math 131

CSC Discrete Math I, Spring Propositional Logic

FORMAL PROOFS DONU ARAPURA

Mathematical Logic Part One

Math 3336: Discrete Mathematics Practice Problems for Exam I

Packet #1: Logic & Proofs. Applied Discrete Mathematics

5. And. 5.1 The conjunction

CMPSCI 601: Tarski s Truth Definition Lecture 15. where

MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG

1.1 Statements and Compound Statements

5. And. 5.1 The conjunction

Section 2.1: Introduction to the Logic of Quantified Statements

Stanford University CS103: Math for Computer Science Handout LN9 Luca Trevisan April 25, 2014

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

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

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

Computer Science 280 Spring 2002 Homework 2 Solutions by Omar Nayeem

Methods of AI. Practice Session 7 Kai-Uwe Kühnberger Dec. 13 th, 2002

Supplementary Logic Notes CSE 321 Winter 2009

Math 13, Spring 2013, Lecture B: Midterm

We have seen that the symbols,,, and can guide the logical

STRATEGIES OF PROBLEM SOLVING

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

CSCE 222 Discrete Structures for Computing. Review for the Final. Hyunyoung Lee

Compound Propositions

Logic for Computer Science - Week 4 Natural Deduction

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

Homework assignment 1: Solutions

1 Propositional Logic

CSE 20 DISCRETE MATH. Winter

III. Elementary Logic

UNIT-I: Propositional Logic

8. Reductio ad absurdum

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

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

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

Topics in Logic and Proofs

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Mathematical Logic Part One

Introduction to Basic Proof Techniques Mathew A. Johnson

Russell s logicism. Jeff Speaks. September 26, 2007

Logic and Proof. On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes!

Section L.1- Introduction to Logic

Truth Tables for Propositions

Proving logical equivalencies (1.3)

Transcription:

6.042/18.062J Mathematics for Computer Science September 10, 2010 Tom Leighton and Marten van Dijk Notes for Recitation 1 1 Logic How can one discuss mathematics with logical precision, when the English language is itself riddled with ambiguities? or example, imagine that you ask a friend what kind of dessert was offered at the party you couldn t make it to last week, and your friend says, You could have cake or ice cream. Does this mean that you could have both cake and ice cream? Or does it mean you had to choose either one or the other? To cope with such ambiguities, mathematicians have defined precise meanings for some key words and phrases. urthermore, they have devised symbols to represent those words. or example, if P is a proposition, then not P is a new proposition that is true whenever P is false and vice versa. The symbolic representation for not P is P or P. Two propositions, P and Q, can be joined by and, or, implies, or if and only if to form a new proposition. The truth of this new proposition is determined by the truth of P and Q according to the table below. Symbolic equivalents are given in parentheses. P implies Q or P if and only if Q or P and Q P or Q if P, then Q P iff Q P Q (P Q) (P Q) (P Q) T (P Q) T T T T T T T T T T T T There are a couple notable features hidden in this table: The phrase P or Q is true if P is true, Q is true, or both. Thus, you can have your cake and ice cream too. The phrase P implies Q (equivalently, if P, then Q ) is true when P is false or Q is true. Thus, if the moon is made of green cheese, then there will be no final in 6.042 is a true statement.

Recitation 1 2 There are two more important phrases in mathematical writing: for all (symbolized by ) and there exists (symbolized by ). These are called quantifiers. A quantifier is always followed by a variable (and perhaps an indication of the range of that variable) and then a predicate, which typically involves that variable. Here are two examples: x x R + e < (1 + x) 1+x n N 2 n > (100n) 100 x The first statement says that e is less than (1 + x) 1+x for every positive real number x. The second statement says that there exists a natural number n such that 2 n > (100n) 100. The special symbols such as,,, and are useful to logicians trying to express mathematical ideas without resorting to English at all. And other mathematicians often use these symbols as a shorthand. We recommend using them sparingly, however, because decrypting statements written in this symbolic language can be challenging! 2 Proving an Implication Let s try to prove the following theorem. Theorem 1. Let P (a, b) be any predicate defined for all a A and b B. Then: ( ) ( ) a A b B P (a, b) b B a A P (a, b) Yuck! Now you know you re in a math class! Let s impose a specific interpretation in order to give concrete meaning to this claim. Define: A = {6.042 students} B = {6.042 lectures} P (a, b) = student a falls asleep during lecture b Interpreting the left side in these terms gives: a A b B P (a, b) = there exists a student that falls asleep in every lecture So this side asserts that some particular student let s call him Snoozer always falls asleep. Now on the right side, we have: b B a A P (a, b) = in every lecture, some student falls asleep This is a slightly different assertion, because there might be a different sleeper in each lecture. Intuitively, the left side should imply the right; if Snoozer sleeps in every lecture, then in every lecture some student is surely asleep.

Recitation 1 3 The implication in Theorem 1 is actually true for every predicate P and choice of sets A and B. A universally-true statement, like this one, is called a validity. (Every tautology (cf. Lecture Notes 9/4, p.6) is a validity, but validities may also involve quantifiers.) The converse of an implication P Q is the reverse implication Q P. In this case, the converse is: ( ) ( ) b B a A P (a, b) a A b B P (a, b) Under our interpretation, this says, If in every lecture some student falls asleep, then there is some student who falls asleep in every lecture. This is not necessarily true, although it might be true for certain choices of predicate and sets. But since the truth of this converse proposition depends on the particular choice of predicate and sets, it is not a validity. Anyway, let s prove the theorem. Proof. We consider two cases. Case 1: Suppose that the left side of the implication is false. Then the claim as a whole is true by default. Case 2: Suppose that the left side of the implication is true. Then there exists some element a 0 A such that P (a 0, b) is true for all b B. Thus, for all b B there exists an a A (namely, a 0 ) such that P (a, b) is true. Therefore, the right side of the implication is also true. In both cases, the left side implies the right side, and so the theorem holds. Broadly speaking, we just proved that P Q for some nasty-looking propositions P and Q. When P was false (case 1), the implication held trivially. When P was true (case 2), we had to do some work to show that Q was also true. Every implication proof has this same structure: all the substance is in case 2. Thus, ordinarily no one even bothers to write down case 1 or even to identify two cases! Instead, when proving an implication, you may dispense with everything except for the body of case 2; the boxed text alone is considered a valid proof of the theorem. In summary, in order to prove that P implies Q, you should assume that P is true and prove that Q is also true subject to that assumption.

Recitation 1 4 3 Team Problem: A Mystery A certain cabal within the 6.042 course staff is plotting to make the final exam ridiculously hard. ( Problem 1. Prove that the axioms of mathematics are complete and consistent. Express your answer in Mayan hieroglyphics. ) The only way to stop their evil plan is to determine exactly who is in the cabal. The course staff consists of nine people: {Oscar, Stav, Darren, Patrice, David, Nick, Martyna, Marten, Tom} The cabal is a subset of these nine. A membership roster has been found and appears below, but it is deviously encrypted in logic notation. The predicate incabal indicates who is in the cabal; that is, incabal(x) is true if and only if x is a member. Translate each statement below into English and deduce who is in the cabal. (i) x y z (x = (ii) y x z y z incabal(x) incabal(y) incabal(z)) Solution. A direct English paraphrase would be There exist people we ll call x, y, and z, who are all different, such that x, y and z are each in the cabal. A better version would use the fact that there s no need in this case to give names to the people. Namely, a better paraphrase is, There are 3 different people in the cabal. Perhaps a simpler way to say this is, The cabal is of size at least 3. (incabal(stav) incabal(david)) Solution. Stav and David are not both in the cabal. Equivalently: at least one of Stav and David is not in the cabal. (iii) ((incabalmartyna) incabal(patrice)) x incabal(x) Solution. If either Martyna or Patrice is in the cabal, then everyone is. (iv) incabal(stav) incabal(david) Solution. If Stav is in the cabal, then David is also. (v) incabal(darren) incabal(martyna) Solution. If Darren is in the cabal, then Martyna is also. (vi) (incabal(oscar) incabal(nick)) incabal(tom) Solution. If either of Oscar or Nick is in the cabal, then Tom is not. Equivalently, if Tom is in the cabal, then neither Oscar nor Nick is. (vii) (incabal(oscar) incabal(david)) incabal(marten)

Recitation 1 5 Solution. If either of Oscar or David is in the cabal, then Marten is not. Equivalently, if Marten is in the cabal, then neither Oscar nor David is. So much for the translations. We now argue that the only cabal satisfying all seven propositions above is one whose members are exactly Oscar, David, and Nick. We first observe that by (ii), there must be someone either Stav or David who is not in the cabal. But if either Martyna or Patrice were in the cabal, then by (iii), everyone would be. So we conclude by contradiction that Martyna and Patrice are not in the cabal. (1) Now consider that (v) implies its contrapositive: if Martyna is not in the cabal, then neither is Darren. Therefore, since Martyna is not in the cabal, Darren is not in the cabal. (2) Next observe that if Stav were in the cabal, then by (iv), David would be too, contradicting (ii). So by again contradiction, we conclude that Stav is not in the cabal. (3) Now suppose Tom is in the cabal. Then by (vi), Oscar and Nick are not. We already know Martyna, Patrice, Darren, and Stav are not in the cabal, leaving only three who could be Tom, Marten, and David. But by (i) the cabal must have at least three members, so it follows that the cabal must consist of exactly these three. This proves: Lemma 2. If Tom is in the cabal, then Marten and David are in the cabal. But by (vii), if David is the cabal, then Marten is not. That is, Lemma 3. David and Marten cannot both be in the cabal. Now from Lemma 3 we conclude that the conclusion of Lemma 2 is false. So by contrapositive, the hypothesis of Lemma 2 must also be false, namely, Tom is not in the cabal. (4) inally, suppose Marten is in the cabal. Then by (vii), Oscar and David are not, and we already know Martyna, Patrice, Darren, Stav, and Tom are not. So the cabal must consist of at most two people (Marten and Nick). This contradicts (i), and we conclude by contradiction that Marten is not in the cabal. (5) So the only remaining people who could be in the cabal are Oscar, David, and Nick. Since the cabal must have at least three members, we conclude that

Recitation 1 6 Lemma 4. The only possible cabal consists of Oscar, David, and Nick. But we re not done yet: we haven t shown that a cabal consisting of Oscar, David, and Nick actually does satisfy all seven conditions. So let A = {Oscar, David, Nick}, and let s quickly check that A satisfies (i) (vii): A = 3, so A satisfies (i). Stav is not in A, so A satisfies (ii) and (iv). Neither Martyna nor Patrice is in A, so the hypothesis of (iii) is false, which means that A satisfies (iii). Darren is not in A, so A satisfies (v). inally, Tom and Marten are not in A, so the conclusions of both (vi) and (vii) are true, and so A satisfies (vi) and (vii). So now we have proved Proposition. {Oscar, David, Nick} is the unique cabal satisfying conditions (i) (vii).

MIT OpenCourseWare http://ocw.mit.edu 6.042J / 18.062J Mathematics for Computer Science all 2010 or information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.