Home › Logic › Lesson 7

Definability, Normal Forms and the Proof Calculus for First-Order Logic

Lesson 7 of 13

Key idea of this section

A set X ⊆ Aⁿ is definable if X = {a⃗ : 𝔄 ⊨ φ[a⃗]} for some formula φ.
Definable sets are invariant under automorphisms.
Every formula has a prenex form; every sentence has an equisatisfiable universal Skolem form.

Definable sets

Given an L-structure 𝔄 and a formula φ(x₁, …, xₙ), the set φ(𝔄) = {a⃗ ∈ Aⁿ : 𝔄 ⊨ φ[a⃗]} is the set defined by φ. Definable sets are closed under Boolean operations (by the connectives) and projections (by ∃). Examples: in (ℝ, +, ·, 0, 1) the order is definable by x ≤ y ↔ ∃z (x + z · z = y), because the nonnegative reals are exactly the squares. In 𝔑 the set of primes is defined by 1 < x ∧ ∀y ∀z (y · z = x → y = 1 ∨ z = 1), where 1 abbreviates S(0).

Theorem 7.1. If σ is an automorphism of 𝔄 and X is definable in 𝔄 without parameters, then σ(X) = X.

Proof. By the isomorphism lemma applied to σ : 𝔄 → 𝔄, 𝔄 ⊨ φ[a⃗] iff 𝔄 ⊨ φ[σ(a⃗)]. ∎

This is the main tool for proving non-definability. In (ℤ, +), the map x ↦ −x is an automorphism, so the set ℕ is not definable without parameters, nor is the order <. In (ℝ, <) every translation x ↦ x + c is an automorphism; since translations can move any point to any other, the only parameter-free definable subsets of ℝ are ∅ and ℝ.

Prenex normal form

A formula is in prenex form if it is Q₁x₁ … Qₙxₙ ψ with each Qᵢ a quantifier and ψ quantifier-free. Using the equivalences ¬∀x φ ≡ ∃x ¬φ, ¬∃x φ ≡ ∀x ¬φ, and, when x ∉ FV(ψ), (∀x φ) ∧ ψ ≡ ∀x (φ ∧ ψ), (∃x φ) ∧ ψ ≡ ∃x (φ ∧ ψ) and their analogues for ∨, together with (∀x φ) → ψ ≡ ∃x (φ → ψ) and (∃x φ) → ψ ≡ ∀x (φ → ψ), every formula can be converted to an equivalent prenex formula after renaming bound variables. Note the reversal of the quantifier in the antecedent of an implication; also note that (∀x φ) → ψ ≡ ∃x (φ → ψ) uses that domains are nonempty. Prenex formulas are classified by quantifier alternations: Σₙ formulas begin with ∃ and have n alternating blocks, Πₙ formulas begin with ∀. This hierarchy will reappear in computability theory as the arithmetical hierarchy.

Skolem normal form

Given a prenex sentence ∀x₁ … ∀xₖ ∃y ψ(x⃗, y), add a new k-ary function symbol f and pass to ∀x₁ … ∀xₖ ψ(x⃗, f(x⃗)). Repeating removes all existential quantifiers and yields a universal sentence σS in an expanded language.

Theorem 7.2 (Skolem). σ is satisfiable if and only if its Skolem form σS is satisfiable. Indeed σS ⊨ σ, and every model of σ expands to a model of σS.

Proof. If 𝔄 ⊨ ∀x⃗ ψ(x⃗, f(x⃗)), then for each a⃗ the element f𝔄(a⃗) witnesses ∃y ψ(a⃗, y). Conversely, if 𝔄 ⊨ ∀x⃗ ∃y ψ, use the axiom of choice to pick, for each a⃗, some b with 𝔄 ⊨ ψ[a⃗, b], and interpret f by a⃗ ↦ b. ∎

The proof calculus

Natural deduction for first-order logic adds to the propositional rules the quantifier rules and the equality rules:

∀E:  ∀x φ / φ[t/x]                 ∀I:  φ[y/x] / ∀x φ     (y not free in any open assumption, nor in ∀x φ)
∃I:  φ[t/x] / ∃x φ                 ∃E:  ∃x φ,  [φ[y/x]]…χ / χ   (y not free in χ, ∃x φ or other open assumptions)
=I:  t = t                         =E:  s = t,  φ[s/x] / φ[t/x]

with t substitutable. The eigenvariable conditions on ∀I and ∃E are essential: without them one could derive ∃x P(x) ⊢ ∀x P(x). The soundness theorem extends routinely: if Σ ⊢ φ then Σ ⊨ φ. The real content of first-order logic is the converse, Gödel's completeness theorem.

Exercise

  • (a)
    Put ∀x P(x) → ∃y ∀z R(y, z) into prenex form.
  • (b)
    Give the Skolem form of ∀x ∃y ∀z ∃w (R(x, y) ∧ S(z, w)).
  • (c)
    Show that 0 is definable in (ℝ, +) and that 1 is not.
Show solution

Answers: (a) Rename nothing (the variables are already distinct). (∀x P(x)) → ψ ≡ ∃x (P(x) → ψ), so the formula is ∃x ∃y ∀z (P(x) → R(y, z)). (b) ∀x ∀z (R(x, f(x)) ∧ S(z, g(x, z))), with f unary and g binary. (c) 0 is defined by x + x = x. The map x ↦ 2x is an automorphism of (ℝ, +) moving 1, so {1} is not definable without parameters.

V.3.1