In discrete mathematics, compound propositions are formed using logical operators. One of the most important operators is disjunction, which represents a choice or alternative between statements.
Disjunction is used when at least one condition must be true. It is widely applied in logical reasoning, programming, and digital systems.
A disjunction is a compound proposition formed by combining two propositions using the logical operator OR.
If p and q are propositions, then their disjunction is written as:
p ∨ q
The disjunction p ∨ q is true if at least one of p or q is true. It is false only when both are false.
The symbol used for disjunction is:
∨
p ∨ q is read as:
Note: This is inclusive OR, meaning both can be true.
| p | q | p ∨ q |
|---|---|---|
| True | True | True |
| True | False | True |
| False | True | True |
| False | False | False |
p and q are falseLet:
p: It is rainingq: It is coldThen:
p ∨ q
means: It is raining OR it is cold
✔ This is true if at least one statement is true.
Let:
p(x): x > 0q(x): x < 10Then:
p(x) ∨ q(x)
This is a predicate, not a proposition, because x is not specified.
x = 5p(5): 5 > 0 → Trueq(5): 5 < 10 → Truep(5) ∨ q(5) → True ∨ True → True
x = -3p(-3): -3 > 0 → Falseq(-3): -3 < 10 → Truep(-3) ∨ q(-3) → False ∨ True → True
x = 15p(15): 15 > 0 → Trueq(15): 15 < 10 → Falsep(15) ∨ q(15) → True ∨ False → True
Let x = 0 and modify predicate slightly for demonstration:
p(x): x > 0 → Falseq(x): x < 0 → Falsep(0) ∨ q(0) → False ∨ False → False
✔ Only in this case the disjunction is false.
Let:
p: A number is evenq: A number is divisible by 3Then:
p ∨ q
means: The number is even OR divisible by 3
✔ True if at least one condition holds.
p ∨ q ≡ q ∨ p
(p ∨ q) ∨ r ≡ p ∨ (q ∨ r)
p ∨ False ≡ p
p ∨ True ≡ True
p ∨ p ≡ p
Disjunction interacts with negation in important ways.
p ∨ ¬p
This is always true and represents a tautology.
∨)Example (XOR concept):
∨p ∨ q is false only when both are false