Home › Logic › Lesson 6

First-Order Languages, Structures and Satisfaction

Lesson 6 of 13

Key idea of this section

A signature supplies constant, function and relation symbols, each with an arity.
An L-structure 𝔄 interprets them on a nonempty domain A.
Tarski's definition: 𝔄 ⊨ φ[s] by recursion on φ, with s an assignment of variables.

Languages

Propositional logic cannot express "every element has an inverse" or "between any two rationals there is another". First-order logic adds individual variables x, y, z, … ranging over the elements of a structure, the quantifiers ∀ and ∃, the equality symbol =, and a signature L (also called a language or vocabulary): a set of constant symbols c, function symbols F each with an arity n ≥ 1, and relation symbols R each with an arity n ≥ 1.

Terms are generated from variables and constants by applying function symbols: if t₁, …, tₙ are terms and F is n-ary, F(t₁, …, tₙ) is a term. Atomic formulas are t₁ = t₂ and R(t₁, …, tₙ). Formulas are generated from atomic formulas by the connectives and by ∀x φ and ∃x φ. Unique readability holds as before.

Examples of signatures: the language of groups L = {·, ⁻¹, e}; the language of ordered rings {+, ·, −, 0, 1, <}; the language of arithmetic LA = {0, S, +, ·, <}; the language of set theory {∈}; the language of graphs {E}.

Free and bound variables

An occurrence of x in φ is bound if it lies within a subformula ∀x ψ or ∃x ψ, and free otherwise. FV(φ) is the set of variables with a free occurrence. A sentence is a formula with no free variables. In ∀x (x < y) ∧ x = 0 the first two occurrences of x are bound, the last is free, and FV = {x, y}. Writing φ(x₁, …, xₙ) signals that FV(φ) ⊆ {x₁, …, xₙ}.

Structures

An L-structure 𝔄 consists of a nonempty set A (the domain or universe) together with an element c𝔄 ∈ A for each constant symbol, a function F𝔄 : Aⁿ → A for each n-ary function symbol and a relation R𝔄 ⊆ Aⁿ for each n-ary relation symbol. The standard model of arithmetic is 𝔑 = (ℕ, 0, S, +, ·, <). The rational ordered field, every group, every graph and the universe of sets (if it were a set) are structures in their signatures.

Satisfaction

An assignment in 𝔄 is a function s from the variables to A. It extends to terms by s(c) = c𝔄 and s(F(t₁, …, tₙ)) = F𝔄(s(t₁), …, s(tₙ)). Write s[x ↦ a] for the assignment that agrees with s except that it sends x to a. Tarski's satisfaction relation 𝔄 ⊨ φ[s] is defined by recursion on φ:

𝔄 ⊨ (t₁ = t₂)[s]        iff  s(t₁) = s(t₂)
𝔄 ⊨ R(t₁, …, tₙ)[s]     iff  (s(t₁), …, s(tₙ)) ∈ R𝔄
𝔄 ⊨ ¬φ[s]               iff  not 𝔄 ⊨ φ[s]
𝔄 ⊨ (φ ∧ ψ)[s]          iff  𝔄 ⊨ φ[s] and 𝔄 ⊨ ψ[s]       (similarly ∨, →, ↔)
𝔄 ⊨ ∀x φ[s]             iff  𝔄 ⊨ φ[s[x ↦ a]] for every a ∈ A
𝔄 ⊨ ∃x φ[s]             iff  𝔄 ⊨ φ[s[x ↦ a]] for some a ∈ A

By the coincidence lemma, whether 𝔄 ⊨ φ[s] depends only on s restricted to FV(φ). For a sentence σ we therefore simply write 𝔄 ⊨ σ, read "𝔄 is a model of σ". For a set Σ of sentences, Mod(Σ) is the class of its models, and Σ ⊨ σ means that every model of Σ is a model of σ. A theory is a set of sentences closed under ⊨; Th(𝔄) = {σ : 𝔄 ⊨ σ} is the complete theory of 𝔄.

The definition is deliberately metamathematical: the clause for ∀ uses "for every" in the metalanguage. The satisfaction relation is not definable inside the structure itself, a fact made precise by Tarski's undefinability theorem in Lesson 11.

Substitution

The term t is substitutable for x in φ if no free occurrence of x in φ lies within the scope of a quantifier ∀y or ∃y with y occurring in t. Without this proviso substitution changes meaning: in φ = ∃y (y ≠ x), which is true in any structure with at least two elements, substituting y for x gives ∃y (y ≠ y), which is false. When t is substitutable, the substitution lemma holds: 𝔄 ⊨ φ[t/x][s] iff 𝔄 ⊨ φ[s[x ↦ s(t)]]. Bound variables can always be renamed to make a term substitutable.

Homomorphisms and isomorphisms

An isomorphism h : 𝔄 → 𝔅 is a bijection that preserves the interpretations of all symbols: h(c𝔄) = c𝔅, h(F𝔄(a⃗)) = F𝔅(h(a⃗)), and a⃗ ∈ R𝔄 iff h(a⃗) ∈ R𝔅. A routine induction proves the isomorphism lemma: 𝔄 ⊨ φ[s] iff 𝔅 ⊨ φ[h ∘ s] for all φ and s. Hence isomorphic structures satisfy the same sentences; they are elementarily equivalent, 𝔄 ≡ 𝔅. The converse fails badly, as compactness will show: (ℚ, <) ≡ (ℝ, <), and 𝔑 is elementarily equivalent to uncountable structures.

Exercise

  • (a)
    Write a sentence in the language {<} expressing that the order is dense and has no endpoints.
  • (b)
    In (ℤ, +, 0), is ∀x ∃y (y + y = x) true? In (ℚ, +, 0)?
  • (c)
    List the free variables of ∀x (R(x, y) → ∃y R(y, z)) ∧ R(x, x).
Show solution

Answers: (a) ∀x ∀y (x < y → ∃z (x < z ∧ z < y)) ∧ ∀x ∃y (y < x) ∧ ∀x ∃y (x < y). (b) In ℤ it is false, since x = 1 is not of the form 2y. In ℚ it is true, take y = x/2. (c) x (in the last conjunct), y (the first occurrence, in R(x, y), which is not in the scope of ∃y) and z. So FV = {x, y, z}.

V.3.1