Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Appendix A.0.1, Claim — ℙ(X ∈ B) = p_B for X ∼ 𝒩(x, σ²I)

Proved
Cohen2019.Tight.prob_X_mem_B

by mikedeng1 · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

gaussianp2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1randomized-smoothing

Let σ>0\sigma>0σ>0, x∈Rdx\in\mathbb R^dx∈Rd, δ∈Rd\delta\in\mathbb R^dδ∈Rd with δ≠0\delta\ne0δ=0, and 0<pB‾<10<\overline{p_B}<10<pB​​<1. Let X∼N(x,σ2I)X\sim\mathcal N(x,\sigma^2I)X∼N(x,σ2I) and B={z:δT(z−x)≥σ∥δ∥Φ−1(1−pB‾)}B=\{z:\delta^T(z-x)\ge\sigma\|\delta\|\Phi^{-1}(1-\overline{p_B})\}B={z:δT(z−x)≥σ∥δ∥Φ−1(1−pB​​)}. Then

P(X∈B)=pB‾.\mathbb P(X\in B)=\overline{p_B}.P(X∈B)=pB​​.

The half-space BBB is calibrated so that the worst-case classifier puts exactly the allowed mass pB‾\overline{p_B}pB​​ on the runner-up class cBc_BcB​.

Formalization Note. δ≠0\delta\ne0δ=0 and 0<pB‾<10<\overline{p_B}<10<pB​​<1 are added. The paper's proof recalls BBB with "≤\le≤" and writes P(X∈A)\mathbb P(X\in A)P(X∈A) in its first line; both are misprints, and BBB is the set defined on p. 14.

Preamble
import Mathlib
import Definitions.Def_Cohen2019_Tight_Model
import Definitions.Def_Cohen2019_Tight_HalfSpaces

open MeasureTheory ProbabilityTheory
Formal statement
namespace Cohen2019.Tight

/-- Cohen, Rosenfeld, Kolter, arXiv:1902.02918v2, Appendix A.0.1, Claim `ℙ(X ∈ B) = p̄B`, p. 15:
for `X ∼ 𝒩(x, σ²I)`, the half-space `B = {z : δᵀ(z − x) ≥ σ‖δ‖Φ⁻¹(1 − p̄B)}` has probability
`p̄B`. (The proof on p. 15 recalls `B` with `≤` and writes `ℙ(X ∈ A)` in its first line; both
are misprints, and `B` is the set defined on p. 14.)

**Formalization Note.** The hypotheses `δ ≠ 0` and `0 < p̄B < 1` are added, as for
`prob_X_mem_A`. -/
theorem prob_X_mem_B {d : ℕ} (x δ : Space d) (σ pB : ℝ) (hσ : 0 < σ) (hδ : δ ≠ 0)
    (hpB0 : 0 < pB) (hpB1 : pB < 1) :
    (gaussNoise x σ (setB x δ σ pB)).toReal = pB := by sorry

end Cohen2019.Tight
Source
Cohen, Rosenfeld, Kolter, Certified Adversarial Robustness via Randomized Smoothing, arXiv:1902.02918v2, Appendix A.0.1, Claim ℙ(X ∈ B) = p_B, p. 15
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 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