Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 3.15 — level error ∥wˉ+,j−2−jv∥q≤23n1/q−1=ε′\|\bar w^{+,j}-2^{-j}v\|_q\le2^3n^{1/q-1}=\varepsilon'∥wˉ+,j−2−jv∥q​≤23n1/q−1=ε′

Proved
SQMeanEstimation.level_bound

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

learning-theorymean-estimationp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1statistical-queries

Let q∈(1,2)q\in(1,2)q∈(1,2), n>0n>0n>0, j∈Nj\in\mathbb Nj∈N, let u∈[0,1]du\in[0,1]^du∈[0,1]d with ∥u∥1≤2(j+1)q−1\|u\|_1\le2^{(j+1)q-1}∥u∥1​≤2(j+1)q−1 (eq. (2)), and let v′v'v′ be valid VSTAT(n)\mathrm{VSTAT}(n)VSTAT(n) answers for means uiu_iui​: ∣vi′−ui∣≤max⁡{1/n,ui(1−ui)/n}|v'_i-u_i|\le\max\{1/n,\sqrt{u_i(1-u_i)/n}\}∣vi′​−ui​∣≤max{1/n,ui​(1−ui​)/n​}. Let vi=vi′1{∣vi′∣≥2/n}v_i=v'_i\mathbf 1_{\{|v'_i|\ge2/n\}}vi​=vi′​1{∣vi′​∣≥2/n}​ and z=u−vz=u-vz=u−v, and let u<,u>u^<,u^>u<,u> be as in Lemma 3.16. Then:

  1. ∥z∥qq≤∥u<∥qq+n−q/2∥u>∥q/2q/2≤n1−q(2(j+3)q−3+2(j+1)q−1)≤n1−q 2(j+3)q\displaystyle\|z\|_q^q\le\|u^<\|_q^q+n^{-q/2}\|u^>\|_{q/2}^{q/2}\le n^{1-q}\big(2^{(j+3)q-3}+2^{(j+1)q-1}\big)\le n^{1-q}\,2^{(j+3)q}∥z∥qq​≤∥u<∥qq​+n−q/2∥u>∥q/2q/2​≤n1−q(2(j+3)q−3+2(j+1)q−1)≤n1−q2(j+3)q;
  2. for every wˉ∈Rd\bar w\in\mathbb R^dwˉ∈Rd with u=2jwˉu=2^j\bar wu=2jwˉ,
∥wˉ−2−jv∥q=2−j∥z∥q≤23 n1/q−1;\|\bar w-2^{-j}v\|_q=2^{-j}\|z\|_q\le2^3\,n^{1/q-1};∥wˉ−2−jv∥q​=2−j∥z∥q​≤23n1/q−1;
  1. for every ε′>0\varepsilon'>0ε′>0, if n=(ε′/8)−pn=(\varepsilon'/8)^{-p}n=(ε′/8)−p with p=q/(q−1)p=q/(q-1)p=q/(q−1), then 23n1/q−1=ε′2^3n^{1/q-1}=\varepsilon'23n1/q−1=ε′.

So each level jjj of the positive (and, symmetrically, negative) part is estimated to ℓq\ell_qℓq​ accuracy ε′\varepsilon'ε′ with ddd queries to VSTAT((ε′/8)−p)\mathrm{VSTAT}((\varepsilon'/8)^{-p})VSTAT((ε′/8)−p).

Differences from the source:

  • generalization: u = 2ʲ·w̄^{+,j}, v′ the VSTAT(n) answers, w̄^{+,j} and n = (ε′/8)^{−p} fixed by the proof → any u ∈ [0,1]ᵈ with ∑ uᵢ ≤ 2^{(j+1)q−1}, any valid v′, any m̄ with u = 2ʲ·m̄, any n > 0; the identity 2³n^{1/q−1} = ε′ for every ε′ > 0 with n = (ε′/8)^{−q/(q−1)}; reason: the paper's objects satisfy these hypotheses (p.17, eq. (2), Definition 2.1), so the statement specializes to the source
  • encoding: ‖·‖q^q, ‖·‖{q/2}^{q/2}; p → ∑ |·|^q, ∑ |·|^(q/2); p written as q/(q−1); reason: the definitions; p is the conjugate exponent of q (§2, p.10)
  • encoding: VSTAT(n) with n an integer → n : ℝ with 0 < n; reason: the paper's n = (ε′/8)^{−p} is not an integer
Preamble
import Mathlib
import Definitions.Def_SQMeanEstimation_lqNorm
import Definitions.Def_SQMeanEstimation_vstatTol
import Definitions.Def_SQMeanEstimation_zeroSmall
import Definitions.Def_SQMeanEstimation_lowPart
import Definitions.Def_SQMeanEstimation_highPart
Formal statement
namespace SQMeanEstimation

/-- **Error of one level of the estimate.**
Feldman, Guzmán, Vempala, arXiv:1512.09170v2, p.18: "Substituting eq. (3) and eq. (4) into
Lemma 3.16 we get ‖z‖_q^q ≤ ‖u^<‖_q^q + n^{−q/2} · ‖u^>‖_{q/2}^{q/2} ≤ n^{1−q} · (2^{(j+3)q−3} +
2^{(j+1)q−1}) ≤ n^{1−q} · 2^{(j+3)q}. Let w̃^{+,j} ≐ 2^{−j}v. We have ‖w̄^{+,j} − 2^{−j}v‖_q =
2^{−j} · ‖z‖_q ≤ 2³ · n^{1/q−1} = ε′." Here `n = (ε′/8)^{−p}`, `p = q/(q−1)` (p.17).

Hypotheses: `q ∈ (1,2)`, `n > 0`, `j ∈ ℕ`, `u ∈ [0,1]ᵈ` with `Σuᵢ ≤ 2^{(j+1)q−1}` (eq. (2)),
answers `v′` valid for VSTAT(n), `v = zeroSmall n v′`, `z = u − v`. Conclusions:
1. `Σ|zᵢ|^q ≤ Σ|u^<_i|^q + n^{−q/2}·Σ|u^>_i|^{q/2} ≤ n^{1−q}(2^{(j+3)q−3} + 2^{(j+1)q−1})
   ≤ n^{1−q}·2^{(j+3)q}`;
2. for every `m̄` with `u = 2ʲ·m̄`: `‖m̄ − 2^{−j}v‖_q = 2^{−j}‖z‖_q ≤ 2³·n^{1/q−1}`;
3. for every `ε′ > 0`, if `n = (ε′/8)^{−q/(q−1)}` then `2³·n^{1/q−1} = ε′`.

**Formalization Note.** `‖·‖_q^q` is `Σ |·|^q`; `‖·‖_q` is `lqNorm q`. -/
theorem level_bound {d : ℕ} (q n : ℝ) (hq1 : 1 < q) (hq2 : q < 2) (hn : 0 < n) (j : ℕ)
    (u v' : Fin d → ℝ) (hu0 : ∀ i, 0 ≤ u i) (hu1 : ∀ i, u i ≤ 1)
    (hsum : ∑ i, u i ≤ (2 : ℝ) ^ (((j : ℝ) + 1) * q - 1))
    (hv' : ∀ i, |v' i - u i| ≤ vstatTol n (u i)) :
    (∑ i, |u i - zeroSmall n v' i| ^ q ≤
        ∑ i, |lowPart n u i| ^ q + n ^ (-q / 2) * ∑ i, |highPart n u i| ^ (q / 2) ∧
      ∑ i, |lowPart n u i| ^ q + n ^ (-q / 2) * ∑ i, |highPart n u i| ^ (q / 2) ≤
        n ^ (1 - q) * ((2 : ℝ) ^ (((j : ℝ) + 3) * q - 3) + (2 : ℝ) ^ (((j : ℝ) + 1) * q - 1)) ∧
      n ^ (1 - q) * ((2 : ℝ) ^ (((j : ℝ) + 3) * q - 3) + (2 : ℝ) ^ (((j : ℝ) + 1) * q - 1)) ≤
        n ^ (1 - q) * (2 : ℝ) ^ (((j : ℝ) + 3) * q)) ∧
    (∀ mbar : Fin d → ℝ, u = (2 : ℝ) ^ j • mbar →
      lqNorm q (mbar - (2 : ℝ) ^ (-(j : ℤ)) • zeroSmall n v') =
          (2 : ℝ) ^ (-(j : ℤ)) * lqNorm q (u - zeroSmall n v') ∧
        (2 : ℝ) ^ (-(j : ℤ)) * lqNorm q (u - zeroSmall n v') ≤ 2 ^ 3 * n ^ (1 / q - 1)) ∧
    (∀ ε' : ℝ, 0 < ε' → n = (ε' / 8) ^ (-(q / (q - 1))) → 2 ^ 3 * n ^ (1 / q - 1) = ε')
    := by sorry

end SQMeanEstimation
Source
Feldman, Guzmán, Vempala, Statistical Query Algorithms for Mean Vector Estimation and Stochastic Convex Optimization, arXiv:1512.09170v2, proof of Theorem 3.15, p.18, displays after "Substituting eq. (3) and eq. (4) into Lemma 3.16"
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

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