Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4.2 — the learner A\mathcal AA is ε-differentially private (0 < ε ≤ 1/2)

Proved
PrivLearn.Parity.lemma_4_2

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

differential-privacyp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1parity

Let d,n∈Nd, n \in \mathbb Nd,n∈N and 0<ε≤1/20 < \varepsilon \le 1/20<ε≤1/2. The algorithm A(⋅,ε)\mathcal A(\cdot, \varepsilon)A(⋅,ε), on databases of nnn labeled examples in {0,1}d×{0,1}\{0,1\}^d \times \{0,1\}{0,1}d×{0,1}, is ε\varepsilonε-differentially private: for all neighboring databases z,z′z, z'z,z′ and every set EEE of outputs,

Pr⁡[A(z,ε)∈E]≤eεPr⁡[A(z′,ε)∈E].\Pr[\mathcal A(z,\varepsilon) \in E] \le e^{\varepsilon} \Pr[\mathcal A(z',\varepsilon) \in E].Pr[A(z,ε)∈E]≤eεPr[A(z′,ε)∈E].

Privacy holds for every database, including databases no parity function labels consistently.

Formalization Note The paper states the lemma for all ε\varepsilonε; its proof uses ε≤1/2\varepsilon \le 1/2ε≤1/2 ("since p=ε/4p = \varepsilon/4p=ε/4 and ε≤1/2\varepsilon \le 1/2ε≤1/2"), and the step 2p/(1−p)+1≤ε+12p/(1-p) + 1 \le \varepsilon + 12p/(1−p)+1≤ε+1 fails for larger ε\varepsilonε. We state it for 0<ε≤1/20 < \varepsilon \le 1/20<ε≤1/2. The paper checks the pointwise inequalities (2) and (3); on the finite output space they are equivalent to the set form stated here.

Preamble
import Mathlib
import Definitions.Def_PrivLearn_Generic_Privacy
import Definitions.Def_PrivLearn_Parity_Learner
Formal statement
namespace PrivLearn.Parity

/-- Lemma 4.2 (Privacy of A), p. 15. For `0 < ε ≤ 1/2` (the range the paper's proof uses) the
algorithm `A(·, ε)` is ε-differentially private, on databases of any size `n` over
`{0,1}^d × {0,1}`, labeled consistently or not. -/
theorem lemma_4_2 (d n : ℕ) (ε : ℝ) (hε : 0 < ε) (hε2 : ε ≤ 1 / 2) :
    PrivLearn.Generic.IsDP (fun z : Fin n → Example d => algA ε z) ε := by sorry

end PrivLearn.Parity
Source
Kasiviswanathan, Lee, Nissim, Raskhodnikova and Smith, What Can We Learn Privately?, arXiv:0803.0924v3, p. 15, Lemma 4.2
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

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