Gradient of the incoherence regularizer (Prop. 5.2)
ProvedMatrixCompletion.NoSpuriousMin.regularizer_gradientLet be the row regularizer with threshold . For any matrices , the map is differentiable at with derivative
i.e. the regularizer has gradient with diagonal and . This is the calculus identity behind the explicit first- and second-order conditions used throughout the mission.
Formalization Note The paper prints the exponent in ; the derivative of is , the form its rank-1 counterpart on p. 9 uses, so the cube is the intended reading. The statement is expressed as a directional derivative, which avoids fixing a norm on matrix space.
import Definitions.Def_MCNoSpuriousMinModel import Mathlib.Analysis.Calculus.Deriv.Basic open Matrix MatrixCompletion.NoSpuriousMin
theorem MatrixCompletion.NoSpuriousMin.regularizer_gradient
{d r : ℕ} (α : ℝ) (hα : 0 < α) (X V : Matrix (Fin d) (Fin r) ℝ) :
HasDerivAt (fun s : ℝ => reg α (X + s • V)) (innerM (regGrad α X) V) 0 := by sorryRead-back
What the Lean code literally says, in plain math · claude-fable-5
Read-back of MatrixCompletion.NoSpuriousMin.regularizer_gradient
For every pair of natural numbers (both implicit, and both allowed to be ), every real number with , and every pair of real matrices (indexed by ), the theorem asserts that the real-valued function of one real variable
— where denotes the -th row of the matrix and is the Euclidean norm of a row (this sum unfolds the bundled definitions reg, hinge, rowNorm, and vecNorm) — has a derivative at the point , and that derivative equals
which unfolds the bundled entrywise inner product innerM applied to the bundled matrix regGrad α X (whose entry is ) and to . The claim is the strong form "the derivative exists and has this value" (Lean's HasDerivAt), not merely "if the function is differentiable then its derivative is this value", and it is asserted only at , not at other values of . Points to note about what the quantifiers and conventions silently include: (i) if some row is the zero vector, the entry formula divides by ; in Lean real division by zero yields , and since forces the numerator is also , so the stated entry is the junk value rather than a limit of the analytic expression; (ii) if or the sums are empty, the function is constantly , and the claimed derivative is ; (iii) the only hypothesis on the data is — and are completely arbitrary, with no rank, incoherence, norm-bound, or sampling assumptions; (iv) the strict inequality excludes and negative .
Confirmed by the mission captain (proposal self-audit).