Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 24 — P[⟨z, θ⋆⟩ ≤ 2τd − √(2d log 1/δ)] ≤ δ in the Bernoulli model

Proved
RobustGeneralization.BernUpper.lemma24_inner_theta_lower_tail

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

bernoulli-modelconcentrationp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let (x,y)(x,y)(x,y) be one sample of the (θ⋆,τ)(\theta^\star,\tau)(θ⋆,τ)-Bernoulli model with θ⋆∈{±1}d\theta^\star\in\{\pm1\}^dθ⋆∈{±1}d, d≥1d\ge1d≥1 and 0<τ≤120<\tau\le\tfrac120<τ≤21​, and let z=xyz=xyz=xy. For every δ>0\delta>0δ>0,

P[⟨z,θ⋆⟩ ≤ 2τd−2dlog⁡(1/δ)] ≤ δ.\mathbb P\Big[\langle z,\theta^\star\rangle\ \le\ 2\tau d-\sqrt{2d\log(1/\delta)}\Big]\ \le\ \delta .P[⟨z,θ⋆⟩ ≤ 2τd−2dlog(1/δ)​] ≤ δ.

The mean of ⟨z,θ⋆⟩\langle z,\theta^\star\rangle⟨z,θ⋆⟩ is 2τd2\tau d2τd, so the lemma is a one-sided lower-tail bound for this sum of ddd independent bounded terms. It is the concentration step behind Lemma 25.

Formalization Note. The hypothesis d≥1d\ge1d≥1 is added: for d=0d=0d=0 the event reads 0≤00\le00≤0 and has probability 111, so the printed statement fails for δ<1\delta<1δ<1. For δ≥1\delta\ge1δ≥1, Lean's log⁡(1/δ)≤0\log(1/\delta)\le0log(1/δ)≤0 and ⋅\sqrt{\cdot}⋅​ of a nonpositive number is 000; the statement is then trivially true, as it is on the page. The bound τ≤12\tau\le\tfrac12τ≤21​ makes the model a probability distribution (Definition 7 needs 12−τ≥0\tfrac12-\tau\ge021​−τ≥0).

Preamble
import Mathlib
import Definitions.Def_RobustGeneralization_BernUpper_Model
Formal statement
namespace RobustGeneralization.BernUpper

/-- Schmidt et al., arXiv:1804.11285v2, p. 31, Lemma 24. For one sample `p = (x, y)` of the
`(θ⋆, τ)`-Bernoulli model with `θ⋆ = pm θ` and `z = xy = zvec p`, and every `δ > 0`,
`P[⟨z, θ⋆⟩ ≤ 2τd − √(2d log 1/δ)] ≤ δ`. The hypothesis `1 ≤ d` is added: at `d = 0` the event
is `0 ≤ 0` and has probability `1`. -/
theorem lemma24_inner_theta_lower_tail {d : ℕ} (hd : 1 ≤ d) (θ : Fin d → Bool) (τ : ℝ)
    (hτ : 0 < τ) (hτ' : τ ≤ 1 / 2) (δ : ℝ) (hδ : 0 < δ) :
    bprob θ τ (fun p => inner ℝ (zvec p) (pm θ)
        ≤ 2 * τ * d - Real.sqrt (2 * d * Real.log (1 / δ))) ≤ δ := by sorry

end RobustGeneralization.BernUpper
Source
Schmidt, Santurkar, Tsipras, Talwar, Mądry, Adversarially Robust Generalization Requires More Data, arXiv:1804.11285v2, p. 31, Lemma 24
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