Math 2.0

Computer science Definition

Unification

Builds on SubstitutionTerm

Definition

Let σ\sigma be a signature with only function symbols, let XX be a set of variables, and let s,ts, t be terms over σ\sigma and XX. A unifier of ss and tt is a substitution θ\theta with sθ=tθs\theta = t\theta, equality meaning identical terms. A unifier θ\theta is a most general unifier if the following holds for every unifier η\eta of ss and tt. There is a substitution ρ\rho with xη=(xθ)ρx\eta = (x\theta)\rho for every variable xx. Unification is the problem of deciding whether two given terms have a unifier and of finding a most general one.

Remarks

If ss and tt have a unifier, then they have a most general unifier, unique up to renaming of variables, and Robinson's algorithm finds it. The same notions apply to finite sets of pairs of terms, which are unified simultaneously. In EE-unification one asks instead for sθ≈tθs\theta \approx t\theta to follow from a set EE of identities.

Example: s=f(x,b)s = f(x, b) and t=f(a,y)t = f(a, y), with constants a,ba, b, have the unifier θ={x↦a, y↦b}\theta = \set{x \mapsto a, \ y \mapsto b}. Indeed sθ=f(a,b)=tθs\theta = f(a, b) = t\theta, and θ\theta is most general because every unifier must send xx to aa and yy to bb.

Non-example: xx and f(x)f(x) have no unifier. For every substitution θ\theta, the term f(x)θ=f(xθ)f(x)\theta = f(x\theta) has one more symbol than xθx\theta, so they are never identical.

Reading path

To understand this page from the ground up, read these 3 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Substitution concept
  2. Term concept
  3. Unification definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Unification_(computer_science)
About this page
TagMKY6BQHRJM
URIm2://MKY6BQHRJM
Kinddefinition
WritingW0 stub
MSC68V15, 03B35, 08B05
DefinesUnification
UsesSubstitution, Term
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.