Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Deep linear network: four-point recursion (eq. 3.20)

Proved
DeepLearningTheory.linearNet_four_point_recursion

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

deep-learning-theorymachine-learningprobability

For a zero-bias deep linear network at initialization and a single input xxx, for every layer ℓ≥0\ell\ge0ℓ≥0 and neurons i1,…,i4i_1,\dots,i_4i1​,…,i4​ of layer ℓ+1\ell+1ℓ+1,

E[zi1(ℓ+1)zi2(ℓ+1)zi3(ℓ+1)zi4(ℓ+1)]=CW2 (δi1i2δi3i4+δi1i3δi2i4+δi1i4δi2i3) 1nℓ2∑j,k=1nℓE[zj(ℓ)zj(ℓ)zk(ℓ)zk(ℓ)].\mathbb{E}\big[z^{(\ell+1)}_{i_1}z^{(\ell+1)}_{i_2}z^{(\ell+1)}_{i_3}z^{(\ell+1)}_{i_4}\big]=C_W^2\,(\delta_{i_1i_2}\delta_{i_3i_4}+\delta_{i_1i_3}\delta_{i_2i_4}+\delta_{i_1i_4}\delta_{i_2i_3})\,\frac1{n_\ell^2}\sum_{j,k=1}^{n_\ell}\mathbb{E}\big[z^{(\ell)}_jz^{(\ell)}_jz^{(\ell)}_kz^{(\ell)}_k\big].E[zi1​(ℓ+1)​zi2​(ℓ+1)​zi3​(ℓ+1)​zi4​(ℓ+1)​]=CW2​(δi1​i2​​δi3​i4​​+δi1​i3​​δi2​i4​​+δi1​i4​​δi2​i3​​)nℓ2​1​j,k=1∑nℓ​​E[zj(ℓ)​zj(ℓ)​zk(ℓ)​zk(ℓ)​].

Formalization Note The identity is stated for all ℓ≥0\ell\ge0ℓ≥0; for ℓ=0\ell=0ℓ=0 the right side involves the deterministic input and reduces to eq. (3.18).

Preamble
import Mathlib
import Definitions.Def_DLT_DeepLinearNetwork

open MeasureTheory ProbabilityTheory
open scoped NNReal
Formal statement
namespace DeepLearningTheory

theorem linearNet_four_point_recursion {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
    [IsProbabilityMeasure P] (n : ℕ → ℕ) (CW : ℝ≥0) (W : Ω → ℕ → ℕ → ℕ → ℝ)
    (hW : IsLinearNetInit P n CW W) (x : ℕ → ℝ) (ℓ i₁ i₂ i₃ i₄ : ℕ)
    (hi₁ : i₁ < n (ℓ + 1)) (hi₂ : i₂ < n (ℓ + 1)) (hi₃ : i₃ < n (ℓ + 1))
    (hi₄ : i₄ < n (ℓ + 1)) :
    ∫ ω, linearPreact n (W ω) x (ℓ + 1) i₁ * linearPreact n (W ω) x (ℓ + 1) i₂ *
        linearPreact n (W ω) x (ℓ + 1) i₃ * linearPreact n (W ω) x (ℓ + 1) i₄ ∂P
      = (CW : ℝ) ^ 2 * wickDelta4 i₁ i₂ i₃ i₄ * (1 / (n ℓ : ℝ) ^ 2) *
          ∑ j ∈ Finset.range (n ℓ), ∑ k ∈ Finset.range (n ℓ),
            ∫ ω, linearPreact n (W ω) x ℓ j * linearPreact n (W ω) x ℓ j *
              linearPreact n (W ω) x ℓ k * linearPreact n (W ω) x ℓ k ∂P := 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. 60–61, eq. (3.20) (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, CW≥0C_W\ge0CW​≥0 and WWW satisfying IsLinearNetInit. For every input xxx, every ℓ≥0\ell\ge0ℓ≥0 and all i1,…,i4<nℓ+1i_1,\dots,i_4<n_{\ell+1}i1​,…,i4​<nℓ+1​:

∫∏a=14zia(ℓ+1)(x) dP=CW2 Δi1i2i3i4 1nℓ2∑j<nℓ∑k<nℓ∫zj(ℓ)(x)2 zk(ℓ)(x)2 dP,\int\prod_{a=1}^4 z^{(\ell+1)}_{i_a}(x)\,dP=C_W^2\,\Delta_{i_1i_2i_3i_4}\,\frac{1}{n_\ell^2}\sum_{j<n_\ell}\sum_{k<n_\ell}\int z^{(\ell)}_j(x)^2\,z^{(\ell)}_k(x)^2\,dP,∫a=1∏4​zia​(ℓ+1)​(x)dP=CW2​Δi1​i2​i3​i4​​nℓ2​1​j<nℓ​∑​k<nℓ​∑​∫zj(ℓ)​(x)2zk(ℓ)​(x)2dP,

where 1/nℓ21/n_\ell^21/nℓ2​ is 000 if nℓ=0n_\ell=0nℓ​=0, Δ\DeltaΔ is the three-term Kronecker-delta tensor, and z(0)=xz^{(0)}=xz(0)=x (so for ℓ=0\ell=0ℓ=0 the inner integrals are of constants).

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