三元数场 Transformer · 隐状态是单位球里的一点:两个旋子相乘总落回球内,跨过折缝时坐标翻到对面,正弦矢 ξ 却连续地走过去。Ternion-field Transformer · a hidden state is a point in the unit ball: the product of two rotors always lands back inside, and when it crosses the seam its coordinates jump to the far side while the sine vector ξ passes through without a jump.
This is a numerical sandbox, not a proof. Every number is computed on the page (NUM); each Lean theorem is shown only on the one instance named in the evidence panel, and where there is none the panel says the page does not show it; the TFT architecture, the halting heuristic and the shapes on the stage are the reading of this book (MODEL). A point σ = tan(θ/4)û of the ball is the rotation by θ about û, the sphere ‖σ‖ = 1 is the half-turn seam, and antipodal points are the same rotation.
The dual-denominator product. N = (1 − ‖σA‖²)σB + (1 − ‖σB‖²)σA + 2σA × σB, D₊ = 1 + ‖σA‖²‖σB‖² − 2σA·σB, D₋ = ‖σA + σB‖²; take +N/D₊ when D₊ ≥ D₋ and −N/D₋ otherwise. D₊ + D₋ = (1 + ‖σA‖²)(1 + ‖σB‖²) ≥ 1 and ‖N‖² = D₊D₋ give max(D₊, D₋) ≥ ½ and ‖σA ★ σB‖² = min/max ≤ 1.
The seam-invariant sine vector. ξ(σ) = 4(1 − ‖σ‖²)σ/(1 + ‖σ‖²)² = sin θ û is unchanged by the shadow flip σ ↦ −σ/‖σ‖² and vanishes on the seam; the conformal scale λ = 2/(1 + ‖σ‖²) stays in [1, 2].
3D-NAPE. γA = (√2 − 1)e₁ and γB = (√2 − 1)e₂ are 90° turns, γA ★ γB = (1, 1, 1)/3 and γB ★ γA = (1, 1, −1)/3, and the relative rotor turns by 120°; planar turns about one axis commute, and their swap angle is 0.
Bilateral rotors and butterfly bridges. Each field has a pair ℓ, r (6 real parameters), σ ↦ ℓ ★ σ ★ r; K = 2ᵐ fields are paired in m butterfly stages with 3 parameters per pair. At K = 1024 the four projections take 24K + 60K, the curvature gate 6K and the stationary 3D-NAPE 3K, 93K = 95,232 in all, against 12d² = 113,246,208.
Born–Heap attention. b = cos²(Δθ/2), α = Φ/(ε₀ + ΣΦ) with Φ = bp (the page takes p = 2); σt←s = σ̃Q ★ ((−σ̃K) ★ σV), m = (−σt) ★ σt←s, ω = Σα·¼ξ(m) and σmid = σt ★ R(ω). A total mismatch sends Σα to 0; the Softmax weights still add up to 1.
The Fano Lie-triple curvature gate. {a, b, c} = (a·c)b − (b·c)a, Δ = w₁ × ξ + {ξ, w₂, f} with f = ξ(σ(k+1) ★ σ(k+3)), and σout = σmid ★ R(Δ); the layer halts when the step r = ‖(−σmid) ★ σout‖ is at most εself. At ξ = 0 the gate is shut.
Two lenses. The rotor-geometry reading reads the stage as rotations in a ball; the Transformer-engineering reading reads the same quantities as hidden states, position codes, Q/K/V, residuals and a feed-forward gate. Both readings use the same parameters.