Math 2.0

Mathematical logic and foundations Definition

Substitution

Builds on TermSignature

Definition

Let σ\sigma be a signature with only function symbols and let XX be a set of variables. Let T(X)T(X) be the set of terms over σ\sigma and XX. A substitution is a map θ ⁣:X→T(X)\theta \colon X \to T(X). Its application to a term tt, written tθt\theta, is defined by recursion on tt:

  1. xθ=θ(x)x\theta = \theta(x) for each variable x∈Xx \in X;
  2. cθ=cc\theta = c for each constant symbol cc;
  3. f(t1,…,tn)θ=f(t1θ,…,tnθ)f(t_1, \ldots, t_n)\theta = f(t_1\theta, \ldots, t_n\theta) for each function symbol ff of arity n≥1n \ge 1.

Remarks

Usually θ(x)=x\theta(x) = x for all but finitely many xx, and θ\theta is written {x1↦s1,…,xk↦sk}\set{x_1 \mapsto s_1, \ldots, x_k \mapsto s_k}. A term ss is an instance of tt if s=tθs = t\theta for some substitution θ\theta. The substitutions are exactly the endomorphisms of the term algebra T(X)T(X), restricted to the variables. For an identity s≈ts \approx t, the identity sθ≈tθs\theta \approx t\theta holds in every algebra in which s≈ts \approx t holds.

Example: with θ={x↦z⋅z, y↦1}\theta = \set{x \mapsto z \cdot z, \ y \mapsto 1}, clause 3 and clause 1 give (x+y)θ=(z⋅z)+1(x + y)\theta = (z \cdot z) + 1.

Non-example: the replacement of the first occurrence of xx in x+xx + x by yy is not a substitution. By clauses 1 and 3, every substitution sends x+xx + x to θ(x)+θ(x)\theta(x) + \theta(x), which never equals y+xy + x.

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. Signature concept
  2. Term concept
  3. Substitution definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Substitution_(logic)
About this page
TagXN8TQE6SRK
URIm2://XN8TQE6SRK
Kinddefinition
WritingW0 stub
MSC03B10, 08B05
DefinesSubstitution
UsesTerm, Signature
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.