Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 6.2 — Within a word

Proved
LinearSetReconciliation327.Main.lemma_6_2

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

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

With pk=2w−k/(2w−1)p_k=2^{w-k}/(2^w-1)pk​=2w−k/(2w−1): for each row and word, the joint event identity Pr⁡[word prediction incorrect and first incorrect bit is k]=pkPr⁡[word prediction incorrect]\Pr[\text{word prediction incorrect and first incorrect bit is }k]=p_k\Pr[\text{word prediction incorrect}]Pr[word prediction incorrect and first incorrect bit is k]=pk​Pr[word prediction incorrect] holds, ∑k=1wpk=1\sum_{k=1}^wp_k=1∑k=1w​pk​=1, H((pk)k=1w)≤2H((p_k)_{k=1}^w)\le2H((pk​)k=1w​)≤2, and for every x∈Sn,dx\in S_{n,d}x∈Sn,d​ and column (a,k)(a,k)(a,k), EVa,k≤qapk\mathbb EV_{a,k}\le q_ap_kEVa,k​≤qa​pk​.

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: Pr and E over the node randomness → uniform averages over the finite type of a permutation of [N] and the row coins; reason: this is the source law; coins for indices up to N_max beyond a shorter row are never read
  • encoding: conditional on a row’s word prediction being incorrect → joint-event identity Pr[E and F] = p_k Pr[E]; reason: it is the conditional law where defined and is meaningful when the event has probability zero
  • generalization: stated in the row-column regime of §6.2 → all 2 ≤ d ≤ n and every value of C′; reason: the source proof uses only the scalar and Pinsketch; the regime is a special case
Preamble
import Mathlib
import Definitions.Def_LinearSetReconciliation327_Main_Basic
import Definitions.Def_LinearSetReconciliation327_Main_Framework
import Definitions.Def_LinearSetReconciliation327_Main_TopLevel

open scoped ENNReal
open Finset
Formal statement
namespace LinearSetReconciliation327.Main

open Classical in
/-- Lemma 6.2 (Within a word), PDF p.29 (printed p.28). Conditioning is written as a joint-event
identity, since the conditioning event may have probability zero. `u` is the unscaled prediction from
the candidate of the exact prefix, `v` the true value; source indices `a, k` are `a + 1, k + 1`. -/
theorem lemma_6_2 (P : TopParams) (hargs : P.Args) (F : Type) [Field F] [Fintype F]
    [Algebra (ZMod 2) F] (b : Module.Basis (Fin P.w) (ZMod 2) F) (ι : ℕ → F) (hι : P.IsAddress ι)
    (x : Finset ℕ) (hx : x ⊆ range P.n) (hxd : x.card ≤ P.d) :
    let sch := P.scheme b ι
    let cands : sch.LocalSeed → Fin P.d → Fin P.B → Option (Finset ℕ) := fun lr j a =>
      P.cand b ι j.val (lr.2 j)
        (sch.truePrefix j (lr.2 j) (sch.rowOf lr x j) (a.val * P.w)) a.val
    let wrongWord : sch.LocalSeed → Fin P.d → Fin P.B → Prop := fun lr j a =>
      ∃ C, cands lr j a = some C ∧
        TopParams.power ι (2 * a.val + 1) C ≠
          TopParams.power ι (2 * a.val + 1) (sch.rowOf lr x j)
    (∀ (j : Fin P.d) (a : Fin P.B) (k : Fin P.w),
      prU (fun lr : sch.LocalSeed => wrongWord lr j a ∧ ∃ C, cands lr j a = some C ∧
          let α : F := ((lr.2 j : Fin P.B → Fˣ) a : F)
          let bu := b.repr (α * TopParams.power ι (2 * a.val + 1) C)
          let bv := b.repr (α * TopParams.power ι (2 * a.val + 1) (sch.rowOf lr x j))
          (∀ k' : Fin P.w, k'.val < k.val → bu k' = bv k') ∧ bu k ≠ bv k) =
        P.p k.val * prU (fun lr : sch.LocalSeed => wrongWord lr j a)) ∧
    (∑ k ∈ range P.w, P.p k = 1) ∧
    entropyFin (fun k : Fin P.w => P.p k.val) ≤ 2 ∧
    (∀ s : Fin P.ell,
      expU (fun lr : sch.LocalSeed => (sch.V lr x ∅ s : ℝ)) ≤
        P.q ((P.wordIdx s).val + 1) * P.p (P.bitIdx s).val) := by sorry

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