AML Wiki Review copy, version 1.1, 12 November 2026
algebraic.ai

The learning principle

The algebra

Algebraic Machine Learning (AML) expresses a task in an algebra called a semilattice. An algebra, in this sense, is a set of objects together with one or more operations on them that obey stated laws. The semilattice is used because it is simple and yet expressive enough to represent a broad range of tasks.1

The operation

A semilattice has a single operation, written \(\odot\), which combines two objects into one. It obeys three laws:

\[x \odot y = y \odot x, \qquad x \odot (y \odot z) = (x \odot y) \odot z, \qquad x \odot x = x.\]

The order in which two objects are combined does not matter; when three are combined, it does not matter which two are combined first; and combining an object with itself gives the same object back. In other words, the operation is commutative, associative and idempotent.2

Constants and terms

The basic objects are called constants. They are the primitives in which a task and its data are described. In an image-classification problem a constant might stand for a pixel in a particular position and of a particular colour; in a board game it might stand for a position or a piece. The set of constants is written \(C\).

Combining constants gives terms. A term stands for something composite: an image, for example, is the combination of the constants of its pixels. A term is an idempotent summation of constants, such as

\[T = c_2 \odot c_8 \odot c_9 ,\]

and the constants that appear in it are its component constants, here \(\{c_2, c_8, c_9\}\).1

The order

One term can be contained in another, in the sense that combining the two gives the second one back unchanged. A term \(T_L\) is contained in a term \(T_R\) when \(T_R \odot T_L = T_R\), which is written

\[T_L \leq T_R\]

and is read as \(T_L\) being “already contained in or implied by” \(T_R\). This is how the algebra says that something has a property: \(T_R\) has the property characterized by \(T_L\).1

An example

Consider binary sequences of length 4 that share a property. A constant \(p\) stands for the property. Each position has two constants, one for the digit 1 and one for the digit 0, which gives 8 constants for the sequence; \(c_{31}\), for example, says that the third position is 1. That the sequence 0100 has the property is written \(T_L \leq T_R\) with

\[T_L = p, \qquad T_R = c_{10} \odot c_{21} \odot c_{30} \odot c_{40} .\]

The task is then a set of such statements, one for each sequence in the class.1 The statements are called duples; see Encoding a task.

References

  • Martin-Maroto, Abderrahaman, Méndez and de Polavieja (2025), Algebraic Machine Learning: Learning as computing an algebraic decomposition of a task, arXiv:2502.19944.

See also

Footnotes

  1. Martin-Maroto et al. (2025), section “Encoding a task as axioms of an algebraic structure”. ↩ ↩2 ↩3 ↩4

  2. Martin-Maroto et al. (2025), section “Encoding a task as axioms of an algebraic structure”; Supplementary section “Atomized Semilattices”, Definition 1. ↩