L8 Quantifiers
L8 Quantifiers
L8 Quantifiers
Matias
Computer Engineering Department
College of Engineering
• A predicate is an expression of one or more variables defined on some
specific domain.
• The domain of a predicate variable is the set of all values that may be
substituted in place of the variable.
A predicate with variables can be made a proposition by either assigning a
value to the variable or by quantifying the variable.
1 2 1 1 1
• P( )
𝟏
x2 >x > > False
𝟐 2 2 4 2
1 2 1 1 1
• P(- ) 𝟏
x2 > x − >− >− True
𝟐 2 2 4 2
• Let Q(n) be the predicate “n is a factor of 8.” Find the truth set of
Q(n) if
a. The truth set is {1, 2, 4, 8} because these are exactly the positive integers that
divide 8 evenly.
b. The truth set is {1, 2, 4, 8, -1, -2, -4, -8} because the negative integers -1, -2, -4,
and -8 also divide into 8 without leaving a remainder.
The variable of predicates is quantified by quantifiers. There are two
types of quantifier in predicate logic − Universal Quantifier and
Existential Quantifier.
Universal quantifier states that the statements within its scope are
true for every value of the specific variable. It is denoted by the
symbol ∀.
∀ ∃
When True? : When P(x) is true for every When True? : There is an x in the domain
x in the domain. for which P(x) is true.
When False? : There is an x in the When False? : When P(x) is false for
domain where P(x) is false. every x in the domain.
¬ ∃x P(x) ≡ ∀x ¬ P(x)
• True when P(x) is false for every x in the domain.
• False when there is an x in the domain for which P(x) is true.
Let P(x) be the statement “x has taken a course in Java programming”
for the domain of first year students.
∃x ¬ P(x)
∀x ¬ P(x)
There is an honest politician.
¬ ∃x H(x) ≡ ∀x ¬ H(x)
¬ ∀x M(x) ≡ ∃x ¬ M(x)
∃xP(x) TRUE
Let P(x) be x+1 = 2x if the domain consists of all integers. Find the truth
values of:
∃xP(x) TRUE
Let U = {1, 2, 3, 4, 5}, where P(x) represents the statement “x2 ≥ x”.
∀xP(x) x2 ≥ x 12 ≥ 1 22 ≥ 2 32 ≥ 3 42 ≥ 4 52 ≥ 5 TRUE
1≥1 4≥2 9≥3 16 ≥ 4 25 ≥ 5
∃xP(x) TRUE
Let P(x) represent the statement “x2 ≥ x” if the domain consists of all
real numbers.
∃xP(x) TRUE
The statement ∃!xP(x) tells us that the proposition P(x) is true for
exactly one value of x in the domain of discourse.