Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Claim 4.3 — Pr⁡[A(z)=h∣i∈S]≤2Pr⁡[A(z)=h∣i∉S]\Pr[\mathcal A(z) = h \mid i \in S] \le 2 \Pr[\mathcal A(z) = h \mid i \notin S]Pr[A(z)=h∣i∈S]≤2Pr[A(z)=h∣i∈/S]

Proved
PrivLearn.Parity.claim_4_3

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

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

Let 0<ε≤40 < \varepsilon \le 40<ε≤4, p=ε/4p = \varepsilon/4p=ε/4, let zzz be any database of size nnn, i∈[n]i \in [n]i∈[n], and crc_rcr​ any parity function. Write w(T)=p∣T∣(1−p)n−1−∣T∣w(T) = p^{|T|}(1-p)^{n-1-|T|}w(T)=p∣T∣(1−p)n−1−∣T∣ for the probability that A\mathcal AA selects exactly TTT from [n]∖{i}[n] \setminus \{i\}[n]∖{i}, and π(S)=Pr⁡[A(z)=cr∣S]\pi(S) = \Pr[\mathcal A(z) = c_r \mid S]π(S)=Pr[A(z)=cr​∣S], which is 1/∣VS∣1/|V_S|1/∣VS​∣ if r∈VSr \in V_Sr∈VS​ and 000 otherwise. Then

∑T⊆[n]∖{i}w(T) π(T∪{i})  ≤  2∑T⊆[n]∖{i}w(T) π(T).\sum_{T \subseteq [n]\setminus\{i\}} w(T)\, \pi(T \cup \{i\}) \;\le\; 2 \sum_{T \subseteq [n]\setminus\{i\}} w(T)\, \pi(T).T⊆[n]∖{i}∑​w(T)π(T∪{i})≤2T⊆[n]∖{i}∑​w(T)π(T).

The two sums are Pr⁡[A(z)=cr∣i∈S]\Pr[\mathcal A(z) = c_r \mid i \in S]Pr[A(z)=cr​∣i∈S] and Pr⁡[A(z)=cr∣i∉S]\Pr[\mathcal A(z) = c_r \mid i \notin S]Pr[A(z)=cr​∣i∈/S] up to the common factor 1/21/21/2 of step 1, so this is the paper's statement that their ratio is at most 222. It is the key estimate in the privacy proof of A\mathcal AA (Lemma 4.2).

Formalization Note The paper writes the ratio. The product form avoids division by zero; it agrees with the ratio whenever the denominator is positive, and when the denominator vanishes the paper shows the numerator vanishes too, which the product form also asserts.

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

/-- Claim 4.3, p. 15, in product form. For every database `z ∈ Dⁿ`, every index `i` and every
hypothesis `c_r`, with `p = ε/4`,
`∑_{T ⊆ [n]∖{i}} p^{|T|}(1−p)^{n−1−|T|} Pr[A(z) = c_r | S = T ∪ {i}]
  ≤ 2 ∑_{T ⊆ [n]∖{i}} p^{|T|}(1−p)^{n−1−|T|} Pr[A(z) = c_r | S = T]`,
i.e. `Pr[A(z) = c_r | i ∈ S] ≤ 2 Pr[A(z) = c_r | i ∉ S]` (the common factor `1/2` of step 1
cancels). -/
theorem claim_4_3 {d n : ℕ} (ε : ℝ) (hε : 0 < ε) (hε4 : ε ≤ 4) (z : Fin n → Example d)
    (i : Fin n) (r : Fin d → ZMod 2) :
    ∑ T ∈ (Finset.univ.erase i).powerset,
        (ε / 4) ^ T.card * (1 - ε / 4) ^ (n - 1 - T.card) * outProb z (insert i T) r ≤
      2 * ∑ T ∈ (Finset.univ.erase i).powerset,
        (ε / 4) ^ T.card * (1 - ε / 4) ^ (n - 1 - T.card) * outProb z T r := by sorry

end PrivLearn.Parity
Source
Kasiviswanathan, Lee, Nissim, Raskhodnikova and Smith, What Can We Learn Privately?, arXiv:0803.0924v3, p. 15, Claim 4.3 (proof p. 16)
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