Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 3.15 — ring decomposition w=∑j=0k[Rj(w+)−Rj(w−)]+[R∞(w+)−R∞(w−)]w=\sum_{j=0}^k[R_j(w^+)-R_j(w^-)]+[R_\infty(w^+)-R_\infty(w^-)]w=∑j=0k​[Rj​(w+)−Rj​(w−)]+[R∞​(w+)−R∞​(w−)] and 2j(Rj(w+))i∈[0,1]2^j(R_j(w^+))_i\in[0,1]2j(Rj​(w+))i​∈[0,1]

Proved
SQMeanEstimation.ring_decomposition

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

learning-theorymean-estimationp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1statistical-queries
  1. For every integer kkk and every w∈Rdw\in\mathbb R^dw∈Rd with ∣wi∣≤1|w_i|\le1∣wi​∣≤1 for all iii (in particular every www in the unit ball BqdB_q^dBqd​),
w=∑j=0k[Rj(w+)−Rj(w−)]+[R∞(w+)−R∞(w−)],w=\sum_{j=0}^{k}\big[R_j(w^+)-R_j(w^-)\big]+\big[R_\infty(w^+)-R_\infty(w^-)\big],w=j=0∑k​[Rj​(w+)−Rj​(w−)]+[R∞​(w+)−R∞​(w−)],

where R∞R_\inftyR∞​ uses the threshold 2−k−12^{-k-1}2−k−1 and the sum is empty when k<0k<0k<0. 2. For every w∈Rdw\in\mathbb R^dw∈Rd, every j∈Nj\in\mathbb Nj∈N and every coordinate iii,

0≤2j⋅(Rj(w+))i≤1.0\le 2^j\cdot(R_j(w^+))_i\le1 .0≤2j⋅(Rj​(w+))i​≤1.

Part 1 splits a point of the ball into pieces of dynamic range 222; part 2 says that ϕi(w)=2j(Rj(w+))i\phi_i(w)=2^j(R_j(w^+))_iϕi​(w)=2j(Rj​(w+))i​ is a legitimate VSTAT query with values in [0,1][0,1][0,1].

Differences from the source:

  • generalization: w ∈ B_q^d and k = ⌊log(d)/q⌋ − 2 → every w with |wᵢ| ≤ 1 for all i and every integer k; reason: ‖w‖_q ≤ 1 implies |wᵢ| ≤ 1, so the statement specializes to the paper's w and k
  • encoding: Σ_{j=0}^k with k possibly negative → ∑ over Finset.range (k + 1).toNat, empty for k < 0; reason: the paper's k is negative for small d, where the sum has no terms
  • encoding: x ∈ ℝᵈ, ‖x‖ₚ = (Σ|xᵢ|ᵖ)^{1/p} → x : Fin d → ℝ, lqNorm p x = (∑ i, |x i| ^ p) ^ (1/p) with Real.rpow; reason: Lean convention; same values (paper coordinate i is index i − 1)
Preamble
import Mathlib
import Definitions.Def_SQMeanEstimation_posPart
import Definitions.Def_SQMeanEstimation_negPart
import Definitions.Def_SQMeanEstimation_ringPart
import Definitions.Def_SQMeanEstimation_ringInf
Formal statement
namespace SQMeanEstimation

/-- **Ring decomposition of the positive and negative parts.**
Feldman, Guzmán, Vempala, arXiv:1512.09170v2, proof of Theorem 3.15, p.17: "Namely,
w = Σ_{j=0}^k [Rⱼ(w⁺) − Rⱼ(w⁻)] + [R_∞(w⁺) − R_∞(w⁻)], where k ≐ ⌊log(d)/q⌋−2" and "Note that
2ʲ·(Rⱼ(w⁺))ᵢ ∈ [0, 1] for all w and j."

1. For every integer `k` and every `w` with `|wᵢ| ≤ 1` for all `i` (in particular every `w` in
   the unit ℓq ball), `w = Σ_{j=0}^k [Rⱼ(w⁺) − Rⱼ(w⁻)] + [R_∞(w⁺) − R_∞(w⁻)]`, the sum being
   empty when `k < 0`.
2. For every `w`, every `j` and every `i`, `0 ≤ 2ʲ·(Rⱼ(w⁺))ᵢ ≤ 1`.

**Formalization Note.** The sum `Σ_{j=0}^k` is over `Finset.range (k + 1).toNat`. The statement
holds for every `k : ℤ`, in particular for the paper's `k = ⌊log₂(d)/q⌋ − 2` (`ringDepth d q`). -/
theorem ring_decomposition {d : ℕ} :
    (∀ (k : ℤ) (w : Fin d → ℝ), (∀ i, |w i| ≤ 1) →
      w = (∑ j ∈ Finset.range (k + 1).toNat, (ringPart j (posPart w) - ringPart j (negPart w)))
        + (ringInf k (posPart w) - ringInf k (negPart w))) ∧
    (∀ (w : Fin d → ℝ) (j : ℕ) (i : Fin d),
      0 ≤ (2 : ℝ) ^ j * ringPart j (posPart w) i ∧ (2 : ℝ) ^ j * ringPart j (posPart w) i ≤ 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.17
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