Math 2.0

General algebraic systems Free algebras Example

Free magma

Builds on MagmaAbsolutely free algebraFree algebra in a varietyBinary operation

Example

Let XX be a set. The free magma M(X)M(X) on XX is defined inductively. Every x∈Xx \in X is an element of M(X)M(X), and if u,v∈M(X)u, v \in M(X), then the formal product (uv)(u v) is an element of M(X)M(X). Two elements are equal only when they are built in the same way. The binary operation is u⋅v=(uv)u \cdot v = (u v). So M(X)M(X) is a magma. Its elements are the fully parenthesised nonempty words in XX, or equivalently the binary trees with leaves labelled by XX.

It is an absolutely free algebra of the signature with one binary operation. Check: M(X)M(X) is generated by XX by construction. Given a magma NN and a map f ⁣:X→Nf \colon X \to N, define h(x)=f(x)h(x) = f(x) and h((uv))=h(u)⋅h(v)h((u v)) = h(u) \cdot h(v) by recursion on the construction. This is well defined because each element has exactly one construction, and it is the only homomorphism that extends ff. So M(X)M(X) is the free algebra on XX of the variety of all magmas.

For X={x}X = \set{x}, the elements with three leaves are ((xx)x)((x x) x) and (x(xx))(x (x x)), and they are different. The number of elements with nn leaves is the Catalan number Cn−1C_{n-1}, the number of ways to bracket a product of nn factors. In Mathlib the free magma is FreeMagma.

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. Absolutely free algebra concept
  2. Binary operation concept
  3. Free algebra in a variety concept
  4. Magma concept
  5. Free magma example

Where this leads

1 page builds on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Magma_(algebra), Free magma
About this page
TagZZF8XPBG3Z
URIm2://ZZF8XPBG3Z
Kindexample
WritingW0 stub
MSC08B20, 20N02
Instance ofAbsolutely free algebra, Magma
UsesMagma, Absolutely free algebra, Free algebra in a variety, Binary operation

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

Results about this

Used by