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

Glossary

Terms are grouped by layer, from the algebra up to the training algorithm. Unless stated otherwise, the definitions follow Algebraic Machine Learning: Learning as computing an algebraic decomposition of a task (arXiv:2502.19944), with its Supplementary Section on atomized semilattices as the formal source. Where a concept is spelled in several ways in the literature, the form given in bold is the one used throughout this wiki; the terminology sheet lists the variants.

Notation

SymbolMeaning
\(\odot\)the semilattice operation (idempotent summation)
\(C\)the set of constants of a task
\(a \leq b\)the order relation between regular elements, \(b \odot a = b\)
\(a \not\leq b\)its negation
\(\phi, \psi, \lambda, \xi\)atoms (Greek letters); regular elements use Latin letters
\(\phi[c_1, c_2]\)the atom whose upper constant segment is \(\{c_1, c_2\}\)
\(\phi < x\)atom \(\phi\) lies below regular element \(x\)
\(U^c(\phi)\)upper constant segment of an atom
\(L^a_M(x)\)lower atomic segment of \(x\) in model \(M\)
\(r \equiv (r_L, r_R)\)a duple; \(r^+\) and \(r^-\) its positive and negative readings
\(R = R^+ \cup R^-\)the axioms of a task
\(M \models r\)duple \(r\) holds in model \(M\)
\(\mathrm{dis}_M(a,b)\)discriminant of \(a\) and \(b\) in \(M\)
\(\phi \triangledown \psi\)union of two atoms
\(\square_r M\)full-crossing of duple \(r\) into model \(M\)
\(F_C(R^+)\)freest model over \(C\) of the positive duples \(R^+\)
\(\mathrm{Tr}(\cdot)\)the trace
\([x]\)the dual of element \(x\)
\(M_i, N_i, D_i\)master model, union model and dual of batch \(i\)

The algebra and the encoding

Algebraic Machine Learning (AML) — A learning method whose foundation is abstract algebra rather than statistics or optimization. A task is encoded as axioms of a semilattice; the freest model of those axioms is computed and decomposed into atoms; certain subsets of those atoms are generalizing models. In summary, learning is the cumulative discovery of certain atoms of the freest model.

Semilattice — An algebra with a single binary operation \(\odot\) that is commutative, associative and idempotent (\(a \odot a = a\)). AML uses semilattices because they are simple yet expressive enough to encode a broad range of tasks.

Idempotent summation — The name of the semilattice operation \(\odot\) and of expressions built with it, such as \(c_1 \odot c_2 \odot c_3\). Also called the idempotent operator.

Constant — A primitive element of the algebra chosen to describe a task: a pixel in a given colour, a board position, a class label, a graph edge. The set of all constants of a task is \(C\). Constants play task-specific roles (label constants, property constants, auxiliary or context constants) but are all the same kind of object. The Open-AML-Engine API calls them embedding constants.

Term — A constant, or an idempotent summation of constants: \(T = c_2 \odot c_8 \odot c_9\). Terms represent composite things such as an image, a board, or a path.

Component constants — The set of constants appearing in a term, written \(\mathbf{C}(t)\); for \(t = c_1 \odot \dots \odot c_n\), \(\mathbf{C}(t) = \{c_1, \dots, c_n\}\).

Regular element — A constant or a term, as opposed to an atom. In an atomized semilattice the regular elements form the set \(S\) and the atoms the disjoint set \(A\).

Order relation — \(T_L \leq T_R\) means \(T_R \odot T_L = T_R\): the term \(T_L\) is already contained in, or implied by, \(T_R\). In an ordinary semilattice the operation defines the order; in an atomized semilattice the order defines the operation.

Duple — An ordered pair of terms, \(r \equiv (T_L, T_R)\), read as the statement \(T_L \leq T_R\). The word is silent about whether the statement holds. A positive duple \(r^+\) is one that holds in the model under discussion (\(M \models T_L \leq T_R\)); a negative duple \(r^-\) is one that does not (\(M \models T_L \not\leq T_R\)). \(r_L\) and \(r_R\) denote the left- and right-hand terms. Sets of positive and negative duples are written \(R^+\) and \(R^-\).

Axiom — A duple that forms part of the specification of a task, whether it comes from data (a training example), from the goal of the task, or from prior knowledge. The task’s axioms are \(R = R^+ \cup R^-\), its positive and negative axioms. “Axiom” names the role a duple plays; “duple” names the object. Task duple and training duple are also used for the same thing.

Axiomatization — The first stage of the AML pipeline: encoding the problem, defined by data, goals and prior knowledge, as a set of axioms.

Semantic embedding — The encoding technique by which a problem is expressed as constants and duples of a semilattice. The notion comes from mathematical logic, where it describes the encoding of one algebraic structure within another. A particular embedding is a particular choice of constants and axioms for a problem. An explicit embedding is a type of embedding, studied in Semantic embeddings in semilattices, in which every solution of the problem is atomized by a subset of the non-redundant atoms of the freest model of the axioms.

Task — The set of axioms \(R\) to be modelled, together with the constants \(C\) they mention.

Model — A semilattice in which a given set of duples holds; a model of the axioms is a semilattice satisfying all of \(R\). \(M \models r\) denotes that duple \(r\) holds in \(M\).

Theory of a model — \(Th(M)\) is the set of sentences satisfied by \(M\). \(Th_0(M)\) restricts to quantifier-free sentences, that is, duples; \(Th_0^+(M)\) and \(Th_0^-(M)\) are its positive and negative parts.

Logical consequence — A duple that holds in every model of a set of axioms. The positive and negative duples that are consequences of \(R\) are exactly those true in its freest model.

Consistent axioms — A set of axioms that admits at least one model, that is, contains no contradiction. Full Crossing of a consistent set terminates in the freest model; the dual built by Sparse Crossing can be atomized if and only if the batch’s axioms are consistent, which gives a consistency check at no extra cost.

Causal set — \(P\) is a causal set of \(Q\) when every duple of \(Q\) is a logical consequence of the duples of \(P\). In the analysis of generalization, \(P\) is the set of duples defining the hidden rule behind the data and \(Q\) the set of its logical consequences, excluding \(P\) itself; the observable duples are the subset of \(Q\) that can actually appear as data.

Atomized semilattices

Atomized semilattice — A structure over a set of constants \(C\) with elements of two sorts, regular elements and atoms; an idempotent, commutative, associative operation \(\odot\) defined on regular elements; and a partial order \(<\) defined on both sorts, satisfying six additional axioms (AS1–AS6). Among their consequences: every atom lies below at least one constant, every regular element has at least one atom below it, no regular element lies below an atom, and \(a \leq b\) holds exactly when no atom is below \(a\) without also being below \(b\).

Atom — An element of the second sort of an atomized semilattice. An atom is completely determined by its upper constant segment, which gives the notation \(\phi[c_3, c_4]\) for the atom lying below \(c_3\) and \(c_4\) and below no other constant. Because an atom is just a set of constants, it has a universal meaning independent of any particular model: any model containing \(\phi\) with \(\phi < T_1\) and \(\phi \not< T_2\) satisfies \(T_1 \not\leq T_2\). Each atom corresponds to a subdirectly irreducible component of the semilattice it atomizes.

Upper constant segment — \(U^c(\phi) = \{c \in C : \phi < c\}\), the constants above an atom.

Lower atomic segment — \(L^a_M(x) = \{\phi \in M : \phi < x\}\), the atoms of model \(M\) below a regular element \(x\). The lower segment of a term is the union of the lower segments of its component constants, and a duple \(T_L \leq T_R\) holds in \(M\) if and only if \(L^a_M(T_L) \subseteq L^a_M(T_R)\).

Atom size — The number of constants in an atom’s upper constant segment, \(|U^c(\phi)|\).

Wider than — Atom \(\phi\) is wider than atom \(\eta\) when \(U^c(\eta) \subsetneq U^c(\phi)\). During crossing an atom is said to grow when it is replaced by a wider one.

Atomization — A set of atoms that determines a model; a model \(M\) atomized by \(A\) is fully described by listing \(A\), since the model can be reconstructed from its atoms alone. Different atomizations may describe the same semilattice.

Redundant atom — An atom \(\phi\) of model \(M\) such that for every constant \(c\) above \(\phi\) there is a narrower atom of \(M\) also below \(c\); equivalently, \(U^c(\phi)\) is a union of the upper constant segments of other atoms of \(M\). Redundant atoms can be removed without changing which duples the model satisfies. An atom that is not redundant is non-redundant; the non-redundant atoms generate all the atoms of a model and are its building blocks.

Union of atoms — \(\phi \triangledown \psi\) is the atom with \(U^c(\phi \triangledown \psi) = U^c(\phi) \cup U^c(\psi)\). Full-crossing creates new atoms as unions of existing ones.

Discriminant — \(\mathrm{dis}_M(a,b) = L^a_M(a) \setminus L^a_M(b)\), the atoms of \(M\) below \(a\) but not below \(b\). It is non-empty exactly when \(a \not\leq b\) in \(M\); an atom in the discriminant is said to discriminate the duple \((a,b)\), that is, to make it negative. In the description of Full Crossing the discriminant of the duple being enforced is written \(D\) and the lower segment of its right-hand side \(R\).

Misses — In classification, the atoms below a label constant that are not below the term representing a test example: the discriminant of (label, example). The fewest-misses rule assigns an example to the class with the smallest number of misses.

Subdirect decomposition — The representation of an algebra as a subdirect product of subdirectly irreducible components, a classical construction in abstract algebra due to Birkhoff. AML uses it to find the fundamental building blocks of a problem: the freest model is given explicitly as a subdirect product, and its atoms are its irreducible components.

Pinning term — For an atom \(\phi\) over \(C\), the term whose component constants are \(C \setminus U^c(\phi)\), written \(T_\phi\). Pinning terms of previously learned atoms are added to the dual so that earlier batches influence later ones.

Freeness and crossing

Freer than or as free as — Semilattice \(M_1\) is freer than or as free as \(M_2\) when every duple negative in \(M_2\) is also negative in \(M_1\): \(Th_0^-(M_2) \subseteq Th_0^-(M_1)\). A model that satisfies more positive duples is less free.

Freest model — The freest model over \(C\) of a set of positive duples \(R^+\), written \(F_C(R^+)\), is the model in which a positive duple holds only if it holds in every model of \(R^+\). In it, the only true statements are the axioms and their logical consequences; it is the model of what can be proven from the axioms. The freest model does not generalize: it acts as a memory of the axioms. Negative axioms play no part in its computation, since every negative duple consistent with \(R^+\) already holds in \(F_C(R^+)\).

Freest semilattice — The freest model of the empty set of axioms, \(F_C(\emptyset)\), which satisfies no positive duple beyond those true in every semilattice. It is atomized by one atom per constant, each with a single constant in its upper segment, \(\{\phi[c_1], \dots, \phi[c_m]\}\), and is the usual initial model for crossing.

Full Crossing — The procedure that computes the freest model of a set of positive axioms by applying one full-crossing operation per axiom, in any order; the result is independent of the order. Starting from the freest semilattice, each step enforces one more axiom while keeping the model as free as possible.

Full-crossing (operation) — The full-crossing of a duple \(r = (r_L, r_R)\) into a model \(M\) in which \(r\) is negative. With \(H = \mathrm{dis}_M(r_L, r_R)\) and \(B = L^a_M(r_R)\),

\[\square_r M = (M \setminus H) \cup (H \triangledown B),\]

where \(H \triangledown B\) is the set of all pairwise unions of an atom of \(H\) with an atom of \(B\). Each atom of the discriminant is thus replaced by \(|B|\) wider atoms, and \(\square_r M\) is the freest model satisfying \(r\) and everything \(M\) satisfied. The full-crossing table displays the operation with the atoms of \(D\) as rows and those of \(R\) as columns, the new atoms filling the cells.

Crossing sequence — The chain of models \(N_0, N_1, \dots, N_n\) produced by enforcing the positive axioms \(r_1, \dots, r_n\) one by one; one application of the operation is a crossing step.

Inward chain, outward chain — Sequences of atoms \(\lambda_0, \lambda_1, \dots, \lambda_n\) with \(\lambda_i \in N_i\) that track an atom through a crossing sequence. An inward chain ends at a chosen atom of the final model; an outward chain starts at a chosen atom of the initial model. Along a chain each atom either stays the same or grows, and it grows exactly when it is in the discriminant of the next axiom.

Growth, success, inception — For an atom \(\phi\) of the final model, \(g(\phi)\) is the number of times its inward chain grows; \(k(\phi)\) is the index of the first model in which \(\phi\) appears (its inception time); and the success \(h(\phi) = n - k(\phi)\) is the number of consecutive crossings it has survived unchanged since its creation.

Mature atom — An atom that has reached its final size and will not grow further. Because an atom’s upper segment cannot exceed \(|C|\), every atom matures after finitely many growths; a mature atom causes no false negatives.

Sparse Crossing — The practical training algorithm of AML: a sparse version of Full Crossing that obtains generalizing subsets of atoms of the freest model directly from the positive and negative axioms, without computing the freest model, which is usually intractable. It processes the axioms in batches, keeps only the atoms needed to discriminate the negative axioms, and decides which atoms may be discarded by preserving the trace. It is stochastic, so repeated runs give different valid models.

Sparse-crossing (operation) — The sparse counterpart of a full-crossing step: an atom \(\phi\) of the discriminant is replaced by \(\{\phi \triangledown \psi_k : \psi_k \in S_\phi\}\) for a subset \(S_\phi \subseteq L^a_M(r_R)\) chosen so that \(\mathrm{Tr}(\phi) = \bigcap_{\psi_k \in S_\phi} \mathrm{Tr}(\phi \triangledown \psi_k)\), that is, so that the operation is trace-invariant. The result is atomized by a subset of the atoms of \(\square_r M\). A sparse-crossing table shows which cells of the full-crossing table are kept.

Generalization

Generalizing subset, generalizing model — A subset of atoms of the freest model that satisfies all positive and negative axioms and also gives correct answers on duples it was not trained on; and the atomized model that subset defines. Every subset of atoms of the freest model satisfies the positive axioms; a single atom suffices to satisfy a negative one, so there always exist generalizing subsets no larger than the number of negative axioms.

Discriminative atom — An atom that discriminates many negative duples, that is, has a low probability of false positive. Good generalizing subsets consist of few atoms that are individually discriminative, collectively discriminate every negative axiom of the training set, have low mutual correlation, and have high success.

Probability of false negative (PFN) — For an atom or a subset of atoms, the probability that it makes a test duple negative that should be positive. For a subset of \(Z\) atoms it is approximated from the growth and the success of each atom:

\[\mathrm{PFN}(\phi_1,\dots,\phi_Z) \approx \sum_{i=1}^{Z} \min\!\left(\frac{1}{h(\phi_i)+1},\ \frac{g(\phi_i)+1}{j+1}\right),\]

where \(j\) is the number of positive training duples crossed so far. A simpler approximation is \(\sum_i 1/h(\phi_i)\), from which it follows that the PFN falls with fewer, more successful atoms.

Probability of false positive (PFP) — The probability that a test duple which should be negative is positive in the model. For a subset of atoms with independent behaviour it is the product of the individual probabilities, so it falls with more, and less correlated, discriminative atoms. Individual values can be estimated from the negative training axioms, which play no role in building the freest model.

The load — A quantity, written \(L\), that can be computed during training and measures how immature the atoms of a model still are. It is the sum that approximates the PFN:

\[L = \sum_{i=1}^{Z} \min\!\left(\frac{1}{h(\phi_i)+1},\ \frac{g(\phi_i)+1}{j+1}\right).\]

The load can be much larger than 1 at the beginning of learning and comes down as the model learns. The amount of learning can be measured with a test set only once \(L \leq 1\).

Point of abrupt confidence transition — The value \(\Delta_T = 1 - e^{-L}\) at which the confidence that the PFN of a set of atoms exceeds a bound \(\Delta\) changes abruptly from high to low. A given bound on the PFN therefore becomes established with confidence within a narrow window of training examples. This does not mean that learning is abrupt: the PFN improves gradually as examples are added, and it is the confidence in a bound that changes suddenly.

Convergence to the hidden rule — The theorem that the non-redundant atoms of the freest model of a sufficiently large set of consequences \(Q\) coincide with the non-redundant atoms of the freest model of the rule \(P\) that generated them. Given enough data, the freest model of the data becomes equivalent to the model of the rule, and its atoms become readable as the rule itself.

Model additivity — The union, as sets of atoms, of two models of the axioms is again a model of the axioms. Larger models can therefore be assembled from independently computed ones, and training can run in parallel.

No validation set — Because the model grows autonomously, has four fixed hyperparameters, and shows no overfitting in theory or experiment, AML trains on the training data alone, with no validation set for architecture selection or early stopping.

The Sparse Crossing machinery

Batch — A subset \(R_i = R_i^+ \cup R_i^-\) of the axioms processed in one iteration of Sparse Crossing, usually sampled with replacement. For formal problems without data, every batch contains the complete set of axioms.

Master model — \(M_i\), the model produced by sparse-crossing the positive axioms of batch \(i\), starting from \(M_{i-1}\) and satisfying \(R_i\). The sequence begins with \(M_0\), usually the freest semilattice.

Union model — \(N_i\), the model accumulating the master models of all batches so far: \(N_i = \{\phi \in N_{i-1} : \phi \models R_i^+\} \cup M_i\). Trimming the union model means removing from \(N_{i-1}\) the atoms inconsistent with the new positive axioms. Training stops when the union model has zero error on the training set; after that point no atoms are removed and the union model only grows.

Dual — \(D_i\), an auxiliary atomized semilattice built for each batch. It has one constant \([x]\), the dual of \(x\), for every element of

\[E_i = C \cup \mathrm{Terms}(R_i^+ \cup R_i^-) \cup \{T_\phi : \phi \in N_{i-1},\ \phi \models R_i^+\},\]

that is, for every constant, every term mentioned in the batch, and every pinning term of the trimmed union model; it satisfies the reversed axioms \(R_i^*\) in which each \((r_L, r_R)\) becomes \(([r_R], [r_L])\). It serves as the codomain of the trace. The dual can be atomized if and only if the batch’s axioms are consistent, and its atomization never needs more atoms than there are negative axioms. In practice it is computed through indicator sets rather than by the graph construction of its formal definition.

Trace — A function, defined once the dual is built, that maps atoms and regular elements of a model to sets of atoms of the dual. For an atom, \(\mathrm{Tr}(\phi) = \bigcup_{c \in U^c(\phi)} L^a_{D}([c])\), which depends only on the dual and is therefore universal; for a regular element of model \(M\), \(\mathrm{Tr}_M(x) = \bigcap_{\phi \in L^a_M(x)} \mathrm{Tr}(\phi)\), which depends on \(M\) but not on its particular atomization. The trace satisfies \(\mathrm{Tr}(\phi \triangledown \psi) = \mathrm{Tr}(\phi) \cup \mathrm{Tr}(\psi)\) and \(\mathrm{Tr}(a \odot b) = \mathrm{Tr}(a) \cap \mathrm{Tr}(b)\), and its key property is that \(\mathrm{Tr}(b) \not\subseteq \mathrm{Tr}(a)\) implies \(M \models a \not\leq b\).

Trace constraints — Conditions a model must satisfy before the sparse-crossing of a batch: for every positive axiom, \(\mathrm{Tr}(r_R) \subseteq \mathrm{Tr}(r_L)\) (positive trace constraint); for every negative axiom, \(\mathrm{Tr}(r_R) \not\subseteq \mathrm{Tr}(r_L)\) (negative trace constraint). Negative trace constraints guarantee that the negative axioms survive every trace-invariant operation; positive ones guarantee that sparse-crossing is itself trace-invariant. Both can always be met by adding to \(M_{i-1}\) a set \(\Lambda_i\) of new atoms, each with a single constant in its upper segment.

Trace-invariant operation — Any transformation of a model that leaves the trace of every element unchanged. Sparse-crossing of a duple and simplification are both trace-invariant, which is what guarantees that all positive and negative axioms of the batch hold at the end.

Trace-invariant simplification — Discarding atoms of the master model while keeping the trace of every constant unchanged; because the trace of a term is the intersection of the traces of its component constants, this preserves all traces. It is triggered whenever the master model grows beyond a threshold and keeps the model size bounded by a quantity depending only on the size of the dual.

Hyperparameters — Sparse Crossing has four, set once and not tuned per dataset: the simplification threshold \(\gamma\) (growth factor of the master model that triggers simplification), the batch size, the union-model fractioning parameter \(\kappa\) (the minimum proportion of dual atoms that must be associated with negative axioms rather than pinning terms), and the model reduction parameter \(\delta\) (the fraction of the union model retained by subset selection).

Subset selection — The procedure for extracting a smaller generalizing model from the union model: atoms are read in random order and an atom is kept only if it discriminates some negative training axiom that no previously kept atom discriminates; several such subsets are accumulated up to the target size, and atoms not below any label constant are dropped.

AML with logistic regression — A hybrid evaluation in which the atoms of the model become features: each atom contributes \(+1\) if it lies below the example’s term and \(-1\) otherwise, and a linear softmax layer, trained on the training set only, maps this vector to classes. The alternative that uses no statistics is the fewest-misses rule.

Operations on atomized semilattices

These operations come from Finite atomized semilattices, and are the ones exposed by the Atomized Semilattices Playground.

Minimal atomization — The unique smallest set of atoms describing a given finite semilattice: its non-redundant atoms. Any atomization of a finite semilattice contains it.

Restriction — The model obtained by projecting an atomized semilattice onto a subset of its constants: each atom keeps only the constants of the subset in its upper segment, and atoms left with none are dropped.

Rename — The substitution of constants by other constants throughout a model, applied to the atoms’ upper segments.

Subalgebra — The sub-semilattice generated by a chosen set of terms, obtained in the playground by renaming or by full crossing.

Grounding — The operation that adds the idempotent summations of a chosen subset of constants to a model, computing that subset’s closure under \(\odot\).

Product — The model formed from two models over disjoint sets of constants by taking the union of their atoms and extracting the subalgebra generated by all pairs of constants, one from each model.

Join of models — The combination of two models that may share constants: the shared constants of one model are renamed to primed copies, the identification of each constant with its copy is enforced by full crossing, and the result is restricted to the original constants. Not to be confused with the semilattice operation itself.

Hasse diagram — The standard drawing of a finite partial order, used by the playground to display the semilattice that a set of atoms encodes; each node is a class of terms that contain exactly the same atoms.

Embeddings in use

Pixel constants — For black-and-white images, one constant per pixel location for black and one for white; an image is the idempotent summation of its pixel constants.

Intensity chains — For greyscale and colour images, two chains of constants per pixel and channel, one ascending (\(l(\mathrm{intensity}) \leq l(\mathrm{intensity}+1)\)) and one descending (\(g(\mathrm{intensity}+1) \leq g(\mathrm{intensity})\)); an intensity value is embedded as \(l \odot g\) at that level, and an image as the summation over all pixels and channels.

Label constant — A constant standing for a class, such as \(digit_i\); a labelled training example becomes the positive axiom \(digit_i \leq image_k\) and the negative axioms \(digit_{j \neq i} \not\leq image_k\).

Hamiltonian-cycle embedding — The explicit embedding used to find Hamiltonian cycles from a graph’s description alone, with constants for nodes (\(V_i\)), edges (\(E_k\)), the path (\(P\)), a constant \(W\) for recording wrong paths, absent edges (\(nE_k\)), auxiliary (\(Z_k\)), context (\(g_k, h_k\)) and path-identity (\(id_i\)) constants, \(2v + 5e + 2\) in total. A model is read by interpreting \(E_k \leq P\) as “edge \(k\) is on the path”; each such reading after a batch is an attempt. The embedding’s constraints are soft: models that violate the intended reading exist, but good models are found early in practice.

Sudoku embedding — The embedding, set out in Semantic embeddings in semilattices, that lets AML complete or generate Sudoku boards from the rules alone, the other example of learning without data.

Names

Algebraic Machine Learning (AML) — The subject of this wiki. The name is spelled out at first use on every page and abbreviated to AML afterwards; AlgebraicML is an accepted alternative short name.

Algebraic AI — The company that develops AML, co-founded by Fernando Martin-Maroto and Gonzalo G. de Polavieja. See Algebraic AI.

Open-AML-Engine — The open-source Python/C implementation of Sparse Crossing (and Full Crossing) released in 2025, with example embeddings for MNIST, Sudoku and Hamiltonian cycles. Every computationally intensive function carries a decorator that chooses between the Python and the C implementation. See Open-AML-Engine.

Primary literature — Algebraic machine learning (2018 preprint); Finite atomized semilattices (2021); Semantic embeddings in semilattices (2022); Infinite atomized semilattices (2023); and Algebraic Machine Learning: Learning as computing an algebraic decomposition of a task.