← LibrarySemantic Embeddings and UndecidabilityEngineering · MathematicsLesson 10/10← PrevNext →
GuidePublished 6 Aug 20266 min readBy Kevin Joginuniversal algebraabstract algebramathematicssemantic embedding

Model-Theoretic Connections

Semantic Embeddings and Undecidability

To prove a theory undecidable, embed a known undecidable theory into it algebraically. The technique needs no recursion theory at all — the encoding does the work.

Engineering · Mathematics5 min readKV-MATH-0256
Learning objectives

01The technique

A semantic embedding interprets the models of one theory inside the models of another, uniformly and definably, so that decidability transfers backwards and undecidability forwards.

ProcedureProving a theory undecidable by semantic embedding
in: undecidable source theory and an interpretation → out: undecidability of Th(K)
  1. input: target class K whose first-order theory is to be shown undecidable
  2. choose a source theory T known to be undecidable
  3. (graphs, semigroups, or the word problem for groups)
  4. construct, for each model M of T, an algebra A_M ∈ K
  5. construct first-order formulas interpreting M inside A_M:
  6. a formula defining the universe of M as a definable subset of A_M
  7. formulas defining the relations and operations of M
  8. verify uniformity: the same formulas work for every M
  9. then any sentence of T translates to a sentence about K
  10. a decision procedure for Th(K) would decide T — contradiction
  11. conclude: Th(K) is undecidable
Correctness: the translation is computable, so decidability of the target would give decidability of the source. Caveat: the interpretation must be uniform across models — a per-model construction proves nothing.
Key resultNo recursion theory required

The source stresses that this technique is essentially algebraic and requires no familiarity whatsoever with the theory of algorithms. The undecidability of the source theory is imported as a black box; all the work is in constructing the interpretation, which is a purely algebraic exercise.

02Standard source theories

What gets encoded
SourceUndecidable sinceTypically used for
Word problem for semigroupsMarkov and Post, 1947semigroup and monoid varieties
Word problem for groupsNovikov, 1955group varieties
Theory of graphsclassicalgeneral algebraic structures
Equational theory of relation algebrasTarski, 1953algebras of logic
Unary algebrasMal'cevvery weak signatures
Finitely based semigroup varietiesMurskiĭ, 1968equational undecidability

Graphs are the most flexible source because a graph is a minimal structure — one binary relation — so interpreting a graph inside an algebra requires only that the algebra have enough definable structure to encode adjacency.

03Results the source reports

  1. 1954–1978
    Group varieties
    Szmielew, Ershov and Zamjatin: a variety of groups is decidable if and only if it is abelian.
  2. 1976
    Ring varieties
    Zamjatin: a variety of rings has a decidable theory iff it is generated by a zero-ring and finitely many finite fields.
  3. 1979
    Discriminator varieties — positive
    Burris and Werner: every finitely generated discriminator variety of finite type has a decidable theory.
  4. 1981
    The modular classification
    Burris and McKenzie: if a locally finite congruence-modular variety has a decidable theory then it is of the form (discriminator) ⊗ (modular Abelian).
  5. 1982
    Strengthened group result
    McKenzie: any class of groups containing P_S(G) for a non-abelian G has an undecidable theory.

The pattern the source identifies is a long-standing conviction among researchers that positive decidability and good structure theory go hand in hand. Every decidable case turns out to have a structural description, and the modular classification makes that precise for a large class.

04The Burris–McKenzie classification

The strongest result the source reports ties decidability to the structural decomposition of Chapter IV.

Key resultThe classification

If a locally finite congruence-modular variety has a decidable first-order theory, then it is of the form (discriminator) ⊗ (modular Abelian). Moreover there is an algorithm which, given a finite set K of finite algebras of finite type, decides whether V(K) is of this form; and if so, constructs a finite ring R with 1 such that V(K) is decidable iff the variety of unitary left R-modules is.

  1. Structure implies the form
    Decidability forces the variety into the two-part decomposition — a discriminator piece and a module-like piece.
  2. The form is recognisable
    An algorithm decides membership in the class, so the structural question is itself decidable.
  3. Decidability reduces to modules
    The remaining question is whether the module variety over a constructed finite ring is decidable — a question about ring theory rather than universal algebra.
  4. What is not settled
    Which finite rings give decidable module varieties. The reduction is complete; the reduced problem is not.

05The open problems recorded

Decidability problems in the source's closing survey
ProblemStatement
3Which locally finite varieties of finite type have a decidable theory?
4For which varieties of finite type is the theory of the finite algebras in the variety decidable?
5Do the finite algebras in any finitely generated arithmetical variety of finite type have a decidable theory?
6Do the finite algebras in any finitely generated congruence-distributive but not congruence-permutable variety of finite type have an undecidable theory?
7Is there an algorithm deciding which equations in at most 4 variables hold in modular lattices?
9Can the Linial–Post theorem be derived from base undecidability for Boolean algebras, or conversely?
10Is there an algorithm to determine whether V(A) has a finitely based equational theory, for A finite of finite type?

Problem 7 is notable for its precision: Freese proved in 1979 that no algorithm decides which equations in at most 5 variables hold in modular lattices, and the 3-variable case is decidable from Dedekind's description of the free modular lattice on 3 generators. The 4-variable case sits exactly in the gap.

06The general lesson

Undecidability
Encode something hard
Semantic embedding. Algebraic work, no recursion theory. Applies whenever the target has enough definable structure.
Decidability
Find enough structure
Requires a genuine structure theorem — Boolean product representation, quantifier elimination, or reduction to a known decidable theory. Much harder to obtain.
NoteWhy undecidability is the common outcome

Most varieties have enough definable structure to encode graphs, so most are undecidable. Decidability is the exception and always comes with a structure theorem attached. This asymmetry is why the positive results — discriminator varieties, abelian group varieties — are so prized, and why they cluster in exactly the well-behaved classes Chapter IV identified.

Frequently asked

Does semantic embedding prove undecidability of the equational theory too?

Not automatically. Embedding a first-order theory gives first-order undecidability. Equational undecidability is a stronger statement requiring the encoding to work at the level of identities, which is harder and is the content of results such as Murskiĭ's for semigroups and Tarski's for relation algebras.

Is a decidable variety necessarily well behaved structurally?

The Burris–McKenzie result makes this precise for locally finite congruence-modular varieties: decidability forces the two-part decomposition. Outside that setting the conviction that decidability and structure coincide is a working hypothesis rather than a theorem, and the source presents it as such.

Which of these problems have been resolved since 1981?

Several, and the collection does not state the outcomes on this page because the source records them as open and reporting otherwise here would misrepresent the text. The Research Frontier stream reviews the seventeen problems as a set and reports current status, marked explicitly as postdating the 1981 edition.

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

Three Finite Basis TheoremsGuide · MathematicsPrincipal Congruence FormulasGuide · MathematicsPreservation Theorems: Horn, Universal and Positive SentencesGuide · MathematicsThe Compactness Theorem and its ConsequencesGuide · Mathematics