L05 - Negating Statements

L05 - Negating Statements
CSci/Math 2112
15 May 2015
1 / 14
Assignment 1
I
Assignment 1 is now posted
I
Due May 22 at the beginning of class
I
Can work on it in groups, but separate write-up
I
Don’t forget your name, B00# on first page; staple
I
Questions in the right order
I
Points for each question are in the margin
2 / 14
More on Quantifiers and Implications
I
Instead of ∃! you can always use ∃, it only emphasizes that
there is exactly one (similar to ( instead of ⊆)
3 / 14
More on Quantifiers and Implications
I
I
Instead of ∃! you can always use ∃, it only emphasizes that
there is exactly one (similar to ( instead of ⊆)
Unless asked to, do not use symbolic shorthand on
assignments or tests! Use full sentences.
3 / 14
More on Quantifiers and Implications
I
I
Instead of ∃! you can always use ∃, it only emphasizes that
there is exactly one (similar to ( instead of ⊆)
Unless asked to, do not use symbolic shorthand on
assignments or tests! Use full sentences.
I
Symbolic shorthand is very useful though for scrap work!
3 / 14
More on Quantifiers and Implications
I
I
Instead of ∃! you can always use ∃, it only emphasizes that
there is exactly one (similar to ( instead of ⊆)
Unless asked to, do not use symbolic shorthand on
assignments or tests! Use full sentences.
I
I
Symbolic shorthand is very useful though for scrap work!
For some implications P ⇒ Q the truth value depends on a
variable x. These are interpreted as ∀x ∈ A, P ⇒ Q.
3 / 14
Pop Quiz!
Don’t forget to put your name on your quiz!
Question 1
According to DeMorgan’s Laws, we have ∼ (P ∧ Q) = . . .
Question 2
The only case in which P ⇒ Q is false is if . . . Therefore
∼ (P ⇒ Q) = . . .
4 / 14
English to Symbolic
Questions about Section 2.9 (Translating English to Symbolic
Language)?
5 / 14
Negations
Why do we need to know how to negate a statement?
I
The contrapositive of an implication is ∼ Q ⇒∼ P.
6 / 14
Negations
Why do we need to know how to negate a statement?
I
The contrapositive of an implication is ∼ Q ⇒∼ P.
I
To find examples showing that a statement is false (a
counterexample).
6 / 14
Negations
Why do we need to know how to negate a statement?
I
The contrapositive of an implication is ∼ Q ⇒∼ P.
I
To find examples showing that a statement is false (a
counterexample).
I
P ⇒ Q =∼ P ∨ Q
6 / 14
Negations
Why do we need to know how to negate a statement?
I
The contrapositive of an implication is ∼ Q ⇒∼ P.
I
To find examples showing that a statement is false (a
counterexample).
I
P ⇒ Q =∼ P ∨ Q
A lot of mistakes are made negating statements - pay attention to
details and practice!
6 / 14
Negation: Truth Tables
I
One way to negate a statement is to look at its truth table
7 / 14
Negation: Truth Tables
I
One way to negate a statement is to look at its truth table
I
Flip all entries
7 / 14
Negation: Truth Tables
I
One way to negate a statement is to look at its truth table
I
Flip all entries
I
Do the disjunctive normal form of the negated statement
7 / 14
Negations: And, Or, Xor
I
∼ (P ∨ Q) =∼ P∧ ∼ Q (DeMorgan’s Law)
I
∼ (P ∧ Q) =∼ P∨ ∼ Q (DeMorgan’s Law)
I
∼ (P ⊕ Q) = (P ∧ Q) ∨ (∼ P∧ ∼ Q)
8 / 14
Negations: And, Or, Xor
Example 1
Negate each of the following statements.
9 / 14
Negations: And, Or, Xor
Example 1
Negate each of the following statements.
(a) I like reading and playing games.
9 / 14
Negations: And, Or, Xor
Example 1
Negate each of the following statements.
(a) I like reading and playing games.
(b) Either Pearl or Bob was in the ballroom, but not both.
9 / 14
Negations: And, Or, Xor
Example 1
Negate each of the following statements.
(a) I like reading and playing games.
(b) Either Pearl or Bob was in the ballroom, but not both.
(c) I don’t like being sick or tired.
9 / 14
Negations: And, Or, Xor
Example 1
Negate each of the following statements.
(a) I like reading and playing games.
(b) Either Pearl or Bob was in the ballroom, but not both.
(c) I don’t like being sick or tired.
(d) The integer x is divisible by 2 and by 3.
9 / 14
Negations: And, Or, Xor
Example 1
Negate each of the following statements.
(a) I like reading and playing games.
(b) Either Pearl or Bob was in the ballroom, but not both.
(c) I don’t like being sick or tired.
(d) The integer x is divisible by 2 and by 3.
(e) At least one of the integers x and y is even.
9 / 14
Negation: Quantifiers
I
∼ ∃ - there is not a single one satisfying the statement, thus
for all (∀) the statement is false
10 / 14
Negation: Quantifiers
I
∼ ∃ - there is not a single one satisfying the statement, thus
for all (∀) the statement is false
I
∼ (∃x ∈ S, P(x)) = ∀x ∈ S, ∼ P(x)
10 / 14
Negation: Quantifiers
I
∼ ∃ - there is not a single one satisfying the statement, thus
for all (∀) the statement is false
I
I
∼ (∃x ∈ S, P(x)) = ∀x ∈ S, ∼ P(x)
∼ ∀ - there is at least one (∃) for which the statement isn’t
true
10 / 14
Negation: Quantifiers
I
∼ ∃ - there is not a single one satisfying the statement, thus
for all (∀) the statement is false
I
I
∼ (∃x ∈ S, P(x)) = ∀x ∈ S, ∼ P(x)
∼ ∀ - there is at least one (∃) for which the statement isn’t
true
I
∼ (∀x ∈ S, P(x)) = ∃x ∈ S, ∼ P(x)
10 / 14
Negation: Quantifiers
Example 2
Negate the following:
11 / 14
Negation: Quantifiers
Example 2
Negate the following:
(a) Some subsets of N have 5 elements.
11 / 14
Negation: Quantifiers
Example 2
Negate the following:
(a) Some subsets of N have 5 elements.
(b) For every real number x there is a real number y for which
y 3 = x.
11 / 14
Negation: Quantifiers
Example 2
Negate the following:
(a) Some subsets of N have 5 elements.
(b) For every real number x there is a real number y for which
y 3 = x.
(c) For any two integers x and y ,
x
y
is a rational number.
11 / 14
Negation: Quantifiers
Example 2
Negate the following:
(a) Some subsets of N have 5 elements.
(b) For every real number x there is a real number y for which
y 3 = x.
(c) For any two integers x and y ,
x
y
is a rational number.
(d) There is an integer a such that for all integers b we have
a + b = b.
11 / 14
Negation: Quantifiers
Example 2
Negate the following:
(a) Some subsets of N have 5 elements.
(b) For every real number x there is a real number y for which
y 3 = x.
(c) For any two integers x and y ,
x
y
is a rational number.
(d) There is an integer a such that for all integers b we have
a + b = b.
(e) For every integer a there exists an integer b such that
a + b = 0.
11 / 14
Negation: Implication
I
∼ (P ⇒ Q) = P∧ ∼ Q
12 / 14
Negation: Implication
Example 3
Negate the following:
13 / 14
Negation: Implication
Example 3
Negate the following:
(a) If Pearl was in the ballroom, then so was Venom.
13 / 14
Negation: Implication
Example 3
Negate the following:
(a) If Pearl was in the ballroom, then so was Venom.
(b) If a number is divisible by 6, then it is even.
13 / 14
Negation: Implication
Example 3
Negate the following:
(a) If Pearl was in the ballroom, then so was Venom.
(b) If a number is divisible by 6, then it is even.
(c) If you came to class today, then you were up before 10:30am.
13 / 14
Negation: Implication
Example 3
Negate the following:
(a) If Pearl was in the ballroom, then so was Venom.
(b) If a number is divisible by 6, then it is even.
(c) If you came to class today, then you were up before 10:30am.
(d) If x ∈ Z, then −x ∈ Z.
13 / 14
Negation: Everything combined
Example 4
Negate the following:
14 / 14
Negation: Everything combined
Example 4
Negate the following:
(a) If the street is wet, then it rained or there was another water
source.
14 / 14
Negation: Everything combined
Example 4
Negate the following:
(a) If the street is wet, then it rained or there was another water
source.
(b) You came to class an you were either on time or late, but not
both.
14 / 14
Negation: Everything combined
Example 4
Negate the following:
(a) If the street is wet, then it rained or there was another water
source.
(b) You came to class an you were either on time or late, but not
both.
(c) If for all x ∈ A we know that 2x ∈ A as well, then either A is
empty, or A is infinite, but not both.
14 / 14
Negation: Everything combined
Example 4
Negate the following:
(a) If the street is wet, then it rained or there was another water
source.
(b) You came to class an you were either on time or late, but not
both.
(c) If for all x ∈ A we know that 2x ∈ A as well, then either A is
empty, or A is infinite, but not both.
(d) If A = Z, then for all x ∈ A we know that 2x ∈ A as well.
14 / 14
Negation: Everything combined
Example 4
Negate the following:
(a) If the street is wet, then it rained or there was another water
source.
(b) You came to class an you were either on time or late, but not
both.
(c) If for all x ∈ A we know that 2x ∈ A as well, then either A is
empty, or A is infinite, but not both.
(d) If A = Z, then for all x ∈ A we know that 2x ∈ A as well.
(e) Every integer that is not odd is even.
14 / 14