Bartosz Naskręcki @nasqret · 4h
Major announcement in mathematical formalization!
Finally, after 3 months of very intensive, nonstop work by several AI agents (Codex and Claude Code), we have settled a classification of ALL 15,973 semigroups of order 6. Every one of the 15,969 that has a finite basis now has it written down explicitly, and the remaining 4 are proved to have none at all.
The whole list of bases is produced for the first time in history. Until now, for most of these semigroups, mathematicians only knew that a basis exists; nobody had ever written one down. The formalization in Lean, orchestrated with a multi-agent approach, reached more than 5 MILLION lines of verified Lean code, one of the largest auto-formalization projects to date.
It's been an amazing joint work with @JanotaMikolas and @Jan_Hula, accompanied by senior experts in semigroup theory, João Araújo and Edmond W. H. Lee.
Our paper describing this project, "Proving at Scale for Universal Algebra", has been accepted at the MATH-AI workshop, NeurIPS 2026!
When we launched this project, we were a bit pessimistic: producing proofs for 15,973 semigroups seemed out of scope for the current technology. But with a careful setup (agents communicating through a mailbox we arranged, orchestrating the effort with a custom method of bootstrapping and auto-research), it has finally come to the finish line. The last 390 semigroups took 23 more days. The very last one needed a whole structural analysis before its proof could even be written.
Note from Claude Sonnet 5
A long post by mathematician Bartosz Naskręcki announcing that AI agents (Codex and Claude Code) completed a Lean-verified classification of all semigroups of order 6, with over 5 million lines of Lean and a NeurIPS 2026 MATH-AI workshop paper.
mathematicsleanformalizationai agentsclaude codecodexsemigroupsmulti-agent
Bartosz Naskręcki @nasqret
For the past few weeks I've been trying a new kind of auto-research loop. The goal isn't to solve one specific problem. Instead, I bootstrap the shape of the best possible result: what is actually provable, what is false, and what is still dark.(1/5)
[attached images, cropped: left panel titled "[cut off]ing the shape of a result", subtitle "[cut off]hat maps what is provable instead of chasing one fixed theorem" -- a flowchart with boxes "Computation / exhaustive atlases", "Examples / extremes and outliers", "Bold conjecture / or hunch, clearly labelled", "Stress test / try hard to kill it", "Theorem / proved, tier T2", "Wall / refuted, plus a lesson", arrows labelled "modify, generalize", "refuted", "survives", and a legend of tiers T3 exhaustive, T4 evidence, T5 conjecture, T6 hunch; right panel "THE GRAPH IT GREW", "277 nodes (241 in the main pi[cut off]", a node-link network plot with legend counts "proved or exhaustive 144", "evidence 6", "conjecture 11", "hunch 10", "families, methods, sources 30", "refutation link 6"; a further cropped GIF panel "[cut off]ping the shape" / "[cut off]nth growing, event by even[cut off]" with "evidence 0"]
4:38 PM · Sep 29, 2026 · 1,222 Views
5 replies · 1 repost · 35 likes · 12 bookmarks
[next post partially visible]
Bartosz Naskręcki @nasqret · 2h
(2/5) It's two loops feeding each other. The work loop reads papers at the source, runs exhaustive [cut off]
Note from Claude Sonnet 5
Opening post (1/5) of a thread by Bartosz Naskręcki on a new auto-research loop that maps what is provable rather than chasing one theorem, with an attached flowchart and a node-link graph visualisation of the knowledge graph it grew (277 nodes).
ai for mathautomated researchknowledge graphmathematicstwitter thread
Bartosz Naskręcki @nasqret · 1h
(2/5) It's two loops feeding each other. The work loop reads papers at the source, runs exhaustive computations, builds extreme examples and outliers, makes bold conjectures, and then tries to kill them. Every result has to pass checkers: exact reruns, independent seeds, quotes checked against the original paper. The knowledge loop turns each claim into a node with a status: proved, computed exhaustively, evidence, conjecture, hunch, open question or dead end. The nodes are linked by "uses", "supports" and "refutes".
4 likes · 109 views
---
Bartosz Naskręcki @nasqret · 1h
(3/5) After every round the knowledge graph is updated. Its frontier (what's charted, what's walled off, what's still dark) decides where to look next. It's basically a best-first search, a bit like A*. There's a lot of checking. A failed check isn't just an error: it becomes a wall with a one-line lesson, and the walls prune the search. Often a contradiction between two branches is the discovery itself.
4 likes · 100 views
---
Bartosz Naskręcki @nasqret · 1h
(4/5) Each move is a fixed pipeline. It works best on a particular kind of problem: a literature too big for any single expert to know, lots of partial results, a rich space of combinatorial moves, and experiments that generalize. It's not a tool you can point at just anything.
5 likes · 81 views
Note from Claude Sonnet 5
Three posts (2/5, 3/5, 4/5) from a five-part thread by Bartosz Naskręcki describing an AI research system built from a work loop and a knowledge-graph loop, with checkers, best-first search over a frontier, and failed checks recorded as walls.
ai for mathautomated researchknowledge graphmathematicstwitter thread