Basic Logic and Proof Techniques

Size: px
Start display at page:

Download "Basic Logic and Proof Techniques"

Transcription

1 Chapter 3 Basic Logic and Proof Techniques Now that we have introduced a number of mathematical objects to study and have a few proof techniques at our disposal, we pause to look a little more closely at basic logic. 3.1 Logical Statements and Truth Tables Statements and their negations Outside of mathematics, we use the word statement as a synonym for declarative sentence. Thus in ordinary English, Today is Tuesday Mozart is the greatest composer are both statements. In logic and mathematics, a statement must have a truth value. Thus Today is Tuesday is a valid logical statement because it is either true or false, but Mozart is the greatest composer can not be assigned a truth value - it is an opinion. For a given statement p, we define its negation to be the statement with the opposite truth value. We denote the negation of p by p. Forming the negation of a simple statement is often very easy. For example, for the statement the negation is p: Today is Tuesday, p: Today is not Tuesday. As another example, let n N and consider q: n 3 > 0. 1

2 2 CHAPTER 3. BASIC LOGIC AND PROOF TECHNIQUES Its negation is q: n Combining statements Given statements p and q, we can combine them to form the new statements p q (p and q) and p q (p or q). The former is true only if both p is true and q is true. The latter is true if p is true, if q is true, or if both are true. Because such verbal descriptions can be cumbersome and confusing, we often use a truth table instead. Let s look first at the truth table for p q. The first two columns give all possible combinations of truth values for p and q. The final column for p q indicates the truth value of p q given the truth values for p and q in that row. p q p q T T T T F F F T F F F F Next, we show the truth table for p q. p q p q T T T T F T F T T F F F Remark 1. In English, the word or can be used in two different ways - as an exclusive or or as an inclusive or. To understand the difference, consider the following statements: All dinners are served with soup or salad. Everyone in this class has taken either Linear Algebra or Calculus III. You probably understand the first sentence to mean that you may have soup with your dinner or you may have salad with your dinner, but you may not have both. On the other hand, you would not consider the second sentence to be false if there were a student who has taken both courses. Whether the or in an English sentence is to be interpreted as an exclusive or inclusive or depends on the context, and this can be a source of confusion. To avoid this confusion in mathematics we agree that we will use the inclusive or. Example We make a truth table for the statement p q. The truth table only needs to have three columns - one for p, one for q, and one showing how the truth value of p q depends on the truth value of p and q. We find it useful, however, to include an intermediate column for q.

3 3.1. LOGICAL STATEMENTS AND TRUTH TABLES 3 p q q p q T T F F T F T T F T F F F F T F Exercise Make a truth table for each statement: (a) (p q) (b) (p q) (c) p q (d) p q. Look at the final columns. What do you observe? Implications Next we discuss one of the most important logical relations between two statements, namely the implication p q, read p implies q or if p, then q. For example, for the statements the statement p q is p: Today is Monday q: The cafeteria is serving pizza for lunch, If today is Monday, then the cafeteria is serving pizza for lunch. The truth table for p q follows. p q p q T T T T F F F T T F F T In the implication p q, we call p the hypothesis and q the conclusion. Note that p q is only false when the hypothesis p is true but the conclusion q is false. In terms of our example, p q is true if it is indeed Monday and the cafeteria is serving pizza. If it is Monday, but the cafeteria is not serving pizza, p q is false. This much seems to be common sense. But what truth value should we attach to p q if the hypothesis p is false, that is, if it is not Monday? We agree that if the hypothesis is false, we will interpret p q as true. Given an implication p q, we can form three related implications. Definition Let p and q be statements. The converse of p q is the implication q p, the inverse of p q is p = q, and the contrapositive of p q is q p.

4 4 CHAPTER 3. BASIC LOGIC AND PROOF TECHNIQUES For example, the converse of If it is Monday, then the cafeteria is serving pizza for lunch is If the cafeteria is serving pizza for lunch, then it is Monday. Two logical statements are called equivalent if one is true precisely when the other is true, i.e., if their truth tables are identical. It is intuitively clear from this example that a statement and its converse are not equivalent; the fact that if it is Monday the cafeteria is serving pizza does not mean that the cafeteria only serves pizza on Monday. To see in general that a statement and its converse are not logically equivalent, let s look at the truth tables for both. p q p q q p T T T T T F F T F T T F F F T T For some choices of statements p and q, both of the implications p q and q p are true. In this case, we write p q, read p if and only if q. For our example, the inverse of If it is Monday, then the cafeteria is serving pizza is If it is not Monday, then the cafeteria is not serving pizza. Again, our intuition tells us that the inverse of an implication is not logically equivalent to the implication. The truth tables confirm this intuition. We add some intermediate columns for p and q to make filling in the final column easier. p q p q p q p q T T F F T T T F F T F T F T T F T F F F T T T T The contrapositive of the implication If it is Monday, then the cafeteria is serving pizza is If the cafeteria is not serving pizza, then it is not Monday. The contrapositive is indeed logically equivalent to the original statement, as the truth tables show. p q p q p q q p T T F F T T T F F T F F F T T F T T F F T T T T

5 3.2. QUANTIFIED STATEMENTS AND THEIR NEGATIONS 5 Exercise For each of the implications below, identify the hypothesis p and the conclusion q. Then form the converse, inverse, and contrapositive of each implication. 1. Let n be an integer. If n 1, then n Let m and n be integers. If m > 0 and n > 0, then mn > If a person was born in the United States, then that person is a United States citizen. Exercise Show that (p q) is equivalent to p q by making the truth tables. 3.2 Quantified Statements and Their Negations Universally quantified statements are statements about all elements of a set, such as For any triangle, the angle measures sum to 180 For every integer n, n 2 > 0 All leopards have spots. Generally, universally quantified statements can be written in the form For all x S, p, where p is a statement. Sometimes, in place of for all we use the symbol and write x S, p. We will not always use precisely this wording. Phrases like for all, for every, for any, and for each are synonymous. A universally quantified statement can even have the form of the last statement, All leopards have spots, which could be (pedantically) rewritten as Let S be the set of leopards. For all x S, x has spots. Existentially quantified statements are statements about the existence of an element of a set with a certain property, such as There exists a rational number r such that r 2 = 144 There exists a continuous function f : (0, 1) R that is unbounded There exists a leopard with no spots. Sometimes, in place of there exists we use the symbol. Generally, an existentially quantified statement has the form x S such that p,

6 6 CHAPTER 3. BASIC LOGIC AND PROOF TECHNIQUES where p is a statement. Example Some statements are very complicated, involving several quantifiers, such as or For every a R with a > 0, there exists a real number x such that x 2 = a, For every ε > 0, there exists N N such that, for all n N, 2 n < ε. For every mathematical statement, it is either true or its negation is true. Thus when you are trying to do mathematics, you are often simultaneously considering a statement and its negation, trying to determine which one is true. It is therefore very important to be able to negate even very complicated mathematical statements. How do we form the negation of a universally quantified statement? Consider, for example, the statement All leopards have spots. In order for this statement to be false (and its negation true), it need not be the case that no leopard has spots; the statement will be false if there is a single leopard without spots. Thus the negation is Similarly, the negation of is There exists a leopard with no spots. For every integer n, n 2 > 0 There exists an integer n such that n 2 0. In general, the negation of the universally quantified statement x S, p is the existentially quantified statement x S such that p. On the other hand, the negation of the existentially quantified statement is the universally quantified statement x S such that p x S, p. Of course we can negate a complicated statement with nested quantifiers. Example Let us negate the second statement in Example 3.2.1, namely For every ε > 0, there exists N N such that, for all n N, 2 n < ε.

7 3.2. QUANTIFIED STATEMENTS AND THEIR NEGATIONS 7 Note that this statement is of the form where p is the statement Thus the negation is For every ε > 0, p, p: There exists N N such that, for all n N, 2 n < ε. There exists ε > 0 such that p. Our task is now to negate p, which is itself a quantified statement of the form where q is the statement Thus the negation of p is Finally, we need to negate q: p: There exists N N such that q, q: For all n N, 2 n < ε. p: For all N N, q. q: There exists n N such that 2 n ε. Putting the pieces together gives the negation of the original statement: There exists ε > 0 such that, for all N N, there exists n N such that 2 n ε. Exercise Negate each of the following statements. (a) All students take calculus (b) There exists a natural number n for which n > n 2. (c) There exists M N such that, for every n N, a n M Writing implications as quantified statements Consider the following statement about an integer n: If n is an integer, then n 2 > 0. This statement is written in the form of an implication p q where p is the statement n is an integer and q is the statement n 2 > 0. We could also write p q as a universally quantified statement: For all n Z, n 2 > 0.

8 8 CHAPTER 3. BASIC LOGIC AND PROOF TECHNIQUES Rewriting the implication as a universally quantified statement may make it clearer to us what we must do to prove that it is false; we must prove its negation: There exists n Z such that n 2 0. Exercise Write each implication as a universally-quantified statement. Then negate the statement. Finally, determine whether each statement is true or false. 1. If n is an even integer, n 2 is divisible by If x, y R, x 3 + y Let x R. If x 2 < 1 100, x2 4 < Proof Techniques Direct Proof The most obvious way to prove that p implies q is to assume that p is true and to show that q follows. Such a proof is called a direct proof. Proposition Let m, n Z. If m and n are odd, then m + n is even. Proof. Because m and n are odd, there exist integers j and k such that m = 2j + 1 and n = 2k + 1. Then, m + n = (2j + 1) + (2k + 1) = 2j + 2k + 2 = 2(j + k + 1). Because j + k + 1 is an integer, m + n is indeed divisible by 2. That is, m + n is even. Exercise Let n Z. Give a direct proof of the proposition: If n is odd, n 2 is odd Proof by contradiction Here s the idea: we want to prove statement p, but we can t find a direct proof. We thus suppose instead that p is false and show that this assumption implies some other statement we know to be false. We may then conclude that p is true. We illustrate with a simple example. Proposition There is no smallest positive rational number.

9 3.3. PROOF TECHNIQUES 9 Proof. The proof is by contradiction. Thus suppose there is a smallest positive rational number r. Consider a = 1 2r. Because the rational numbers are closed under multiplication, a is rational. Furthermore, because 0 < 1 2 < 1 and r > 0, 0 < 1 2r < r, or, equivalently, 0 < a < r. Thus we have found a positive rational number smaller than r. Because r was assumed to be the smallest positive rational number, we have a contradiction. We conclude that there is no smallest positive rational number. Exercise Let p be prime and let a = p! + 1. Prove by contradiction that, for all integers 2 k p, k does not divide a. Let s use the last exercise to do another classic proof by contradiction. Proposition The set of prime natural numbers has infinitely many elements. Proof. The proof is by contradiction. Thus suppose the set of primes has only finitely many elements. Then there is a largest prime p. Let a = p! + 1 and note that a > p. By Exercise 3.3.2, a is not divisible by any integer k with 2 k p. Thus either a is itself prime or a is divisible by some prime larger than p. In either case, this contradicts the assumption that p is the largest prime. We may therefore conclude that the set of primes has infinitely many elements Proof by contraposition Recall that if p and q are statements, the implication p q is equivalent to its contrapositive, q p. Thus we may always prove an implication by instead proving its contrapositive. We illustrate with an example. Recall that two integers have the same parity if either both are even or both are odd. Proposition If m, n Z and if m + n is even, then m and n have the same parity. Proof. We prove the contrapositive; that is, we prove that if m and n do not have the same parity, then m + n is not even. Because m and n do not have the same parity, one of them is even and the other is odd. We may assume without loss of generality that m is even and n is odd. Thus there exist integers j and k such that m = 2j and n = 2k + 1. Then m + n = 2j + (2k + 1) = 2(j + k) + 1. Because j + k is an integer, we see that m + n is odd, as desired. Remark 2. We said, We may assume without loss of generality that m is even and n is odd. Such an assumption is valid because we know that one of the integers is even and the other is odd. Were it the case that m is odd and n is even, we could simply rename our integers, calling the even one m and the odd one n. Such an assumption in a proof avoids having to separately treat two cases that are really identical except for the names of the objects.

10 10 CHAPTER 3. BASIC LOGIC AND PROOF TECHNIQUES Exercise Let n Z. Consider the proposition: If n 2 is even, then n is even. Prove this proposition by proving its contrapositive The art of the counterexample Suppose you are presented with a statement that you believe to be false. How do you prove it? Because every statement must be true or false and because a statement and its negation can not have the same truth value, to prove that a statement is false, you must prove that its negation is true. Doing so may be a lot of work. Consider the statement There exists a purple cow. This statement is existentially quantified. We could write it very formally as follows: Let C be the set of all cows. Then there exists c C such that c is purple. Its negation is universally quantified: For all c C, c is not purple. Proving this statement would be hard, for it would require that we examine all cows. Suppose, on the other hand, we are given a universally quantified statement that we believe to be false: All roses are red. Formally, Its negation is Let R be the set of all roses. For all r R, r is red. There exists r R such that r is not red. To prove the negation, all we need do is exhibit a rose that is not red, i.e., to provide a counterexample to the original statement. Of course, counterexamples may be hard to come by; even if All clovers have three leaves is false, it may be difficult to find a four-leafed clover. Finding good counterexamples is a bit of an art. Consider the statement For every x, y R, (x + y) 3 = x 3 + y 3. Our experience suggests to us that this statement is false. Let us analyze two possible arguments. First Argument. The distributive law gives (x + y) 3 = (x + y)(x + y)(x + y) = x 3 + 3x 2 y + 3xy 2 + y 3. Thus the original statement is true if and only if, for all x, y R, x 3 + 3x 2 y + 3xy 2 + y 3 = x 3 + y 3. This statement is, in turn, true if and only if, for all x, y R, 3xy(x + y) = 0.

11 3.4. PROBLEMS 11 If x, y 0, this last equality holds only if x + y = 0, i.e., only if x = y. Therefore equality will not hold if, for example, x = y = 1. Thus the original statement does not hold for arbitrary x, y R. Second Argument. Consider x = y = 1. Then (x + y) 3 = (1 + 1) 3 = 2 3 = 8, but x 3 + y 3 = = 2. Thus the original statement is false. Both arguments are valid, but they differ greatly. The first may initially seem better because it begins by finding another expression equal to (x + y) 3. But it then leaves us with the new problem of determining whether x 3 +3x 2 y+3xy 2 +y 3 does or does not equal x 3 + y 3, or, equivalently, whether 3x 2 y + 3xy 2 = 0 for all x, y R. Our experience suggests that the latter statement is false, but, again, we need a proof. In this case, we are able to obtain such a proof. But imagine how much harder this approach would be were we to try to use it to prove that the statement (x + y) 7 = x 7 + y 7 is false. At some point we would be forced to do what we do right away in the second argument - find specific values of x and y for which some statement fails. Our second argument above is more satisfying; the two expressions are unequal for most values of x and y, and so it is a simple matter to find values that are easy to substitute to illustrate that the expressions on the left and right are unequal. 3.4 Problems 1. Consider the following two statements: For every x R, there exists y R such that y 2 x 2 = 1. There exists y R such that, for every x R, y 2 x 2 = 1. (a) Explain carefully the difference between the two statements. both true? (b) Negate the above statements. Is either of the negations true? Are 2. Let m, n Z. Determine whether each of the following statements is true or false. Then form the converse of each and determine whether it is true or false. In each case, if the statement is true, give a proof, and if it is false, give a counterexample. (a) If mn is even, then m and n are even. (b) If n and m are both divisible by 3, then m + n is divisible by 3. (c) If m < n, m 2 < n Consider the following statements about n N. p: n is divisible by 3. q: The sum of the digits in the base 10 representation of n is divisible by 3.

12 12 CHAPTER 3. BASIC LOGIC AND PROOF TECHNIQUES Does p imply q? Does q imply p? 4. Recall that a sequence {a n } is bounded if there exists M such that, for all n N, a n M. Negate the italicized statement to obtain the definition of a sequence {a n } that is not bounded. Then prove that the sequence with n-th term given by { 0 if n is even a n = 1 2n if n is odd is not bounded. 5. Let {a n } and {b n } be sequences of real numbers. Determine whether each of the following statements is true or false. As usual, if the statement is true, prove it; if it is false, give a counterexample. (a) If {a n } and {b n } are bounded, then {a n b n } is bounded. (b) If {a n b n } is bounded, then {a n } and {b n } are bounded. (c) If {a n + b n } is bounded, then {a n } and {b n } are bounded.

Some Review Problems for Exam 1: Solutions

Some Review Problems for Exam 1: Solutions Math 3355 Fall 2018 Some Review Problems for Exam 1: Solutions Here is my quick review of proof techniques. I will focus exclusively on propositions of the form p q, or more properly, x P (x) Q(x) or x

More information

Introducing Proof 1. hsn.uk.net. Contents

Introducing Proof 1. hsn.uk.net. Contents Contents 1 1 Introduction 1 What is proof? 1 Statements, Definitions and Euler Diagrams 1 Statements 1 Definitions Our first proof Euler diagrams 4 3 Logical Connectives 5 Negation 6 Conjunction 7 Disjunction

More information

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

Logic. Def. A Proposition is a statement that is either true or false. Logic Logic 1 Def. A Proposition is a statement that is either true or false. Examples: Which of the following are propositions? Statement Proposition (yes or no) If yes, then determine if it is true or

More information

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.

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. Chapter 1 Logic 1.1 Introduction and Definitions Definitions. A sentence (statement, proposition) is an utterance (that is, a string of characters) which is either true (T) or false (F). A predicate is

More information

1. Propositions: Contrapositives and Converses

1. Propositions: Contrapositives and Converses Preliminaries 1 1. Propositions: Contrapositives and Converses Given two propositions P and Q, the statement If P, then Q is interpreted as the statement that if the proposition P is true, then the statement

More information

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here. Chapter 2 Mathematics and Logic Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here. 2.1 A Taste of Number Theory In this section, we will

More information

3 The language of proof

3 The language of proof 3 The language of proof After working through this section, you should be able to: (a) understand what is asserted by various types of mathematical statements, in particular implications and equivalences;

More information

The Process of Mathematical Proof

The Process of Mathematical Proof 1 The Process of Mathematical Proof Introduction. Mathematical proofs use the rules of logical deduction that grew out of the work of Aristotle around 350 BC. In previous courses, there was probably an

More information

Foundations of Discrete Mathematics

Foundations of Discrete Mathematics Foundations of Discrete Mathematics Chapter 0 By Dr. Dalia M. Gil, Ph.D. Statement Statement is an ordinary English statement of fact. It has a subject, a verb, and a predicate. It can be assigned a true

More information

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

Section 1.3. Let I be a set. When I is used in the following context, Section 1.3. Let I be a set. When I is used in the following context, {B i } i I, we call I the index set. The set {B i } i I is the family of sets of the form B i where i I. One could also use set builder

More information

Chapter 2: The Logic of Quantified Statements

Chapter 2: The Logic of Quantified Statements Chapter 2: The Logic of Quantified Statements Topics include 2.1, 2.2 Predicates and Quantified Statements, 2.3 Statements with Multiple Quantifiers, and 2.4 Arguments with Quantified Statements. cs1231y

More information

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional Logical Operators Conjunction Disjunction Negation Exclusive Or Implication Biconditional 1 Statement meaning p q p implies q if p, then q if p, q when p, q whenever p, q q if p q when p q whenever p p

More information

Section 2.3: Statements Containing Multiple Quantifiers

Section 2.3: Statements Containing Multiple Quantifiers Section 2.3: Statements Containing Multiple Quantifiers In this section, we consider statements such as there is a person in this company who is in charge of all the paperwork where more than one quantifier

More information

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

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3. CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS SECTION 3.1 Predicates and Quantified Statements I Copyright Cengage Learning. All rights reserved. Copyright Cengage Learning. All rights reserved. Predicates

More information

Logic and Propositional Calculus

Logic and Propositional Calculus CHAPTER 4 Logic and Propositional Calculus 4.1 INTRODUCTION Many algorithms and proofs use logical expressions such as: IF p THEN q or If p 1 AND p 2, THEN q 1 OR q 2 Therefore it is necessary to know

More information

MA103 STATEMENTS, PROOF, LOGIC

MA103 STATEMENTS, PROOF, LOGIC MA103 STATEMENTS, PROOF, LOGIC Abstract Mathematics is about making precise mathematical statements and establishing, by proof or disproof, whether these statements are true or false. We start by looking

More information

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

Note: The area of logic that deals with propositions is called the propositional calculus or propositional logic. Ch. 1.1 Logic Logic 1 Def. A Proposition is a statement that is either true or false. Example 1: Which of the following are propositions? Statement Proposition (yes or no) UHD is a University 1 + 3 = 0

More information

Foundation of proofs. Jim Hefferon.

Foundation of proofs. Jim Hefferon. Foundation of proofs Jim Hefferon http://joshua.smcvt.edu/proofs The need to prove In Mathematics we prove things To a person with a mathematical turn of mind, the base angles of an isoceles triangle are

More information

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

Math 38: Graph Theory Spring 2004 Dartmouth College. On Writing Proofs. 1 Introduction. 2 Finding A Solution Math 38: Graph Theory Spring 2004 Dartmouth College 1 Introduction On Writing Proofs What constitutes a well-written proof? A simple but rather vague answer is that a well-written proof is both clear and

More information

Writing Mathematical Proofs

Writing Mathematical Proofs Writing Mathematical Proofs Dr. Steffi Zegowitz The main resources for this course are the two following books: Mathematical Proofs by Chartrand, Polimeni, and Zhang How to Think Like a Mathematician by

More information

Math Real Analysis

Math Real Analysis 1 / 28 Math 370 - Real Analysis G.Pugh Sep 3 2013 Real Analysis 2 / 28 3 / 28 What is Real Analysis? Wikipedia: Real analysis... has its beginnings in the rigorous formulation of calculus. It is a branch

More information

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

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic CS 103 Discrete Structures Chapter 1 Propositional Logic Chapter 1.1 Propositional Logic 1 1.1 Propositional Logic Definition: A proposition :is a declarative sentence (that is, a sentence that declares

More information

LECTURE 1. Logic and Proofs

LECTURE 1. Logic and Proofs 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

More information

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

Chapter 2: The Logic of Quantified Statements. January 22, 2010 Chapter 2: The Logic of Quantified Statements January 22, 2010 Outline 1 2.1- Introduction to Predicates and Quantified Statements I 2 2.2 - Introduction to Predicates and Quantified Statements II 3 2.3

More information

Section 3.1: Direct Proof and Counterexample 1

Section 3.1: Direct Proof and Counterexample 1 Section 3.1: Direct Proof and Counterexample 1 In this chapter, we introduce the notion of proof in mathematics. A mathematical proof is valid logical argument in mathematics which shows that a given conclusion

More information

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.

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. Friday, February 15 Today we will begin Course Notes 3.2: Methods of Proof. Your quiz in recitation on Tuesday will cover 3.1: Arguments and inference. Your also have an online quiz, covering 3.1, due

More information

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

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook) Lecture 2 Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits Reading (Epp s textbook) 2.1-2.4 1 Logic Logic is a system based on statements. A statement (or

More information

Today s Topic: Propositional Logic

Today s Topic: Propositional Logic Today s Topic: Propositional Logic What is a proposition? Logical connectives and truth tables Translating between English and propositional logic Logic is the basis of all mathematical and analytical

More information

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

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof Ch. 1.6 Introduction to Proofs The following techniques for methods of proofs are discussed in our text - Vacuous proof - Trivial proof - Direct proof - Indirect proof (our book calls this by contraposition)

More information

1.1 Language and Logic

1.1 Language and Logic c Oksana Shatalov, Spring 2018 1 1.1 Language and Logic Mathematical Statements DEFINITION 1. A proposition is any declarative sentence (i.e. it has both a subject and a verb) that is either true or false,

More information

COT 2104 Homework Assignment 1 (Answers)

COT 2104 Homework Assignment 1 (Answers) 1) Classify true or false COT 2104 Homework Assignment 1 (Answers) a) 4 2 + 2 and 7 < 50. False because one of the two statements is false. b) 4 = 2 + 2 7 < 50. True because both statements are true. c)

More information

More examples of mathematical. Lecture 4 ICOM 4075

More examples of mathematical. Lecture 4 ICOM 4075 More examples of mathematical proofs Lecture 4 ICOM 4075 Proofs by construction A proof by construction is one in which anobjectthat proves the truth value of an statement is built, or found There are

More information

STRATEGIES OF PROBLEM SOLVING

STRATEGIES OF PROBLEM SOLVING STRATEGIES OF PROBLEM SOLVING Second Edition Maria Nogin Department of Mathematics College of Science and Mathematics California State University, Fresno 2014 2 Chapter 1 Introduction Solving mathematical

More information

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

MATH10040: Chapter 0 Mathematics, Logic and Reasoning MATH10040: Chapter 0 Mathematics, Logic and Reasoning 1. What is Mathematics? There is no definitive answer to this question. 1 Indeed, the answer given by a 21st-century mathematician would differ greatly

More information

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques Colin Stirling Informatics Some slides based on ones by Myrto Arapinis Colin Stirling (Informatics) Discrete Mathematics

More information

Section 2.1: Introduction to the Logic of Quantified Statements

Section 2.1: Introduction to the Logic of Quantified Statements Section 2.1: Introduction to the Logic of Quantified Statements In the previous chapter, we studied a branch of logic called propositional logic or propositional calculus. Loosely speaking, propositional

More information

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

Recall that the expression x > 3 is not a proposition. Why? Predicates and Quantifiers Predicates and Quantifiers 1 Recall that the expression x > 3 is not a proposition. Why? Notation: We will use the propositional function notation to denote the expression "

More information

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

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations Chapter 1, Part I: Propositional Logic With Question/Answer Animations Chapter Summary Propositional Logic The Language of Propositions Applications Logical Equivalences Predicate Logic The Language of

More information

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

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations Logic Propositions and logical operations Main concepts: propositions truth values propositional variables logical operations 1 Propositions and logical operations A proposition is the most basic element

More information

1.1 Statements and Compound Statements

1.1 Statements and Compound Statements Chapter 1 Propositional Logic 1.1 Statements and Compound Statements A statement or proposition is an assertion which is either true or false, though you may not know which. That is, a statement is something

More information

1.1 Language and Logic

1.1 Language and Logic c Oksana Shatalov, Fall 2017 1 1.1 Language and Logic Mathematical Statements DEFINITION 1. A proposition is any declarative sentence (i.e. it has both a subject and a verb) that is either true or false,

More information

Topics in Logic and Proofs

Topics in Logic and Proofs Chapter 2 Topics in Logic and Proofs Some mathematical statements carry a logical value of being true or false, while some do not. For example, the statement 4 + 5 = 9 is true, whereas the statement 2

More information

Mat 243 Exam 1 Review

Mat 243 Exam 1 Review OBJECTIVES (Review problems: on next page) 1.1 Distinguish between propositions and non-propositions. Know the truth tables (i.e., the definitions) of the logical operators,,,, and Write truth tables for

More information

2-4: The Use of Quantifiers

2-4: The Use of Quantifiers 2-4: The Use of Quantifiers The number x + 2 is an even integer is not a statement. When x is replaced by 1, 3 or 5 the resulting statement is false. However, when x is replaced by 2, 4 or 6 the resulting

More information

Section 1.1: Logical Form and Logical Equivalence

Section 1.1: Logical Form and Logical Equivalence Section 1.1: Logical Form and Logical Equivalence An argument is a sequence of statements aimed at demonstrating the truth of an assertion. The assertion at the end of an argument is called the conclusion,

More information

Sets and Logic Linear Algebra, Spring 2012

Sets and Logic Linear Algebra, Spring 2012 Sets and Logic Linear Algebra, Spring 2012 There is a certain vocabulary and grammar that underlies all of mathematics, and mathematical proof in particular. Mathematics consists of constructing airtight

More information

The statement calculus and logic

The statement calculus and logic Chapter 2 Contrariwise, continued Tweedledee, if it was so, it might be; and if it were so, it would be; but as it isn t, it ain t. That s logic. Lewis Carroll You will have encountered several languages

More information

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

Writing proofs for MATH 61CM, 61DM Week 1: basic logic, proof by contradiction, proof by induction Writing proofs for MATH 61CM, 61DM Week 1: basic logic, proof by contradiction, proof by induction written by Sarah Peluse, revised by Evangelie Zachos and Lisa Sauermann September 27, 2016 1 Introduction

More information

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

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics CSC 224/226 Notes Packet #2: Set Theory & Predicate Calculus Barnes Packet #2: Set Theory & Predicate Calculus Applied Discrete Mathematics Table of Contents Full Adder Information Page 1 Predicate Calculus

More information

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

MCS-236: Graph Theory Handout #A4 San Skulrattanakulchai Gustavus Adolphus College Sep 15, Methods of Proof MCS-36: Graph Theory Handout #A4 San Skulrattanakulchai Gustavus Adolphus College Sep 15, 010 Methods of Proof Consider a set of mathematical objects having a certain number of operations and relations

More information

Mathematical Reasoning (Part I) 1

Mathematical Reasoning (Part I) 1 c Oksana Shatalov, Spring 2017 1 Mathematical Reasoning (art I) 1 Statements DEFINITION 1. A statement is any declarative sentence 2 that is either true or false, but not both. A statement cannot be neither

More information

First order Logic ( Predicate Logic) and Methods of Proof

First order Logic ( Predicate Logic) and Methods of Proof First order Logic ( Predicate Logic) and Methods of Proof 1 Outline Introduction Terminology: Propositional functions; arguments; arity; universe of discourse Quantifiers Definition; using, mixing, negating

More information

MATH 135 Fall 2006 Proofs, Part IV

MATH 135 Fall 2006 Proofs, Part IV MATH 135 Fall 006 s, Part IV We ve spent a couple of days looking at one particular technique of proof: induction. Let s look at a few more. Direct Here we start with what we re given and proceed in a

More information

Proofs. Chapter 2 P P Q Q

Proofs. Chapter 2 P P Q Q Chapter Proofs In this chapter we develop three methods for proving a statement. To start let s suppose the statement is of the form P Q or if P, then Q. Direct: This method typically starts with P. Then,

More information

Meaning of Proof Methods of Proof

Meaning of Proof Methods of Proof Mathematical Proof Meaning of Proof Methods of Proof 1 Dr. Priya Mathew SJCE Mysore Mathematics Education 4/7/2016 2 Introduction Proposition: Proposition or a Statement is a grammatically correct declarative

More information

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

Connectives Name Symbol OR Disjunction And Conjunction If then Implication/ conditional If and only if Bi-implication / biconditional Class XI Mathematics Ch. 14 Mathematical Reasoning 1. Statement: A sentence which is either TRUE or FALSE but not both is known as a statement. eg. i) 2 + 2 = 4 ( it is a statement which is true) ii) 2

More information

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

Logic Overview, I. and T T T T F F F T F F F F Logic Overview, I DEFINITIONS A statement (proposition) is a declarative sentence that can be assigned a truth value T or F, but not both. Statements are denoted by letters p, q, r, s,... The 5 basic logical

More information

Proofs. Joe Patten August 10, 2018

Proofs. Joe Patten August 10, 2018 Proofs Joe Patten August 10, 2018 1 Statements and Open Sentences 1.1 Statements A statement is a declarative sentence or assertion that is either true or false. They are often labelled with a capital

More information

Discrete Structures for Computer Science

Discrete Structures for Computer Science Discrete Structures for Computer Science William Garrison bill@cs.pitt.edu 6311 Sennott Square Lecture #4: Predicates and Quantifiers Based on materials developed by Dr. Adam Lee Topics n Predicates n

More information

Contribution of Problems

Contribution of Problems Exam topics 1. Basic structures: sets, lists, functions (a) Sets { }: write all elements, or define by condition (b) Set operations: A B, A B, A\B, A c (c) Lists ( ): Cartesian product A B (d) Functions

More information

Quantifiers. P. Danziger

Quantifiers. P. Danziger - 2 Quantifiers P. Danziger 1 Elementary Quantifiers (2.1) We wish to be able to use variables, such as x or n in logical statements. We do this by using the two quantifiers: 1. - There Exists 2. - For

More information

3.6. Disproving Quantified Statements Disproving Existential Statements

3.6. Disproving Quantified Statements Disproving Existential Statements 36 Dproving Quantified Statements 361 Dproving Extential Statements A statement of the form x D, P( if P ( false for all x D false if and only To dprove th kind of statement, we need to show the for all

More information

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

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP) Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning Terminology, Notations, Definitions, & Principles: Mathematical Proof and Proving (MPP) 1. A statement

More information

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises WUCT11 Discrete Mathematics Logic Tutorial Exercises 1 Logic Predicate Logic 3 Proofs 4 Set Theory 5 Relations and Functions WUCT11 Logic Tutorial Exercises 1 Section 1: Logic Question1 For each of the

More information

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

For all For every For each For any There exists at least one There exists There is Some Section 1.3 Predicates and Quantifiers Assume universe of discourse is all the people who are participating in this course. Also let us assume that we know each person in the course. Consider the following

More information

2 Truth Tables, Equivalences and the Contrapositive

2 Truth Tables, Equivalences and the Contrapositive 2 Truth Tables, Equivalences and the Contrapositive 12 2 Truth Tables, Equivalences and the Contrapositive 2.1 Truth Tables In a mathematical system, true and false statements are the statements of the

More information

CSC Discrete Math I, Spring Propositional Logic

CSC Discrete Math I, Spring Propositional Logic CSC 125 - Discrete Math I, Spring 2017 Propositional Logic Propositions A proposition is a declarative sentence that is either true or false Propositional Variables A propositional variable (p, q, r, s,...)

More information

Proofs. Chapter 2 P P Q Q

Proofs. Chapter 2 P P Q Q Chapter Proofs In this chapter we develop three methods for proving a statement. To start let s suppose the statement is of the form P Q or if P, then Q. Direct: This method typically starts with P. Then,

More information

Logic and Proofs. (A brief summary)

Logic and Proofs. (A brief summary) Logic and Proofs (A brief summary) Why Study Logic: To learn to prove claims/statements rigorously To be able to judge better the soundness and consistency of (others ) arguments To gain the foundations

More information

ECOM Discrete Mathematics

ECOM Discrete Mathematics ECOM 2311- Discrete Mathematics Chapter # 1 : The Foundations: Logic and Proofs Fall, 2013/2014 ECOM 2311- Discrete Mathematics - Ch.1 Dr. Musbah Shaat 1 / 85 Outline 1 Propositional Logic 2 Propositional

More information

Definitions Chapter 1 Proof Technique (Pg.1): Proof (Pg.2): Statement (Pg.2): Conditional Statement/Implication (Pg3.): Hypothesis(Pg.

Definitions Chapter 1 Proof Technique (Pg.1): Proof (Pg.2): Statement (Pg.2): Conditional Statement/Implication (Pg3.): Hypothesis(Pg. Definitions Chapter 1 Proof Technique (Pg.1): Any method for proving that the statement A implies B is true. Proof (Pg.2): A convincing argument expressed in the language of mathematics that a statement

More information

Section Summary. Section 1.5 9/9/2014

Section Summary. Section 1.5 9/9/2014 Section 1.5 Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements into Statements involving Nested Quantifiers Translated

More information

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

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction. Statements Compounds and Truth Tables. Statements, Negations, Compounds, Conjunctions, Disjunctions, Truth Tables, Logical Equivalence, De Morgan s Law, Tautology, Contradictions, Proofs with Logical Equivalent

More information

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models Contents Mathematical Reasoning 3.1 Mathematical Models........................... 3. Mathematical Proof............................ 4..1 Structure of Proofs........................ 4.. Direct Method..........................

More information

Sequences of Real Numbers

Sequences of Real Numbers Chapter 8 Sequences of Real Numbers In this chapter, we assume the existence of the ordered field of real numbers, though we do not yet discuss or use the completeness of the real numbers. In the next

More information

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

2/18/14. What is logic? Proposi0onal Logic. Logic? Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1. Logic? Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1.3) TOPICS Propositional Logic Logical Operations Equivalences Predicate Logic CS160 - Spring Semester 2014 2 What

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

Chapter 1 Elementary Logic

Chapter 1 Elementary Logic 2017-2018 Chapter 1 Elementary Logic The study of logic is the study of the principles and methods used in distinguishing valid arguments from those that are not valid. The aim of this chapter is to help

More information

Math 10850, fall 2017, University of Notre Dame

Math 10850, fall 2017, University of Notre Dame Math 10850, fall 2017, University of Notre Dame Notes on first exam September 22, 2017 The key facts The first midterm will be on Thursday, September 28, 6.15pm-7.45pm in Hayes-Healy 127. What you need

More information

Elementary Linear Algebra, Second Edition, by Spence, Insel, and Friedberg. ISBN Pearson Education, Inc., Upper Saddle River, NJ.

Elementary Linear Algebra, Second Edition, by Spence, Insel, and Friedberg. ISBN Pearson Education, Inc., Upper Saddle River, NJ. 2008 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. APPENDIX: Mathematical Proof There are many mathematical statements whose truth is not obvious. For example, the French mathematician

More information

Logic, Sets, and Proofs

Logic, Sets, and Proofs Logic, Sets, and Proofs David A. Cox and Catherine C. McGeoch Amherst College 1 Logic Logical Operators. A logical statement is a mathematical statement that can be assigned a value either true or false.

More information

Day 6. Tuesday May 29, We continue our look at basic proofs. We will do a few examples of different methods of proving.

Day 6. Tuesday May 29, We continue our look at basic proofs. We will do a few examples of different methods of proving. Day 6 Tuesday May 9, 01 1 Basic Proofs We continue our look at basic proofs. We will do a few examples of different methods of proving. 1.1 Proof Techniques Recall that so far in class we have made two

More information

1 The Foundation: Logic and Proofs

1 The Foundation: Logic and Proofs 1 The Foundation: Logic and Proofs 1.1 Propositional Logic Propositions( 명제 ) a declarative sentence that is either true or false, but not both nor neither letters denoting propositions p, q, r, s, T:

More information

Logic and Propositional Calculus

Logic and Propositional Calculus CHAPTER 4 Logic and Propositional Calculus 4.1 INTRODUCTION Many algorithms and proofs use logical expressions such as: IF p THEN q or If p 1 AND p 2, THEN q 1 OR q 2 Therefore it is necessary to know

More information

Discrete Structures for Computer Science

Discrete Structures for Computer Science Discrete Structures for Computer Science William Garrison bill@cs.pitt.edu 6311 Sennott Square Lecture #2: Propositional Logic Based on materials developed by Dr. Adam Lee Today s Topic: Propositional

More information

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

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1) CS100: DISCREE SRUCURES Lecture 5: Logic (Ch1) Lecture Overview 2 Statement Logical Connectives Conjunction Disjunction Propositions Conditional Bio-conditional Converse Inverse Contrapositive Laws of

More information

Compound Propositions

Compound Propositions Discrete Structures Compound Propositions Producing new propositions from existing propositions. Logical Operators or Connectives 1. Not 2. And 3. Or 4. Exclusive or 5. Implication 6. Biconditional Truth

More information

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

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

More information

Counting Methods. CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo

Counting Methods. CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo Counting Methods CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo c Xin He (University at Buffalo) CSE 191 Discrete Structures 1 / 48 Need for Counting The problem of counting

More information

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}. 2 Arithmetic This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}. (See [Houston, Chapters 27 & 28]) 2.1 Greatest common divisors Definition 2.16. If a, b are integers, we say

More information

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

Exercise Set 1 Solutions Math 2020 Due: January 30, Find the truth tables of each of the following compound statements. 1. Find the truth tables of each of the following compound statements. (a) ( (p q)) (p q), p q p q (p q) q p q ( (p q)) (p q) 0 0 0 1 1 1 1 0 1 0 1 0 0 0 1 0 0 1 1 1 1 1 1 1 0 0 1 0 (b) [p ( p q)] [( (p

More information

Mathematical Reasoning & Proofs

Mathematical Reasoning & Proofs Mathematical Reasoning & Proofs MAT 1362 Fall 2018 Alistair Savage Department of Mathematics and Statistics University of Ottawa This work is licensed under a Creative Commons Attribution-ShareAlike 4.0

More information

1 Predicates and Quantifiers

1 Predicates and Quantifiers 1 Predicates and Quantifiers We have seen how to represent properties of objects. For example, B(x) may represent that x is a student at Bryn Mawr College. Here B stands for is a student at Bryn Mawr College

More information

FORMAL PROOFS DONU ARAPURA

FORMAL PROOFS DONU ARAPURA FORMAL PROOFS DONU ARAPURA This is a supplement for M385 on formal proofs in propositional logic. Rather than following the presentation of Rubin, I want to use a slightly different set of rules which

More information

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

Foundations of Advanced Mathematics, version 0.8. Jonathan J. White Foundations of Advanced Mathematics, version 0.8 Jonathan J. White 1/4/17 2 Chapter 1 Basic Number Theory and Logic Forward These notes are intended to provide a solid background for the study of abstract

More information

Proof Techniques (Review of Math 271)

Proof Techniques (Review of Math 271) Chapter 2 Proof Techniques (Review of Math 271) 2.1 Overview This chapter reviews proof techniques that were probably introduced in Math 271 and that may also have been used in a different way in Phil

More information

THE LOGIC OF QUANTIFIED STATEMENTS

THE LOGIC OF QUANTIFIED STATEMENTS CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS Copyright Cengage Learning. All rights reserved. SECTION 3.1 Predicates and Quantified Statements I Copyright Cengage Learning. All rights reserved. Predicates

More information

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

Contradiction MATH Contradiction. Benjamin V.C. Collins, James A. Swenson MATH 2730 MATH 2730 Contradiction Benjamin V.C. Collins James A. Swenson Contrapositive The contrapositive of the statement If A, then B is the statement If not B, then not A. A statement and its contrapositive

More information

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

What is Logic? Introduction to Logic. Simple Statements. Which one is statement? What is Logic? Introduction to Logic Peter Lo Logic is the study of reasoning It is specifically concerned with whether reasoning is correct Logic is also known as Propositional Calculus CS218 Peter Lo

More information

1 The Foundation: Logic and Proofs

1 The Foundation: Logic and Proofs 1 The Foundation: Logic and Proofs 1.1 Propositional Logic Propositions( ) a declarative sentence that is either true or false, but not both nor neither letters denoting propostions p, q, r, s, T: true

More information