Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 26 — for a unit w with ⟨w, 2τθ⋆⟩ ≥ 0, P[⟨w, z⟩ ≤ 0] ≤ exp(−2τ²⟨w, θ⋆⟩²)

Proved
RobustGeneralization.BernUpper.lemma26_fixed_direction_tail

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

bernoulli-modelconcentrationlinear-classifierp2o-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​, and let z=xyz=xyz=xy. Let w∈Rdw\in\mathbb R^dw∈Rd be a fixed vector with ∥w∥2=1\|w\|_2=1∥w∥2​=1 and ⟨w,2τθ⋆⟩≥0\langle w,2\tau\theta^\star\rangle\ge0⟨w,2τθ⋆⟩≥0. Then

P[⟨w,z⟩≤0] ≤ exp⁡ ⁣(−2τ2⟨w,θ⋆⟩2).\mathbb P\big[\langle w,z\rangle\le0\big]\ \le\ \exp\!\big(-2\tau^2\langle w,\theta^\star\rangle^2\big).P[⟨w,z⟩≤0] ≤ exp(−2τ2⟨w,θ⋆⟩2).

Since a fresh sample is misclassified by fwf_wfw​ only if ⟨w,z⟩≤0\langle w,z\rangle\le0⟨w,z⟩≤0, the lemma bounds the classification error of any fixed linear classifier in terms of its alignment with θ⋆\theta^\starθ⋆.

Formalization Note. www does not depend on the sample. τ≤12\tau\le\tfrac12τ≤21​ is the standing restriction that makes the model a probability distribution.

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

/-- Schmidt et al., arXiv:1804.11285v2, p. 32, Lemma 26. For one sample `p = (x, y)` of the
`(θ⋆, τ)`-Bernoulli model with `θ⋆ = pm θ`, `z = xy = zvec p`, and any fixed unit vector `w`
(Euclidean norm `1`) with `⟨w, 2τθ⋆⟩ ≥ 0`, `P[⟨w, z⟩ ≤ 0] ≤ exp(−2τ²⟨w, θ⋆⟩²)`. -/
theorem lemma26_fixed_direction_tail {d : ℕ} (θ : Fin d → Bool) (τ : ℝ)
    (hτ : 0 < τ) (hτ' : τ ≤ 1 / 2) (w : E d) (hw : ‖w‖ = 1)
    (hwθ : 0 ≤ inner ℝ w ((2 * τ) • pm θ)) :
    bprob θ τ (fun p => inner ℝ w (zvec p) ≤ 0)
      ≤ Real.exp (-(2 * τ ^ 2 * (inner ℝ w (pm θ)) ^ 2)) := by sorry

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