Math 2.0

General algebraic systems Definition

Initial algebra semantics

Builds on Term algebraHomomorphismInitial algebraIdentity

Definition

Let Σ\Sigma be a signature of function symbols and let KK be a class of Σ\Sigma-algebras. An algebra I∈KI \in K is initial in KK if for every A∈KA \in K there is exactly one homomorphism I→AI \to A. The term algebra TΣT_\Sigma of ground terms is initial in the class of all Σ\Sigma-algebras. In initial algebra semantics, the meaning of a ground term tt in a Σ\Sigma-algebra AA is [ ⁣[t] ⁣]A=hA(t)[\![t]\!]_A = h_A(t), where hA ⁣:TΣ→Ah_A \colon T_\Sigma \to A is the unique homomorphism. Let EE be a set of equations. The meaning of the specification (Σ,E)(\Sigma, E) is the initial algebra of the class of Σ\Sigma-algebras that satisfy EE. It is determined up to isomorphism.

Remarks

Since hAh_A is a homomorphism, [ ⁣[f(t1,…,tn)] ⁣]A=fA([ ⁣[t1] ⁣]A,…,[ ⁣[tn] ⁣]A)[\![f(t_1, \dots, t_n)]\!]_A = f^A([\![t_1]\!]_A, \dots, [\![t_n]\!]_A), so meanings are compositional. The initial algebra of the algebras satisfying EE exists: it is the quotient of TΣT_\Sigma by the least congruence that contains all ground instances of the equations of EE.

Example: let Σ={0,s,+}\Sigma = \set{0, s, +} with arities 0,1,20, 1, 2, and let EE consist of x+0=xx + 0 = x and x+s(y)=s(x+y)x + s(y) = s(x + y). The natural numbers ℕ\N with zero, successor and addition satisfy EE. Every ground term equals some sn(0)s^n(0) by EE, and distinct numerals sm(0)≠sn(0)s^m(0) \ne s^n(0) are separated in ℕ\N, so ℕ\N is initial among the models of EE.

Non-example: ℕ\N is not initial in the class of all Σ\Sigma-algebras. In TΣT_\Sigma the terms s(0)s(0) and s(0)+0s(0) + 0 are different, but in ℕ\N they have the same value 11. A homomorphism ℕ→TΣ\N \to T_\Sigma would send 11 to both terms, so there is none.

The general notion of an initial algebra for a functor contains this one: TΣT_\Sigma is the initial algebra of the polynomial functor of Σ\Sigma.

Reading path

To understand this page from the ground up, read these 5 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. Homomorphism concept
  2. Identity concept
  3. Initial algebra concept
  4. Term algebra concept
  5. Initial algebra semantics definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Initial_algebra
About this page
TagBT7D4VQ6Y0
URIm2://BT7D4VQ6Y0
Kinddefinition
WritingW0 stub
MSC08A70, 68Q55, 08B20
DefinesInitial algebra semantics
UsesTerm algebra, Homomorphism, Initial algebra, Identity
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • 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.