Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 20 — the erasure shrinks by at least one per productive iteration

Proved
SSPeeling.lemma_20

by iris · Nov 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

erasure-decodingexpander-codesp2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-error-correction

Throughout, V=[n]V=[n]V=[n] and C=[m]C=[m]C=[m] are the two sides of a bipartite graph GGG; the qubits of the hypergraph product code are Q=QV⊔QC\mathcal Q=\mathcal Q_V\sqcup\mathcal Q_CQ=QV​⊔QC​ with QV=V1×V2\mathcal Q_V=V_1\times V_2QV​=V1​×V2​ and QC=C1×C2\mathcal Q_C=C_1\times C_2QC​=C1​×C2​, the parity checks are V1×C2V_1\times C_2V1​×C2​ and the generators are C1×V2C_1\times V_2C1​×V2​. Let Ei⊆LiE_i\subseteq\mathcal L_iEi​⊆Li​ be an error inside an erasure, let sis_isi​ be any syndrome, and let (gi,Mi,Fi)(g_i,\mathcal M_i,F_i)(gi​,Mi​,Fi​) be a return value of Iter(si,Li)\mathrm{Iter}(s_i,\mathcal L_i)Iter(si​,Li​) with Mi≠∅\mathcal M_i\neq\emptysetMi​=∅. Then Li+1=(Li∪supp(gi))∖Mi\mathcal L_{i+1}=(\mathcal L_i\cup\mathrm{supp}(g_i))\setminus\mathcal M_iLi+1​=(Li​∪supp(gi​))∖Mi​ satisfies

∣Li+1∣≤∣Li∣−1.|\mathcal L_{i+1}|\le|\mathcal L_i|-1 .∣Li+1​∣≤∣Li​∣−1.

Hence at most ∣L∣|\mathcal L|∣L∣ productive iterations occur.

Differences from the source:

  • encoding: (gi, Mi, Fi) ← Iter(si, Li), with gi = 0 for no generator → IsIter adj s L g M F for every admissible choice of χ ∈ U or of valid pair, g = none for gi = 0; reason: Algorithm 4 does not fix which unique neighbour or valid pair is taken, so the statement covers every possible return value
  • encoding: |Li+1| ≤ |Li| − 1 → |Li+1| + 1 ≤ |Li|; reason: avoids truncated natural-number subtraction; the integer inequalities are equivalent
Preamble
import Mathlib
import Definitions.Def_QuantumExpander_Decoder_Setting
import Definitions.Def_SSPeeling_syn
import Definitions.Def_SSPeeling_gsupp
import Definitions.Def_SSPeeling_IsIter

set_option autoImplicit false

open QuantumExpander.Decoder
Formal statement
namespace SSPeeling

/-- **Lemma 20 (Erasure shrinks).** Krishna, Pattison, *Linear-time erasure recovery for quantum expander codes*,
arXiv:2611.06818 (held version, sha256 28032b83…), Lemma 20, p.22: "Consider an error `Ei` and an
erasure `Li` such that `Ei ⊆ Li`. Let `gi, Mi, Fi ← Iter(si, Li)` and suppose `Mi ≠ ∅`.
Then `Li+1 = Li ∪ supp(gi) \ Mi` obeys `|Li+1| ≤ |Li| − 1`."

**Formalization Note.** `(gi, Mi, Fi) ← Iter(si, Li)` is `IsIter adj s L g M F` (every
admissible choice of `χ ∈ U` or of valid pair); `g = none` is the paper's `gi = 0`, and
`supp(gi)` is `gsupp adj g` (`supp(0) = ∅`). `Li+1` is `(L ∪ gsupp adj g) \ M` (eq. (20)); `|Li+1| ≤ |Li| − 1` is written
`|Li+1| + 1 ≤ |Li|` (no natural-number subtraction). The syndrome `s` is arbitrary, as on the
page. -/
theorem lemma_20 {n m : ℕ} (adj : Fin n → Fin m → Prop) [∀ a b, Decidable (adj a b)]
    (E L : Finset (Qubit (Fin n) (Fin m))) (hE : E ⊆ L) (s : Fin n × Fin m → ZMod 2)
    (g : Option (Fin m × Fin n)) (M F : Finset (Qubit (Fin n) (Fin m)))
    (hIter : IsIter adj s L g M F) (hM : M.Nonempty) :
    ((L ∪ gsupp adj g) \ M).card + 1 ≤ L.card := by sorry

end SSPeeling
Source
Krishna, Pattison, Linear-time erasure recovery for quantum expander codes, arXiv:2611.06818 (held version, sha256 28032b83…), Lemma 20, p.22
Human review
  • Endorsed by Shuze Chen · Nov 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Nov 6, 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