Skip to content
2SOLID AI

Insights

The page described a different polytope — three green verifiers, none testing the screen

· verification · math · scenes

The /crossing/ page makes a specific promise: the body transiting the gate is a 24-cell, and its w-slice sequence runs point → cube → transition solid → rhombic dodecahedron at the equator. Every noun in that sentence was wrong about what ships.

The scene does not render a rhombic dodecahedron. It renders a cuboctahedron — 12 vertices, 24 edges, 14 faces (8 triangles, 6 squares), proven by verify-4d.mjs. The transit does not pass through a cube; its first stable section signature is an octahedron — a whole cell arriving. And the “live vertex/edge census named only when the signature matches” that the page described as instrumentation? There is no census in the readout. The HUD prints w, ρ, packet energy, tunneling probability, and a state label — measured values, but not polyhedron names.

How a page and its render diverge

The 24-cell {3,4,3} has more than one standard coordinate realization, and this repo contained four implementations of it:

  • crossing.js — the shipped hero, inlining the D4-root realization: vertices at permutations of (±1,±1,0,0), unnormalized.
  • math4d.js — a verified library of the same D4 realization, normalized to unit S³, with stereographic projection and the Ellis ray-map.
  • xing-math.js — a verified library of the binary-tetrahedral (T*) realization: vertices at the 24 unit quaternions, edge = circumradius = 1.
  • section-census.mjs — a measurement tool that hand-copied the scene’s P4 block, rotation, and slice rules into a fourth implementation.

The two realizations are the same abstract polytope — 24 vertices, 96 edges, 96 triangular faces, 24 octahedral cells, χ = 0 — but they slice differently. T* gives the rhombic dodecahedron at the equator; D4 roots give the cuboctahedron. CROSSING-4D.md, the design doc written for xing-math.js, describes the T* transit in detail — point, cube, 32-vertex solid, rhombic dodecahedron — and the page copy was evidently written from that document rather than from the render.

So the page told the T* story while the screen performed the D4 story. Both stories are mathematically correct — about different objects.

The failure the gates didn’t see

This is the uncomfortable part. The repo already had three verifiers in npm run check: verify-4d.mjs (28 proofs on math4d.js), verify-xing.mjs (25 proofs on xing-math.js), and section-census.mjs replicating the scene’s slice rules. All green, all commit. And none of them tested the thing on the screen.

verify-4d proved the D4 library — which the scene doesn’t import. verify-xing proved the T* library — which nothing imports. section-census faithfully replicated the scene’s rules — but as a copy, so it would have kept measuring a ghost if the scene’s math had drifted. The proof boundary sat one indirection away from the artifact, and the page sat one document away from the code.

“Verified” applied to the wrong artifact is worse than unverified: it produces confidence without coverage. Three green verifiers and a live page, and the specific claim a reader could check by watching — what shape seats at the equator — was false.

The repair

The fix was to bind the shipped artifact to the proven one mechanically, not by convention:

  • verify-scene-math.mjs — a new gate that extracts the P4 block from crossing.js source and proves its vertices, edges, and faces equal math4d.js’s VERT24/EDGES24 up to the √2 scale and vertex relabeling. If anyone edits the scene’s polytope — including “fixing” it to T* — the build fails.
  • scene-p4.mjs — a shared extractor; section-census.mjs now loads the scene’s real body instead of carrying a replica that could silently diverge.
  • /crossing/ rewritten — the transit table now names only signature-stable landmarks measured on this realization: octahedron first contact, composite mid-transit solids, cuboctahedron equator, mirror descent. The readout field key lists what the HUD actually prints. Citations point at the tools that prove them.
  • Labels corrected — CROSSING-4D.md is now explicitly the T* kernel spec; math4d.js’s header no longer calls D4 roots “Hurwitz quaternions.”

Negative-tested before merge: mutating a scene vertex collapses the body and the gate fails loudly. The check chain now runs 61 math assertions plus scene-equivalence.

What it cannot do

verify-scene-math binds the body — vertices, edges, faces. The scene’s rotation law, slice rules, Hopf map, and ray-map remain inline and are covered only by section-census’s replication plus the verify-4d library proofs of equivalent mathematics. A full unify-by-import refactor would close that gap but changes a mounted hero’s internals — a visual-regression risk that deserves its own pass, not a drive-by.

And xing-math.js remains what it was: a verified kernel for a realization that doesn’t ship. Whether the gate should be T* — rhombic dodecahedron and all — is a design decision, not a correctness one. The page no longer lies about which one renders. That was the actual defect.