Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4.1 — Hypergeometric tail

Proved
LinearSetReconciliation327.Main.lemma_4_1

by mikedeng1 · Nov 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

linear-sketchp2o-batch-stoc27ap2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1set-reconciliationsparse-recovery

Let SSS be a uniform KKK-subset of [N][N][N], I⊆[N]I\subseteq[N]I⊆[N], Z=∣S∩I∣Z=|S\cap I|Z=∣S∩I∣ and μ=K∣I∣/N>0\mu=K|I|/N>0μ=K∣I∣/N>0. For all t≥0t\ge0t≥0, Pr⁡[Z≥μ+t]≤exp⁡(−t2/(2(μ+t)))\Pr[Z\ge\mu+t]\le\exp(-t^2/(2(\mu+t)))Pr[Z≥μ+t]≤exp(−t2/(2(μ+t))), and for all k≥2μk\ge2\muk≥2μ, Pr⁡[Z≥k]≤e−k/8\Pr[Z\ge k]\le e^{-k/8}Pr[Z≥k]≤e−k/8.

Differences from the source:

  • encoding: 0-based or 1-based coordinates [N] → 0-based Fin N or range N, with supports as finite sets and vector addition as symmetric difference; reason: the source identifies subsets with characteristic vectors and any injection relabels the coordinates
  • generalization: k in the claim for k ≥ 2µ (integer in its uses) → every real k ≥ 2µ; reason: integer k is a special case and the same argument applies
Preamble
import Mathlib
import Definitions.Def_LinearSetReconciliation327_Main_Basic

open scoped ENNReal
open Finset
Formal statement
namespace LinearSetReconciliation327.Main

open Classical in
/-- Lemma 4.1 (Chernoff bound for hypergeometric random variables), PDF p.16 (printed p.15). `S` is
uniform among the `K`-subsets of `[N]`. -/
theorem lemma_4_1 (N K : ℕ) (hK : K ≤ N) (I : Finset (Fin N))
    (hμ : 0 < (K : ℝ) * I.card / N) :
    let μ : ℝ := (K : ℝ) * I.card / N
    let Pr : (Finset (Fin N) → Prop) → ℝ := fun E =>
      (((powersetCard K (univ : Finset (Fin N))).filter E).card : ℝ) /
        ((powersetCard K (univ : Finset (Fin N))).card : ℝ)
    (∀ t : ℝ, 0 ≤ t →
      Pr (fun S => μ + t ≤ ((S ∩ I).card : ℝ)) ≤ Real.exp (-(t ^ 2 / (2 * (μ + t))))) ∧
    (∀ k : ℝ, 2 * μ ≤ k → Pr (fun S => k ≤ ((S ∩ I).card : ℝ)) ≤ Real.exp (-(k / 8))) := by sorry

end LinearSetReconciliation327.Main
Source
Tianren Liu, Rui Xu, Tong Yang, Kangyang Zhou, STOC 2027 submission #327 (October 2026), Lemma 4.1, PDF p.16 (printed p.15)
Human review
  • Endorsed by Shuze Chen · Nov 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Nov 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me