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

The learning principle

Atomized semilattices

In Algebraic Machine Learning (AML) a model of a task is not stored as a table of what is true. It is stored as a set of atoms.

Two sorts of element

A model here is a particular semilattice in which the axioms of the task hold. The models AML computes are of a special kind, called atomized semilattices. They contain two sorts of element. The regular elements are the constants and the terms built from them; they form a set \(S\) and are written with Latin letters. The atoms are additional elements that sit below the regular ones; they form a disjoint set \(A\) and are written with Greek letters.

The idempotent operation \(\odot\) acts only on regular elements. The order relation \(<\) acts on regular elements and on atoms. In a semilattice the operation \(\odot\) defines the order \(\leq\); in an atomized semilattice it is the other way round, and the order defines the operation.1

An atom is a set of constants

An atom is fully described by the constants it lies below. That set is the atom’s upper constant segment, \(U^c(\phi) = \{c : (\phi < c) \wedge (c \in C)\}\).2 An atom is written by listing that segment: \(\phi[c_3, c_4]\) is the atom that is below \(c_3\) and \(c_4\) and no other constant. A model is then nothing more than a set of such sets, for example

\[M = \{\phi[c_1, c_2, c_3],\ \phi[c_2, c_5],\ \phi[c_1, c_6],\ \phi[c_3],\ \phi[c_3, c_4],\ \phi[c_2, c_3, c_5]\}.\]

Because an atom is a set of constants, its meaning does not depend on the model it is in: the same atom has the same effect wherever it appears. If an atom \(\phi\) satisfies \(\phi < T_1\) and \(\phi \not< T_2\), then any model that contains \(\phi\) satisfies \(T_1 \not\leq T_2\).1

Reading a model from its atoms

Whether a statement holds in a model is read from the atoms. One term is contained in another when every atom below the first is also below the second:

\[T_L \leq T_R \Leftrightarrow \{\phi \mid \phi < T_L\} \subseteq \{\phi \mid \phi < T_R\}.\]

The set of atoms below a regular element \(x\) in a model \(M\) atomized by a set of atoms \(A\) is its lower atomic segment, \(L^a_M(x) = \{\phi : (\phi < x) \wedge (\phi \in A)\}\).2 The lower atomic segment of a term \(T = c_1 \odot c_2 \odot \dots \odot c_n\) is the union of the lower atomic segments of its component constants.1

A single atom that is below the first term and not below the second is enough to make the statement false. The set of such atoms is the discriminant of the two terms, written \(dis_M(a, b)\),3 and the duple \(a \leq b\) holds in \(M\) exactly when the discriminant is empty.

Redundant atoms

Some atoms can be left out. An atom is redundant in a model if its upper constant segment can be written as the union of the upper constant segments of other, different atoms of the model. In the model above, \(\phi[c_2, c_3, c_5]\) is redundant because of \(\phi[c_3]\) and \(\phi[c_2, c_5]\). Removing redundant atoms changes nothing about which duples the model satisfies. The non-redundant atoms act as generators of the set of all atoms of the model.1

Two related notions are used on other pages. An atom \(\phi\) is wider than an atom \(\eta\) if \(U^c(\eta) \subsetneq U^c(\phi)\). The union of atoms \(\phi\) and \(\psi\) is the atom \(\phi \triangledown \psi\) with \(U^c(\phi \triangledown \psi) = U^c(\phi) \cup U^c(\psi)\).4

The axioms

An atomized semilattice over a set of constants \(C\) satisfies the axioms of its operations and six further axioms:

\[\begin{aligned} &\forall \phi\, \exists c : (c \in C) \wedge (\phi < c) && \text{(AS1)}\\ &\forall \phi\, \forall a\, (a \not\leq \phi) && \text{(AS2)}\\ &\forall a\, \forall b\, \big(a \leq b \Leftrightarrow \neg \exists \phi : ((\phi < a) \wedge (\phi \not< b))\big) && \text{(AS3)}\\ &\forall \phi\, \forall a\, \forall b\, \big(\phi < a \odot b \Leftrightarrow (\phi < a) \vee (\phi < b)\big) && \text{(AS4)}\\ &\forall c \in C\, \big((\phi < c) \Leftrightarrow (\psi < c)\big) \Rightarrow (\phi = \psi) && \text{(AS5)}\\ &\forall a\, \exists \phi : (\phi < a) && \text{(AS6)} \end{aligned}\]

In words: every atom is below at least one constant; no regular element is below an atom; \(a \leq b\) holds exactly when no atom is below \(a\) without being below \(b\); an atom is below a term exactly when it is below one of the term’s parts; two atoms below the same constants are the same atom; and every regular element has at least one atom below it.5

The key law connecting elements and atoms is AS3, which can be rewritten informally as

\[a \leq b \iff (\phi < a \Rightarrow \phi < b) \quad \text{for every atom } \phi .\]

Existence, and what atoms correspond to

If the terms in the axioms are all formed from constants of \(C\), any semilattice model of the axioms can be found as an atomized semilattice over \(C\). Each atom, redundant or not, corresponds to a subdirectly irreducible component of the semilattice it atomizes.1 The theory is developed in Finite atomized semilattices and extended to infinite semilattices in Infinite atomized semilattices; see Finite atomized semilattices and Infinite atomized semilattices.

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.
  • Martin-Maroto and de Polavieja (2021), Finite atomized semilattices, arXiv:2102.08050.
  • Martin-Maroto, Ricciardo, Mendez and de Polavieja (2023), Infinite atomized semilattices, arXiv:2311.01389.

See also

Try it

The first panel of the playground builds an atomization atom by atom, shows the semilattice it defines, and flags redundant atoms.

Footnotes

  1. Martin-Maroto et al. (2025), section “Atomized models of the task”. ↩ ↩2 ↩3 ↩4 ↩5

  2. Martin-Maroto et al. (2025), Supplementary section “Atomized Semilattices”, Definitions 9 and 10. ↩ ↩2

  3. Martin-Maroto et al. (2025), Supplementary section “Atomized Semilattices”, Definition 13. ↩

  4. Martin-Maroto et al. (2025), Supplementary section “Atomized Semilattices”, Definitions 11 and 14. ↩

  5. Martin-Maroto et al. (2025), Supplementary section “Atomized Semilattices”, Definition 7. ↩