In discrete mathematics, many logical statements express a dependency between two propositions. Such relationships are captured using the conditional statement, also known as implication.
Conditional statements are fundamental in:
They describe situations where one statement depends on another.
A conditional statement is a compound proposition of the form:
p → q
If p and q are propositions, then p → q is read as:
In p → q:
p is called the antecedent (or hypothesis)q is called the consequent (or conclusion)| p | q | p → q |
|---|---|---|
| True | True | True |
| True | False | False |
| False | True | True |
| False | False | True |
The conditional statement p → q is false only when:
p is True and q is Falsep) is true but the result (q) is false, the implication failsThis may feel unintuitive initially, but it ensures consistency in logical reasoning.
Let:
p: It is rainingq: The ground is wetThen:
p → q
means: If it is raining, then the ground is wet
Let:
p: A number is divisible by 2q: The number is evenThen:
p → q
✔ This is logically valid.
Let:
p(x): x > 2q(x): x > 0Then:
p(x) → q(x)
This is a predicate, not a proposition, until a value is assigned.
x = 5p(5): 5 > 2 → Trueq(5): 5 > 0 → Truep(5) → q(5) → True → True → True
x = 1p(1): 1 > 2 → Falseq(1): 1 > 0 → Truep(1) → q(1) → False → True → True
p = False) makes the implication automatically trueq → p
¬p → ¬q
¬q → ¬p
p → q is logically equivalent to ¬q → ¬p (contrapositive)A conditional can be rewritten as:
p → q ≡ ¬p ∨ q
“If p then q” is equivalent to “not p OR q”
Conditional statement is written as p → q
It is false only when p is true and q is false
It consists of:
p)q)Equivalent to ¬p ∨ q
Related forms include: