Discrete Math 2mark Quantifiers Predicate Logic
Discrete Math 2mark Quantifiers Predicate Logic
A universal quantifier (∀) states that a predicate is true for all elements in the domain.
Example: (∀x)P(x) means P(x) is true for every x.
An existential quantifier (∃) states that there exists at least one element in the domain for
which the predicate is true. Example: (∃x)P(x) means P(x) is true for some x.
A free variable is not quantified and can take any value from the domain. A bound variable
is within the scope of a quantifier.
If P(x) and Q(x) are true for all x, then P(x) must be true for at least one x, hence (∃x)P(x) is
true. So, the implication is valid.
12. 12. Express using quantifiers: For every x, there exists a y such that x² + y² ≥ 10
(∀x)(∃y)(x² + y² ≥ 10)
13. 13. If P(x): x² < 10, universe: {1,2,3,4}, find truth value of (∀x)P(x).
Check:
1²=1<10 ✓
2²=4<10 ✓
3²=9<10 ✓
4²=16>10 ✗
So, (∀x)P(x) is FALSE.
14. 14. Negation using quantifiers: “Any integer is either positive or negative”.
They are not logically equivalent. Example: Let P(x,y): x<y. Then (∃y)(∀x)(x<y) is false, but
(∀y)(∃x)(x<y) is true.
From (∀x)(H(x) → M(x)), apply specification: H(s) → M(s). Given H(s), so M(s) is true by
modus ponens.
20. 20. Find truth value of (∀x ∈ S), |x|² ≤ 3|x| - 2, where S={-2,-1,0,1,2}.
Check each:
|-2|²=4, 3×2−2=4 → ✓
|-1|²=1, 1→✓
|0|²=0 ≤ −2 ✗
So, FALSE.
21. 21. Translate: H(j) ∧ L(k, j), L(x,y): x loves y, H(x): x is handsome
¬(∀x)(∃y)(∃t)L(x,y,t) ≡ (∃x)(∀y)(∀t)¬L(x,y,t)