Chapter 6 Rational Spherical Trigonometry: The Bargmann–Gram Closure Law
“A single projective edge carries irrational square roots in its direction cosine, yet traverse a closed three-point loop and every vertex norm appears twice, canceling every root and every sign; all of spherical trigonometry then collapses—without a single , , , or —into one purely rational polynomial closure law.”
With origin-free heaps and Lie triple curvature in Chapter 4 and rational Cayley rotations and Chebyshev harmonics in Chapter 5, Volume II now confronts the most entrenched transcendental fortress of classical geometry: spherical trigonometry. Standard expositions fill spherical triangles with , inverse cosines , and Girard’s angular excess . Even for the simplest non-square-norm integer rays—such as [1:0:0:0], [1:1:0:0], and [1:0:1:0]—the direction cosine of a single edge immediately drops out of into .
This chapter proves that those irrationals and transcendentals are artifacts of tearing a closed three-point loop apart. Introducing the scale- and sign-invariant rational Bargmann three-point loop invariant together with the normalized Bargmann–Gram closure determinant converts all of spherical trigonometry into pure polynomial algebra over : in the cited D5 proofs on the strict backend (strict_omega.axioms: []), it is proved universally nonnegative for all nonzero integer quaternions, vanishes identically on every heap geodesic-doubling triad while locking the integer-coefficient arc-doubling law, yields universal zero-axiom proofs of the rational spherical sine and Pythagorean laws, and certifies the exact rational spherical excess on the benchmark orthogonal half-step triad —without a single , , , or .
6.1 Beyond Sine and Cosine: The Rational Bargmann Loop Invariant
Work in any rational inner-product space with (our primary arena is the four-dimensional projective ternion space of ProjTernion, while recovers classical spherical geometry on ). For nonzero rays , recall the pairwise rational fidelity and spread:
Trying to extract an individual signed cosine fails twice: whenever or is not a square it leaves , and flipping reverses its sign. Multiplying the three inner products around the closed loop cures both defects at once: every vertex enters once and exits once, so its norm and sign appear twice, annihilating every square root and every sign ambiguity.
For any nonzero rational vectors :
-
Define the Bargmann three-point loop invariant:
-
Writing the unnormalized Gram matrix as with , define the normalized Bargmann–Gram closure determinant:
Four purely rational structural laws follow immediately by direct inspection (manual derivation):
-
Scale and sign invariance: rescaling for any multiplies both numerator and denominator of by . Even sign flips cancel identically, so both and descend cleanly to projective triples on .
-
Exact rational signed square root of the fidelity product: squaring gives
Even when , , and are individually irrational, their loop product returns cleanly to while retaining the loop sign that the three edge fidelities alone forget.
-
Rank-one projector Bargmann trace: using the rank-one orthogonal projectors from Chapter 4, we have .
-
Exact closure expansion: expanding the determinant and dividing by the strictly positive rational denominator yields—with zero vector normalization—the Bargmann–Gram closure equation:
6.2 Universal Nonnegativity via Lagrange–Gram and Cauchy–Binet
Why does hold for every nonzero triple? Neither spectral theory nor real square roots are needed: a single application of the frozen Lagrange–Gram sum-of-squares identity settles universal nonnegativity directly.
Let be a finite index set and let . Then the polynomial sum-of-squares identity holds:
In particular, the right-hand side is nonnegative, yielding the Cauchy–Schwarz inequality , with equality if and only if for all (linear dependence).
Expanding the double sum on the right gives
Every squared term is nonnegative and the sum vanishes precisely when for all . The full proof is checked by the Lean kernel.
In any dimension over , orthogonalizing and against and applying Theorem 6.2 yields by pure polynomial algebra. On our four-component integer quaternion carrier Quad4 (), this fundamental rational spherical closure inequality leaves the classical real continuum behind altogether and is proved in the cited D5 proofs on the strict backend (strict_omega.axioms: []) under the signed rational order Omega.IntRatio.Le:
Let be any three nonzero integer quaternions in Quad4 (, , ). Under the zero-axiom signed rational type Omega.IntRatio and its order relation IntRatio.Le, the normalized Bargmann–Gram closure determinant is universally nonnegative:
Construct the two division-free integer quadruples orthogonal to :
One checks and evaluates the three integer inner products:
Substituting into cancels the quartic cross term identically, leaving . Expanding the remaining difference as a sum of integer squares yields
Because are nonzero, their integer squared norms are strictly positive; hence and the common denominator are strictly positive, forcing and establishing IntRatio.Le 0 (detGram3 a b c) with zero axioms in OmegaInit and OmegaMath. The full proof is checked by the Lean kernel.
From the matrix viewpoint in any dimension (manual derivation), setting , the Cauchy–Binet formula expresses the exact same nonnegative rational quantity as a sum of squared minors:
In this reduces to the single squared parallelepiped volume ; in (ProjTernion) it sums the squared minors, measuring the normalized squared three-volume .
A doubled arc and a spherical triangle. The cyan arc on the left doubles along one great circle and has Gram determinant zero. The orthogonal half-steps on the right enclose a magenta triangle with Gram determinant .
6.3 Great-Circle Collinearity and the Integer Arc-Doubling Law
The exact sum-of-squares formula reads off the equality case immediately: if and only if and are linearly dependent, i.e., if and only if —the three rays lie in a common two-plane, meaning they are collinear on a single great circle.
Great-circle collinearity locks the closure equation to the linear Bargmann relation
Isolating , squaring, and substituting eliminates to give the rational collinearity polynomial (algebraically identical to Wildberger’s triple spread formula ):
The equation retaining records the product of signed inner products. Squaring keeps only its magnitude squared. The value of is invariant under every vertex permutation and every common orthogonal transformation, so it cannot record direction along a great circle.
Now apply this collinearity law to the equal-step heap parallel continuation from Chapter 4: for any two nonzero integer quaternions , set (triad b a b). The cited D5 declarations record strict_omega.axioms: []. The next two frozen theorems certify first that every doubling triad sits strictly on a great circle, and second that its doubled projective fidelity obeys the exact integer-coefficient polynomial law.
Let be any two nonzero integer quaternions in Quad4 (, ), and let (triad b a b) denote the equal-step heap continuation. Then under the zero-axiom equivalence Omega.IntRatio.Equivalent, the Bargmann–Gram closure determinant vanishes identically:
Right-multiplying the quaternion reflection identity by expresses as an explicit integer linear combination of and :
By Euler–Lagrange four-square multiplicativity, , so the common denominator is strictly positive. Meanwhile, because lies in the linear span of and , the third row of is a linear combination of its first two rows, forcing . Hence in Omega.IntRatio.Equivalent with zero axioms. The full proof is checked by the Lean kernel.
Combining Theorem 6.4 with the collinearity quadratic, put and . Since gives , the collinearity polynomial factors cleanly over :
The two constructions are return to the starting ray (, , ) and geodesic doubling. Substituting into the product of inner products gives for doubling. The linear equation then gives . For , the full readouts differ between the two constructions. At or , the roots coincide and the doubled point lies on the starting ray. The zero-axiom kernel also verifies the integer-coefficient doubling law:
Let be any two nonzero integer quaternions in Quad4 (, ). Then under the zero-axiom equivalence Omega.IntRatio.Equivalent, the rational projective fidelity between and its geodesic doubling (triad b a b) satisfies
Taking the integer inner product of with yields . By four-square multiplicativity, , so the shared denominator is strictly positive. Squaring the inner product gives
in Omega.IntRatio.Equivalent with zero axioms. The full proof is checked by the Lean kernel.
- Positive loop invariant: take and (). Parallel continuation produces (). Directly , , , and ; the closure determinant is .
- Negative loop invariant and sign invariance: take and (). Parallel continuation yields , whose leading-positive representative is . We compute , , and , giving (the unflipped representative yields the exact same ). With and , the closure equation again vanishes identically: .
- Doubling and return with the same sign. Keep and but set . Then , the same sign as for doubling. Both Gram determinants vanish. Conjugating both and in the doubling example reverses the arc orientation while preserving and all three edge fidelities.
6.4 Rational Spherical Excess, Vertex Spreads, and Worked Triads
Whenever are not collinear on any great circle (linearly independent), is a strictly positive rational number measuring the squared curvature volume spanned by the triad. Even better, this single closure determinant unifies the rational spherical sine, cosine, and Pythagorean laws.
For any nonzero rational vectors (in particular, any nonzero integer quaternions in Quad4) , write the pairwise rational edge spread as . Whenever the three rays are pairwise distinct (), define the rational vertex spread at vertex (the squared sine of the dihedral angle between the two adjacent great circles) by
and define and cyclically.
A one-line completion of the square proves (manual derivation): expanding reveals an exact rational square:
This immediately yields the rational spherical cross law . On the integer quaternion carrier Quad4, the rational spherical sine law and rational spherical Pythagorean theorem are proved universally in the cited D5 proofs on the strict backend (strict_omega.axioms: []). First comes cyclic invariance of the sine ratio:
Let be any three nonzero integer quaternions in Quad4 (, , ) whose three edge spreads are not equivalent to zero in Omega.IntRatio: , , and . Then under the zero-axiom equivalence Omega.IntRatio.Equivalent, the ratio of each vertex spread to its opposite edge spread is cyclically invariant:
where , , and .
In the expanded raw Gram determinant, both the integer numerator and the strictly positive denominator are strictly invariant under the cycle , giving . Because are nonzero and all three edge spreads are finite and not equivalent to , each spread and each pairwise product is invertible in Omega.IntRatio. Clearing the common denominator reduces the one-step ratio identity directly to . Applying this one-step cyclic identity to and proves both equivalences with zero axioms. The full proof is checked by the Lean kernel.
Returning to the completed square above, whenever its numerator vanishes at vertex —that is, under the pure integer right-vertex dot condition —the projections and onto are strictly orthogonal (corresponding to a spherical right angle whenever the incident spreads are nonzero). Without even requiring nonzero edge spreads, the opposite edge fidelity factors immediately into the product of the two incident fidelities:
Let be any three nonzero integer quaternions in Quad4 (, , ) satisfying the integer right-vertex condition at :
Then under the zero-axiom equivalence Omega.IntRatio.Equivalent, the opposite edge fidelity equals the product of the two incident edge fidelities:
Using symmetry and , squaring the right-vertex identity gives the integer equation . Multiplying both sides by verifies cross-multiplication equality between and . Because are nonzero, all denominators are strictly positive, certifying the equivalence in Omega.IntRatio.Equivalent with zero axioms. The full proof is checked by the Lean kernel.
Substituting into Theorem 6.9 yields the equivalent spread form (manual derivation). We now audit Theorem 6.8, Theorem 6.9, and rational spherical excess on three worked integer triads.
-
Benchmark right spherical triad , , : The integer squared norms are , , , and all three pairwise inner products equal . Without taking a single square root, we read off the edge fidelities and Bargmann loop invariant:
Substituting into the Bargmann–Gram closure law yields the exact positive rational curvature volume squared:
(Checking directly from the raw Gram matrix confirms , divided by , giving .) From edge spreads , the three vertex spreads are
Vertex satisfies and is an exact spherical right angle, instantiating Theorem 6.9 directly: . Whereas a flat isosceles right triangle has acute spreads , spherical curvature inflates both acute spreads to —purely rational spherical excess! All three sine ratios instantiate Theorem 6.8 with the common value .
-
Equilateral spherical triad , , : all edges satisfy and , with , giving and vertex spreads , strictly exceeding the flat equilateral spread by the exact rational excess .
-
Mutually orthogonal octant , , : all and , attaining the global maximum with all three vertex spreads equal to (the tri-rectangular spherical triangle).
The strictly positive rational spherical excess on the benchmark orthogonal half-step triad in item 1 above is certified directly as a zero-axiom witness theorem frozen in OmegaInit and OmegaMath:
Inside the zero-axiom libraries OmegaInit and OmegaMath (with empty transitive axiom closure), take the three benchmark integer quaternions , , and in Quad4. Then under the signed rational equivalence Omega.IntRatio.Equivalent, their normalized Bargmann–Gram closure determinant is identically equivalent to :
Evaluating directly from the definitions gives squared norms , , and , with unit pairwise inner products , whence , , , and . Substituting into the definition of detGram3 makes its cross-multiplication against (IntRatio.value 1 4) in Omega.IntRatio hold definitionally by Eq.refl. This declaration depends solely on OmegaInit and OmegaMath with empty transitive axiom closure. The full proof is checked by the Lean kernel.
Under the one-way shadow onto , writing pairwise angles and spherical vertex angle gives , , , and , so and , recovering classical spherical trigonometry as a special shadow. Replacing angles and transcendental functions with quadrances and spreads in Euclidean and spherical geometry is developed systematically by N. J. Wildberger (Divine Proportions: Rational Trigonometry to Universal Geometry, 2005; literature result). Inside OmegaMath, the Bargmann–Gram closure law together with the zero-axiom theorems Theorem 6.8 and Theorem 6.9 needs none of those real shadows: it stands on its own as a complete transcendental-free engine of spherical geometry.
6.5 Interactive Workbench: The Bargmann–Gram Triad
In the interactive workbench card below, fix the past anchor and adjust the rational ray vertices and directly on the sphere: toggle onto great-circle doubling to watch collapse to (Theorem 6.4) and verify the integer arc-doubling law (Theorem 6.5), then lift off the circle into the orthogonal triad [1:0:0:0], [1:1:0:0], [1:0:1:0] (Theorem 6.11) to check Theorem 6.8 and Theorem 6.9 while inspecting sign-invariant rational Bargmann loop values alongside strictly positive curvature volume squared (Theorem 6.3) rising to its exact value .
Walk a three-point loop once and every root and sign cancels in pairs, so spherical trigonometry closes into one rational law (2 min 49 s). On the violet sphere, the integer quaternion rays , , have the irrational single-edge cosine , which flips sign under , while the Bargmann loop number stays fixed; the raw Gram determinant over the squared-norm product gives the magenta triangle its closing number , and the green tag refers to Theorem 6.11. For the equal-sided triad the four minors square-sum to , so (computed on screen; the Cauchy–Binet identity is the chapter’s manual derivation), and universal nonnegativity is Theorem 6.3. On the cyan great circle, , , give , and , and gives (computed on screen, Example 6.6); the vanishing law and the doubling law are Theorem 6.4 and Theorem 6.5, with the amber current row stepping through , , . The vertex spreads and the sine-law ratio are computed on screen, and the green tags refer to Theorem 6.8 and Theorem 6.9. Four triads side by side read ; that is the largest value and the violet real shadow are marked as argued, following Remark 6.12.
Volume II has now rebuilt nonlinear spherical algebra, Lie triple curvature, rational Cayley rotations, Chebyshev harmonics, and spherical trigonometry entirely inside , free of infinity and transcendentals. One challenge naturally rises next: if algebra and trigonometry can shed infinity and transcendentals completely, can derivatives, curvature jets, and integrals also dispense with the limit ? Carrying this spherical rational engine forward, we open Volume III in Chapter 7 Second-Order Nilpotent Jets and Limit-Free Calculus.
Interactive Bargmann–Gram Rational Spherical Triad (bargmann-gram-triad). With fixed as the base anchor, adjust the rational ray vertices and on the purple sphere to inspect the square-root-free Bargmann loop invariant , pairwise fidelities , and the closure determinant , contrasting cyan great-circle collinearity () against the magenta rational spherical excess benchmark on [1:0:0:0], [1:1:0:0], [1:0:1:0].