← LibraryFirst-order Languages and StructuresEngineering · MathematicsLesson 1/10← PrevNext →
GuidePublished 6 Aug 20265 min readBy Kevin Joginuniversal algebraabstract algebramathematicsfirst-order language

Model-Theoretic Connections

First-order Languages and Structures

Adding relation symbols and quantifiers to the algebraic language buys enormous expressive power and costs the whole equational apparatus. Chapter V is the accounting of that trade.

Engineering · Mathematics5 min readKV-MATH-0247
Learning objectives

01Languages

A first-order language L consists of operation symbols with arities, relation symbols with arities, and the logical apparatus: variables, equality, connectives and quantifiers.

L = ⟨F, R⟩   with arities; logical symbols &, ∨, ¬, →, ↔, ∀, ∃, ≈
An algebraic type is the special case R = ∅. Adding relation symbols is the first extension; adding quantifiers is the second and larger one.
What each ingredient buys
IngredientExpressive gainCost
Operation symbolsthe algebraic contentnone — this is the base case
Relation symbolsorderings, incidences, graphssubstructures behave differently
Connectivesimplications between equationsH-closure lost; gives quasivarieties
Quantifiersexistence and universality claimsBirkhoff's theorem no longer applies

The source's convention is to keep the model-theoretic notation aligned with Chang and Keisler, which is why F is used for both the type of an algebra and the operation symbols of a language, disambiguated by context.

02Structures

A structure for L is a non-empty set together with an interpretation of every symbol: an operation for each operation symbol, a relation for each relation symbol.

A = ⟨A, L⟩    fA : An → A,   rA ⊆ Am
An algebra is a structure with no relation symbols. Every notion from Chapter II generalises, but the generalisations are not always the useful ones.
CautionSubstructure is not subalgebra when relations are present

A substructure must be closed under the operations, and the relations are inherited by restriction. But a subset closed under the operations always gives a substructure, whereas whether the restricted relation is the 'right' one depends on the intended reading. Ordered structures are the standard trap: a substructure of a linear order is a linear order, but a substructure of a well-order need not be well-ordered, and well-ordering is not first-order expressible.

03Terms and formulas

Terms are built exactly as in the algebraic case, from variables and operation symbols. Formulas are built from atomic formulas by connectives and quantifiers.

ProcedureThe formula-building recursion
in: language L → out: the set of L-formulas
  1. atomic formulas:
  2. p ≈ q for terms p, q
  3. r(p₁,…,pₘ) for an m-ary relation symbol r and terms pᵢ
  4. if φ and ψ are formulas, so are:
  5. ¬φ, (φ & ψ), (φ ∨ ψ), (φ → ψ), (φ ↔ ψ)
  6. if φ is a formula and x a variable, so are:
  7. ∀x φ and ∃x φ
  8. free variables: those not in the scope of a quantifier binding them
  9. a sentence is a formula with no free variables
Every formula is finite, so it mentions finitely many variables and finitely many symbols. That finiteness is what makes compactness possible. Caveat: infinitary logics drop it and lose compactness with it.

The free/bound distinction is where most early errors occur. A formula with free variables is not true or false in a structure — it is satisfied or not by particular assignments to those variables. Only sentences have truth values.

04The formula hierarchy

Restricting the shape of formulas gives classes with distinctive preservation properties, and the preservation theorems later in this stream are organised by them.

Formula classes
ClassShapePreserved by
Atomicp ≈ q or r(p⃗)homomorphisms, substructures, products
Quantifier-freeBoolean combinations of atomicsubstructures, embeddings
Universal (∀)∀x⃗ ψ with ψ quantifier-freesubstructures
Existential (∃)∃x⃗ ψ with ψ quantifier-freeextensions
Positiveno ¬ or →surjective homomorphisms
Hornconjunctions of clauses with ≤ 1 positive literaldirect products
Identity∀x⃗ (p ≈ q)H, S and P — the equational case

Identities are the intersection of several rows: universal, positive and Horn at once. That triple membership is exactly why they are preserved by all three class operators, and hence why Birkhoff's theorem holds for them and nothing weaker.

05What is gained

Expressivity
Conditions no equation can state
Being a field, being torsion-free, being simple, having no zero divisors — none is equational, all are first-order or nearly so.
Ultraproducts
A new construction
The ultraproduct and Łoś's theorem have no equational counterpart and give access to compactness and to Jónsson's lemma.
Decidability questions
A meaningful notion
Asking whether the first-order theory of a variety is decidable is only possible once first-order sentences are available.
Preservation theorems
Syntax from semantics
Characterising which sentences are preserved by which constructions is a genuinely first-order programme, and each result is a small Birkhoff theorem.

06What is lost

Equational setting
Complete, HSP applies
Birkhoff's theorem, free algebras, equational logic with a completeness theorem, and a decidable notion of derivability for well-behaved varieties.
First-order setting
No HSP analogue
Classes defined by arbitrary first-order sentences are not closed under H, S or P in any useful pattern. There is no free structure. Derivability remains complete but the algebraic characterisation is gone.
Key resultThe trade in one line

Equations are weak enough to have a structure theory; first-order sentences are strong enough to say what one wants and too strong for the structure theory to survive. Chapter V works in the gap, using first-order tools to prove equational results — principal congruence formulas and the finite basis theorems are exactly that.

Frequently asked

Is equality a relation symbol or a logical symbol?

A logical symbol, interpreted as genuine identity in every structure. Treating it as a relation symbol would allow structures where ≈ is some other congruence, which gives first-order logic without equality — a weaker system. The source, following Chang and Keisler, treats equality as logical.

Why must structures be non-empty?

Convention, chiefly to keep ∀x φ → ∃x φ valid. Empty structures can be accommodated in free logic at the cost of complicating the axioms. The algebraic convention of non-empty universes, adopted in Chapter II, matches the model-theoretic one here.

Can I still use free algebras in the first-order setting?

Only for the equational part. Free structures for a first-order theory generally do not exist, because the universal mapping property depends on the theory being closed under the constructions that build the free object. Where a first-order theory happens to be equational, the free algebra survives and is the same object.

Sources and further reading

Original KEVOS® explanatory article. Written from the topic map of the cited works; no text is reproduced from them.

Continue learning

NEXT LESSON →Satisfaction, Truth and Elementary EquivalenceGuide · MathematicsElementary Substructures and the Lowenheim-Skolem TheoremsGuide · MathematicsReduced Products and Filtered ProductsGuide · MathematicsUltraproducts and Los's TheoremGuide · Mathematics