Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 5.2: exact matrix model (ReLU network = deep linear network with dropout in law)

Proved
LesHouchesWidth.output_law_eq_dropout_law

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

machine-learningneural-networksprobability

Let μ\muμ be a probability measure on R\mathbb RR that has a density with respect to Lebesgue measure, is symmetric about 000, and has variance ∫t2dμ=1\int t^2d\mu=1∫t2dμ=1. Let L≥1L\ge1L≥1 and n0,…,nL+1≥1n_0,\dots,n_{L+1}\ge1n0​,…,nL+1​≥1, and let the weights be Wij(ℓ)=(2/nℓ−1)1/2W^ij(ℓ)W^{(\ell)}_{ij}=(2/n_{\ell-1})^{1/2}\widehat W^{(\ell)}_{ij}Wij(ℓ)​=(2/nℓ−1​)1/2Wij(ℓ)​ with W^ij(ℓ)\widehat W^{(\ell)}_{ij}Wij(ℓ)​ i.i.d. ∼μ\sim\mu∼μ and zero biases. Then for every fixed input x≠0x\neq0x=0, the ReLU network output z(L+1)(x)z^{(L+1)}(x)z(L+1)(x) satisfies

z(L+1)(x) =d W(L+1)D(L)W(L)⋯D(1)W(1)x,z^{(L+1)}(x)\ \overset{d}{=}\ W^{(L+1)}D^{(L)}W^{(L)}\cdots D^{(1)}W^{(1)}x,z(L+1)(x) =d W(L+1)D(L)W(L)⋯D(1)W(1)x,

where D(ℓ)=diag(ξ1(ℓ),…,ξnℓ(ℓ))D^{(\ell)}=\mathrm{diag}(\xi^{(\ell)}_1,\dots,\xi^{(\ell)}_{n_\ell})D(ℓ)=diag(ξ1(ℓ)​,…,ξnℓ​(ℓ)​) with ξi(ℓ)\xi^{(\ell)}_iξi(ℓ)​ i.i.d. Bernoulli(1/2)(1/2)(1/2), independent of the weights.

This reduces the analysis of random ReLU networks at one input to that of products of random matrices with dropout.

Preamble
import Mathlib
import Definitions.Def_LesHouchesWidth_ReLUNet
Formal statement
namespace LesHouchesWidth

open MeasureTheory ProbabilityTheory

theorem output_law_eq_dropout_law (μ : Measure ℝ) [IsProbabilityMeasure μ]
    (hμ_ac : μ ≪ volume) (hμ_symm : μ.map (fun t : ℝ => -t) = μ)
    (hμ_var : ∫ t, t ^ 2 ∂μ = 1)
    (L : ℕ) (hL : 1 ≤ L) (n : ℕ → ℕ) (hn : ∀ ℓ ≤ L + 1, 1 ≤ n ℓ)
    (x : Fin (n 0) → ℝ) (hx : x ≠ 0) :
    (weightLaw n L μ).map (fun ω => output ω x) =
      ((weightLaw n L μ).prod (maskLaw n L)).map (fun ωξ => dropoutOutput ωξ.1 ωξ.2 x) := 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), p. 39, Proposition 5.2 (Section 5.3, with the standing assumptions on μ\muμ stated just before it).
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.

The measure μ\muμ is a probability measure on R\mathbb RR, absolutely continuous with respect to Lebesgue measure. It is invariant under t↦−tt\mapsto-tt↦−t (its pushforward under negation equals μ\muμ), and ∫t2 dμ(t)=1\int t^2\,d\mu(t)=1∫t2dμ(t)=1. Since the integral of a non-integrable function is 000 by convention, the last condition also forces t2t^2t2 to be μ\muμ-integrable. The depth satisfies L≥1L\ge1L≥1, and the widths satisfy nℓ≥1n_\ell\ge1nℓ​≥1 for all ℓ≤L+1\ell\le L+1ℓ≤L+1. The input x∈Rn0x\in\mathbb R^{n_0}x∈Rn0​ is not the zero vector. Under these hypotheses the theorem asserts an equality of two probability measures on RnL+1\mathbb R^{n_{L+1}}RnL+1​:

  1. the law of ω↦z(L+1)(ω,x)\omega\mapsto z^{(L+1)}(\omega,x)ω↦z(L+1)(ω,x) when ω\omegaω has law μ⊗\mu^{\otimes}μ⊗ (zero-bias ReLU network with weights 2/nℓ ωℓ,i,j\sqrt{2/n_\ell}\,\omega_{\ell,i,j}2/nℓ​​ωℓ,i,j​);
  2. the law of (ω,ξ)↦W(L+1)D(L)W(L)⋯D(1)W(1)x(\omega,\xi)\mapsto W^{(L+1)}D^{(L)}W^{(L)}\cdots D^{(1)}W^{(1)}x(ω,ξ)↦W(L+1)D(L)W(L)⋯D(1)W(1)x when (ω,ξ)(\omega,\xi)(ω,ξ) has the product law μ⊗⊗(fair coins)⊗\mu^{\otimes}\otimes(\text{fair coins})^{\otimes}μ⊗⊗(fair coins)⊗, with D(ℓ)D^{(\ell)}D(ℓ) diagonal with entries 111 (coin true) or 000 (coin false).

Both sides are pushforward measures. If a map were not measurable, Mathlib would define its pushforward as the zero measure. Both maps here are built from finitely many products and sums, and for the ReLU side also max⁡(⋅,0)\max(\cdot,0)max(⋅,0).

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