The Executable Atlas: Where Mathematical Cartography and Falsifiable Computation Meet¶
Date: 2026-11-29
Author: Eran Rivlis & The Grand Council
Context: A 10,000-foot architectural reckoning after crossing 103 domain modules (27,253 LOC), 12 mathematical continents, and EXP-0015 (Visual Cartography).
1. The Accidental Metropolis¶
algebrax did not begin with a manifesto to map half of modern abstract algebra. In January 2026 (v0.1.0), spun out of mappingtools.algebra (and christened AlgebraX in v0.1.1), it began with a disarmingly modest observation: Python's native dict is already a sparse algebraic vector, and nested dict[K, dict[K, V]] is already a sparse matrix whose arithmetic can be swapped out by changing a single (+, *) semiring parameter.
What happened next surprised even its authors.
Once you treat a sparse mapping as a formal linear combination over arbitrary hashable basis keys, domain walls begin to dissolve:
- A shortest-path matrix over \((\min, +)\), a simplicial boundary operator \(\partial_k\), a Clifford multivector in \(Cl(p,q,r)\), a Lie algebra element, a multivariate polynomial in \(k[x_1, \dots, x_n]\), a cellular sheaf stalk, and a group algebra element in \(\mathbb{C}[G]\) all turn out to be the exact same sparse data structure wearing different algebraic laws.
- Between January and November 2026, four distinct epochs unfolded:
- Epoch I (
v0.1.0–v0.4.0) — The Dictionary That Became a Matrix: Sparse semirings, matrix powers, tropical paths,MonoidAlgebraSemiringconvolution, Fenchel–Legendre transforms, and sparse tensoreinsum. - Epoch II (
v0.5.0–v0.11.3) — The Great Continental Drift: Homology, Clifford rotors, Galois fields, Kleisli categories, Lie algebras, Discrete Exterior Calculus, cellular sheaves, and the multi-oracle Stamp of Trust. - Epoch III (
v0.12.0–v0.15.0) — The Deductive Turn: Replacing semiring-first inheritance with orthogonal atomicHas*andLaw*mixins modeled on Bourbaki and Lean 4 Mathlib. - Epoch IV (
v0.16.0+) — Higher Symmetry and the Mirror of Self-Knowledge: Representation theory, quantum groups \(U_q(\mathfrak{sl}_2)\), quivers, affine varieties—and the realization that a 12-continent world requires truthful introspection, hardening, and maps.
Standing at 10,000 feet, a fundamental question emerged: What is AlgebraX actually for?
2. The North Star: 2 + 3 → 1¶
Any mathematical software library feels the pull of three distinct gravitational centers:
- Production & Prototyping Utility — A practical developer tool for building applications.
- A Living Mathematical Atlas & Pedagogy Studio — A visual, readable, interactive medium for understanding how algebraic worlds connect.
- An Executable Formal-Inspired Research Workbench — A Mathlib-aligned, axiom-verified sandbox for testing conjectures, computing exact witnesses, and exploring uncharted algebraic corners.
The architectural clarity arrived when we recognized that #2 and #3 are not two separate goals—they are the same activity viewed from opposite sides, and #1 is their downstream dividend:
flowchart TD
subgraph NORTH["The North Star (2 + 3 Fused)"]
ATLAS["Living Mathematical Atlas\nVisual Cartography · Essays · EP-0120 Studio"]
LAB["Falsifiable Research Workbench\n41 Atomic Mixins · Exact Solvers · Z3 / Axiom Witnesses"]
ATLAS <-->|"Understanding = Verifying"| LAB
end
NORTH -->|"Natural Consequence"| PROTO["Rapid Prototyping\n10-line pure-Python experiments"]
PROTO -->|"Honest Trade-Off + Escape Hatches"| PROD["Targeted Production\nExact / symbolic / zero-C++ services\n(NumPy / SciPy off-ramp for dense HPC)"]
In an Executable Atlas, a learner inspecting the Hilbert Nullstellensatz or Birkhoff's Representation Theorem does not stare at static prose; they run the exact same law-checked Python object a researcher uses to probe a counterexample in EXP-0012. Understanding and falsifying converge.
3. Five Architectural Invariants Unlocked by This Thesis¶
Naming 2 + 3 → 1 as the North Star resolves five design tensions at once:
- Pure Python Is a Superpower, Not an Apology.
If dense HPC (#1) were the mission, pure Python would be an obstacle to hide behind C extensions. Under 2 + 3, zero-C++ pure Python (mappingtoolsas the sole runtime dependency) is what makes the atlas universally inspectable: every algorithm reads like mathematical notation, runs in any notebook or AI sandbox, and can even execute natively inside a browser via Pyodide / WebAssembly—unlockingEP-0120without duplicating math engines in JavaScript. - Honest Performance Semantics.
We optimize asymptotic complexity and sparse hot paths (EP-0251, CodSpeed) so interactive exploration stays responsive, while stating the pure-Python performance cost plainly and offering clean optional Escape Hatches (converters.py→ NumPy/SciPy for dense computation;erivlis/Graphinatefor offline 3D WebGL topology exploration). - Bridges Outweigh Islands.
Adding a thirteenth isolated module matters far less than wiring the great dualities and functors between continents:PAdicFieldtropicalizing intoTropicalSemiring,GroebnerIdealdualizing intoAffineVariety,SimplicialChainComplexcarrying an Alexander–Whitney Hopf coproduct, andFinitePosetpowering Rota Möbius harmonic analysis. - Maps Must Falsify Code, Not Merely Mirror It.
As formalized inEXP-0015, code-only diagrams suffer from confirmation bias—invisible missing bridges look normal and accidental module leaks look intentional. Diffing live AST/registry reality against an independent MSC2020/Mathlib Oracle (Oracle Δ Code) turns visual cartography into a Popperian engineering instrument. - Self-Knowledge Is the Front Door.
Phase 8.5 (EP-0250–EP-0255)—truthful law witnesses, hardened verifiers, and the immutablealgebrax.registry—is not housekeeping. It is the mechanism by which the atlas becomes self-describing for humans, browsers, and AI collaborators alike.
4. The Ontological Lesson¶
Conventional software splits the world into textbooks (beautiful, intelligible, static, and quietly wrong when prose drifts) and numerical engines (fast, opaque, compiled, and blind to the algebraic laws they inhabit). Formal proof assistants bridge that divide at the summit of mathematical rigor, but at a steep syntactic altitude.
algebrax stakes out the sunlit plateau in between: mathematics that stays legible enough to teach, exact enough to test conjectures, lightweight enough to run anywhere, and honest enough to let an independent Oracle point out where its own code still drifts.
The map is not the territory—so we build the map, check it against the territory every time we run, and keep walking the bridges.