Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Aether Catalog definitions — MachineLearning_NTKConvergence_Convergence

Definition
MachineLearning_NTKConvergence_Convergence

by raver1975 · Sep 12, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogmachinelearning

Definition bundle for the Aether Catalog module MachineLearning.NTKConvergence.Convergence, transplanted by skeleton subtraction; supplies the types and constants the catalog's theorems import.

Definition code
-- Def bundle generated from MachineLearning/NTKConvergence/Convergence.lean by skeleton subtraction
import Mathlib
-- The module `MachineLearning.TropicalNTKDynamics` is referenced by the original
-- catalog export but is absent from this repository.  The two predicates and the
-- one lemma that this file used from it are reconstructed below, so that the file
-- is self-contained and compiles.

/-!
# Neural Tangent Kernel Convergence

This chapter isolates the architecture-independent dynamical core of lazy training.
On a finite training set, a frozen neural tangent kernel determines a linear residual
recursion. A strict contraction hypothesis gives convergence to the interpolating NTK
solution, while equality of frozen kernels gives universality of the entire training
trajectory across architectures.
-/

open Filter

noncomputable section

namespace NTKConvergence

/-- Residual dynamics generated by a fixed update operator. -/
def residualIterate {E : Type*} (step : E → E) (r₀ : E) : ℕ → E
  | 0 => r₀
  | n + 1 => step (residualIterate step r₀ n)

/-- Predictions associated with a target and a residual trajectory. -/
def predictionIterate {E : Type*} [AddGroup E]
    (target : E) (step : E → E) (r₀ : E) (n : ℕ) : E :=
  target + residualIterate step r₀ n

/-- The frozen-kernel gradient step on residuals: `r ↦ r - ηKr`. -/
def frozenKernelStep {E : Type*} [AddCommGroup E] [Module ℝ E]
    (K : E →ₗ[ℝ] E) (η : ℝ) : E → E :=
  fun r => r - η • K r







namespace TropicalKernelDynamics

/-- Two parameter vectors lie in the same tropical cell when the cell-labelling
map does not separate them. -/
def SameTropicalCell {P : ℕ} {C : Type*} (cellOf : (Fin P → ℝ) → C)
    (x y : Fin P → ℝ) : Prop := cellOf x = cellOf y

/-- A kernel map is cell-wise constant when it factors through the cell
labelling. -/
def IsCellwiseConstant {P N : ℕ} {C : Type*} (cellOf : (Fin P → ℝ) → C)
    (K : (Fin P → ℝ) → Matrix (Fin N) (Fin N) ℝ) : Prop :=
  ∀ x y, cellOf x = cellOf y → K x = K y


end TropicalKernelDynamics


-- !-- Lab Notes -- !--
-- Hypothesis: (1) every frozen strict-contraction NTK converges geometrically;
-- (2) its rate is exactly spectral on eigendirections; (3) equal limiting kernels make
-- different architectures dynamically indistinguishable; (4) equality merely along
-- the realized paths already suffices; (5) tropical cell confinement supplies exact
-- lazy behavior; (6, bold) approximate kernel equality should imply quantitative
-- finite-horizon trajectory stability.
-- Experiment: the residual recursion was separated from neural parameter space. Claims
-- (1)--(5) survived; claim (6) was retained as a testable perturbation conjecture because
-- its sharp bound requires an additional Lipschitz/discrepancy framework.
-- Analysis: strict contraction is the analytic ingredient for interpolation, while
-- cell invariance is a geometric ingredient that freezes the kernel. The eigendirection
-- formula exposes the spectral factor `1 - ηλ` joining these two levels.
-- Critique: positive semidefiniteness alone does not imply strict contraction because
-- a kernel may have a nontrivial nullspace. Consequently the convergence theorem states
-- spectral contraction explicitly, concerns predictions rather than parameters, and
-- makes no unsupported infinite-width or probabilistic limit claim.
-- Synthesis: geometric decay, exact spectral dynamics, pathwise universality, and the
-- existing tropical cell criterion form an architecture-independent lazy-training
-- convergence principle for finite training sets.
-- !-- End Lab Notes -- !--

end NTKConvergence

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me