Proposition 4 (iii) (as proved): next-token minimizers are identified only up to
ProvedArxiv2610_39302.next_token_minimizers_gl_invariantLet finitely many contexts have probabilities , and let every conditional on a finite vocabulary have full support. Consider the expected next-token loss
over context embeddings and token vectors . Suppose is at least the rank of the matrix modulo constants, i.e. for some . Then:
- minimises if and only if for all , for some ;
- the logits are unchanged by , for every invertible ;
- hence the set of minimisers is invariant under : if is a minimiser, so is .
Formalization Note The printed hypothesis " large enough" is replaced by the condition the proof uses: at least the rank of modulo constants. The paper does not define the objective whose minimisers are meant; it is taken as the expected loss over finitely many contexts with positive weights, which is the reading under which the rank condition matters (the table is shared by all contexts). The paper's conclusion that is identified at best up to an invertible linear map, not a rotation, is an interpretation of item 3; the Lean statement does not assert that some non-orthogonal yields a genuinely different minimiser.
import Mathlib import Definitions.Def_Arxiv2610_39302_Basic open MeasureTheory Filter Topology Matrix
namespace Arxiv2610_39302
theorem next_token_minimizers_gl_invariant {C V : Type*} [Fintype C] [Fintype V] [Nonempty V]
{k : ℕ} (P : C → ℝ) (hP : ∀ c, 0 < P c) (hP1 : ∑ c, P c = 1)
(cond : C → V → ℝ) (hcond : ∀ c v, 0 < cond c v) (hcond1 : ∀ c, ∑ v, cond c v = 1)
(hrank : ∃ b : C → ℝ, (Matrix.of fun (v : V) (c : C) => Real.log (cond c v) + b c).rank ≤ k) :
(∀ (h : C → Fin k → ℝ) (w : V → Fin k → ℝ),
(∀ (h' : C → Fin k → ℝ) (w' : V → Fin k → ℝ), ntpRisk P cond h w ≤ ntpRisk P cond h' w') ↔
∃ b : C → ℝ, ∀ c v, h c ⬝ᵥ w v = Real.log (cond c v) + b c) ∧
(∀ (G : Matrix.GeneralLinearGroup (Fin k) ℝ) (h : C → Fin k → ℝ) (w : V → Fin k → ℝ) c v,
((G : Matrix (Fin k) (Fin k) ℝ) *ᵥ h c) ⬝ᵥ
((((G⁻¹ : Matrix.GeneralLinearGroup (Fin k) ℝ) : Matrix (Fin k) (Fin k) ℝ)ᵀ) *ᵥ w v) =
h c ⬝ᵥ w v) ∧
(∀ (G : Matrix.GeneralLinearGroup (Fin k) ℝ) (h : C → Fin k → ℝ) (w : V → Fin k → ℝ),
(∀ (h' : C → Fin k → ℝ) (w' : V → Fin k → ℝ), ntpRisk P cond h w ≤ ntpRisk P cond h' w') →
∀ (h' : C → Fin k → ℝ) (w' : V → Fin k → ℝ), ntpRisk P cond (fun c => (G : Matrix (Fin k) (Fin k) ℝ) *ᵥ h c)
(fun v => (((G⁻¹ : Matrix.GeneralLinearGroup (Fin k) ℝ) : Matrix (Fin k) (Fin k) ℝ)ᵀ) *ᵥ w v)
≤ ntpRisk P cond h' w') := by sorry
end Arxiv2610_39302Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a finite set of contexts and a finite, nonempty vocabulary. Let be a natural number; embeddings live in with the standard dot product . The data are:
- a function with for every and . This forces to be nonempty.
- a function with for all and for every .
Rank hypothesis. There is a function such that the real matrix
has rank at most . When this requires , which means that every is uniform on .
Risk. For context embeddings and output vectors , the expected next-token risk is
which is a finite real number for every . Call a global minimizer if for every pair , .
Conclusion. The theorem asserts the conjunction of three statements.
- Characterization of minimizers. For every pair , the pair is a global minimizer if and only if there exists such that, for all and ,
The here is existentially quantified anew and need not equal the in the rank hypothesis.
- Algebraic invariance. For every invertible real matrix , every , every , every and every ,
This statement does not involve , or the risk.
- Invariance of minimality. For every invertible real matrix and every global minimizer , the transformed pair
satisfies for every pair . In other words, the transformed pair is again a global minimizer.
What is not asserted. Nothing is stated about global minimizers being unique up to such a transformation. The only claims are the "if and only if" characterization in (1) and the invariance in (2) and (3).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.