proofs
Provedalphabaguettenoether-checksumtransport

The pairing checksum can be read after RoPE: ⟨Rᵀdq, q⟩ = ⟨dq, Rq⟩ for each rotary pair

For all c,s,u1,u2,w1,w2∈R\htmlData{mx=1}{c, s, u_{1}, u_{2}, w_{1}, w_{2} \in \htmlData{mx=0}{\mathbb{R}}}:

(c⋅w1+s⋅w2)⋅u1+(−s⋅w1+c⋅w2)⋅u2=w1⋅(c⋅u1−s⋅u2)+w2⋅(s⋅u1+c⋅u2)\begin{aligned} & \htmlData{mx=20}{\htmlData{mx=9}{(\htmlData{mx=7}{\htmlData{mx=3}{\htmlData{mx=1}{c} \cdot \htmlData{mx=2}{w_{1}}} + \htmlData{mx=6}{\htmlData{mx=4}{s} \cdot \htmlData{mx=5}{w_{2}}}}) \cdot \htmlData{mx=8}{u_{1}}} + \htmlData{mx=19}{(\htmlData{mx=17}{\htmlData{mx=13}{\htmlData{mx=11}{-\htmlData{mx=10}{s}} \cdot \htmlData{mx=12}{w_{1}}} + \htmlData{mx=16}{\htmlData{mx=14}{c} \cdot \htmlData{mx=15}{w_{2}}}}) \cdot \htmlData{mx=18}{u_{2}}}} \\ & \quad \htmlData{mx=0}{=} \htmlData{mx=39}{\htmlData{mx=29}{\htmlData{mx=21}{w_{1}} \cdot (\htmlData{mx=28}{\htmlData{mx=24}{\htmlData{mx=22}{c} \cdot \htmlData{mx=23}{u_{1}}} - \htmlData{mx=27}{\htmlData{mx=25}{s} \cdot \htmlData{mx=26}{u_{2}}}})} + \htmlData{mx=38}{\htmlData{mx=30}{w_{2}} \cdot (\htmlData{mx=37}{\htmlData{mx=33}{\htmlData{mx=31}{s} \cdot \htmlData{mx=32}{u_{1}}} + \htmlData{mx=36}{\htmlData{mx=34}{c} \cdot \htmlData{mx=35}{u_{2}}}})}} \end{aligned}
What the notation means · or point at any symbol
RReal numbers
The real numbers: every point on the number line. (ℝ)
x ∈ TVariables
c, s, u₁, u₂, w₁, w₂ range over real numbers: the statement must hold for every choice. ((c s u₁ u₂ w₁ w₂ : ℝ))
=Equality
(c · w₁ + s · w₂) · u₁ + (−s · w₁ + c · w₂) · u₂ and w₁ · (c · u₁ − s · u₂) + w₂ · (s · u₁ + c · u₂) are the same. ((c * w₁ + s * w₂) * u₁ + (-s * w₁ + c *…)
·Multiplication
c times w₁. (c * w₁)
+Addition
c · w₁ plus s · w₂. (c * w₁ + s * w₂)
−xNegation
The negative of s. (-s)
-Subtraction
c · u₁ minus s · u₂. On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (c * u₁ - s * u₂)

RoPE's backward applies the transpose rotation, so the pre-rotation pairing ⟨dq_pre, q_pre⟩ equals the post-rotation pairing ⟨dq_post, q_post⟩ (adjointness; holds for any 2×2 map). C3 can therefore be accumulated in whichever kernel already holds the rotated or unrotated tensors. Part of 'Noether checksums for Baguette's backward kernels'.

How it was proved

Proved
3 October 2026
By
Ajax, with the agent “Baguette math & proofs (Claude Code, 2026-10-03)”
Checked by
Lean's kernel (Lean 4.33.1, with Mathlib); the proof is signed and replays offline
Axioms
Classical.choice, Quot.sound, propext
Proof
12 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.

More proved statements