first light
Humans took centuries to discover complex numbers, quaternions and octonions. I wanted to see how long it would take a computer starting from scratch.
I built a search system that reconstructs complex numbers, quaternions and octonions from real-valued multiplication tables. Exact polynomial checks certify each accepted structure, and a construction fitted on smaller algebras transfers to dimension eight.
- role
- Search system for exploring which mathematical ideas are worth trying next.
- language
- Python. The main checker uses exact int64 arithmetic; Z3 and SymPy are used for supporting analysis.
- scale
- About 65 billion proposals and 30.7 billion screened candidates.
- status
- Experiment complete.
- source
- Private repository.
- paper
- Read it below · Web version
The experiment
I chose the normed division algebras as the target. Roughly speaking, these are number systems where addition, subtraction, multiplication, and division work, and where multiplying two numbers also multiplies their lengths. The real numbers are one example. The complex numbers, quaternions, and octonions are the other three.
Hurwitz proved in 1898 that the list ends there. That gives the experiment a convenient answer key: dimensions 1, 2, 4, and 8 work; dimensions 3 and 16 do not. Finding the familiar examples was only half the test. The search also had to come up empty in the right places.
How candidates are checked
The program has two separate parts. A search process proposes multiplication tables, then a fixed checker returns pass or fail. There is no model inside the checker and no score to negotiate: a candidate either satisfies the required identities or it does not.
Keeping those parts separate turned out to matter. In two exploratory runs, the search learned to score well without getting any closer to a division algebra. All 123,000 of those proposals still failed the final check. Every candidate that passed was then checked again by a second implementation that shares no code with the first.
Getting to eight dimensions
To reach dimension 8, I developed a construction-transfer approach. I fit a general doubling rule using only the structures already found in dimensions 1, 2, and 4. That produced 60 possible rules. I saved the complete list before running anything in dimension 8, applied each rule once, and four of them worked.
The resulting construction satisfied Degen's eight-square identity, and it was alternative, a characteristic property of the octonions that the search was never rewarded for producing. The independent check confirmed this additional structural property.
Run totals: about 65 billion proposals, 30.7 billion screened candidates, and 60 million operator evaluations.
The script that builds the figures reads these counts directly from the saved run files.
Notes from the experiment
The dimension 3 search covered two finite families with distinct verification methods: 531,441 members checked exactly on the CPU, and 244 million screened on the GPU in float32 using a recorded analytic error bound. Neither family reached the acceptance threshold.
The verification layer uses small decision procedures: exhaustive sweeps, exact fixpoints and SMT queries. Mechanical formalization in a proof assistant is a possible next step.
The search grammar, checker and targets were designed by hand. The experiment establishes rediscovery within those families. Extending the same protocol to unfamiliar algebraic structures would test its value as a broader discovery method.