Conditional Statements

Similar documents
Direct Proof Divisibility

Direct Proof Divisibility

Predicates and Quantifiers

Direct Proof Universal Statements

Composition of Functions

Negations of Quantifiers

Elementary Logic and Proof

Direct Proof Division into Cases

Direct Proof Floor and Ceiling

The Pairwise-Comparison Method

Maximums and Minimums

Paired Samples. Lecture 37 Sections 11.1, 11.2, Robb T. Koether. Hampden-Sydney College. Mon, Apr 2, 2012

Confidence Intervals for Proportions Sections 22.2, 22.3

Compound Interest. Lecture 34 Section 4.1. Robb T. Koether. Hampden-Sydney College. Tue, Mar 28, 2017

Direct Proof Rational Numbers

Instantaneous Rate of Change

Independent Samples: Comparing Means

Nondeterministic Finite Automata

Sampling Distribution of a Sample Proportion

Strong Mathematical Induction

Closure Properties of Regular Languages

CSC Discrete Math I, Spring Propositional Logic

Sampling Distribution of a Sample Proportion

The Interpretation of λ

Vector Operations. Lecture 19. Robb T. Koether. Hampden-Sydney College. Wed, Oct 7, 2015

Binary Search Trees. Lecture 29 Section Robb T. Koether. Hampden-Sydney College. Fri, Apr 8, 2016

The Cobb-Douglas Production Functions

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

A statement is a sentence that is definitely either true or false but not both.

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

AMTH140 Lecture 8. Symbolic Logic

Section 1.1 Propositional Logic. proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese

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.

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

PROPOSITIONAL CALCULUS

Propositional Logic Introduction and Basics. 2.2 Conditional Statements. 2.3 Inferencing. mjarrar 2015

Compound Propositions

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

Introduction. Applications of discrete mathematics:

CSCI Homework Set 1 Due: September 11, 2018 at the beginning of class

Lecture 02: Propositional Logic

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

2 Truth Tables, Equivalences and the Contrapositive

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

Chapter 1: The Logic of Compound Statements. January 7, 2008

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

To reason to a correct conclusion, we must build our arguments on true statements. Sometimes it is helpful to use truth tables. Simple Truth Table p

Lecture : Set Theory and Logic

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

ANALYSIS EXERCISE 1 SOLUTIONS

Propositional Equivalence

Computer Science 280 Spring 2002 Homework 2 Solutions by Omar Nayeem

Geometry: Notes

CSE 311: Foundations of Computing. Lecture 3: Digital Circuits & Equivalence

Proportion. Lecture 25 Sections Fri, Oct 10, Hampden-Sydney College. Sampling Distribution of a Sample. Proportion. Robb T.

EGC221: Digital Logic Lab

software design & management Gachon University Chulyun Kim

Full file at

Unit 2: Logic and Reasoning. start of unit

Discrete Mathematics and Its Applications

EECS 1028 M: Discrete Mathematics for Engineers

DISCRETE STRUCTURES WEEK5 LECTURE1

FUNDAMENTALS OF MATHEMATICS HANDOUT 1.3 DR. MCLOUGHLIN

More examples of mathematical. Lecture 4 ICOM 4075

Overview. 1. Introduction to Propositional Logic. 2. Operations on Propositions. 3. Truth Tables. 4. Translating Sentences into Logical Expressions

COMP Intro to Logic for Computer Scientists. Lecture 3

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra

1. Propositions: Contrapositives and Converses

- 1.2 Implication P. Danziger. Implication

2 Conditional and Biconditional Propositions

Artificial Intelligence

DERIVATIONS AND TRUTH TABLES

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

Lecture 45 Sections Wed, Nov 19, 2008

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

Midterm: Sample 3. ECS20 (Fall 2017) 1) Using truth tables, establish for each of the two propositions below if it is a tautology, a contradiction

1. Grab board/marker for your group 2. Do WarmUp below

Section 1.2: Conditional Statements

Introduction Propositional Logic. Discrete Mathematics Andrei Bulatov

CS 173: Discrete Mathematical Structures, Spring 2008 Homework 1 Solutions

Packet #1: Logic & Proofs. Applied Discrete Mathematics

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

Lecture 26 Section 8.4. Wed, Oct 14, 2009

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Direct Proof and Proof by Contrapositive

Deductive and Inductive Logic

DISCRETE MATHEMATICS BA202

Introduction Propositional Logic

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

Geometry - Chapter 2 Corrective 1

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

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

2.2 Analyze Conditional

Maryam Al-Towailb (KSU) Discrete Mathematics and Its Applications Math. Rules Math. of1101 Inference 1 / 13

Equations and Solutions

Outline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference

Today s Topic: Propositional Logic

Proof strategies, or, a manual of logical style

1.1 Language and Logic

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

Transcription:

Conditional Statements Lecture 3 Section 2.2 Robb T. Koether Hampden-Sydney College Fri, Jan 17, 2014 Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 1 / 26

1 Conditional Statements 2 The Contrapositive 3 Other Operators The Biconditional The Exclusive-Or The NAND Operator The NOR Operator 4 Assignment Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 2 / 26

Outline 1 Conditional Statements 2 The Contrapositive 3 Other Operators The Biconditional The Exclusive-Or The NAND Operator The NOR Operator 4 Assignment Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 3 / 26

Conditional Statements A conditional statement is a statement of the form p q. p is the hypothesis. q is the conclusion. Read p q as p implies q or if p, then q. The idea is that the truth of p implies the truth of q (but nothing more). Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 4 / 26

Example: Conditional Statements Which of the following scenarios are consistent with the statement If I win the lottery, then I will buy a Mercedes Benz. Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 5 / 26

Example: Conditional Statements Which of the following scenarios are consistent with the statement If I win the lottery, then I will buy a Mercedes Benz. Scenario 1: I win the lottery and I buy a Mercedes Benz. Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 5 / 26

Example: Conditional Statements Which of the following scenarios are consistent with the statement If I win the lottery, then I will buy a Mercedes Benz. Scenario 1: I win the lottery and I buy a Mercedes Benz. Scenario 2: I win the lottery and I do not buy a Mercedes Benz. Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 5 / 26

Example: Conditional Statements Which of the following scenarios are consistent with the statement If I win the lottery, then I will buy a Mercedes Benz. Scenario 1: I win the lottery and I buy a Mercedes Benz. Scenario 2: I win the lottery and I do not buy a Mercedes Benz. Scenario 3: I do not win the lottery and I do not buy a Mercedes Benz. Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 5 / 26

Example: Conditional Statements Which of the following scenarios are consistent with the statement If I win the lottery, then I will buy a Mercedes Benz. Scenario 1: I win the lottery and I buy a Mercedes Benz. Scenario 2: I win the lottery and I do not buy a Mercedes Benz. Scenario 3: I do not win the lottery and I do not buy a Mercedes Benz. Scenario 4: I do not win the lottery and I buy a Mercedes Benz. Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 5 / 26

Truth Table for the Conditional p q p q T T T T F F F T T F F T p q is true if p is false or q is true. p q is false if p is true and q is false. Thus, p q is logically equivalent to p q. Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 6 / 26

Outline 1 Conditional Statements 2 The Contrapositive 3 Other Operators The Biconditional The Exclusive-Or The NAND Operator The NOR Operator 4 Assignment Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 7 / 26

The Contrapositive The contrapositive of p q is q p. The statements p q and q p are logically equivalent. (Prove it!) Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 8 / 26

The Converse and the Inverse p q q p p q q p Four conditionals. Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 9 / 26

The Converse and the Inverse p q Converses q p p q Converses q p The converse of p q is q p Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 9 / 26

The Converse and the Inverse p q q p Inverses Inverses p q q p The inverse of p q is p q Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 9 / 26

The Converse and the Inverse p q q p Contrapositives p q q p The contrapositive of p q is q p Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 9 / 26

Outline 1 Conditional Statements 2 The Contrapositive 3 Other Operators The Biconditional The Exclusive-Or The NAND Operator The NOR Operator 4 Assignment Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 10 / 26

Outline 1 Conditional Statements 2 The Contrapositive 3 Other Operators The Biconditional The Exclusive-Or The NAND Operator The NOR Operator 4 Assignment Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 11 / 26

The Biconditional The biconditional of p and q is denoted p q. Read p q as p if and only if q. p q is logically equivalent to (p q) (q p). It is also logically equivalent to ( p q) ( q p) and (p q) ( p q). Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 12 / 26

The Biconditional p q p q T T T T F F F T F F F T Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 13 / 26

Outline 1 Conditional Statements 2 The Contrapositive 3 Other Operators The Biconditional The Exclusive-Or The NAND Operator The NOR Operator 4 Assignment Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 14 / 26

Exclusive-Or The exclusive-or of p and q is denoted p q. p q means one or the other, but not both. p q is logically equivalent to (p q) (p q) and and (p q) ( p q) (p q). Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 15 / 26

Exclusive-Or p q p q T T F T F T F T T F F F Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 16 / 26

Outline 1 Conditional Statements 2 The Contrapositive 3 Other Operators The Biconditional The Exclusive-Or The NAND Operator The NOR Operator 4 Assignment Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 17 / 26

The NAND Operator p q p q T T F T F T F T T F F T The NAND of p and q is denoted p q. The operator is also called the Scheffer stroke. Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 18 / 26

The NAND Operator The statement p q means not both p and q. p q is logically equivalent to (p q). Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 19 / 26

The NAND Operator The three basic operators (and, or, not) may be defined in terms of NAND. p p p. p q (p q) (p q). p q (p p) (q q). Prove it! Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 20 / 26

Outline 1 Conditional Statements 2 The Contrapositive 3 Other Operators The Biconditional The Exclusive-Or The NAND Operator The NOR Operator 4 Assignment Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 21 / 26

The NOR Operator p q p q T T F T F F F T F F F T The NOR of p and q is denoted p q. The operator is also called the Pierce arrow. Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 22 / 26

The NOR Operator The statement p q means neither p nor q. p q is logically equivalent to (p q). Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 23 / 26

The NOR Operator The three basic operators (and, or, not) may be defined in terms of NOR. p p p. p q (p q) (p q). p q (p p) (q q). Prove it! Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 24 / 26

Outline 1 Conditional Statements 2 The Contrapositive 3 Other Operators The Biconditional The Exclusive-Or The NAND Operator The NOR Operator 4 Assignment Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 25 / 26

Assignment Assignment Read Section 2.2, pages 39-48. Exercises 2, 5, 6, 12, 13, 17, 18, 37, 41, 42, 46, page 49. Robb T. Koether (Hampden-Sydney College) Conditional Statements Fri, Jan 17, 2014 26 / 26