LeCun: back-propagation is the Lagrangian stationarity
ProvedLeCun1988.lecunOn the forward trajectory from , suppose has derivative at , has -derivative at for , and has -derivative at . If the multipliers make stationary in every state, and for , then the training error has derivative .
import Definitions.Def_LeCun1988_Defs import Mathlib
namespace LeCun1988
theorem lecun {E Θ : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup Θ] [NormedSpace ℝ Θ]
{C : E → ℝ} {F : ℕ → E → Θ → E} {x0 : E} {W : ℕ → Θ} {N k : ℕ} (hk : k < N)
{DX : ℕ → E →L[ℝ] E} {DW : Θ →L[ℝ] E} {g : E →L[ℝ] ℝ}
(hDX : ∀ j, 1 ≤ j → j < N → HasFDerivAt (fun x => F j x (W j)) (DX j) (forward F x0 W j))
(hDW : HasFDerivAt (fun w => F k (forward F x0 W k) w) DW (W k))
(hC : HasFDerivAt C g (forward F x0 W N)) {B : ℕ → E →L[ℝ] ℝ}
(hN : g + B N = 0) (hX : ∀ j, 1 ≤ j → j < N → B j - (B (j + 1)).comp (DX j) = 0) :
HasFDerivAt (fun v => C (forward F x0 (Function.update W k v) N))
(-((B (k + 1)).comp DW)) (W k) := by sorry
end LeCun1988Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Same setting as backprop_chain with X = forward F x0 W. Assume: for every 1 ≤ j < N, x ↦ F j x (W j) has derivative DX j at X j; w ↦ F k (X k) w has derivative DW at W k (k < N); C has derivative g at X N; and B satisfies the Lagrangian stationarity conditions in X expressed in the derivative forms of lagrangian_deriv_XN / lagrangian_deriv_X: g + B N = 0 and B j - B(j+1) ∘ DX j = 0 for all 1 ≤ j < N. Conclusion: the true gradient of the loss v ↦ C(forward with W k := v at layer N) at W k is -(B(k+1) ∘ DW), i.e. equals ∂L/∂W(k) from lagrangian_deriv_W. This is LeCun's main claim: at a stationary point of L in X and B (the forward pass and backward recursion), ∂L/∂W equals the loss gradient.
Auditor concerns: slightly stronger hypotheses than necessary (differentiability of every layer 1 ≤ j < N and the recursion for all 1 ≤ j < N, though only k < j < N is used), so it is marginally weaker than backprop_chain, but it matches LeCun's full stationarity conditions and is satisfiable (B can always be defined backward; e.g. any C^1 F). Stationarity in B is built in by evaluating at X = forward F x0 W rather than stated as a hypothesis; combined with first_condition_iff this is equivalent. Not vacuous; not trivially true.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.