First condition is the forward pass
ProvedLeCun1988.first_condition_iffAll derivatives , , vanish if and only if equals the forward pass from for every .
import Definitions.Def_LeCun1988_Defs import Mathlib
namespace LeCun1988
theorem first_condition_iff {E Θ : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup Θ] [NormedSpace ℝ Θ]
{F : ℕ → E → Θ → E} {N : ℕ} {X : ℕ → E} {W : ℕ → Θ} :
(∀ k < N, ContinuousLinearMap.apply ℝ ℝ (X (k + 1) - F k (X k) (W k)) = 0) ↔
∀ j ≤ N, X j = forward F (X 0) W j := by sorry
end LeCun1988Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
For any X : ℕ → E, W, F, N: [for all k < N, the evaluation functional apply(X(k+1) - F k (X k)(W k)) on E* is the zero map] iff [for all j ≤ N, X j = forward F (X 0) W j]. Since apply r = 0 on the dual forces r = 0 (Hahn-Banach; I checked this direction compiles via exists_dual_vector), the left side says X(k+1) = F_k(X k, W k) for every k < N, i.e. stationarity of L in every B(k+1) holds iff X is the forward pass from its own initial value X 0 up to layer N.
Auditor concerns: minor: the left side is phrased with ContinuousLinearMap.apply directly rather than as 'the HasFDerivAt derivative from lagrangian_deriv_B is 0'; the link between the two is via that separate lemma (it is the same expression, so faithful). X 0 is not tied to a given input x0; the forward pass is started at X 0, which is the right reading of LeCun's X(0) = input. Values of X beyond N are unconstrained, as expected. If E is the zero space both sides are trivially true, but that is a genuine degenerate instance, not a flaw.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.