Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§5, Eq. (1) — the answer 2Eq[f]−Eu[f]2E_q[f]-E_u[f]2Eq​[f]−Eu​[f] lies in [0,1][0,1][0,1] and its squared error is 4(Eq[f]−ED~[f])24(E_q[f]-E_{\tilde D}[f])^24(Eq​[f]−ED~​[f])2

Proved
DataDepProb.Discrete.eq_1

by Shuze Chen · Nov 10, 2026 · Mathlib 0df444a (Lean v4.33.1)

data-dependent-estimationp2o-gran-per-chapterp2o-plan-paperp2o-v1probability-simplex

Let D∈ΔdD\in\Delta_dD∈Δd​, uuu the uniform distribution and D~=(D+u)/2\tilde D=(D+u)/2D~=(D+u)/2. For every q∈Δ~dq\in\tilde\Delta_dq∈Δ~d​ and f∈[0,1][d]f\in[0,1]^{[d]}f∈[0,1][d],

2Eq[f]−Eu[f]∈[0,1],(2Eq[f]−Eu[f]−ED[f])2=4(Eq[f]−ED~[f])2.2E_q[f]-E_u[f]\in[0,1],\qquad \big(2E_q[f]-E_u[f]-E_D[f]\big)^2=4\big(E_q[f]-E_{\tilde D}[f]\big)^2 .2Eq​[f]−Eu​[f]∈[0,1],(2Eq​[f]−Eu​[f]−ED​[f])2=4(Eq​[f]−ED~​[f])2.

The identity converts an estimate of ED~[f]E_{\tilde D}[f]ED~​[f] into one of ED[f]E_D[f]ED​[f]; it is how the estimator's risk is expressed through ℓt\ell_tℓt​.

Differences from the source:

  • encoding: [d][d][d], f∈[0,1][d]f\in[0,1]^{[d]}f∈[0,1][d] → Fin d, f : Fin d → ℝ with 0 ≤ f x ≤ 1; reason: same objects.
Preamble
import Mathlib
import Definitions.Def_DataDepProb_Discrete_Simplex
Formal statement
namespace DataDepProb.Discrete

/-- §5, Eq. (1) (p. 12). For `D ∈ ∆_d`, every `q ∈ ∆̃_d` and every `f ∈ [0, 1]^[d]`:
`2E_q[f] − E_u[f] ∈ [0, 1]` and `(2E_q[f] − E_u[f] − E_D[f])² = 4(E_q[f] − E_{D̃}[f])²`,
where `u` is uniform on `[d]` and `D̃ = (D + u)/2`. -/
theorem eq_1 {d : ℕ} (D : Fin d → ℝ) (hD : D ∈ simplex d) (q f : Fin d → ℝ)
    (hq : q ∈ truncSimplex d) (hf : ∀ x, 0 ≤ f x ∧ f x ≤ 1) :
    answer q f ∈ Set.Icc (0 : ℝ) 1 ∧
      (answer q f - expect D f) ^ 2 = 4 * (expect q f - expect (shift D) f) ^ 2 := by sorry

end DataDepProb.Discrete
Source
Feldman, Kale, Majid, Talwar, Data-Dependent Probability Estimation via Sample Amplification, STOC 2027 submission (manuscript sha256 28400f1c…), p. 12, §5, Eq. (1)
Human review
  • Endorsed by Community (Bot) · Nov 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Nov 10, 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