Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4.4: conditional Gaussianity of the next layer and κ4(ℓ+1)=Var[Σ(ℓ)]\kappa_4^{(\ell+1)}=\mathrm{Var}[\Sigma^{(\ell)}]κ4(ℓ+1)​=Var[Σ(ℓ)]

Proved
LesHouchesWidth.conditional_gaussian_next_layer

by LG · Sep 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

machine-learningneural-networksprobability

Let Cb≥0C_b\ge0Cb​≥0, CW>0C_W>0CW​>0, σ\sigmaσ measurable and polynomially bounded, n0,…,nL+1≥1n_0,\dots,n_{L+1}\ge1n0​,…,nL+1​≥1, and 1≤ℓ≤L1\le\ell\le L1≤ℓ≤L. For the network with Gaussian initialization (119) at a fixed input xxx:

  1. conditional on z(ℓ)z^{(\ell)}z(ℓ), the vector (zi(ℓ+1))i≤nℓ+1(z^{(\ell+1)}_i)_{i\le n_{\ell+1}}(zi(ℓ+1)​)i≤nℓ+1​​ is Gaussian with mean 000 and covariance Σ(ℓ)⋅I\Sigma^{(\ell)}\cdot IΣ(ℓ)⋅I, where
Σ(ℓ)=Cb+CWnℓ∑j=1nℓσ(zj(ℓ))2;\Sigma^{(\ell)}=C_b+\frac{C_W}{n_\ell}\sum_{j=1}^{n_\ell}\sigma\big(z^{(\ell)}_j\big)^2;Σ(ℓ)=Cb​+nℓ​CW​​j=1∑nℓ​​σ(zj(ℓ)​)2;
  1. for every neuron iii, κ4(ℓ+1)=Var[Σ(ℓ)]\kappa^{(\ell+1)}_4=\mathrm{Var}\big[\Sigma^{(\ell)}\big]κ4(ℓ+1)​=Var[Σ(ℓ)].

This reduces the four-point function to the fluctuations of a collective observable of the previous layer.

Formalization Note The conditional law is expressed with Mathlib's regular conditional distribution condDistrib, as an identity holding for almost every value of z(ℓ)z^{(\ell)}z(ℓ). The characteristic-function identity in the lemma is equivalent to part 1.

Preamble
import Mathlib
import Definitions.Def_LesHouchesWidth_GaussianMLP
import Definitions.Def_LesHouchesWidth_FiniteWidth
Formal statement
namespace LesHouchesWidth

open MeasureTheory ProbabilityTheory

theorem conditional_gaussian_next_layer (Cb CW : ℝ) (hCb : 0 ≤ Cb) (hCW : 0 < CW)
    (σ : ℝ → ℝ) (hσ : Measurable σ) (hσ_poly : PolyBounded σ)
    (n : ℕ → ℕ) (L : ℕ) (hn : ∀ ℓ ≤ L + 1, 1 ≤ n ℓ) (x : Fin (n 0) → ℝ)
    (ℓ : ℕ) (hℓ : 1 ≤ ℓ) (hℓL : ℓ ≤ L) :
    (∀ᵐ y ∂((stdGaussianParams n L).map (fun θ => mlpZ Cb CW σ θ x ℓ)),
      condDistrib (fun θ => (WithLp.equiv 2 (Fin (n (ℓ + 1)) → ℝ)).symm (mlpZ Cb CW σ θ x (ℓ + 1)))
          (fun θ => mlpZ Cb CW σ θ x ℓ) (stdGaussianParams n L) y =
        multivariateGaussian 0 (collectiveSigma Cb CW σ n ℓ y • (1 : Matrix _ _ ℝ))) ∧
    (∀ i : Fin (n (ℓ + 1)),
      kappa4 Cb CW σ n L x (ℓ + 1) i =
        variance (fun θ => collectiveSigma Cb CW σ n ℓ (mlpZ Cb CW σ θ x ℓ))
          (stdGaussianParams n L)) := by sorry

end LesHouchesWidth
Source
Bahri, Hanin, Brossollet, Erba, Keup, Pacelli, Simon, *Les Houches Lectures on Deep Learning at Large & Infinite Width*, arXiv:2309.01592v3 (https://arxiv.org/abs/2309.01592), pp. 34–35, Lemma 4.4 and its proof (Section 4.9.2).
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) - non-blind, same agent as drafter

Non-blind read-back. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement, with full knowledge of the source and of the intended meaning. It is not independent testimony and should not be treated as a blind audit; an independent read-back is still recommended before launch.

Let Cb≥0C_b\ge0Cb​≥0 and CW>0C_W>0CW​>0, and let σ\sigmaσ be measurable and polynomially bounded (∣σ(t)∣≤C(1+∣t∣k)|\sigma(t)|\le C(1+|t|^k)∣σ(t)∣≤C(1+∣t∣k) for some C,kC,kC,k). The network is the one of Mission I: biases Cb θ\sqrt{C_b}\,\thetaCb​​θ, weights CW/nℓ θ\sqrt{C_W/n_\ell}\,\thetaCW​/nℓ​​θ, θ\thetaθ i.i.d. standard normal, z(1)=b(1)+W(1)xz^{(1)}=b^{(1)}+W^{(1)}xz(1)=b(1)+W(1)x, z(ℓ+1)=b(ℓ+1)+W(ℓ+1)σ(z(ℓ))z^{(\ell+1)}=b^{(\ell+1)}+W^{(\ell+1)}\sigma(z^{(\ell)})z(ℓ+1)=b(ℓ+1)+W(ℓ+1)σ(z(ℓ)). Let the widths satisfy nℓ≥1n_\ell\ge1nℓ​≥1 for all ℓ≤L+1\ell\le L+1ℓ≤L+1, let x∈Rn0x\in\mathbb R^{n_0}x∈Rn0​, and let 1≤ℓ≤L1\le\ell\le L1≤ℓ≤L. The theorem asserts two statements.

  1. For almost every value y∈Rnℓy\in\mathbb R^{n_\ell}y∈Rnℓ​ of z(ℓ)z^{(\ell)}z(ℓ) (with respect to the law of z(ℓ)z^{(\ell)}z(ℓ)), the regular conditional distribution of the vector z(ℓ+1)z^{(\ell+1)}z(ℓ+1), regarded in Euclidean space Rnℓ+1\mathbb R^{n_{\ell+1}}Rnℓ+1​, given z(ℓ)=yz^{(\ell)}=yz(ℓ)=y equals the multivariate Gaussian N(0, Σ(y) Inℓ+1)\mathcal N\big(0,\ \Sigma(y)\,I_{n_{\ell+1}}\big)N(0, Σ(y)Inℓ+1​​). Here Σ(y)=Cb+CWnℓ∑jσ(yj)2\Sigma(y)=C_b+\frac{C_W}{n_\ell}\sum_j\sigma(y_j)^2Σ(y)=Cb​+nℓ​CW​​∑j​σ(yj​)2. If Σ(y)<0\Sigma(y)<0Σ(y)<0 the matrix would not be PSD, but this cannot happen under Cb≥0C_b\ge0Cb​≥0, CW>0C_W>0CW​>0.
  2. For every neuron i<nℓ+1i<n_{\ell+1}i<nℓ+1​: 13(E[(zi(ℓ+1))4]−3E[(zi(ℓ+1))2]2)\frac13\big(\mathbb E[(z^{(\ell+1)}_i)^4]-3\mathbb E[(z^{(\ell+1)}_i)^2]^2\big)31​(E[(zi(ℓ+1)​)4]−3E[(zi(ℓ+1)​)2]2) equals the variance, in Mathlib's variance, of the random variable θ↦Σ(z(ℓ)(θ))\theta\mapsto\Sigma(z^{(\ell)}(\theta))θ↦Σ(z(ℓ)(θ)).
Human review
  • Endorsed by Shuze Chen · Sep 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Sep 24, 2026

    Confirmed by the mission captain (proposal self-audit).

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