Disjunction (OR) [003F]
- January 21, 2026
We next consider disjunction, commonly known as OR.
Definition Disjunction [003H]
- January 21, 2026
The disjunction of P and Q is written P \lor Q, and pronounced "P or Q". It is true when at least one of P and Q are true, and false when both are false.
Remark Truth table for disjunction [003I]
- January 21, 2026
We can make a truth table for disjunction as follows: \begin {array}{ccc} P & Q & P \lor Q \\ \hline \mathsf {T} & \mathsf {T} & \mathsf {T} \\ \mathsf {T} & \mathsf {F} & \mathsf {T} \\ \mathsf {F} & \mathsf {T} & \mathsf {T} \\ \mathsf {F} & \mathsf {F} & \mathsf {F} \\ \end {array}
Remark Notation for conjunction vs disjunction [003J]
- January 21, 2026
The symbols \land and \lor are easy to mix up. Just remember that \land looks like a capital "A" for "And", \lor looks like a capital "V" for "Vote" (a vote is when you choose between options).
Remark Duality of conjunction and disjunction [003K]
- January 21, 2026
There's a good reason the symbols for conjunction and disjunction are upside down versions of each
other: they are "opposite" (the mathy word is "dual") in the
sense that if we consider an opposite world where everything false
becomes true and vice versa, then \land becomes \lor and vice
versa. Consider the following alternative definition of disjunction:
The disjunction of propositions P and Q is false when both P
and Q are false, and true otherwise.Definition Disjunction (alternative) [003L]
Disjunction in Disco [003Q]
- January 28, 2026
In Disco, disjunction can be written \/, or or, or ||:
Disco> T or F T Disco> (1 < 5) || (6 <= 6) T Disco> false \/ (99 == 990) F
Remark Disjunction in English: inclusive and exclusive OR [003M]
- January 21, 2026
Unlike the word "and", whose English meaning corresponds pretty exactly with its meaning in logic, we use the English word "or" in at least two logically distinct ways. Consider the following English sentences:
- The prerequisite for Algorithms is MATH 240 or permission of the instructor.
- Each entree is served with your choice of soup or a salad.
In the first example, it's OK for both things to be true: it is fine if you pass MATH 240 and also (for some reason) get the instructor's permission to take Algorithms. This is called inclusive or, and corresponds to disjunction (\lor ).
In the other example, you can choose soup, or a salad, but not both (you would be charged extra, at the very least). This is called exclusive or, sometimes written P \oplus Q. It is true when exactly one of P, Q is true, and false otherwise. (Put another way, it is true when P and Q are different, and false when they are the same.) Exclusive or is very important in computer science, but rarely comes up in mathematical logic.