Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 25 — P[⟨ŵ, θ⋆⟩ ≤ τ√d] ≤ exp(−τ²d/2) for ŵ = z/‖z‖₂

Proved
RobustGeneralization.BernUpper.lemma25_unit_inner_theta_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 and 0<τ≤120<\tau\le\tfrac120<τ≤21​, let z=xyz=xyz=xy, and let w^=z/∥z∥2\hat w=z/\|z\|_2w^=z/∥z∥2​ be the unit vector in the direction of zzz. Then

P[⟨w^,θ⋆⟩ ≤ τd] ≤ exp⁡ ⁣(−τ2d2).\mathbb P\Big[\langle\hat w,\theta^\star\rangle\ \le\ \tau\sqrt d\Big]\ \le\ \exp\!\Big(-\frac{\tau^2 d}{2}\Big).P[⟨w^,θ⋆⟩ ≤ τd​] ≤ exp(−2τ2d​).

The lemma says that the direction learned from a single sample is, with high probability, well aligned with the true mean direction θ⋆\theta^\starθ⋆; Theorem 27 converts this alignment into a classification-error bound.

Formalization Note. τ≤12\tau\le\tfrac12τ≤21​ is the standing restriction that makes the model a probability distribution. When d=0d=0d=0, w^\hat ww^ is 000 in Lean and both sides equal 111.

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

/-- Schmidt et al., arXiv:1804.11285v2, p. 31, Lemma 25. For one sample `p = (x, y)` of the
`(θ⋆, τ)`-Bernoulli model with `θ⋆ = pm θ`, `z = xy` and the unit vector `ŵ = z / ‖z‖₂ = unitZ p`,
`P[⟨ŵ, θ⋆⟩ ≤ τ√d] ≤ exp(−τ²d/2)`. -/
theorem lemma25_unit_inner_theta_tail {d : ℕ} (θ : Fin d → Bool) (τ : ℝ)
    (hτ : 0 < τ) (hτ' : τ ≤ 1 / 2) :
    bprob θ τ (fun p => inner ℝ (unitZ p) (pm θ) ≤ τ * Real.sqrt d)
      ≤ Real.exp (-(τ ^ 2 * d / 2)) := by sorry

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