In discrete mathematics, logical reasoning often involves analyzing not only what is true, but also what is not true. The logical operator that allows us to reverse the truth value of a proposition is called negation.
Negation is one of the most fundamental operations in logic and serves as the basis for more complex logical constructions.
A negation is a unary logical operation that reverses the truth value of a proposition.
If p is a proposition, then its negation is written as:
¬p
p is true, then ¬p is falsep is false, then ¬p is trueThe symbol used for negation is:
¬
¬p is read as:
| p | ¬p |
|---|---|
| True | False |
| False | True |
Let:
p: It is rainingThen:
¬p
means: It is not raining
Let:
p: 5 is even (False)Then:
¬p → True
✔ Since the original statement is false, its negation is true.
Let:
p(x): x > 0Then:
¬p(x): x ≤ 0
✔ This is still a predicate, not a proposition, until a value is assigned.
x = 3p(3): 3 > 0 → True¬p(3) → Falsex = -2p(-2): -2 > 0 → False¬p(-2) → TrueNegation can also be applied to compound statements.
¬(p ∧ q) ≡ ¬p ∨ ¬q
¬(p ∨ q) ≡ ¬p ∧ ¬q
These are known as De Morgan’s Laws.
¬(¬p) ≡ p
Negating a statement twice returns the original statement.
Negation is commonly used in everyday reasoning:
In programming:
if (!condition)
Negation reverses the truth value of a proposition
Represented using ¬
Truth table simply flips values
Works with both simple and compound propositions
Follows important laws such as: