Math 2.0

General algebraic systems Free algebras Proposition

Universal property of the free magma

Builds on Free magmaMagmaHomomorphism

Statement

Let XX be a set, let M(X)M(X) be the free magma on XX, and let ι ⁣:X→M(X)\iota \colon X \to M(X) be the inclusion of the generators. Let NN be a magma and let f ⁣:X→Nf \colon X \to N be a map. Then there is exactly one magma homomorphism h ⁣:M(X)→Nh \colon M(X) \to N such that h∘ι=fh \circ \iota = f.

Remarks

Existence: define hh by recursion on the construction of elements, with h(x)=f(x)h(x) = f(x) for x∈Xx \in X and h(u⋅v)=h(u)⋅h(v)h(u \cdot v) = h(u) \cdot h(v). This recursion is valid because each element of M(X)M(X) is either a generator or a product u⋅vu \cdot v for exactly one pair (u,v)(u, v). Uniqueness: two homomorphisms that agree on XX agree on all elements, by induction on the construction. Example: with N=(ℤ,+)N = (\Z, +) and f(x)=1f(x) = 1 for all xx, the homomorphism hh sends each element to its number of leaves. With N=(ℕ,max⁡(a,b)+1)N = (\N, \max(a, b) + 1) and f(x)=0f(x) = 0, the homomorphism hh sends each element to the height of its binary tree. In Mathlib this is FreeMagma.lift, an equivalence between maps X→NX \to N and magma homomorphisms M(X)→NM(X) \to N.

Going deeper

For a student

The proposition says that the free magma is the free algebra of the variety of all magmas. The free semigroup on XX has the same kind of universal property, and it is the quotient of M(X)M(X) by the congruence generated by associativity. Recursive definitions on binary trees, such as size and height, are instances of this proposition.

Reading path

To understand this page from the ground up, read these 7 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. Absolutely free algebra concept
  2. Binary operation concept
  3. Free algebra in a variety concept
  4. Homomorphism concept
  5. Magma concept
  6. Free magma example
  7. Universal property of the free magma statement

Further reading

  1. Web https://en.wikipedia.org/wiki/Magma_(algebra), Free magma
About this page
Tag4YN1TB9CXN
URIm2://4YN1TB9CXN
Kindstatement, proposition
WritingW0 stub
MSC08B20, 20N02
StatusThis copy of the site has no build data. Run m2 status 4YN1TB9CXN.
AboutFree magma
UsesFree magma, Magma, Homomorphism
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)

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.