Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (3) — averaging the (θ, σ)-Gaussian model over θ ∼ N(µ′, s²I) gives the (µ′, √(s² + σ²))-Gaussian model

Proved
RobustGeneralization.GaussLower.eq3_posterior_predictive

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

gaussian-convolutiongaussian-modelp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let m∈Rdm \in \mathbb R^dm∈Rd and s,σ>0s, \sigma > 0s,σ>0. Draw θ∼N(m,s2I)\theta \sim \mathcal N(m, s^2 I)θ∼N(m,s2I) and then (x,y)(x, y)(x,y) from the (θ,σ)(\theta, \sigma)(θ,σ)-Gaussian model: yyy is uniform on {±1}\{\pm1\}{±1} and x∼N(yθ,σ2I)x \sim \mathcal N(y\theta, \sigma^2 I)x∼N(yθ,σ2I). The resulting law of (x,y)(x, y)(x,y) is the (m,s2+σ2)(m, \sqrt{s^2+\sigma^2})(m,s2+σ2​)-Gaussian model:

Eθ∼N(m,s2I)[Pθ,σ]=Pm,s2+σ2,\mathbb E_{\theta\sim\mathcal N(m, s^2 I)}\big[P_{\theta,\sigma}\big] = P_{m,\sqrt{s^2+\sigma^2}},Eθ∼N(m,s2I)​[Pθ,σ​]=Pm,s2+σ2​​,

that is, yyy uniform and x∼N(ym,Σ′′)x \sim \mathcal N(y m, \Sigma'')x∼N(ym,Σ′′) with Σ′′=s2I+σ2I\Sigma'' = s^2 I + \sigma^2 IΣ′′=s2I+σ2I.

With m=μ′m = \mu'm=μ′ and s2I=Σ′s^2 I = \Sigma's2I=Σ′ this is Equation (3) of the paper. After averaging over θ\thetaθ, the robust error of the fixed classifier fnf_nfn​ is its robust error under a single Gaussian model centred at the posterior mean.

Formalization Note The identity is stated as an equality of measures on Rd×{±1}\mathbb R^d \times \{\pm1\}Rd×{±1}, so it holds for every event, measurable or not. The mixture is Measure.bind. Standard deviations are used throughout, so Σ′′=Σ′+σ2I\Sigma'' = \Sigma' + \sigma^2 IΣ′′=Σ′+σ2I corresponds to s2+σ2\sqrt{s^2+\sigma^2}s2+σ2​.

Preamble
import Mathlib
import Definitions.Def_RobustGeneralization_GaussLower_Model

open MeasureTheory ProbabilityTheory
open scoped ENNReal
Formal statement
namespace RobustGeneralization.GaussLower

theorem eq3_posterior_predictive {d : ℕ} (m : E d) (s σ : ℝ) (hs : 0 < s) (hσ : 0 < σ) :
    (gaussVec m s).bind (fun θ => gaussModel θ σ) =
      gaussModel m (Real.sqrt (s ^ 2 + σ ^ 2)) := by sorry

end RobustGeneralization.GaussLower
Source
Schmidt, Santurkar, Tsipras, Talwar, Mądry, Adversarially Robust Generalization Requires More Data, arXiv:1804.11285v2, p. 29, §A.2, proof of Theorem 11, eq. (3)
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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