Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Deep linear network: connected four-point correlator of two neurons (eq. 3.30)

Proved
DeepLearningTheory.linearNet_connected_four_point

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

deep-learning-theorymachine-learningprobability

For a zero-bias deep linear network with positive widths at initialization, a single input xxx, a layer ℓ≥1\ell\ge1ℓ≥1 and two distinct neurons j≠kj\ne kj=k of that layer,

E[(zj(ℓ)zj(ℓ)−G2(ℓ))(zk(ℓ)zk(ℓ)−G2(ℓ))]=G4(ℓ)−(G2(ℓ))2,\mathbb{E}\Big[\big(z^{(\ell)}_jz^{(\ell)}_j-G^{(\ell)}_2\big)\big(z^{(\ell)}_kz^{(\ell)}_k-G^{(\ell)}_2\big)\Big]=G^{(\ell)}_4-\big(G^{(\ell)}_2\big)^2,E[(zj(ℓ)​zj(ℓ)​−G2(ℓ)​)(zk(ℓ)​zk(ℓ)​−G2(ℓ)​)]=G4(ℓ)​−(G2(ℓ)​)2,

where G2(ℓ)=CWℓG2(0)G^{(\ell)}_2=C_W^{\ell}G^{(0)}_2G2(ℓ)​=CWℓ​G2(0)​, G4(ℓ)=CW2ℓ∏ℓ′=1ℓ−1(1+2nℓ′)(G2(0))2G^{(\ell)}_4=C_W^{2\ell}\prod_{\ell'=1}^{\ell-1}\big(1+\frac{2}{n_{\ell'}}\big)\big(G^{(0)}_2\big)^2G4(ℓ)​=CW2ℓ​∏ℓ′=1ℓ−1​(1+nℓ′​2​)(G2(0)​)2 and G2(0)=1n0∑jxj2G^{(0)}_2=\frac1{n_0}\sum_j x_j^2G2(0)​=n0​1​∑j​xj2​. The nonzero right side measures the interaction between different neurons at finite width.

Preamble
import Mathlib
import Definitions.Def_DLT_DeepLinearNetwork

open MeasureTheory ProbabilityTheory
open scoped NNReal
Formal statement
namespace DeepLearningTheory

theorem linearNet_connected_four_point {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
    [IsProbabilityMeasure P] (n : ℕ → ℕ) (hn : ∀ ℓ, 0 < n ℓ) (CW : ℝ≥0)
    (W : Ω → ℕ → ℕ → ℕ → ℝ) (hW : IsLinearNetInit P n CW W) (x : ℕ → ℝ)
    (ℓ j k : ℕ) (hℓ : 1 ≤ ℓ) (hj : j < n ℓ) (hk : k < n ℓ) (hjk : j ≠ k) :
    ∫ ω, (linearPreact n (W ω) x ℓ j ^ 2 - (CW : ℝ) ^ ℓ * inputKernel (n 0) x x) *
        (linearPreact n (W ω) x ℓ k ^ 2 - (CW : ℝ) ^ ℓ * inputKernel (n 0) x x) ∂P
      = (CW : ℝ) ^ (2 * ℓ) * (∏ ℓ' ∈ Finset.Ico 1 ℓ, (1 + 2 / (n ℓ' : ℝ))) *
            inputKernel (n 0) x x ^ 2
          - ((CW : ℝ) ^ ℓ * inputKernel (n 0) x x) ^ 2 := by sorry

end DeepLearningTheory
Source
Daniel A. Roberts and Sho Yaida (with Boris Hanin), *The Principles of Deep Learning Theory*, arXiv:2106.10165v2, https://arxiv.org/abs/2106.10165, §3.3, pp. 61–62, eqs. (3.25), (3.29), (3.30) (page numbers are the book's printed page numbers)
Read-back

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

Non-blind read-back. This read-back was written by the same agent that drafted the Lean statement, with full knowledge of the source text and of the intended meaning. It is not independent testimony and must not be mistaken for a blind audit; reviewers should compare the Lean code against the source themselves.

Let (Ω,P)(\Omega,P)(Ω,P) be a probability space, nnn widths with all nℓ>0n_\ell>0nℓ​>0, CW≥0C_W\ge0CW​≥0, WWW satisfying IsLinearNetInit, xxx an input, ℓ≥1\ell\ge1ℓ≥1 and j,k<nℓj,k<n_\ellj,k<nℓ​ with j≠kj\ne kj=k. Writing g=1n0∑m<n0x(m)2g=\frac1{n_0}\sum_{m<n_0}x(m)^2g=n0​1​∑m<n0​​x(m)2:

∫(zj(ℓ)(x)2−CWℓg)(zk(ℓ)(x)2−CWℓg) dP=CW2ℓ[∏ℓ′=1ℓ−1(1+2nℓ′)]g2−(CWℓg)2,\int\big(z^{(\ell)}_j(x)^2-C_W^{\ell}g\big)\big(z^{(\ell)}_k(x)^2-C_W^{\ell}g\big)\,dP=C_W^{2\ell}\Big[\prod_{\ell'=1}^{\ell-1}\Big(1+\frac{2}{n_{\ell'}}\Big)\Big]g^2-\big(C_W^{\ell}g\big)^2,∫(zj(ℓ)​(x)2−CWℓ​g)(zk(ℓ)​(x)2−CWℓ​g)dP=CW2ℓ​[ℓ′=1∏ℓ−1​(1+nℓ′​2​)]g2−(CWℓ​g)2,

the product being empty (equal to 111) when ℓ=1\ell=1ℓ=1.

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