The learning principle
The freest model and Full Crossing
A set of axioms usually has many models. Algebraic Machine Learning (AML) singles out one of them, the freest model.
The freest model
The freest model is the one that commits to as little as possible. In it, the only statements that are true are the axioms of the task and what follows logically from them, the logical consequences being the positive and negative duples that are true in every model of the axioms.1 Every other model of the same axioms makes more statements true, and is said to be less free.
Precisely, a semilattice \(M_1\) is freer than or as free as a semilattice \(M_2\) if every duple that is negative in \(M_2\) is also negative in \(M_1\).2 The freest model over the constants \(C\) of a set of positive duples \(R^+\), written \(F_C(R^+)\), is the model such that if \(F_C(R^+) \models r^+\) for a duple \(r\), then every other model of \(R^+\) also satisfies \(r^+\).3
Full Crossing
The freest model is computed by a procedure called Full Crossing. It starts from a model in which nothing holds beyond what is true in every semilattice. This starting model, the freest semilattice \(F_C(\emptyset)\), has one atom for each constant, each with a single constant in its upper constant segment: \(\{\phi[c_1], \phi[c_2], \dots, \phi[c_m]\}\) with \(m = \vert C \vert\).
The axioms are then enforced one at a time. Enforcing an axiom replaces the atoms that stand in its way with new, larger atoms, each made by combining one of the old atoms with an atom of the term on the other side of the axiom. Let \(M\) be a model and \(r \equiv (r_L, r_R)\) a duple that does not hold in it. Let \(H = dis_M(r_L, r_R)\) be the discriminant and \(B = L^a_M(r_R)\) the set of atoms of \(M\) below \(r_R\). The full-crossing of \(r\) into \(M\) is the model
\[\square_r M = (M \setminus H) \cup (H \triangledown B), \qquad H \triangledown B \equiv \{\lambda \triangledown \rho : (\lambda \in H) \wedge (\rho \in B)\}.\]Each atom of the discriminant is replaced by as many atoms as there are atoms below \(r_R\), each the union of the two. If \(X\) is the set of positive task duples already satisfied by \(M\), the result is the freest model of \(X \cup \{r\}\).14
The positive duples of a task can be enforced in any order; the result is the freest model of the task’s axioms.1
These properties are proved in Finite atomized semilattices: the full-crossing of a duple into a model gives the freest model that also satisfies the duple; the result of full-crossing a set of duples does not depend on their order, up to redundant atoms; and the freest semilattice over \(C\) has \(\vert C \vert\) non-redundant atoms, each with a single constant.5 Infinite atomized semilattices extends the notions of freedom and of full crossing to infinite semilattices.6
A worked example
Take the model
\[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]\}\]and enforce \(T_L \leq T_R\) with \(T_L = c_1 \odot c_2\) and \(T_R = c_3 \odot c_4\). The atoms below \(T_R\) are \(R = \{\phi[c_1, c_2, c_3], \phi[c_3], \phi[c_3, c_4]\}\) and the discriminant is \(D = \{\phi[c_2, c_5], \phi[c_1, c_6]\}\). The full-crossing table has the atoms of \(D\) in the left column and the atoms of \(R\) in the top row. Each new atom is the union of the atom of its row and the atom of its column.
| \(D \,\backslash\, R\) | \(\phi[c_1, c_2, c_3]\) | \(\phi[c_3]\) | \(\phi[c_3, c_4]\) |
|---|---|---|---|
| \(\phi[c_2, c_5]\) | \(\phi[c_1, c_2, c_3, c_5]\) | \(\phi[c_2, c_3, c_5]\) | \(\phi[c_2, c_3, c_4, c_5]\) |
| \(\phi[c_1, c_6]\) | \(\phi[c_1, c_2, c_3, c_6]\) | \(\phi[c_1, c_3, c_6]\) | \(\phi[c_1, c_3, c_4, c_6]\) |
Replacing the two atoms of the discriminant by the six new atoms, and removing \(\phi[c_2, c_3, c_4, c_5]\) and \(\phi[c_1, c_3, c_4, c_6]\), which are redundant, gives
\[N = \{\phi[c_1, c_2, c_3],\ \phi[c_1, c_2, c_3, c_5],\ \phi[c_2, c_3, c_5],\ \phi[c_1, c_2, c_3, c_6],\ \phi[c_1, c_3, c_6],\ \phi[c_3],\ \phi[c_3, c_4]\},\]which satisfies \(c_1 \odot c_2 \leq c_3 \odot c_4\).7
A larger case
For a set of 3,375 black-and-white images of 4×4 pixels, Full Crossing starts from the freest semilattice over 33 constants and enforces 3,375 duples. The number of non-redundant atoms rises to approximately 6,000 and then decreases to 51.8 Those 51 atoms can be read as the rule that defines the images. The case is worked through on The 4×4 image example.
A limitation
The freest model of a set of task duples is usually too large to calculate in practice.9 Sparse Crossing computes subsets of it directly.
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
The first panel of the playground loads the freest semilattice over a set of constants and enforces duples by full crossing, showing which atoms are removed and which are created.
Footnotes
-
Martin-Maroto et al. (2025), section “Freest atomized model”. ↩ ↩2 ↩3
-
Martin-Maroto et al. (2025), Supplementary section “Atomized Semilattices”, Definition 5. ↩
-
Martin-Maroto et al. (2025), Supplementary section “Atomized Semilattices”, Definition 6. ↩
-
Martin-Maroto et al. (2025), Supplementary section “Atomized Semilattices”, Definition 15. ↩
-
Martin-Maroto & de Polavieja (2021), section “Full crossing, freedom and redundancy”. ↩
-
Martin-Maroto, Ricciardo, Mendez & de Polavieja (2023), section “Freedom and full crossing”. ↩
-
Martin-Maroto et al. (2025), section “Freest atomized model”, Table 1. ↩
-
Martin-Maroto et al. (2025), section “Freest atomized model of the task’s axioms”. ↩
-
Martin-Maroto et al. (2025), section “Practical computation of generalizing subsets with Sparse Crossing”. ↩