You have 3 free guides left 😟
Unlock your guides
You have 3 free guides left 😟
Unlock your guides

3.3 Quantifiers and their properties

3 min readaugust 7, 2024

Quantifiers are powerful tools in first-order logic, allowing us to express statements about all or some elements in a domain. They come in two flavors: universal () for "all" and existential () for "some."

Negating quantifiers flips their meaning, turning "all" into "some not" and "some" into "none." This property is crucial for understanding logical relationships and constructing valid arguments in first-order logic.

Quantifiers

Universal and Existential Quantifiers

Top images from around the web for Universal and Existential Quantifiers
Top images from around the web for Universal and Existential Quantifiers
  • \forall expresses that a formula holds for all values of a variable
    • Formally, xP(x)\forall x P(x) means that P(x)P(x) is true for every possible value of xx in the domain
    • Can be read as "for all", "for every", or "for each" (xN,x0\forall x \in \mathbb{N}, x \geq 0 reads "for all natural numbers xx, xx is greater than or equal to 00")
  • \exists expresses that a formula holds for at least one value of a variable
    • Formally, xP(x)\exists x P(x) means that there exists at least one value of xx in the domain for which P(x)P(x) is true
    • Can be read as "there exists", "for some", or "there is at least one" (xR,x2=4\exists x \in \mathbb{R}, x^2 = 4 reads "there exists a real number xx such that xx squared equals 44")

Quantifier Negation

  • Negation of a universally quantified formula xP(x)\forall x P(x) is equivalent to an existentially quantified negation of the formula x¬P(x)\exists x \neg P(x)
    • ¬(xP(x))x¬P(x)\neg(\forall x P(x)) \equiv \exists x \neg P(x) (reads "not for all xx, P(x)P(x)" is equivalent to "there exists an xx such that not P(x)P(x)")
    • Example: ¬(xN,x>0)xN,x0\neg(\forall x \in \mathbb{N}, x > 0) \equiv \exists x \in \mathbb{N}, x \leq 0 (reads "not all natural numbers are greater than 00" is equivalent to "there exists a natural number less than or equal to 00")
  • Negation of an existentially quantified formula xP(x)\exists x P(x) is equivalent to a universally quantified negation of the formula x¬P(x)\forall x \neg P(x)
    • ¬(xP(x))x¬P(x)\neg(\exists x P(x)) \equiv \forall x \neg P(x) (reads "there does not exist an xx such that P(x)P(x)" is equivalent to "for all xx, not P(x)P(x)")
    • Example: ¬(xZ,x2=2)xZ,x22\neg(\exists x \in \mathbb{Z}, x^2 = 2) \equiv \forall x \in \mathbb{Z}, x^2 \neq 2 (reads "there does not exist an integer xx such that xx squared equals 22" is equivalent to "for all integers xx, xx squared does not equal 22")

Quantifier Transformations

Quantifier Distribution and Elimination

  • Quantifier distribution refers to the rules for distributing quantifiers over logical connectives
    • x(P(x)Q(x))(xP(x))(xQ(x))\forall x (P(x) \land Q(x)) \equiv (\forall x P(x)) \land (\forall x Q(x)) (universal quantifier distributes over conjunction)
    • x(P(x)Q(x))(xP(x))(xQ(x))\exists x (P(x) \lor Q(x)) \equiv (\exists x P(x)) \lor (\exists x Q(x)) (existential quantifier distributes over disjunction)
    • However, x(P(x)Q(x))≢(xP(x))(xQ(x))\forall x (P(x) \lor Q(x)) \not\equiv (\forall x P(x)) \lor (\forall x Q(x)) and x(P(x)Q(x))≢(xP(x))(xQ(x))\exists x (P(x) \land Q(x)) \not\equiv (\exists x P(x)) \land (\exists x Q(x))
  • Quantifier elimination is the process of removing quantifiers from a formula while preserving its satisfiability
    • One approach is to replace the quantified variable with a constant that satisfies the formula, if such a constant exists
    • Example: x(x>0y(y>xy>1))\exists x (x > 0 \land \forall y (y > x \to y > 1)) can be simplified to x(x>0x<1)\exists x (x > 0 \land x < 1) by eliminating the universal quantifier

Prenex Normal Form and Skolemization

  • Prenex normal form is a formula where all quantifiers appear at the beginning, followed by a quantifier-free matrix
    • Any formula can be converted to prenex normal form by applying quantifier distribution and renaming variables to avoid name clashes
    • Example: xy(P(x)Q(y))\forall x \exists y (P(x) \lor Q(y)) is in prenex normal form, while (xP(x))(yQ(y))(\forall x P(x)) \lor (\exists y Q(y)) is not
  • Skolemization is a process of eliminating existential quantifiers from a formula in prenex normal form
    • Each existentially quantified variable is replaced by a Skolem function that depends on the universally quantified variables preceding it
    • The resulting formula is satisfiable if and only if the original formula is satisfiable
    • Example: xyP(x,y)\forall x \exists y P(x, y) can be Skolemized to xP(x,f(x))\forall x P(x, f(x)), where ff is a Skolem function
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.
Glossary
Glossary