Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 3.7 — a database of size ⌈log|C|/α²⌉ approximates every database on a finite class C

Proved
PrivateRelease.NetMechanism.lemma_3_7

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

counting-queriesp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1query-releasesampling

Let XXX be a data universe and CCC a finite class of at least three predicates φ:X→{0,1}\varphi:X\to\{0,1\}φ:X→{0,1}, and let α>0\alpha>0α>0. For every (nonempty) database D∈X∗D\in X^*D∈X∗ there is a database D′∈X∗D'\in X^*D′∈X∗ of size

∣D′∣=⌈log⁡∣C∣α2⌉|D'|=\left\lceil\frac{\log|C|}{\alpha^2}\right\rceil∣D′∣=⌈α2log∣C∣​⌉

such that ∣Qφ(D)−Qφ(D′)∣≤α|Q_\varphi(D)-Q_\varphi(D')|\le\alpha∣Qφ​(D)−Qφ​(D′)∣≤α for every φ∈C\varphi\in Cφ∈C.

The size does not depend on ∣D∣|D|∣D∣; this is what bounds the size of α-nets for finite classes (Theorem 3.6).

Formalization Note The paper's size log⁡∣C∣/α2\log|C|/\alpha^2log∣C∣/α2 must be an integer and is rounded up. The paper's proof needs ∣C∣>2|C|>2∣C∣>2 ("so long as ∣C∣>2|C|>2∣C∣>2"), which is the hypothesis ∣C∣≥3|C|\ge3∣C∣≥3; for ∣C∣=1|C|=1∣C∣=1 the size would be 000. Logarithms are natural.

Preamble
import Mathlib
import Definitions.Def_PrivateRelease_NetMechanism_Queries
Formal statement
namespace PrivateRelease.NetMechanism

/-- Lemma 3.7 (p. 9): for any database `D ∈ X*` and any finite class `C` of at least three
counting queries, there is a database `D′` of size `⌈log|C|/α²⌉` with
`|Q_φ(D) − Q_φ(D′)| ≤ α` for every `φ ∈ C`. -/
theorem lemma_3_7 {X : Type} (C : Finset (X → Bool)) (α : ℝ) (hC : 3 ≤ C.card) (hα : 0 < α)
    (D : Database X) :
    ∃ D' : Database X, Multiset.card D'.1 = ⌈Real.log (C.card : ℝ) / α ^ 2⌉₊ ∧
      ∀ φ ∈ C, |countQ φ D.1 - countQ φ D'.1| ≤ α := by sorry

end PrivateRelease.NetMechanism
Source
Blum, Ligett, Roth, A Learning Theory Approach to Non-Interactive Database Privacy, arXiv:1109.2229v1 (2011), p. 9, Lemma 3.7
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

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