Model Theory Becomes Mathematics

Definability, quantifier elimination, ultraproducts, classification, and finite-model theory as tools for understanding mathematical structures.

Modern logic · Part 11Historical questions · mathematical ideas

How did the study of models become a method for discovering mathematics?

Use definability, compactness, quantifier elimination, and types to explain concrete properties of mathematical structures.

Selected landmarksSeries timeline ↗

Tarski publishes a decision method for first-order polynomial equations and inequalities over the reals, developed from earlier work. Quantifier elimination for real closed fields makes a substantial mathematical theory decidable; it does not decide arbitrary statements of analysis or arithmetic over the integers.

Source: Tarski, A Decision Method for Elementary Algebra and Geometry (1951 revised edition; publisher record)

Models first entered this series as interpretations used to understand truth, consistency, and the limits of axiomatization. That role is important but incomplete. Model theory also became a way to prove mathematical theorems about algebraic structures and to classify the behavior of whole theories.

Portrait of Alfred Tarski in 1968
Alfred Tarski (1901–1983) Truth, satisfaction, and the semantics of formal languages.
Sources and credit for Alfred Tarski

George M. Bergman, 1968; cropped by Off-shell. Oberwolfach Photo Collection via Wikimedia Commons. Image source · GFDL 1.2 or later · Biographical dates

The transition was visible in work by Anatoly Mal'tsev, Alfred Tarski, and Abraham Robinson. General logical results could be applied to groups, fields, and other structures already studied by mathematicians. Later tools associated with Henkin, Łoś, Fraïssé, Morley, and Shelah deepened the subject.

The central question shifted from whether a formal system had an interpretation to what its language could define and what those definitions revealed about its models.

Elementary equivalence and elementary embeddings

Two structures are elementarily equivalent if they satisfy the same first-order sentences in a specified language:

M≡N.\mathcal M\equiv\mathcal N.

This need not make them isomorphic. First-order sentences may be unable to distinguish structures of different cardinalities.

An elementary embedding preserves more detailed information. An embedding j:M→Nj:\mathcal M\to\mathcal N is elementary if, for every formula φ\varphi and every tuple a⃗\vec a from MM,

M⊨φ(a⃗)⟺N⊨φ(j(a⃗)).\mathcal M\models\varphi(\vec a) \quad\Longleftrightarrow\quad \mathcal N\models\varphi(j(\vec a)).

The language matters. A relation or function omitted from the signature is not automatically controlled by this equivalence. Adding an exponential function to an ordered-field language, for example, changes the theory under investigation.

This sensitivity to language is a source of mathematical information. It asks which properties are visible through a selected collection of operations and relations.

Definable sets

A formula with free variables defines a set of tuples in a structure. In the real ordered field,

x2+y2=1x^2+y^2=1

defines the unit circle. The formula

∃y  (y2=x)\exists y\;(y^2=x)

defines the nonnegative reals.

The second example already suggests an operation on definable sets: quantification projects a relation onto some of its coordinates. A relation between xx and yy yields the set of xx's for which an appropriate yy exists.

Logical connectives correspond to other set operations. Conjunction gives intersection, disjunction gives union, and negation gives complement. The study of definability therefore connects formal syntax with geometric and algebraic structure.

Parameters are allowed when specified. For instance, x<ax<a defines an initial segment once a particular element aa is supplied. Definability with parameters and without parameters are different conditions.

Compactness becomes an algebraic method

Compactness says that a set of first-order sentences has a model whenever each of its finite subsets has a model. Mal'tsev's work in the 1930s showed how to bring this logical principle into algebra. The method is to express a desired construction through equations and inequations, verify every finite collection of requirements, and obtain a structure satisfying all of them.

Here is a concrete case. Let KK be a field, and suppose an infinite system of polynomial equations with coefficients in KK has the following property: every finite subsystem has a solution in some field extension of KK. Introduce a constant symbol for each element of KK and for each desired unknown. Include the field axioms, the equations and inequations recording the field KK, and every equation in the system.

Any finite collection has a model by hypothesis. Compactness produces a model of all the requirements. The named elements of KK embed as a subfield because their arithmetic and distinctness were included, and the new constants simultaneously solve the equations in an extension field.

The conclusion is deliberately an extension of KK. Compactness does not show that the solutions were already in KK. The distinction is the source of the construction's power and prevents an incorrect inference from finite solvability to a solution in a fixed structure.

A complete example: dense linear orders

Consider the first-order theory of dense linear orders without endpoints, in a language containing only <<.

Density says that between any two distinct ordered elements there is another:

∀a∀b (a<b→∃x (a<x∧x<b)).\forall a\forall b\, (a<b\to\exists x\,(a<x\land x<b)).

The absence of endpoints says that every element has something below it and something above it. Both (Q,<)(\mathbb Q,<) and (R,<)(\mathbb R,<) satisfy these axioms.

For example,

∃x (a<x∧x<b)\exists x\,(a<x\land x<b)

is equivalent, in this theory, to a<ba<b. The existential quantifier has been eliminated.

More generally, the theory admits quantifier elimination. Every formula is equivalent, modulo the theory, to a quantifier-free formula. To see the mechanism, organize conditions on a prospective witness into lower bounds, upper bounds, equalities, and exclusions. Density supplies a witness between compatible bounds, and the endpoint axioms handle unbounded cases.

The construction must examine all Boolean combinations, but its mathematical idea is simple: the finite order relationships among the parameters determine whether a witness can exist.

As a consequence, subsets of a model definable in one variable with finitely many parameters are finite unions of intervals and points. The language cannot define an arbitrary scattered subset of the order.

Categoricity within a cardinality

Any two countable dense linear orders without endpoints are isomorphic. A back-and-forth construction proves this.

Enumerate the elements of both orders. Extend a finite order-preserving partial map by first including the next unused element from the first order, then including the next unused element from the second. Density and the absence of endpoints provide an element in the required interval at each stage.

The union of the finite maps is an order isomorphism.

This does not contradict Löwenheim–Skolem. The theory also has uncountable models, including the real order, which cannot be isomorphic to a countable model. Its categoricity is confined to the countable cardinality.

Fraïssé's work developed a broader method for constructing countable structures from compatible finite configurations. The finite patterns and their extension properties can determine a highly homogeneous infinite structure.

Portrait of Roland Fraïssé
Roland Fraïssé (1920–2008)
Sources and credit for Roland Fraïssé

Tadaa2026. Via Wikimedia Commons. Image source · CC BY 4.0 · Biographical dates

These results show why “first-order logic cannot specify an infinite structure” is too crude. One must state which cardinalities and which form of specification are being considered.

Quantifier elimination in fields

The order example extends to major algebraic theories. Algebraically closed fields admit quantifier elimination in the language of rings. After fixing the characteristic to 00 or to a prime pp, their theory is complete. Fixing the characteristic matters: the sentence 1+1=01+1=0 separates characteristic two from characteristic zero.

Quantifier elimination explains a geometric property of definable sets. A quantifier-free formula in one variable is a Boolean combination of polynomial equations. A nonzero polynomial has finitely many roots; an identically zero polynomial holds everywhere. Consequently every one-variable definable subset of an algebraically closed field is finite or cofinite. This remains true in elementary extensions, giving the central example of strong minimality.

Real closed fields supply a different geometry. Their ordered-field theory admits quantifier elimination, and its definable sets are semialgebraic: Boolean combinations of polynomial equations and strict inequalities. Projecting such a set remains semialgebraic, as expressed by the Tarski–Seidenberg theorem. For example,

∃y  (y2=x∧y>1)⟺x>1\exists y\;(y^2=x\land y>1)\quad\Longleftrightarrow\quad x>1

holds in every real closed field. If y>1y>1, its square exceeds one; if x>1x>1, a positive square root exists and must exceed one. The general elimination theorem extends this finite algebraic description to arbitrarily nested first-order quantifiers. David Marker's account of the subject explains why these field examples made definability a source of mathematical information.

The restriction on language is essential. Adding a predicate for the integers to the real field allows an infinite discrete subset to be defined. It destroys the finite-union-of-intervals-and-points property underlying o-minimality. Later o-minimal research, including work by van den Dries, Pillay, Steinhorn, and Wilkie, investigated richer structures whose definable sets still retain controlled geometry. This branch develops a different kind of tameness from stability; the two should not be identified merely because both restrict definable complexity.

Ultraproducts and Łoś's theorem

An ultraproduct combines a family of structures into one structure while controlling the truth of first-order formulas.

Portrait of Jerzy Łoś
Jerzy Łoś (1920–1998)
Sources and credit for Jerzy Łoś

Unknown photographer or artist. Via Wikimedia Commons. Image source · Public domain · Biographical dates

An ultrafilter UU on an index set chooses which subsets of indices count as large. It is closed under finite intersection and upward inclusion, and for every subset it selects that subset or its complement. The empty set is not large.

In a product of structures, two sequences are identified when they agree on a UU-large set of indices. Functions and relations are interpreted coordinatewise, modulo this identification.

Łoś's theorem states that a first-order formula holds in the ultraproduct exactly when the set of indices on which it holds is UU-large.

This permits local information from the component structures to be assembled into a new model. When a nonprincipal ultrafilter on the natural numbers is used, every cofinite set is large and no finite set is large. The existence of such an ultrafilter uses background set-theoretic principles; it is not supplied by a finite explicit selection algorithm.

The construction became valuable in algebra and in the study of theories. It also provides one route to nonstandard number systems.

Where infinitesimals actually live

Take an elementary extension ∗R{}^\ast\mathbb R of the real ordered field that contains an element HH greater than every standard real number. Compactness applied to the elementary diagram of R\mathbb R, together with all conditions H>rH>r, can establish such an extension.

Because this structure is a field, HH has an inverse. Put

ε=1H.\varepsilon=\frac1H.

Then ε>0\varepsilon>0, and ε<r\varepsilon<r for every positive standard real rr. It is an infinitesimal relative to the embedded copy of R\mathbb R.

This corrects a common shortcut. A nonstandard model of natural-number arithmetic does not itself contain inverses of its positive infinite elements. The ordered-field construction is an additional mathematical step.

For a simple polynomial calculation,

(a+ε)2−a2ε=2a+ε.\frac{(a+\varepsilon)^2-a^2}{\varepsilon} =2a+\varepsilon.

The result differs from 2a2a by an infinitesimal. In a suitable nonstandard-analysis framework, taking the standard part recovers the derivative.

Abraham Robinson's work in the 1960s developed such methods systematically. To treat arbitrary functions and further analytical objects, the language and transfer framework must be expanded appropriately. Elementary equivalence in the language of ordered fields alone does not automatically transfer every assertion involving every real function.

Portrait of Abraham Robinson
Abraham Robinson (1918–1974)
Sources and credit for Abraham Robinson

Konrad Jacobs. Via Wikimedia Commons. Image source · CC BY-SA 2.0 de · Biographical dates

The distinction between standard and nonstandard elements is also external to the simple first-order field structure. These qualifications are part of the method, not defects hidden behind the notation.

Morley and the classification of theories

Michael Morley's 1965 categoricity theorem states that a complete theory in a countable language, if categorical in one uncountable cardinality, is categorical in every uncountable cardinality.

The hypotheses are substantial. The theorem is not a statement that countable categoricity implies categoricity everywhere, as the dense-order example already shows.

One central tool is the study of types: collections of formulas that describe a possible element or tuple, often relative to named parameters. A type records more information than one finite formula. Its realization asks whether a model contains an element satisfying the whole collection.

Counting and organizing types reveals differences among theories. Saharon Shelah's classification theory developed this approach through stability and related dividing lines. The question becomes whether models of a theory admit a manageable structural account or exhibit patterns that generate many different possibilities.

For a specific type, work in (Q,<)(\mathbb Q,<) and collect the conditions

p(x)={q<x:q∈Q}.p(x)=\{q<x:q\in\mathbb Q\}.

Every finite subset is realized by a sufficiently large rational, but the whole type has no realization in Q\mathbb Q. It is realized in an elementary extension. Compactness supplies such extensions; it does not guarantee realization inside the starting model. Saturation measures how many types over small parameter sets a model already realizes.

A complete theory is stable in an infinite cardinal κ\kappa when, over parameter sets of size at most κ\kappa in its models, the number of complete one-variable types is at most κ\kappa; a theory is called stable when this occurs for some infinite κ≥∣L∣\kappa\geq|L|. Another characterization says that no formula has the order property: no formula can uniformly encode arbitrarily long finite linear orders by the pattern φ(ai,bj)\varphi(a_i,b_j) exactly when i<ji<j. This turns an abstract count of types into an identifiable configuration. Ordered theories and stable theories consequently behave differently even when both admit useful classification techniques.

Shelah's work introduced further distinctions and an independence relation, forking, that generalizes familiar geometric dependence in important settings. Explaining every branch would require another series; the key historical change is that the number and arrangement of definable possibilities became tools for proving structural theorems.

Portrait of Michael D. Morley
Michael D. Morley (1930–2020)
Sources and credit for Michael D. Morley

George M. Bergman. Via Wikimedia Commons. Image source · CC BY-SA 4.0 · Biographical dates

Portrait of Saharon Shelah
Saharon Shelah (b. 1945)
Sources and credit for Saharon Shelah

Andrzej Roslanowski. Via Wikimedia Commons. Image source · CC BY-SA 2.5 · Biographical dates

This is a positive research program. Formal language is being used to detect mathematical organization, not merely to demonstrate the inadequacy of axioms.

Applications and the independence of the subject

Tarski's quantifier elimination for real closed fields connects first-order reasoning with polynomial inequalities. Mal'tsev applied logical methods to algebraic problems. Ax, Kochen, and independently Ershov related valued fields through model-theoretic methods, and later work by Hrushovski demonstrated further interactions with algebraic geometry and number theory.

One Ax–Kochen consequence is especially concrete: for each fixed degree dd, all sufficiently large primes pp have the property that every homogeneous polynomial of degree dd over Qp\mathbb Q_p in more than d2d^2 variables has a nonzero solution. The exceptional bound depends on dd. This does not assert the property for every prime; Terjanian found a counterexample to that stronger claim. Christian d'Elbée's treatment of the Ax–Kochen–Ershov theorem develops both the structural theorem and this arithmetic application.

Portrait of Ehud Hrushovski
Ehud Hrushovski (b. 1959)
Sources and credit for Ehud Hrushovski

Ivonne Vetter, Copyright is MFO. Via Wikimedia Commons. Image source · CC BY-SA 2.0 de · Biographical dates

These applications require specialized mathematics in addition to general metatheorems. Compactness is a powerful tool, but not a substitute for understanding the structures to which it is applied.

The history also reflects distinct research communities. Mal'tsev's work developed in the Soviet mathematical environment; Tarski's school in the United States became a major center; subsequent classification theory grew through extensive international collaboration. A history that jumps directly from Gödel to programming languages loses these mathematical developments.

What changes when models must be finite?

The mathematical structures studied above are often infinite. Finite graphs and databases raise a different question: what can a logical language express when only finite structures are admitted? Finite-model theory cannot simply inherit every theorem about unrestricted models.

For example, let σn\sigma_n say that there are at least nn distinct elements:

σn=∃x1⋯∃xn ⋀1≤i<j≤nxi≠xj.\sigma_n=\exists x_1\cdots\exists x_n\, \bigwedge_{1\leq i<j\leq n}x_i\ne x_j.

Every finite subset of {σn:n≥1}\{\sigma_n:n\geq1\} has a finite model: choose a domain large enough for its largest requirement. The whole set has no finite model. Ordinary compactness supplies an infinite model, which is precisely what the finite restriction excludes. Thus compactness fails for finite-model semantics; its unrestricted statement remains intact.

Boris Trakhtenbrot's 1950 theorem exposed a further boundary. Over a fixed finite relational vocabulary containing a binary relation symbol, deciding whether an arbitrary first-order sentence has some finite model is undecidable. Finite satisfiability is nevertheless computably enumerable: enumerate finite structures and check the sentence in each. The complementary failure to find any finite model cannot be certified by that search. Kirst and Larchey-Wendling's mechanized treatment makes the signature conditions and decidable restricted cases explicit.

Finite validity means truth in every finite structure of the vocabulary. Its sentences are not computably enumerable. Otherwise both finite satisfiability and its complement would be enumerable: a sentence φ\varphi has no finite model exactly when ¬φ\neg\varphi is finitely valid. Running the two enumerations together would decide finite satisfiability, contradicting the theorem. Consequently there is no sound, complete, effectively enumerable proof calculus for finite validity in this setting. This does not contradict Gödel's completeness theorem, whose semantics includes infinite structures.

Checking a supplied finite structure is a different problem: quantifiers can be evaluated by finite loops over its domain. A supplied upper bound on model size likewise permits exhaustive search. The undecidability concerns the absence of such a bound, across all finite sizes. It also rules out a computable bound that always suffices whenever a finite model exists.

Definability becomes a database question

Edgar F. Codd's 1972 relational-completeness paper connected logical descriptions of queries with algebraic operations on relations. In the modern formulation, relational algebra corresponds to domain-independent first-order relational calculus: enlarging the surrounding universe with irrelevant elements must not change the answer. Range restrictions give practical ways to ensure this condition. “Relational completeness” measures expressive power relative to that calculus; it does not mean the ability to express every computable query.

For a finite relation Parent⁡(x,y)\operatorname{Parent}(x,y), the query

∃z (Parent⁡(x,z)∧Parent⁡(z,y))\exists z\, (\operatorname{Parent}(x,z)\land\operatorname{Parent}(z,y))

returns grandparent pairs. With facts Parent⁡(a,b)\operatorname{Parent}(a,b) and Parent⁡(b,c)\operatorname{Parent}(b,c), it returns (a,c)(a,c). Algebraically, join two copies of the parent relation on the shared middle person, then project away that person. The existential quantifier has become an executable data operation.

Arbitrary ancestry requires paths of unbounded length. No single first-order formula in the edge relation defines reachability across all finite directed graphs, even though each individual graph is finite. Proving such limits requires finite-structure methods, including bounded-round Ehrenfeucht–Fraïssé games, rather than a direct appeal to finite compactness. Libkin's treatment, Chapters 3 and 10, develops the boundary and fixed-point extensions.

This line leads to descriptive complexity: Fagin related existential second-order definitions to NP, and Immerman and Vardi related fixed-point definitions to polynomial time on ordered finite structures. The complexity note develops those results and the importance of their qualifications. Model theory now informs both mathematical classification and the design of computational languages.

Models as instruments of discovery

Model theory investigates what languages define, how structures can be extended or combined, and which theories admit classification. Its methods can produce unfamiliar objects while preserving exact first-order information.

Set theory uses model constructions for a related but different purpose: investigating whether particular axioms settle questions about the universe of sets. The next note explains constructibility and forcing, and why their independence results require more than the general existence of nonstandard models.

Check your understanding: where does compactness put the missing element?

Every finite collection of requirements x>qx>q, for rational qq, is satisfiable in Q\mathbb Q. Does compactness prove that a rational exceeds every rational?

Reasoning. No. Add the full elementary diagram of (Q,<)(\mathbb Q,<) and a new constant cc satisfying all those requirements. Compactness gives a model containing an elementary copy of the rational order and an additional element above that copy. It guarantees a model of the sentences, not realization in the original domain. No rational can work, since for each rational rr there is the stronger requirement x>r+1x>r+1.

Sources and further reading