Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Claim 5.9 — an SQ algorithm with ≤ 2t·e^ε expected queries of tolerance β/(3e^{2ε}t) simulates any noninteractive ε-local algorithm up to statistical difference β

Proved
PrivLearn.SQSim.claim_5_9

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

differential-privacylocal-modelp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1statistical-queries

Let DDD be a measurable space with a point u0u_0u0​, let ε>0\varepsilon>0ε>0, 0<β≤10<\beta\le10<β≤1, and let nnn and t≥1t\ge1t≥1 be integers. For every noninteractive ε\varepsilonε-local algorithm AAA on databases in DnD^nDn making ttt queries to its LR oracle, there exists an SQ algorithm BBB, depending only on AAA and the parameters, such that:

  1. every query of BBB has a measurable [−1,1][-1,1][−1,1]-valued query function and tolerance τ=β/(3e2εt)\tau=\beta/(3e^{2\varepsilon}t)τ=β/(3e2εt);
  2. for every probability distribution PPP on DDD and every valid SQ oracle for PPP (answers within τ\tauτ of the true expectation, chosen adversarially and adaptively), BBB makes in expectation at most 2t eε2t\,e^{\varepsilon}2teε queries, and
SD(output law of B, output law of A on z∼Pn)≤β.\mathrm{SD}\bigl(\text{output law of }B,\ \text{output law of }A\text{ on }z\sim P^n\bigr)\le\beta .SD(output law of B, output law of A on z∼Pn)≤β.

This is the noninteractive half of Lemma 5.8: local randomizers applied to i.i.d. data can be replaced by statistical queries, with a constant-factor overhead eεe^{\varepsilon}eε in the number of queries.

Formalization Note. The paper states "in expectation makes t⋅eεt\cdot e^{\varepsilon}t⋅eε queries"; its proof gives at most 1+φ1−φeε≤2eε\frac{1+\varphi}{1-\varphi}e^{\varepsilon}\le2e^{\varepsilon}1−φ1+φ​eε≤2eε iterations, one query each, per simulated randomizer, so the statement uses the bound 2t eε2t\,e^{\varepsilon}2teε. The paper's τ=Θ(β/(e2εt))\tau=\Theta(\beta/(e^{2\varepsilon}t))τ=Θ(β/(e2εt)) is witnessed by the proof's exact choice β/(3e2εt)\beta/(3e^{2\varepsilon}t)β/(3e2εt). The paper calls BBB nonadaptive; that qualifier is not formalized (the simulation decides from each answer whether to stop and so which randomizer the next query belongs to, so it does not prepare its queries before receiving answers in the sense of Definition 5.5). The hypotheses β≤1\beta\le1β≤1, t≥1t\ge1t≥1 (so that φ≤1/3\varphi\le1/3φ≤1/3 and τ\tauτ is defined) and ε>0\varepsilon>0ε>0 (the query divides by eε−e−εe^{\varepsilon}-e^{-\varepsilon}eε−e−ε) are implicit in the paper. BBB is chosen before PPP, so it cannot depend on the distribution, and the bounds hold for every valid oracle.

Preamble
import Mathlib
import Definitions.Def_PrivLearn_SQSim_Privacy
import Definitions.Def_PrivLearn_SQSim_LocalAlg
import Definitions.Def_PrivLearn_SQSim_SQAlg
import Definitions.Def_PrivLearn_SQSim_Estimate

open MeasureTheory
Formal statement
namespace PrivLearn.SQSim

/-- Claim 5.9 (p. 22), with the expected query count the proof gives (`≤ 2 t e^ε`, p. 23) and
without the "nonadaptive" qualifier on `B`: for every noninteractive ε-local algorithm `A` making
`t` queries to `LR_z` there is an SQ algorithm `B`, built from `A` alone, whose queries are
`[−1, 1]`-valued with tolerance `τ = β/(3e^{2ε}t)`, such that for every distribution `P` and every
valid SQ oracle for `P`, `B` makes at most `2 t e^ε` queries in expectation and the statistical
difference between `B`'s output distribution and `A`'s output distribution on a database of `n`
i.i.d. draws from `P` is at most `β`. -/
theorem claim_5_9 :
    ∀ (Dom W Out : Type) [MeasurableSpace Dom] (n t : ℕ) (ε β : ℝ) (u₀ : Dom),
      0 < ε → 0 < β → β ≤ 1 → 1 ≤ t →
      ∀ A : LocalAlg Dom W Out n t ε, A.IsNoninteractive →
        ∃ (σ : Type) (B : SQAlg Dom Out σ),
          B.AsksOnly (simTolerance ε β t) ∧
          ∀ (P : Measure Dom) [IsProbabilityMeasure P] (O : List σ → ℝ),
            B.IsValidOracle P O →
              B.expectedQueries O ≤ ENNReal.ofReal (2 * t * Real.exp ε) ∧
              statDiff (B.outputLaw O) (A.iidOutputLaw P) ≤ ENNReal.ofReal β := by sorry

end PrivLearn.SQSim
Source
Kasiviswanathan, Lee, Nissim, Raskhodnikova and Smith, What Can We Learn Privately?, arXiv:0803.0924v3, p. 22, Claim 5.9 (proof pp. 22–23)
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