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
- Universal quantifier expresses that a formula holds for all values of a variable
- Formally, means that is true for every possible value of in the domain
- Can be read as "for all", "for every", or "for each" ( reads "for all natural numbers , is greater than or equal to ")
- Existential quantifier expresses that a formula holds for at least one value of a variable
- Formally, means that there exists at least one value of in the domain for which is true
- Can be read as "there exists", "for some", or "there is at least one" ( reads "there exists a real number such that squared equals ")

Quantifier Negation
- Negation of a universally quantified formula is equivalent to an existentially quantified negation of the formula
- (reads "not for all , " is equivalent to "there exists an such that not ")
- Example: (reads "not all natural numbers are greater than " is equivalent to "there exists a natural number less than or equal to ")
- Negation of an existentially quantified formula is equivalent to a universally quantified negation of the formula
- (reads "there does not exist an such that " is equivalent to "for all , not ")
- Example: (reads "there does not exist an integer such that squared equals " is equivalent to "for all integers , squared does not equal ")

Quantifier Transformations
Quantifier Distribution and Elimination
- Quantifier distribution refers to the rules for distributing quantifiers over logical connectives
- (universal quantifier distributes over conjunction)
- (existential quantifier distributes over disjunction)
- However, and
- 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: can be simplified to 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: is in prenex normal form, while 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: can be Skolemized to , where is a Skolem function