Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Proof of Thm 31 (p. 36) — w.p. 1 − γ/2, |E[θ⋆ᵢ|S]| ≤ 15τ√(2n log(4d/γ)) for all i

Proved
RobustGeneralization.BernLower.posterior_mean_bound

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

bernoulli-modelp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1posterior

Let θ⋆\theta^\starθ⋆ be uniform on {±1}d\{\pm1\}^d{±1}d and let SSS be nnn independent samples from the (θ⋆,τ)(\theta^\star,\tau)(θ⋆,τ)-Bernoulli model. Write E[θi⋆∣S]=Pr⁡[θi⋆=+1∣S]−Pr⁡[θi⋆=−1∣S]\mathbb E[\theta^\star_i\mid S]=\Pr[\theta^\star_i=+1\mid S]-\Pr[\theta^\star_i=-1\mid S]E[θi⋆​∣S]=Pr[θi⋆​=+1∣S]−Pr[θi⋆​=−1∣S] for the posterior mean of the iii-th coordinate. Assume 0<τ≤140<\tau\le\tfrac140<τ≤41​, n≤1/τ2n\le1/\tau^2n≤1/τ2, γ>0\gamma>0γ>0, and

bn:=15τ2nlog⁡4dγ≤1.b_n:=15\tau\sqrt{2n\log\tfrac{4d}{\gamma}}\le1.bn​:=15τ2nlogγ4d​​≤1.

Then, with probability at least 1−γ/21-\gamma/21−γ/2 over (θ⋆,S)(\theta^\star,S)(θ⋆,S),

∣E[θi⋆∣S]∣≤15τ2nlog⁡4dγfor all i∈[d].\big|\mathbb E[\theta^\star_i\mid S]\big|\le 15\tau\sqrt{2n\log\tfrac{4d}{\gamma}}\qquad\text{for all } i\in[d].​E[θi⋆​∣S]​≤15τ2nlogγ4d​​for all i∈[d].

This is the step of the proof of Theorem 31 where the learner's uncertainty about every bit of θ⋆\theta^\starθ⋆ is made quantitative; it combines Lemma 29 (with δ=γ/(2d)\delta=\gamma/(2d)δ=γ/(2d)) over the ddd coordinates.

Formalization Note The hypothesis bn≤1b_n\le1bn​≤1 is the page's remark that "the argument to the exponential function is in this range", which the sample bound of Theorem 31 implies; it is kept explicit here. The probability is the finite sum of joint weights 2−d∏kPθ,τ(xk,yk)2^{-d}\prod_k P_{\theta,\tau}(x_k,y_k)2−d∏k​Pθ,τ​(xk​,yk​) over θ\thetaθ and SSS.

Preamble
import Mathlib
import Definitions.Def_RobustGeneralization_BernLower_Model
Formal statement
namespace RobustGeneralization.BernLower

theorem posterior_mean_bound (d n : ℕ) (τ γ : ℝ) (hτ : 0 < τ) (hτ' : τ ≤ 1 / 4)
    (hn : (n : ℝ) ≤ 1 / τ ^ 2) (hγ : 0 < γ)
    (hx : 15 * τ * Real.sqrt (2 * n * Real.log (4 * d / γ)) ≤ 1) :
    1 - γ / 2 ≤ ∑ θ : Fin d → Bool, ∑ S : Fin n → (Fin d → Bool) × Bool,
      joint τ θ S *
        (if ∀ i, |postMean τ S i| ≤ 15 * τ * Real.sqrt (2 * n * Real.log (4 * d / γ))
          then 1 else 0) := by sorry

end RobustGeneralization.BernLower
Source
Schmidt, Santurkar, Tsipras, Talwar, Mądry, Adversarially Robust Generalization Requires More Data, arXiv:1804.11285v2, p. 36, §B.2, proof of Theorem 31, the displays from 'Next, we bound the ratio of probabilities' to '|E[θ⋆_i|S]| ≤ 15τ√(2n log(4d/γ))'
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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me