Equational Theories Project Overview
- Equational Theories Project is an online, crowdsourced experiment in collaborative mathematics that investigates implication structures among magma identities using human insights and automated verification.
- It combines Lean-based formal proofs with automated theorem provers like Vampire and model finders to rigorously determine millions of equational implications.
- The project employs diverse proof strategies and latent space analysis, revealing large-scale algebraic and geometric structures in single-equation laws over magmas.
Searching arXiv for the most relevant ETP papers and adjacent work. {"query":"Equational Theories Project Tao Lean Vampire Krympa latent space arXiv", "max_results": 10} {"query":"(Skrzypczak, 2011) Equational theories of profinite structures (Bolan et al., 8 Dec 2025, Janota, 20 Aug 2025, Kondylidou et al., 20 May 2026, Janota et al., 18 Feb 2026, Berlioz et al., 28 Jan 2026)", "max_results": 10} The Equational Theories Project (ETP) is an online, crowdsourced experiment in “collaborative mathematics with machine assistance” centered on the implication structure of simple equational laws on magmas. Conceived in September 2024, it asked, for a canonical test-set of single-equation laws in the language of a single binary operation, which of the nontrivial directed pairs are valid implications and which are not, both for all magmas and for finite magmas. The project reports that all edges of the implication graph were determined by a combination of human-generated and automated proofs, all validated by Lean; it also produced new constructions of magmas satisfying specific laws and several auxiliary results concerning finite magmas (Bolan et al., 8 Dec 2025).
1. Problem domain and formal formulation
A magma is a pair where is a set and is a binary operation. An equational law, or identity, is a formula of the form
where are formal words in the free magma generated by variables. For laws and , the project uses
0
and also the finite-magma analogue 1, quantifying only over finite magmas. The implication graph is the directed graph 2 with 3 the chosen 4 laws and edges 5 exactly when 6; a corresponding finite graph 7 is defined using 8. Within this setup, a single equation in a magma is treated as a theory generated by one law (Bolan et al., 8 Dec 2025).
The initial benchmark fixes a single binary operation and studies universally quantified implications between identities in that operation. Typical examples include associativity implying commutativity,
9
commutativity implying associativity,
0
and trivializing equations such as
1
The first two are reported to fail, while the third is valid because it forces the operation to be constant (Janota, 20 Aug 2025).
2. Collaborative architecture and formal verification
The project was organized as a repository-centered formal development. All formal definitions, proofs, and counterexamples were housed in a single GitHub repository, with each theorem tagged by a custom @[equational_result] attribute. Discussion and proof search were coordinated on Lean Zulip, while a CI pipeline automatically regenerated the list of proven and refuted implications, the Equation Explorer, Graphiti visualizations, the Finite Magma Explorer, progress dashboards, metrics, and the blueprint document linking informal proof sketches to Lean code. The “Lean blueprint” tool provided a navigable HTML document correlating informal sketches with theorem names in .lean files, allowing contributors to work on localized fragments without loading the entire development (Bolan et al., 8 Dec 2025).
A distinctive feature of the workflow was the separation between directly formalized results and closure operations. Only a small “kernel” of 2 positive entailments and 3 negative facts was directly formalized in Lean; the remainder of the 4 consequences was regenerated on the fly by transitivity, duality, and symmetry. The formal layer was built in Lean 4 with Mathlib, using a custom Magma class and a dual EquationX/LawX representation to express metatheorems about duality and reflection. ATP-generated arguments were not accepted as black boxes: proof certificates were replayed in Lean, and explicit CI checks were used to guarantee that no extra axioms entered the development (Bolan et al., 8 Dec 2025).
3. Proof methods and counterexample constructions
The project combined elementary rewriting, model search, algebraic constructions, infinitary arguments, and proof-assistant formalization. One proof stream used Lean’s simp and rw to obtain direct syntactic rewrites; this produced approximately 5 direct proofs and, after closure under transitivity, generated approximately 6 million implications. A second stream exploited duality: replacing 7 by its opposite operation 8, 9, sends 0 to 1, effectively halving the number of independent proofs needed (Bolan et al., 8 Dec 2025).
Refutations relied on a layered model-building portfolio. Exhaustive search over all magmas of sizes up to 2,
3
tables, consumed 4 CPU-hours and refuted 5 million false implications using 6 small magmas. Linear and affine models of the form 7 over 8 or 9 refuted approximately 0 million more implications. Translation-invariant models reduced laws to functional equations on 1 in expressions such as 2 and supplied infinite refutations not visible to finite-model search. Additional methods included twisting semigroups, greedy extension constructions of countable magmas on 3, small perturbations of multiplication tables, abelian-group fiber extensions with cocycles 4, and invariant-based obstructions using variable multiplicities, subword patterns, or rewrite normal forms (Bolan et al., 8 Dec 2025).
This methodological diversity is central to the project’s mathematical character. It was not a single-tool ATP run, but a coordinated exploration in which brute force, Gröbner-style algebraic reasoning, infinitary constructions, and proof engineering were used as complementary techniques. A plausible implication is that the project’s tractability depended less on any one prover than on the existence of many structurally distinct routes to positive and negative results.
4. Automated theorem proving and certified explicit models
A major automated-reasoning component came from Vampire. One experimental report states that all 5 implications were submitted independently to five Vampire configurations, with saturation runs marking implications as proved when 6 yields the empty clause and finite-model-building runs marking them as refuted when a finite model of 7 is found. In the aggregate results, fmb 500i refuted 8 and proved 9, while satur 500i proved 0; subsequent longer runs solved small residual sets. The report’s headline conclusion is that Vampire can prove all considered implications that hold and can refute a vast majority of those that do not hold (Janota, 20 Aug 2025).
The project also stimulated work on infinite countermodels. In the unit equational fragment, a saturation can be read as a convergent rewrite system 1 defining an explicit, possibly infinite, Herbrand model 2. Applied to ETP benchmarks, this yielded rewrite-system certificates for cases with no finite countermodel. The study reports that Paradox/FMB found 3 finite counter-models, saturation alone refuted 4 more, 5 cases were “infinite-only,” 6 of those were provably finitely unsatisfiable via Infinox, and 7 remained only by saturation. The emitted rewrite systems were checked for ground confluence by CSI and for termination by TTT2, with both certificates verified by CeTA using IsaFoR; 8 of the 9 systems were fully certified in this way (Janota et al., 18 Feb 2026).
This explicit-model perspective is significant because it turns opaque saturation fixed points into executable semantic witnesses. Rather than merely showing that a negated implication is satisfiable, the method produces a rewrite system whose normal forms witness the countermodel directly. That shift from refutation to certified model extraction is one of the clearest technical byproducts of the project.
5. Mathematical outcomes and emergent large-scale structure
The completed implication graph has a nontrivial global shape. The project reports 0 total nontrivial pairs resolved, or 1 including reflexives; among them, 2 entailments are true (3) and 4 are false (5). The 6 laws collapse into 7 propositional-equivalence classes under mutual entailment, the largest class containing 8 laws, and the longest strict implication chains have length 9. For finite magmas, the manuscript states that all but two finite-magma implications were settled; it further identifies a lone open question, namely whether
0
equivalently 1, holds in all finite magmas (Bolan et al., 8 Dec 2025).
A subsequent geometric analysis embeds the theories into a latent space derived from their statistical behavior on random finite magmas. In that study, the proof-theoretic preorder on approximately 2 theories contains approximately 3 million implications and approximately 4 million atomic steps; after quotienting by reversible implication, the graph has 5 vertices and 6 directed edges. In the latent space, reversible edges have mean Euclidean length approximately 7, atomic edges approximately 8, and strict edges approximately 9. The first principal component 0 correlates almost linearly with the theory’s expectation 1, with 2, and approximately 3 of quotient edges point in the positive 4 direction (Berlioz et al., 28 Jan 2026).
These observations suggest that the implication graph is not merely a combinatorial database. Finite-model statistics, equivalence classes, and directed proof structure appear to align in a coherent geometry, with tight reversible clusters and oriented flows toward stronger laws. The latent-space analysis does not replace proof, but it indicates that large-scale proof-theoretic organization can be detected statistically.
6. Proof minimization, interpretation, and broader context
The project also became a testbed for proof compression. In response to a challenge involving the implication 5, where Vampire produced a 6-step refutational proof, the tool Krympa converts a Vampire proof to a direct equational proof and minimizes it using brute force, heuristics, and both Vampire and the equational prover Twee. On the challenge problem, Krympa reduced the proof from 7 steps to 8 rewrite steps. On 9 provable ETP benchmarks, the average proof length decreased from 0 to 1 steps, and on the 2 benchmarks with baseline length at least 3, the average decreased from 4 to 5 steps; individual reductions included 6, 7, and 8 (Kondylidou et al., 20 May 2026).
The project’s title uses “equational theories” in the universal-algebraic sense of laws and their implication structure, but the phrase has wider technical meanings. In model theory, a complete first-order theory is called equational when every definable set is a Boolean combination of instances of equations, a property that strengthens stability (Martin-Pizarro et al., 2017). In a topological-recogniser framework, families of recognisable sets form lattices exactly when they are definable by profinite equations (Skrzypczak, 2011). Against that broader background, ETP occupies a sharply concrete niche: it studies the implication graph generated by single magma identities, yet its methods connect universal algebra, finite model theory, automated deduction, and formal verification.
A recurring misconception is that the project was primarily an exercise in large-language-model-assisted proof generation. The published account states instead that LLMs and modern large-LLMs played only a minor role, mainly in UI code and autocompletion, while the substantive mathematical work came from human contributors, ATPs such as Vampire and Prover9, model finders such as Mace4, and Lean-based verification (Bolan et al., 8 Dec 2025). In that sense, the project is best understood as a landmark instance of machine-assisted collaboration in which human intuition, automated proof search, model construction, and proof-assistant validation were tightly interlocked.