Quantifiers
There are two quantifiers:
-
reads "for all "
-
reads "there exists such that..."
Consider the statement says that every other than zero has a multiplicative inverse. This statement is valid over and but not . Therefore, the validity of a statement depends crucially on the universe we are working in. We often make the universe explicit by writing where is the universe.
The statement "there exists an integer between and " can be written mathematically as .
Notice that the statement "" is not a proposition. We call it a propositional formula P(x) (or a predicate).
The ordering of the quantifier matters. Consider the following two statements:
- . This statement reads "there exists a largest integer".
- . This statement can be read as "given an integer, there is a larger (or equal) one".
Obviously, the first statement is false, while the second is true.
Negation: Let and be propositions. The negation of conjunction is the same as . Similarly for the negation of disjunction . These simple rules are known as De Morgan’s Laws. Since we can view as (read as the conjunction of with a over ), it should be intuitive to believe that is the same as . Similar rules apply to the universal quantifier, i.e., .
How to write a statement "there are at least two distinct integers that satisfy "? One way to do it is . What about the statement "there are at most two distinct integers that satisfy P(x)"? Here it is:
In a two-player game (like chess), the statement "Black will checkmate in two turns" can also be written using alternating quantifiers. Let us try to understand this. Let be the predicate indicating that if White uses strategy y and Black uses x, then Black wins. So we can write to say that no matter how White plays the current turn, Black has a strategy to win.