Remark. Disjunction in English: inclusive and exclusive OR [003M]

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.