SANGUINE

Work / Formal basis

The Sanguine corpus

One algebra, proved once, and the library that carries it.

The corpus 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}.

The number is the repository's own count, not an independent recount. The per-file table is a selection, and most of its counts date from 2 September 2026.

What is proved

ResultWhat it states
classificationEvery two-dimensional unital commutative associative real algebra is mul σ for σ in {−1, 0, 1}.
quotient_classificationThe same statement on R[X]/(X² − σ), so the result is available in coordinates and on the ring.
trichotomy_completeA zero divisor exists exactly when 0 ≤ σ.
hasNullPair_iff_disc_posA non-degenerate null pair exists exactly when σ > 0.
exists_nontrivial_idempotent_iff_disc_posBoole's x² = x has solutions beyond the two every algebra has exactly when σ > 0.
fold_is_and_and_norOne multiplication over a list computes AND on one channel and NOR on the other.
discards_iff_disc_posA 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.

Two executions, one basis

Apeiron is the first executing implementation. It is 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, so the relation between the two is correspondence between operations, not a shared runtime. Tubu and the smart cities standard each carry their own Lean packages: they share the method and the algebra, not a single imported corpus, and 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.

Record

Grade: sourced. The count, audit lines and axiom cone are stated in the corpus repository at the recorded date.