Work / Research · 2,385 declarations
The Sanguine corpus
One algebra, proved once, and the Lean 4 library that carries it.
The Sanguine corpus is the formal library behind the work. It is a Lean 4 and Mathlib library built from one algebraic primitive: R[x]/(x² − σ), the two-dimensional real algebra parameterised by a single real number. The sign of σ selects the elliptic, parabolic or hyperbolic face.
The count
At the 12 September 2026 count, the corpus held 2,385 declarations across 127 .lean modules. It carries zero sorry. The audit is 1,207 #audit command lines, 1,075 in Audit.lean and 132 in AuditCarrier.lean, one per headline declaration. Each command collects the declaration's axioms and fails the build if any of them falls outside {propext, Classical.choice, Quot.sound}. A declaration outside the audited list is not covered by that axiom claim.
The number is the repository's own count, not an independent recount. The per-file table in the repository is a selection, and most of its counts date from 2 September 2026. Treat the total as a snapshot with a date, not a fixed size.
What is proved
The corpus starts with the classification of the algebra and carries the result into the structures built on it.
| Result | What it states |
|---|---|
classification | Every two-dimensional unital commutative associative real algebra is mul σ for σ in {−1, 0, 1}. |
quotient_classification | The same statement on R[X]/(X² − σ), so the result is available in coordinates and on the ring. |
trichotomy_complete | A zero divisor exists exactly when 0 ≤ σ. |
hasNullPair_iff_disc_pos | A non-degenerate null pair exists exactly when σ > 0. |
exists_nontrivial_idempotent_iff_disc_pos | Boole's x² = x has solutions beyond the two every algebra has exactly when σ > 0. |
fold_is_and_and_nor | One multiplication over a list computes AND on one channel and NOR on the other. |
discards_iff_disc_pos | A projection that keeps one non-zero point and kills another exists exactly when σ > 0. |
The modules also cover combinators, tables, linear use, capability, transport, projective geometry, physics, a decision procedure, bridges, boundary semantics, regions and machine encoding. The corpus is not a proof folder for one product. It is the canonical formal basis that the executing projects refine against or correspond to.
Two executions, one basis
Apeiron is the first executing implementation: a Rust library for the same algebra, a table built on it, and an inference engine. Its 64-bit cell multiplication and norm are refined against canonical definitions with Aeneas and Charon. The table and most of the engine are not yet refined.
Song is an independent implementation. It generates its own native code and carries the proof responsibility through its own compiler and operating-system lineage. The relation between the two is correspondence between operations, not a Rust runtime inside Song. That cross-implementation correspondence theorem is open.
Tubu and the smart cities standard each carry their own Lean packages. They share the method and the algebra, not a single imported corpus. That boundary is deliberate: a proof in one tree is not a proof in another until the refinement or correspondence is stated.
Limits
- The count is a snapshot at a named date. The repository is the record.
- The axiom audit covers the 1,207 headline declarations. It is not a claim about every declaration in every module.
- The table and most of the inference engine are tested, not proved to refine the corpus.
- The Song correspondence is open. Two implementations of one algebra are stronger evidence than one, but only when the correspondence is stated.
Record
- The corpus on sanguine.sh, the formal record.
- Apeiron and Nous, the executing basis.
- Song and Iota, the independent implementation.
Results and evidence · Discuss collaboration, funding or a contract.