Discrete Mathematics with Applications Chapter 2: The Logic of - - PowerPoint PPT Presentation

discrete mathematics with applications
SMART_READER_LITE
LIVE PREVIEW

Discrete Mathematics with Applications Chapter 2: The Logic of - - PowerPoint PPT Presentation

Propositional Logic Truth Tables Logical Equivalence Discrete Mathematics with Applications Chapter 2: The Logic of Compound Statements (Part 1) January 23, 2019 Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with


slide-1
SLIDE 1

Propositional Logic Truth Tables Logical Equivalence

Discrete Mathematics with Applications

Chapter 2: The Logic of Compound Statements (Part 1) January 23, 2019

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-2
SLIDE 2

Propositional Logic Truth Tables Logical Equivalence

Statements

A statement (or proposition) is a sentence that is either true (T) or false (F), but not both.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-3
SLIDE 3

Propositional Logic Truth Tables Logical Equivalence

Statements

A statement (or proposition) is a sentence that is either true (T) or false (F), but not both. Examples:

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-4
SLIDE 4

Propositional Logic Truth Tables Logical Equivalence

Statements

A statement (or proposition) is a sentence that is either true (T) or false (F), but not both. Examples:

1 “The earth is flat.” – F

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-5
SLIDE 5

Propositional Logic Truth Tables Logical Equivalence

Statements

A statement (or proposition) is a sentence that is either true (T) or false (F), but not both. Examples:

1 “The earth is flat.” – F 2 “March has 31 days.” – T

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-6
SLIDE 6

Propositional Logic Truth Tables Logical Equivalence

Statements

A statement (or proposition) is a sentence that is either true (T) or false (F), but not both. Examples:

1 “The earth is flat.” – F 2 “March has 31 days.” – T 3 “Do you have the time?” – Not a statement (it’s a question)

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-7
SLIDE 7

Propositional Logic Truth Tables Logical Equivalence

Statements

A statement (or proposition) is a sentence that is either true (T) or false (F), but not both. Examples:

1 “The earth is flat.” – F 2 “March has 31 days.” – T 3 “Do you have the time?” – Not a statement (it’s a question) 4 “Go to the store.” – Not a statement (it’s a command)

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-8
SLIDE 8

Propositional Logic Truth Tables Logical Equivalence

Statements

A statement (or proposition) is a sentence that is either true (T) or false (F), but not both. Examples:

1 “The earth is flat.” – F 2 “March has 31 days.” – T 3 “Do you have the time?” – Not a statement (it’s a question) 4 “Go to the store.” – Not a statement (it’s a command)

Notation: Lower case letters are often used to represent statements.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-9
SLIDE 9

Propositional Logic Truth Tables Logical Equivalence

Logical Connectives

Connectives are symbols that combine statements. Statements separated by connectives make a compound statement.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-10
SLIDE 10

Propositional Logic Truth Tables Logical Equivalence

Logical Connectives

Connectives are symbols that combine statements. Statements separated by connectives make a compound statement. The negation of p is the statement “not p” or “it is not the case that p” and is denoted by ∼p.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-11
SLIDE 11

Propositional Logic Truth Tables Logical Equivalence

Logical Connectives

Connectives are symbols that combine statements. Statements separated by connectives make a compound statement. The negation of p is the statement “not p” or “it is not the case that p” and is denoted by ∼p. The conjunction of the p and q is the statement “p and q” and is denoted by p ∧ q.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-12
SLIDE 12

Propositional Logic Truth Tables Logical Equivalence

Logical Connectives

Connectives are symbols that combine statements. Statements separated by connectives make a compound statement. The negation of p is the statement “not p” or “it is not the case that p” and is denoted by ∼p. The conjunction of the p and q is the statement “p and q” and is denoted by p ∧ q. The disjunction of p and q is the statement “p or q” and is denoted by p ∨ q.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-13
SLIDE 13

Propositional Logic Truth Tables Logical Equivalence

Inclusive Or vs. Exclusive Or

NOTE: The meaning of “or” here is inclusive, that is p ∨ q is true whenever p is true, or q is true, or both.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-14
SLIDE 14

Propositional Logic Truth Tables Logical Equivalence

Inclusive Or vs. Exclusive Or

NOTE: The meaning of “or” here is inclusive, that is p ∨ q is true whenever p is true, or q is true, or both. e.g. “You will pass this course if you complete all of the homework or perform well on the exams.”

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-15
SLIDE 15

Propositional Logic Truth Tables Logical Equivalence

Inclusive Or vs. Exclusive Or

NOTE: The meaning of “or” here is inclusive, that is p ∨ q is true whenever p is true, or q is true, or both. e.g. “You will pass this course if you complete all of the homework or perform well on the exams.” This is certainly a true statement, especially if you do both!

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-16
SLIDE 16

Propositional Logic Truth Tables Logical Equivalence

Inclusive Or vs. Exclusive Or

NOTE: The meaning of “or” here is inclusive, that is p ∨ q is true whenever p is true, or q is true, or both. e.g. “You will pass this course if you complete all of the homework or perform well on the exams.” This is certainly a true statement, especially if you do both! When “or” is to be used in the exclusive sense, that is “p or q but not both” or “p or q but not both p and q,” then we write p ⊕ q or p XOR q.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-17
SLIDE 17

Propositional Logic Truth Tables Logical Equivalence

Examples

p : “The earth is flat.”

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-18
SLIDE 18

Propositional Logic Truth Tables Logical Equivalence

Examples

p : “The earth is flat.” q : “March has 31 days.”

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-19
SLIDE 19

Propositional Logic Truth Tables Logical Equivalence

Examples

p : “The earth is flat.” q : “March has 31 days.” ∼p : “The earth is not flat.”

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-20
SLIDE 20

Propositional Logic Truth Tables Logical Equivalence

Examples

p : “The earth is flat.” q : “March has 31 days.” ∼p : “The earth is not flat.” p ∧ q : “The earth is flat and March has 31 days.”

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-21
SLIDE 21

Propositional Logic Truth Tables Logical Equivalence

Examples

p : “The earth is flat.” q : “March has 31 days.” ∼p : “The earth is not flat.” p ∧ q : “The earth is flat and March has 31 days.” p ∨ q : “The earth is flat or March has 31 days.”

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-22
SLIDE 22

Propositional Logic Truth Tables Logical Equivalence

Order of Operations

∼ has the highest precedence, then ∧, then ∨.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-23
SLIDE 23

Propositional Logic Truth Tables Logical Equivalence

Order of Operations

∼ has the highest precedence, then ∧, then ∨. ∧ and ∨ associate to the left – group two statements from the left.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-24
SLIDE 24

Propositional Logic Truth Tables Logical Equivalence

Order of Operations

∼ has the highest precedence, then ∧, then ∨. ∧ and ∨ associate to the left – group two statements from the left. Parentheses can be used to indicate the order in which connectives should be taken. (It is a good habit to use parentheses to make compound statements more understandable.)

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-25
SLIDE 25

Propositional Logic Truth Tables Logical Equivalence

Order of Operations

∼ has the highest precedence, then ∧, then ∨. ∧ and ∨ associate to the left – group two statements from the left. Parentheses can be used to indicate the order in which connectives should be taken. (It is a good habit to use parentheses to make compound statements more understandable.) e.g. p ∧ ∼q ∧ r means (p ∧ (∼q)) ∧ r

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-26
SLIDE 26

Propositional Logic Truth Tables Logical Equivalence

Order of Operations

∼ has the highest precedence, then ∧, then ∨. ∧ and ∨ associate to the left – group two statements from the left. Parentheses can be used to indicate the order in which connectives should be taken. (It is a good habit to use parentheses to make compound statements more understandable.) e.g. p ∧ ∼q ∧ r means (p ∧ (∼q)) ∧ r p ∨ ∼q ∧ r means p ∨ ((∼q) ∧ r)

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-27
SLIDE 27

Propositional Logic Truth Tables Logical Equivalence

Translate from English to Symbols

Write the following sentences symbolically, letting h represent “It is hot” and letting s represent “It is sunny.”

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-28
SLIDE 28

Propositional Logic Truth Tables Logical Equivalence

Translate from English to Symbols

Write the following sentences symbolically, letting h represent “It is hot” and letting s represent “It is sunny.”

1 It is not hot, but it is sunny.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-29
SLIDE 29

Propositional Logic Truth Tables Logical Equivalence

Translate from English to Symbols

Write the following sentences symbolically, letting h represent “It is hot” and letting s represent “It is sunny.”

1 It is not hot, but it is sunny. 2 It is neither hot nor sunny.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-30
SLIDE 30

Propositional Logic Truth Tables Logical Equivalence

Translate from English to Symbols

Write the following sentences symbolically, letting h represent “It is hot” and letting s represent “It is sunny.”

1 It is not hot, but it is sunny. 2 It is neither hot nor sunny.

Answers

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-31
SLIDE 31

Propositional Logic Truth Tables Logical Equivalence

Translate from English to Symbols

Write the following sentences symbolically, letting h represent “It is hot” and letting s represent “It is sunny.”

1 It is not hot, but it is sunny. 2 It is neither hot nor sunny.

Answers

1 ∼h ∧ s

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-32
SLIDE 32

Propositional Logic Truth Tables Logical Equivalence

Translate from English to Symbols

Write the following sentences symbolically, letting h represent “It is hot” and letting s represent “It is sunny.”

1 It is not hot, but it is sunny. 2 It is neither hot nor sunny.

Answers

1 ∼h ∧ s 2 ∼h ∧ ∼s

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-33
SLIDE 33

Propositional Logic Truth Tables Logical Equivalence

Logically Dealing with Inequalities

Let p, q, and r symbolize x > 0, x < 3, and x = 3,

  • respectively. Write the following inequalities symbolically.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-34
SLIDE 34

Propositional Logic Truth Tables Logical Equivalence

Logically Dealing with Inequalities

Let p, q, and r symbolize x > 0, x < 3, and x = 3,

  • respectively. Write the following inequalities symbolically.

1 x ≤ 3

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-35
SLIDE 35

Propositional Logic Truth Tables Logical Equivalence

Logically Dealing with Inequalities

Let p, q, and r symbolize x > 0, x < 3, and x = 3,

  • respectively. Write the following inequalities symbolically.

1 x ≤ 3 2 0 < x < 3

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-36
SLIDE 36

Propositional Logic Truth Tables Logical Equivalence

Logically Dealing with Inequalities

Let p, q, and r symbolize x > 0, x < 3, and x = 3,

  • respectively. Write the following inequalities symbolically.

1 x ≤ 3 2 0 < x < 3 3 0 < x ≤ 3

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-37
SLIDE 37

Propositional Logic Truth Tables Logical Equivalence

Logically Dealing with Inequalities

Let p, q, and r symbolize x > 0, x < 3, and x = 3,

  • respectively. Write the following inequalities symbolically.

1 x ≤ 3 2 0 < x < 3 3 0 < x ≤ 3

Answers

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-38
SLIDE 38

Propositional Logic Truth Tables Logical Equivalence

Logically Dealing with Inequalities

Let p, q, and r symbolize x > 0, x < 3, and x = 3,

  • respectively. Write the following inequalities symbolically.

1 x ≤ 3 2 0 < x < 3 3 0 < x ≤ 3

Answers

1 x ≤ 3 means that x is less than or equal to 3, so we have q ∨ r.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-39
SLIDE 39

Propositional Logic Truth Tables Logical Equivalence

Logically Dealing with Inequalities

Let p, q, and r symbolize x > 0, x < 3, and x = 3,

  • respectively. Write the following inequalities symbolically.

1 x ≤ 3 2 0 < x < 3 3 0 < x ≤ 3

Answers

1 x ≤ 3 means that x is less than or equal to 3, so we have q ∨ r. 2 0 < x < 3 means that 0 < x and x < 3, so we have p ∧ q.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-40
SLIDE 40

Propositional Logic Truth Tables Logical Equivalence

Logically Dealing with Inequalities

Let p, q, and r symbolize x > 0, x < 3, and x = 3,

  • respectively. Write the following inequalities symbolically.

1 x ≤ 3 2 0 < x < 3 3 0 < x ≤ 3

Answers

1 x ≤ 3 means that x is less than or equal to 3, so we have q ∨ r. 2 0 < x < 3 means that 0 < x and x < 3, so we have p ∧ q. 3 0 < x ≤ 3 means that 0 < x and x ≤ 3, so we have p ∧ (q ∨ r).

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-41
SLIDE 41

Propositional Logic Truth Tables Logical Equivalence

∼p has the opposite truth value of p

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-42
SLIDE 42

Propositional Logic Truth Tables Logical Equivalence

∼p has the opposite truth value of p If p is true, ∼p is false, and if p is false, ∼p is true.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-43
SLIDE 43

Propositional Logic Truth Tables Logical Equivalence

∼p has the opposite truth value of p If p is true, ∼p is false, and if p is false, ∼p is true. Truth table for ∼p : p ∼p T F F T

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-44
SLIDE 44

Propositional Logic Truth Tables Logical Equivalence

p ∧ q is true when, and only when, both p and q are true.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-45
SLIDE 45

Propositional Logic Truth Tables Logical Equivalence

p ∧ q is true when, and only when, both p and q are true. If at least one of p or q is false, their conjunction p ∧ q is false as well.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-46
SLIDE 46

Propositional Logic Truth Tables Logical Equivalence

p ∧ q is true when, and only when, both p and q are true. If at least one of p or q is false, their conjunction p ∧ q is false as well. Truth table for p ∧ q : p q p ∧ q T T T T F F F T F F F F

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-47
SLIDE 47

Propositional Logic Truth Tables Logical Equivalence

p ∨ q is true whenever at least one of p and q are true.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-48
SLIDE 48

Propositional Logic Truth Tables Logical Equivalence

p ∨ q is true whenever at least one of p and q are true. p ∨ q is false when, and only when, p and q are both false

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-49
SLIDE 49

Propositional Logic Truth Tables Logical Equivalence

p ∨ q is true whenever at least one of p and q are true. p ∨ q is false when, and only when, p and q are both false Truth table for p ∨ q : p q p ∨ q T T T T F T F T T F F F

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-50
SLIDE 50

Propositional Logic Truth Tables Logical Equivalence

A statement form (or propositional form) is an expression made up of statement variables (such as p, q, and r) and logical connectives (such as ∼, ∧, and ∨) that becomes a statement when actual statements are substituted for the component statement variables.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-51
SLIDE 51

Propositional Logic Truth Tables Logical Equivalence

A statement form (or propositional form) is an expression made up of statement variables (such as p, q, and r) and logical connectives (such as ∼, ∧, and ∨) that becomes a statement when actual statements are substituted for the component statement variables. The truth table for a given statement form displays the truth values that correspond to all possible combinations of truth values for its component statement variables.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-52
SLIDE 52

Propositional Logic Truth Tables Logical Equivalence

A statement form (or propositional form) is an expression made up of statement variables (such as p, q, and r) and logical connectives (such as ∼, ∧, and ∨) that becomes a statement when actual statements are substituted for the component statement variables. The truth table for a given statement form displays the truth values that correspond to all possible combinations of truth values for its component statement variables. To compute the truth values for a statement form, follow rules similar to those used to evaluate algebraic expressions.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-53
SLIDE 53

Propositional Logic Truth Tables Logical Equivalence

A statement form (or propositional form) is an expression made up of statement variables (such as p, q, and r) and logical connectives (such as ∼, ∧, and ∨) that becomes a statement when actual statements are substituted for the component statement variables. The truth table for a given statement form displays the truth values that correspond to all possible combinations of truth values for its component statement variables. To compute the truth values for a statement form, follow rules similar to those used to evaluate algebraic expressions. For each combination of truth values for the statement variables, first evaluate the expressions within the innermost parentheses, and then work your way out until you have the truth values for the complete expression.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-54
SLIDE 54

Propositional Logic Truth Tables Logical Equivalence

Note that p XOR q can be expressed as (p ∨ q) ∧ ∼(p ∧ q).

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-55
SLIDE 55

Propositional Logic Truth Tables Logical Equivalence

Note that p XOR q can be expressed as (p ∨ q) ∧ ∼(p ∧ q). The truth table for “exclusive or” is thus p q p ∨ q p ∧ q ∼(p ∧ q) (p ∨ q) ∧ ∼(p ∧ q) T T T T F F T F T F T T F T T F T T F F F F T F

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-56
SLIDE 56

Propositional Logic Truth Tables Logical Equivalence

Another Example

The truth table for (p ∧ q) ∨ ∼r is p q r p ∧ q ∼r (p ∧ q) ∨ ∼r T T T T F T T T F T T T T F T F F F T F F F T T F T T F F F F T F F T T F F T F F F F F F F T T

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-57
SLIDE 57

Propositional Logic Truth Tables Logical Equivalence

Tautologies and Contradictions

A tautology is a statement form that’s always true regardless

  • f the truth values of the individual statements and is

sometimes denoted by t.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-58
SLIDE 58

Propositional Logic Truth Tables Logical Equivalence

Tautologies and Contradictions

A tautology is a statement form that’s always true regardless

  • f the truth values of the individual statements and is

sometimes denoted by t. A contradiction is a statement form that’s always false regardless of the truth values of the individual statements and is sometimes denoted by c.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-59
SLIDE 59

Propositional Logic Truth Tables Logical Equivalence

Tautologies and Contradictions

A tautology is a statement form that’s always true regardless

  • f the truth values of the individual statements and is

sometimes denoted by t. A contradiction is a statement form that’s always false regardless of the truth values of the individual statements and is sometimes denoted by c. e.g. p ∨ ∼p is a tautology whereas p ∧ ∼p is a contradiction: p ∼p p ∨ ∼p p ∧ ∼p T F T F F T T F

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-60
SLIDE 60

Propositional Logic Truth Tables Logical Equivalence

Exercises

If a statement form has n variables, how many rows will its truth table have? Construct truth tables for the following statement forms:

1 ∼(p ∧ q) 2 ∼p ∧ ∼q 3 ∼p ∨ ∼q 4 p ∨ (∼q ∧ r)

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-61
SLIDE 61

Propositional Logic Truth Tables Logical Equivalence

Two statement forms are called logically equivalent if, and

  • nly if, they have identical truth values for each possible

assignment of truth values to their statement variables.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-62
SLIDE 62

Propositional Logic Truth Tables Logical Equivalence

Two statement forms are called logically equivalent if, and

  • nly if, they have identical truth values for each possible

assignment of truth values to their statement variables. Notation: If P and Q are logically equivalent, we write P ≡ Q.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-63
SLIDE 63

Propositional Logic Truth Tables Logical Equivalence

Two statement forms are called logically equivalent if, and

  • nly if, they have identical truth values for each possible

assignment of truth values to their statement variables. Notation: If P and Q are logically equivalent, we write P ≡ Q. To test whether P and Q are logically equivalent:

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-64
SLIDE 64

Propositional Logic Truth Tables Logical Equivalence

Two statement forms are called logically equivalent if, and

  • nly if, they have identical truth values for each possible

assignment of truth values to their statement variables. Notation: If P and Q are logically equivalent, we write P ≡ Q. To test whether P and Q are logically equivalent:

1 Construct a truth table with one column for P and another

column for Q.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-65
SLIDE 65

Propositional Logic Truth Tables Logical Equivalence

Two statement forms are called logically equivalent if, and

  • nly if, they have identical truth values for each possible

assignment of truth values to their statement variables. Notation: If P and Q are logically equivalent, we write P ≡ Q. To test whether P and Q are logically equivalent:

1 Construct a truth table with one column for P and another

column for Q.

2 Check for whether these two columns are identical.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-66
SLIDE 66

Propositional Logic Truth Tables Logical Equivalence

Example: double negation property: ∼(∼p) ≡ p p ∼p ∼(∼p) T F T F T F

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-67
SLIDE 67

Propositional Logic Truth Tables Logical Equivalence

Example: De Morgan’s Laws p q ∼p ∼q p ∧ q ∼(p ∧ q) ∼p ∨ ∼q T T F F T F F T F F T F T T F T T F F T T F F T T F T T

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-68
SLIDE 68

Propositional Logic Truth Tables Logical Equivalence

Example: De Morgan’s Laws p q ∼p ∼q p ∧ q ∼(p ∧ q) ∼p ∨ ∼q T T F F T F F T F F T F T T F T T F F T T F F T T F T T So ∼(p ∧ q) ≡ ∼p ∨ ∼q.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-69
SLIDE 69

Propositional Logic Truth Tables Logical Equivalence

Example: De Morgan’s Laws p q ∼p ∼q p ∧ q ∼(p ∧ q) ∼p ∨ ∼q T T F F T F F T F F T F T T F T T F F T T F F T T F T T So ∼(p ∧ q) ≡ ∼p ∨ ∼q. Exercise: use truth tables to show that ∼(p ∨ q) ≡ ∼p ∧ ∼q.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-70
SLIDE 70

Propositional Logic Truth Tables Logical Equivalence

De Morgan’s Laws demystified

Simply stated, the negation of an “and” statement is logically equivalent to the “or” statement in which each component is negated.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-71
SLIDE 71

Propositional Logic Truth Tables Logical Equivalence

De Morgan’s Laws demystified

Simply stated, the negation of an “and” statement is logically equivalent to the “or” statement in which each component is negated. This should intuitively should make sense. In order for p ∧ q to be false, we would need p to be false or q to be false.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-72
SLIDE 72

Propositional Logic Truth Tables Logical Equivalence

De Morgan’s Laws demystified

Simply stated, the negation of an “and” statement is logically equivalent to the “or” statement in which each component is negated. This should intuitively should make sense. In order for p ∧ q to be false, we would need p to be false or q to be false. The negation of an “or” statement is logically equivalent to the “and” statement in which each component is negated.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-73
SLIDE 73

Propositional Logic Truth Tables Logical Equivalence

De Morgan’s Laws demystified

Simply stated, the negation of an “and” statement is logically equivalent to the “or” statement in which each component is negated. This should intuitively should make sense. In order for p ∧ q to be false, we would need p to be false or q to be false. The negation of an “or” statement is logically equivalent to the “and” statement in which each component is negated. Again, this should intuitively make sense. In order for p ∨ q to be false, both p and q need to be false.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-74
SLIDE 74

Propositional Logic Truth Tables Logical Equivalence

Write negations of each of the following statements in simple English.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-75
SLIDE 75

Propositional Logic Truth Tables Logical Equivalence

Write negations of each of the following statements in simple English.

1 John is 6 feet tall and he weighs at least 200 pounds.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-76
SLIDE 76

Propositional Logic Truth Tables Logical Equivalence

Write negations of each of the following statements in simple English.

1 John is 6 feet tall and he weighs at least 200 pounds. 2 The bus was late or Tom’s watch was slow.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-77
SLIDE 77

Propositional Logic Truth Tables Logical Equivalence

Write negations of each of the following statements in simple English.

1 John is 6 feet tall and he weighs at least 200 pounds. 2 The bus was late or Tom’s watch was slow.

Answers:

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-78
SLIDE 78

Propositional Logic Truth Tables Logical Equivalence

Write negations of each of the following statements in simple English.

1 John is 6 feet tall and he weighs at least 200 pounds. 2 The bus was late or Tom’s watch was slow.

Answers:

1 John is not 6 feet tall or he weighs less than 200 pounds.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-79
SLIDE 79

Propositional Logic Truth Tables Logical Equivalence

Write negations of each of the following statements in simple English.

1 John is 6 feet tall and he weighs at least 200 pounds. 2 The bus was late or Tom’s watch was slow.

Answers:

1 John is not 6 feet tall or he weighs less than 200 pounds. 2 The bus was not late and Tom’s watch was not slow.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-80
SLIDE 80

Propositional Logic Truth Tables Logical Equivalence

Write negations of each of the following statements in simple English.

1 John is 6 feet tall and he weighs at least 200 pounds. 2 The bus was late or Tom’s watch was slow.

Answers:

1 John is not 6 feet tall or he weighs less than 200 pounds. 2 The bus was not late and Tom’s watch was not slow.

WARNING: “The bus was early and Tom’s watch was fast” is an incorrect negation! Be careful with what the opposite of common English words are.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications

slide-81
SLIDE 81

Propositional Logic Truth Tables Logical Equivalence

Common Logical Equivalences

Exercise: Verify these using truth tables.

Chapter 2: The Logic of Compound Statements (Part 1) Discrete Mathematics with Applications