Quantifier Elimination

When less is more — simplifying the logical landscape

Quantifier Elimination

Some theories let you erase every "there exists" and "for all" and lose nothing. Watch formulas about orders and polynomials shrink to plain conditions you can check at a glance.

QE in Dense Linear Orders

Pick a formula about the order, then press Next Step to eliminate its quantifier. Compare the original and current forms side by side until no quantifier is left.

QE in Dense Linear Orders

Choose a formula about a dense linear order and step through the elimination process.

Original Formula
∃y (x < y ∧ y < z)
Current Form
∃y (x < y ∧ y < z)
1

Start with the original formula

∃y (x < y ∧ y < z)

2

The quantifier ∃y asks: is there an element between x and z?

∃y (x < y ∧ y < z)

3

By density of DLO: between any two ordered elements, there exists another

x < z → ∃y (x < y ∧ y < z)

4

The existential is equivalent to the order condition on the free variables

x < z

Step 1 of 4
Go deeper:Quantifier Elimination

A theory T has quantifier elimination (QE) if every first-order formula is equivalent, modulo T, to a quantifier-free formula. This is an extraordinarily powerful property: it means that every definable set is a Boolean combination of atomic formulas, making the "geometry" of the theory completely transparent.

The theory of dense linear orders without endpoints (DLO) has QE: the key idea is that between any two elements there is always another, and there is no first or last element. These axioms are strong enough to eliminate every quantifier. The theory of algebraically closed fields (ACF) of a given characteristic also has QE, by Chevalley's theorem. Tarski proved that real closed fields have QE as well.

When a theory has QE, questions about arbitrary first-order definable sets reduce to questions about atomic formulas -- equalities, inequalities, and polynomial conditions. This makes decidability, definability, and geometric reasoning dramatically simpler.

Key insight: In DLO, every quantifier can be eliminated because the density axiom (between any two elements there is another) and the no-endpoints axiom provide enough flexibility to rewrite quantified formulas as quantifier-free conditions on the remaining variables.

QE in Algebraically Closed Fields

Choose a linear, quadratic, or cubic equation, set its coefficients with the sliders, and step through the elimination. Notice that the final condition mentions only the coefficients.

QE in Algebraically Closed Fields

Choose a polynomial equation and watch the quantifier elimination process. Then experiment with coefficients to see which parameter values yield solutions.

1

Start with the existential formula

∃x (ax² + bx + c = 0)

2

Case split on leading coefficient a

(a ≠ 0 ∧ ∃x(...)) ∨ (a = 0 ∧ ∃x(bx + c = 0))

3

If a ≠ 0: polynomial is quadratic, so in ACF it always has a root

(a ≠ 0) ∨ (a = 0 ∧ ∃x(bx + c = 0))

4

If a = 0 and b ≠ 0: linear, has root x = -c/b

(a ≠ 0) ∨ (a = 0 ∧ b ≠ 0) ∨ (a = 0 ∧ b = 0 ∧ c = 0)

5

Final quantifier-free form

a ≠ 0 ∨ b ≠ 0 ∨ c = 0

Step 1 of 5

Coefficient Explorer: ax² + bx + c = 0 in ACF

Solution exists in ACF

QE result: a ≠ 0 ∨ b ≠ 0 ∨ c = 0 → 1 ≠ 0 ∨ 0 ≠ 0 ∨ -1 = 0 → True

Go deeper:QE in Algebraically Closed Fields

Key insight: In ACF, the existence of roots is guaranteed by the axioms. The formula ∃x(ax² + bx + c = 0) does not need a discriminant test -- it simplifies to the condition that the polynomial is non-trivial, because every non-constant polynomial over an algebraically closed field has a root.

Definable Sets and QE

Switch between Quantifier-Free Definable and First-Order Definable for each theory. Highlighted sets need quantifiers; in theories with QE, the two lists match.

Definable Sets Gallery

Compare quantifier-free definable sets with first-order definable sets across theories. For theories with QE, these classes are identical.

Dense Linear OrdersDLO
Has QE

The theory of dense linear orders without endpoints, such as (ℚ, <).

  • Finite unions of intervals: x < y
  • Equality conditions: x = y
  • Boolean combinations: x < y ∧ y < z
Algebraically Closed FieldsACF
Has QE

The theory of algebraically closed fields (e.g., ℂ), in a given characteristic.

  • Polynomial zero sets: x² + y² = 1
  • Non-vanishing conditions: x ≠ 0
  • Boolean combinations of the above
Real Closed FieldsRCF
Has QE

The theory of real closed fields, such as (ℝ, +, ×, <, 0, 1).

  • Semialgebraic sets: x² + y² < 1
  • Polynomial equalities: x³ = y
  • Boolean combinations of polynomial inequalities
Presburger ArithmeticPr
No QE

The theory of (ℤ, +, 0, 1, <) -- integers with addition but not multiplication.

  • Linear equations: x + y = z
  • Order conditions: x < y
  • Boolean combinations of the above
Go deeper:Definable Sets and QE

Key insight: Quantifier elimination collapses the hierarchy of definable sets. Without QE, adding quantifiers can define genuinely new sets. With QE, the quantifier-free formulas already capture everything first-order logic can express, making the definable sets transparent and tractable.

Key Takeaways

  • A theory has QE if every formula is equivalent to a quantifier-free one.
  • Dense linear orders have QE, thanks to density and no endpoints.
  • Algebraically closed fields have QE, because roots always exist.
  • With QE, every definable set is built from atomic formulas.

Spot a mistake or have an idea?

Search