Free preview
83 lessons
Mathematical Foundations for ML
Free preview
Mathematical Foundations for ML · 83 lessons
No surprise gaps
Actually remember it
Skip what you know
One subscription. All learning paths included.
Our content is best on a larger screen
Negating simple statements
Every statement has a negation - a new statement with the opposite truth value. If is true, its negation is false, and vice versa.
Definition
The negation of a statement , written (read "not "), is true when is false and false when is true.
We often label a statement with a letter, for example : "", and write its negation as : "".
This mirrors complements from sets: just as contains everything not in , the negation captures the opposite of .
Negating mathematical statements takes a little care. The negation must capture every value the original misses, with no overlap and no gaps. Here are some common patterns:
| Statement | Negation | Why |
|---|---|---|
| Flips direction and swaps strict for non-strict. Using would lose . | ||
| Same rule: flip direction, swap non-strict for strict. | ||
| Swap and . | ||
| At least one element of is not in . | ||
| is even | is odd | Add or remove "not" (equivalently, " is not even"). |
Key Point
The original statement and its negation form a partition: exactly one of and is true for any given value. There is no middle ground.
Negate each of the following statements and determine the truth value of both the original and its negation.
Solution
Statement :
The negation flips the inequality and swaps strict for non-strict:
With : the original is false ( is not greater than ), and the negation is true (). The truth values are opposite, as expected.
Statement :
The negation swaps membership:
With : the original is false ( is not an integer), and the negation is true ().
Statement : is a perfect square
The negation adds "not":
With : the original is true (), so the negation is false.
In every case, the original and its negation have opposite truth values - exactly one is true.
Practice questions
4 questions
Let : . What is ?
Select the correct answer:
+ 3 more questions
Negating "and" statements
We can negate individual statements. What about compound ones? Let's start with conjunctions - statements joined by "and."
Consider . What does it mean for this to be false?
Recall that requires both parts to hold. So it fails whenever at least one part fails - that is, when is false or is false. The negation of is therefore or .
Definition
The negation of is:
Negate each part and change "and" to "or."
Gotcha
A tempting but wrong negation of is and . This says both parts fail, but the original is false as soon as one part fails. Forgetting to swap the connective is the most common error.
This is one half of what are called De Morgan's laws - we will meet the other half next.
Negate the statement: is positive and is an integer. Then verify your negation for , , and .
Step 1: Identify and .
The original statement is .
Step 2: Negate each part.
Step 3: Apply De Morgan's first law - swap "and" for "or":
So the negation is: or .
Verification:
Details
Practice questions
4 questions
What is the negation of and ?
Select the correct answer:
+ 3 more questions
Negating "or" statements
We have seen that negating swaps the connective to "or." Now consider the other direction: what does it mean for to be false?
Recall that requires at least one part to hold. So it fails only when neither holds - when is false and is false. The negation of is therefore and .
Definition
The negation of is:
Negate each part and change "or" to "and."
Together with the rule for negating "and" statements, we have a pair known as De Morgan's laws: negation always swaps the connective. "And" becomes "or", and "or" becomes "and."
Details
Negate the statement: is even or . Then verify your negation for , , and .
Step 1: Identify and .
The original statement is .
Step 2: Negate each part.
Step 3: Apply De Morgan's second law - swap "or" for "and":
So the negation is: is odd and .
Verification:
Details
Practice questions
4 questions
What is the negation of is prime or is odd?
Select the correct answer:
+ 3 more questions