Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4.2 — McDiarmid extension for a uniform injection

Proved
LinearSetReconciliation327.Main.lemma_4_2

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

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

Let π:[D]↪[N]\pi:[D]\hookrightarrow[N]π:[D]↪[N] be a uniform injection independent of mutually independent R1,…,RbR_1,\dots,R_bR1​,…,Rb​ with arbitrary laws on arbitrary measurable spaces, and F(π,R)F(\pi,R)F(π,R) real-valued, measurable in RRR. If ∣F(τ∘π,R)−F(π,R)∣≤Lp|F(\tau\circ\pi,R)-F(\pi,R)|\le L_p∣F(τ∘π,R)−F(π,R)∣≤Lp​ for every transposition τ\tauτ of [N][N][N], ∣F(π,R′)−F(π,R)∣≤Lr|F(\pi,R')-F(\pi,R)|\le L_r∣F(π,R′)−F(π,R)∣≤Lr​ whenever R,R′R,R'R,R′ differ in one coordinate, and DLp2+bLr2>0DL_p^2+bL_r^2>0DLp2​+bLr2​>0, then for all t>0t>0t>0, Pr⁡[F−EF≥t]≤exp⁡(−2t2/(DLp2+bLr2))\Pr[F-\mathbb EF\ge t]\le\exp(-2t^2/(DL_p^2+bL_r^2))Pr[F−EF≥t]≤exp(−2t2/(DLp2​+bLr2​)).

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
  • encoding: mutually independent random variables R_i and π → product law of the laws μ_i, with π uniform and averaged explicitly; reason: a mutually independent family has exactly this joint law; F has an integral because bounded differences bound F(π,·)
Preamble
import Mathlib
import Definitions.Def_LinearSetReconciliation327_Main_Basic

open scoped ENNReal
open Finset
Formal statement
namespace LinearSetReconciliation327.Main

/-- Lemma 4.2 (An extension of McDiarmid's inequality), PDF pp.16–17 (printed pp.15–16). The law of
`(R_1, …, R_b)` is the product of the laws `μ i`, which is mutual independence, and `π` is uniform
and independent of it, so `Pr` and `E` average over `π` an integral over `R`. -/
theorem lemma_4_2 (D N b : ℕ) (hDN : D ≤ N)
    (E : Fin b → Type) [∀ i, MeasurableSpace (E i)]
    (μ : ∀ i, MeasureTheory.Measure (E i)) [∀ i, MeasureTheory.IsProbabilityMeasure (μ i)]
    (F : (Fin D ↪ Fin N) → (∀ i, E i) → ℝ) (hF : ∀ π, Measurable (F π))
    (Lp Lr : ℝ) (hLp : 0 ≤ Lp) (hLr : 0 ≤ Lr)
    (hp : ∀ (π : Fin D ↪ Fin N) (R : ∀ i, E i) (a c : Fin N),
      |F (π.trans (Equiv.swap a c).toEmbedding) R - F π R| ≤ Lp)
    (hr : ∀ (π : Fin D ↪ Fin N) (R R' : ∀ i, E i) (i : Fin b), (∀ i' , i' ≠ i → R i' = R' i') →
      |F π R' - F π R| ≤ Lr)
    (hpos : 0 < (D : ℝ) * Lp ^ 2 + (b : ℝ) * Lr ^ 2) (t : ℝ) (ht : 0 < t) :
    let P := MeasureTheory.Measure.pi μ
    let card : ℝ := Fintype.card (Fin D ↪ Fin N)
    let EF : ℝ := (∑ π : Fin D ↪ Fin N, ∫ R, F π R ∂P) / card
    (∑ π : Fin D ↪ Fin N, (P {R | t ≤ F π R - EF}).toReal) / card ≤
      Real.exp (-(2 * t ^ 2 / ((D : ℝ) * Lp ^ 2 + (b : ℝ) * Lr ^ 2))) := by sorry

end LinearSetReconciliation327.Main
Source
Tianren Liu, Rui Xu, Tong Yang, Kangyang Zhou, STOC 2027 submission #327 (October 2026), Lemma 4.2, PDF p.16–17 (printed p.15–16)
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