logic3
logic3
Quantifiers & Propositional Logic: Variable statements such as “x+3 = 7” or “x2 +y 2 ≤ 1”,
while declarative, do not have a single, well-defined truth value. A truth value may be assigned by
either subbing in values for all of the variables or quantifying when we expect the statement to be
true (such as for all values of the variable or at least one value).
Thus far, we have only studied propositions which were very concrete. For example: 3 < 5,
today is Friday, 24 is a prime number, 3 is an odd number, 2 · 3 + 1 = 7 are all examples of valid
propositions. Recall that a proposition is a declarative sentence that has exactly one, well-defined
truth value (true or false). Suppose we use variables in our propositions, such as x < 0. Clearly,
for any particular value for x, the proposition will either be true or false. As with sets, where we
always worked in a Universal Set, we must also work in the Universe of Discourse. Basically, the
Universe of Discourse is where we can find particular values for x (aka the domain of x). Suppose
we let L(x) represent “x < 0” and we let our Universe of Discourse be all real numbers. Then valid
substitutions for x might be 3, 2.15, 3.14159, etc. If the Universe of Discourse is the integers, then
we could substitute 1, −3, or 17 for x but not 2.4 (2.4 is not an integer).
Let the Universe of Discourse be the integers. Then, the following are examples of propositional
functions:
1. ∀x L(x) which is interpreted as “for all x, x < 0.” This proposition is true if ALL possible
substitutions for x make L(x) true. Clearly this is false as 1 is an integer and 1 > 0.
2. ∃x L(x) which is interpreted as “there exists an x such that x < 0.” This is true as long as
there is AT LEAST ONE value for x that makes L(x) true. Notice that x = −1 will suffice
to prove this proposition true.
Moreover, we can use the quantifiers ∀ and ∃ iteratively. Let the Universe of Discourse be the
set of all people. Define K(x, y) as “x knows y.”
1
MATH–131
Logic January 24, 2021
Part 3
http://people.rit.edu/jdd5747 Discrete Mathematics
Let’s look at some more examples. Here, the Universe of Discourse will be the integers.
Define: Prime(x) as “x is prime” Even(x) as “x is even” Positive(x) as “x > 0”
Notice that the negation of “for all” is “there exists” and vice versa. More examples of negation: