Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Deep linear network: first-layer four-point correlator (eq. 3.18)

Proved
DeepLearningTheory.linearNet_four_point_first_layer

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

deep-learning-theorymachine-learningprobability

For a zero-bias deep linear network at initialization, a single input xxx and first-layer neurons i1,…,i4i_1,\dots,i_4i1​,…,i4​,

E[zi1(1)zi2(1)zi3(1)zi4(1)]=CW2 (δi1i2δi3i4+δi1i3δi2i4+δi1i4δi2i3) (G2(0))2,G2(0)=1n0∑j=1n0xj2.\mathbb{E}\big[z^{(1)}_{i_1}z^{(1)}_{i_2}z^{(1)}_{i_3}z^{(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})\,\big(G^{(0)}_2\big)^2,\qquad G^{(0)}_2=\frac1{n_0}\sum_{j=1}^{n_0}x_j^2 .E[zi1​(1)​zi2​(1)​zi3​(1)​zi4​(1)​]=CW2​(δi1​i2​​δi3​i4​​+δi1​i3​​δi2​i4​​+δi1​i4​​δi2​i3​​)(G2(0)​)2,G2(0)​=n0​1​j=1∑n0​​xj2​.
Preamble
import Mathlib
import Definitions.Def_DLT_DeepLinearNetwork

open MeasureTheory ProbabilityTheory
open scoped NNReal
Formal statement
namespace DeepLearningTheory

theorem linearNet_four_point_first_layer {Ω : 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₄ * 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, p. 60, eqs. (3.18)–(3.19) (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 and all i1,i2,i3,i4<n1i_1,i_2,i_3,i_4<n_1i1​,i2​,i3​,i4​<n1​:

∫zi1(1)(x)zi2(1)(x)zi3(1)(x)zi4(1)(x) dP=CW2 Δi1i2i3i4 (1n0∑j<n0x(j)2)2,\int z^{(1)}_{i_1}(x)z^{(1)}_{i_2}(x)z^{(1)}_{i_3}(x)z^{(1)}_{i_4}(x)\,dP=C_W^2\,\Delta_{i_1i_2i_3i_4}\,\Big(\frac1{n_0}\sum_{j<n_0}x(j)^2\Big)^2,∫zi1​(1)​(x)zi2​(1)​(x)zi3​(1)​(x)zi4​(1)​(x)dP=CW2​Δi1​i2​i3​i4​​(n0​1​j<n0​∑​x(j)2)2,

with Δi1i2i3i4=δi1i2δi3i4+δi1i3δi2i4+δi1i4δi2i3\Delta_{i_1i_2i_3i_4}=\delta_{i_1i_2}\delta_{i_3i_4}+\delta_{i_1i_3}\delta_{i_2i_4}+\delta_{i_1i_4}\delta_{i_2i_3}Δi1​i2​i3​i4​​=δi1​i2​​δi3​i4​​+δi1​i3​​δi2​i4​​+δi1​i4​​δi2​i3​​ and zi(1)(x)=∑j<n0Wij(1)x(j)z^{(1)}_i(x)=\sum_{j<n_0}W^{(1)}_{ij}x(j)zi(1)​(x)=∑j<n0​​Wij(1)​x(j).

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