LECTURE 1. Logic and Proofs

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

2-4: The Use of Quantifiers

Introducing Proof 1. hsn.uk.net. Contents

Mathematical Reasoning (Part I) 1

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

1.1 Language and Logic

3 The language of proof

MA103 STATEMENTS, PROOF, LOGIC

1.1 Language and Logic

Connectives Name Symbol OR Disjunction And Conjunction If then Implication/ conditional If and only if Bi-implication / biconditional

Solutions to Homework Set 1

Proofs. Joe Patten August 10, 2018

STRATEGIES OF PROBLEM SOLVING

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.

Basic Logic and Proof Techniques

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

Math Real Analysis

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

A Little Deductive Logic

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

Chapter 1 Elementary Logic

- 1.2 Implication P. Danziger. Implication

CSC Discrete Math I, Spring Propositional Logic

A Little Deductive Logic

1.1 Statements and Compound Statements

More examples of mathematical. Lecture 4 ICOM 4075

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

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

Foundations of Discrete Mathematics

Section 3.1: Direct Proof and Counterexample 1

Some Review Problems for Exam 1: Solutions

Logic and Proofs. (A brief summary)

AMTH140 Lecture 8. Symbolic Logic

Manual of Logical Style (fresh version 2018)

Section 1.3. Let I be a set. When I is used in the following context,

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

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Logic. Quantifiers. (real numbers understood). x [x is rotten in Denmark]. x<x+x 2 +1

CS 2800: Logic and Computation Fall 2010 (Lecture 13)

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

CITS2211 Discrete Structures Proofs

Math 10850, fall 2017, University of Notre Dame

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

Chapter 2: The Logic of Quantified Statements

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

Compound Propositions

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Discrete Mathematics for CS Fall 2003 Wagner Lecture 3. Strong induction

Math 38: Graph Theory Spring 2004 Dartmouth College. On Writing Proofs. 1 Introduction. 2 Finding A Solution

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

Math 300 Introduction to Mathematical Reasoning Autumn 2017 Proof Templates 1

Contradiction MATH Contradiction. Benjamin V.C. Collins, James A. Swenson MATH 2730

Manual of Logical Style

Discrete Mathematics and Probability Theory Fall 2012 Vazirani Note 1

Writing proofs for MATH 61CM, 61DM Week 1: basic logic, proof by contradiction, proof by induction

COT 2104 Homework Assignment 1 (Answers)

1 Propositional Logic

Logic, Sets, and Proofs

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

Foundation of proofs. Jim Hefferon.

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

HANDOUT AND SET THEORY. Ariyadi Wijaya

1. Propositions: Contrapositives and Converses

1.5 MATHEMATICAL LANGUAGE

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

Mat 243 Exam 1 Review

GENERAL MATHEMATICS 11

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

Logic. Def. A Proposition is a statement that is either true or false.

Writing proofs for MATH 51H Section 2: Set theory, proofs of existential statements, proofs of uniqueness statements, proof by cases

EECS 1028 M: Discrete Mathematics for Engineers

Day 5. Friday May 25, 2012

Glossary of Logical Terms

Note: The area of logic that deals with propositions is called the propositional calculus or propositional logic.

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

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

Logic and Propositional Calculus

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

Propositional Logic. Fall () Propositional Logic Fall / 30

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland

The statement calculus and logic

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

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

Proofs. Chapter 2 P P Q Q

MATH 135 Fall 2006 Proofs, Part IV

CSE 20 DISCRETE MATH. Winter

PHIL 422 Advanced Logic Inductive Proof

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

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

Logic and Proofs. (A brief summary)

CHAPTER 1. MATHEMATICAL LOGIC 1.1 Fundamentals of Mathematical Logic

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

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

First order Logic ( Predicate Logic) and Methods of Proof

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

Inference and Proofs (1.6 & 1.7)

CS280, Spring 2004: Final

Sets and Logic Linear Algebra, Spring 2012

CS 340: Discrete Structures for Engineers

Some Basic Logic. Henry Liu, 25 October 2010

Transcription:

LECTURE 1 Logic and Proofs The primary purpose of this course is to introduce you, most of whom are mathematics majors, to the most fundamental skills of a mathematician; the ability to read, write, and understand proofs. This is a course where proofs matter more than the material covered. That said, I should also stress that this is not supposed to be a killer course. Yes, we are going to be rigorous and meticulous; but we will take our time to cover the material. And while we will be often dealing in abstractions; we shall be doing so to develop concrete ways of handling far reaching concepts. 1. Basic Logic 1.1. Statements. In order to get our bearings, let us begin with a discussion of logic and proof. Much of this discussion will appear as common sense. However, not all common sense is logical, nor does every common sensical argument constitute a proof. For this reason, we must delineate from the start, exactly what constitutes a logical argument. D 1.1. A statement is a declarative sentence that is either true or false. Each of the following sentences is a statement: Every square has four sides. π is a rational number. Orange is the best color. Note that in the last example is a statement, even though one has no means of verifying its truth or falsity (except perhaps by clarifying what one means by the best ). Let us now lay out the means by which we manipulate statements in a logical manner. 1.2. Compound Statements. Suppose P and Q are statements. Then we can form new statements by connecting the two statements by the connectives and and or. If P and Q are statements, then P and Q is a true statement only if P and Q are both true; otherwise P and Q is false. Thus, P and Q is true {P is true and Q is true. P and Q is false P is true and Q is false. Q is true and P is false. Q is false and P is false. 1

1. BASIC LOGIC 2 If P and Q are statements, then P or Q is a true statement if P is true, Q is true, or P and Q is true. Thus, P or Q is true Q is true and P is true. P is true and Q is false. Q is true and P is false. P or Q is false {Q is false and P is false. One must be a little careful here, because the logical connective or is a particular usage of the English conjuction or. For in English the conjunction or can be used in such a way as to exclude one or the other of two possibilities: Or it can be used to include two possibilities: The result of a coin toss is either head or tails. I need 6 or 7 dollars. In mathematics, one always uses the logical connective or in the inclusive sense. So there are always three possibilities if P or Q is a true mathematical statement: P is true and Q is true. P or Q is true P is true and Q is false. Q is true and P is false. Occassionally we ll run into composite statements that have both or and and conjunctives. In such cases we have to be careful how we associate the conjunctives To see what can happen consider the following table (S 1 and S 2 ) or S 3 S 1 and (S 2 or S 3 ) S 1 S 2 S 3 (S 1 and S 2 ) (S 1 and S 3 ) S 1 and (S 2 or S 3 ) (S 1 and S 2 ) or (S 1 and S 3 ) F F F F F F F F F T F F F F F T F F F F F F T T F F F F T F F F F F F T F T F T T T T T F T F T T T T T T F T T Here we have simply listed all the possibilities for the truth or falsity of three statements S 1, S 2, and S 3 and computed the composite statements S 1 and (S 2 or S 3 ) and (S 1 and S 2 ) or (S 1 and S 3 ). Evidently, Similarly, the table S 1 and (S 2 or S 3 ) (S 1 and S 2 ) or (S 1 and S 3 )

1. BASIC LOGIC 3 S 1 S 2 S 3 (S 2 and S 3 ) (S 1 or S 2 ) (S 1 or S 3 ) S 1 or (S 2 and S 3 ) (S 1 or S 2 ) and (S 1 or S 3 ) F F F F F F F F F F T F F T F F F T F F T F F F F T T T T T T T T F F F T T T T T F T F T T T T T T F F T T T T T T T T T T T T shows S 1 or (S 2 and S 3 ) (S 1 or S 2 ) and (S 1 or S 3 ) In summary, L 1.2. Let S 1, S 2 and S 3 be logical statements. Then and S 1 and (S 2 or S 3 ) (S 1 and S 2 ) or (S 1 and S 3 ) S 1 or (S 2 and S 3 ) (S 1 or S 2 ) and (S 1 or S 3 ) R 1.3. Note the similarity of these rules with the way multiplication distributes over addition: a (b + c) = (a b) + (a c) You can thus think of the first conclusion of Lemma 1.2 as saying the conjuctive and distributes over the conjuctive or and that the second conclusion is equivalent to saying that the conjuctive and distributes over the conjuctive or. 1.3. Universal Quantifiers. The following statements contain universal quantifiers. For all real numbers x, x 2 1. All triangles have three sides. For each real number a, a 2 0. Notice that in each of the statements above, a property is attributed to all members of a set; this is what we mean by a universal quantifier. We ll use the short hand every a A is B to indicate the basic template for a statement with a universal qualifier (even though we have a variety of ways of phrasing such statements). 1.4. Existential Quantifiers. The following statements contain existential quantifiers Some integers are prime. There exists a integer between 7.5 and 9.1. There exists an irrational real number. Notice that in each of these statements a property is attributed to at least one element of a set; this is what one means by a existential quantifier. We ll use the short hand at least one a A is B to indicate the basic template for a statement with an existential qualifier (even though we have a variety of ways of phrasing such statements).

1. BASIC LOGIC 4 1.5. Negation. The, not-p, of a statement P is the statement such that not-p is true exactly when P is false, and not-p is false exactly when P is true. In most cases you can transform a statement into its by inserting a not in the appropriate place. A is B. A is not B. The of compound statements works as follows: The of P and Q is not-p or not-q. The of P or Q is not-p and not-q. The of universal and existential quantifiers works as follows: The of a statement with a universal quantifier is a statement with an existential quantifier. For example, the of the statement which has a universal quantifier is The of a statement with an existential quantifier is a statement with a universal quantifier. All crayons are blue, Not all crayons are blue which if true, would of course imply that at least one crayon was not blue; i.e. a statement with an existential quantifier. Note: Be careful with negatitng statements that seem to use an existential qualifier, but without restricting members of a set to satisfy a condition. For example, the statement of there exist infinitely many primes is not of the form There exists at least one A that is B ; and its there does not exists an infinite number of primes does not involve a universal qualifier. In summary A is B A and B A or B every a A is B at least one a A is B A is not B not-a or not-b not-a and not-b at least one a A is not-b every a A is not-b 1.6. Conditional Statements. In mathematics one deals primarily with conditional statements; that is to say statements of the form If P, then Q. which is written symbolically as P Q.

1. BASIC LOGIC 5 Such a statement means that the truth of P guarantees the truth of Q. More explicitly i P Q is true if Q is true whenever P is true. i P Q is false if Q can be false when P is true. The statement P is called the hypothesis, or premise, and the statement Q is called the conclusion. Here are some examples: If x and y are integers, then x + y is an integer. x 0 x 2 > 0. There are several ways of phrasing a conditional statement, all of which mean the same thing: If P, then Q. P implies Q. P is suffi cient for Q. Q provided that P. Q whenever P. 1.7. The Contrapositive of a Conditional Statement. The contrapositive of a conditional statement If P, then Q is the conditional statement If not-q, then not-p. For example, the contrapositive of If x < 6, then x < 8 is or, equivalently, If x is not less than 8, then x is not less than 6 If x 8, then x 6. In this example, the truth of the original conditional statement seems to guarantee the truth of its contrapositive. In fact, The conditional statement P Q is equivalent to its contrapositive not-q not-p. Let s prove P Q implies not-q not-p. By hypothesis, if P is true, then Q is true. Suppose not-q is true. Then Q is false. But then P can not be true, since that would contradict our hypothesis. So not-p must be true. 1.8. The Converse of a Conditional Statement. The converse of the conditional statement is the conditional statement P Q Q P. It is important to note that the truth of a conditional statement does not imply the truth of its converse. For example, it is true that but the converse of this statement is certainly not true. If x is an integer, then x is a real number; If x is a real number, then x is an integer,

1. BASIC LOGIC 6 However, there are some situations in which both a conditional statement and its converse are true. For example, both If the integer x is even, then the integer x + 1 is odd and its converse If integer x + 1 is odd, then the integer x is even are true. We can state this fact more succinctly by saying The integer x is even if and only if the integer x + 1 is odd. More generally, the statement P if and only if Q which may be abbreviated P iff Q or P Q means P Q and Q P. P if and only if Q is called a biconditional statement. When P Q is a true biconditional statement, P is true exactly when Q is true, and so the statements P and Q can be regarded as equivalent statements (when inserted in other statements). E 1.4. Negate the following statements. (a) Every polynomial can be factored. The of this statement would be not every polynomial can be factored. Or There exists at least one polynomial that cannont be factored. But note that one has to be careful about trying to achieve a by haphazardly inserting a not in the statement. For example, the of Every polynomial can be factored is not Every polynomial cannot be factored. It might help to remember that the of a universal qualifier (like every ) should involve an existential qualifier (like there exists ) (b) There is at least one solution of f(x) = 0. The of a statement with an existential qualifier should involve a universal qualifier. However, the most common sensical way of negating There is at least one solution of f(x) = 0 might be There aren t any solutions of f (x) = 0. But this last statement is equivalent to For all x, f(x) 0. (c) x is even and divisible by 3. A of statement involving the conjuctive and should involve the conjuctive or. The of x is even and divisible by 3 is x is not even or not divisible by 3. (d) Bob lives in Tulsa or Oklahoma City. A of statement involving the conjuctive or should involve the conjuctive and. The of Bob lives in Tulsa or Oklahoma City is Bob does not live in Tulsa and Bob does not live in Oklahoma City. E 1.5. Formulate a contrapositive for each of the following conditional statements. If x is divisible by 2 then x 2 is divisible by 4 P = x is divisible by 2 not-p = x is not divisible by 2 Q = x 2 is divisible by 4 not-q = x2 is not divisible by 4 and so the contrapositive not-q not-p is If x 2 is not divisible by 4, then x is not divisible by 2

1. BASIC LOGIC 7 If x is even and divisible by 3 then x 2 is divisible by 4 and 9. P = x is even and divisible by 3 not-p = x is not even or not divisible by 2 Q = x 2 is divisible by 4 and 9 not-q = x2 is not divisible by 4 or not divisible by 9 The contrapositive of the original statement is thus If x 2 is not divisible by 4 or not divisible by 9, then x is not even or not divisible by 2 If there exists one solution of f = f, then there are infinitely many solutions. P = there is one solution of f = f not-p = there are no solution of f = f Q = there are infinitely many solutions not-q = there are not infinitely many solutions Thus the contrapositive is If there are not infinitely many solutions, then there are no solutions of f = f. Note that in this example, we are using the existential qualifiers there is/are in both P and Q, as well as in their s. Thus, one doesn t always have to replace existential qualifiers with universal qualifiers upon. In fact, in this example one has to think a bit how to negate P in such a way that its uses a universal qualifier. Here s one way: P = There exists one function satisfying f = f not-p = Every function satisfies f f. We can t do a similar thing with the statement Q, there are infinitely many solutions, because it is not really a statement about the existence of elements with a particular property that have a particular property. Rather it is a statement about the size of a certain set (the set of solutions). The moral of the last example is that often times is better to simply employ your natural mathematical instincts than try to negate statements by adherring to fixed set of logic rules.