Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 3.8 [AB99, Vap98] — a database of size O(VCDIM(C) log(1/α)/α²) approximates every database on C

Proved
PrivateRelease.NetMechanism.lemma_3_8

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

counting-queriesp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1uniform-convergencevc-dimension

There is an absolute constant c0>0c_0>0c0​>0 with the following property. Let XXX be any data universe, CCC a class of predicates φ:X→{0,1}\varphi:X\to\{0,1\}φ:X→{0,1} of finite VC-dimension d≥1d\ge1d≥1, and 0<α≤120<\alpha\le\tfrac120<α≤21​. For every (nonempty) database D∈X∗D\in X^*D∈X∗ there is a database D′∈X∗D'\in X^*D′∈X∗ with

∣D′∣ ≤ c0 d log⁡(1/α)α2|D'|\ \le\ c_0\,\frac{d\,\log(1/\alpha)}{\alpha^2}∣D′∣ ≤ c0​α2dlog(1/α)​

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.

This is the uniform-convergence (ε-approximation) property of classes of finite VC-dimension, which the paper cites from Anthony–Bartlett and Vapnik; it replaces Lemma 3.7 for infinite classes.

Formalization Note The paper writes ∣D′∣=O(VCDIM(C)log⁡(1/α)/α2)|D'|=O(\mathrm{VCDIM}(C)\log(1/\alpha)/\alpha^2)∣D′∣=O(VCDIM(C)log(1/α)/α2); the O(⋅)O(\cdot)O(⋅) is an absolute constant c0c_0c0​ quantified before the universe, the class and α\alphaα, and the size is "at most". The VC-dimension is the platform's HighDimProb.Chaining.vcDim. The cases d=0d=0d=0 (the bound is 000, while D′D'D′ is nonempty) and α>12\alpha>\tfrac12α>21​ (where log⁡(1/α)\log(1/\alpha)log(1/α) may be ≤0\le0≤0) are excluded. Logarithms are natural.

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

/-- Lemma 3.8 ([AB99, Vap98], p. 10): there is an absolute constant `c₀ > 0` such that for every
data universe `X`, every class `C` of predicates of finite VC-dimension `d ≥ 1`, every
`0 < α ≤ 1/2` and every database `D ∈ X*`, some database `D′` of size at most
`c₀ d log(1/α)/α²` has `|Q_φ(D) − Q_φ(D′)| ≤ α` for every `φ ∈ C`. -/
theorem lemma_3_8 :
    ∃ c₀ : ℝ, 0 < c₀ ∧ ∀ (X : Type) (C : Set (X → Bool)) (d : ℕ) (α : ℝ),
      HighDimProb.Chaining.vcDim C = (d : ℕ∞) → 1 ≤ d → 0 < α → α ≤ 1 / 2 →
      ∀ D : Database X, ∃ D' : Database X,
        (Multiset.card D'.1 : ℝ) ≤ c₀ * d * Real.log (1 / α) / α ^ 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. 10, Lemma 3.8 (citing Anthony–Bartlett 1999, Vapnik 1998)
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