Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Reliability-only half-size expurgation

Open
QAlgorithms.Papers.Independent.Intakenext100.P30.reliability_expurgation

by Gohan · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let a fixed code on a finite nonempty message set MMM have messagewise decoding errors e(m)e(m)e(m), and let ε≥0\varepsilon\ge0ε≥0. If its uniform average error is at most ε/2\varepsilon/2ε/2, there is a nonempty subset M∗⊆MM_*\subseteq MM∗​⊆M and a normalized decoder for the restricted encoder such that

∣M∗∣≥∣M∣/2,e∗(m)≤ε(m∈M∗).|M_*|\ge|M|/2,\qquad e_*(m)\le\varepsilon\quad(m\in M_*).∣M∗​∣≥∣M∣/2,e∗​(m)≤ε(m∈M∗​).

This is the reliability-only variant of expurgation and does not impose secrecy.

All alphabets are finite and nonempty, and output Hilbert spaces are finite dimensional and nonzero. A classical–quantum channel assigns a positive semidefinite, trace-one matrix to each input. Encoders may use private randomness; decoders are normalized POVMs. Codes are fixed independently of the message, with no supplied shared key or entanglement. Logarithms and entropies are in bits.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P30
Formal statement
noncomputable section

open scoped BigOperators ComplexConjugate Matrix ComplexOrder

open Filter

namespace QAlgorithms.Papers.Independent.Intakenext100.P30

variable {X Y Z M U V A B C : Type*}

variable [Fintype X] [DecidableEq X] [Fintype Y] [DecidableEq Y]

variable [Fintype Z] [DecidableEq Z] [Fintype M] [DecidableEq M]

variable [Fintype U] [DecidableEq U] [Fintype V] [DecidableEq V]

variable [Fintype A] [DecidableEq A] [Fintype B] [DecidableEq B]

variable [Fintype C] [DecidableEq C]

attribute [local instance] Classical.propDecidable

/-- Remark 1, PDF p.3. Reliability alone needs average error <= epsilon/2,
with the same half-size conclusion as Lemma 1. -/
theorem reliability_expurgation [Nonempty X] [Nonempty Y] [Nonempty M]
    (theta : X → Matrix Y Y ℂ) (hTheta : RRIsCq theta) (code : RRCode M X Y)
    (epsilon : ℝ) (he : 0 ≤ epsilon)
    (herror : (Fintype.card M : ℝ)⁻¹ * ∑ m, rrCodeError theta code m ≤ epsilon / 2) :
    ∃ s : Finset M, s.Nonempty ∧ (Fintype.card M : ℝ) / 2 ≤ s.card ∧
      ∃ restricted : RRCode {m : M // m ∈ s} X Y,
        (∀ m, restricted.encoder m = code.encoder m.val) ∧
        RRPublicGood theta restricted epsilon := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P30

end
Source
Noisy channel coding via privacy amplification and information reconciliation, arXiv:1012.4814v2, PDF p. 3, Remark 1: reliability-only expurgation
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For finite, nonempty types X,Y,MX,Y,MX,Y,M, with decidable equality where required, let every θ(x)∈CY×Y\theta(x)\in\mathbb C^{Y\times Y}θ(x)∈CY×Y be positive semidefinite with trace one. Suppose a code has distributions eme_mem​ on XXX and decoding matrices Dm⪰0D_m\succeq0Dm​⪰0 satisfying ∑mDm=IY\sum_mD_m=I_Y∑m​Dm​=IY​. For every real ϵ≥0\epsilon\ge0ϵ≥0, if

1∣M∣∑m∈M[1−Re⁡tr⁡ ⁣(Dm∑xem(x)θ(x))]≤ϵ2,\frac1{|M|}\sum_{m\in M} \left[1-\operatorname{Re}\operatorname{tr}\!\left(D_m\sum_xe_m(x)\theta(x)\right)\right] \le\frac{\epsilon}{2},∣M∣1​m∈M∑​[1−Retr(Dm​x∑​em​(x)θ(x))]≤2ϵ​,

then there exists a nonempty subset s⊆Ms\subseteq Ms⊆M with ∣M∣/2≤∣s∣|M|/2\le|s|∣M∣/2≤∣s∣, and a code on sss, such that its encoder at every retained message is exactly eme_mem​, its decoding matrices D~m\widetilde D_mDm​ are positive semidefinite and sum to IYI_YIY​, and

1−Re⁡tr⁡ ⁣(D~m∑xem(x)θ(x))≤ϵfor every m∈s.1-\operatorname{Re}\operatorname{tr}\!\left(\widetilde D_m\sum_xe_m(x)\theta(x)\right)\le\epsilon \quad\text{for every }m\in s.1−Retr(Dm​x∑​em​(x)θ(x))≤ϵfor every m∈s.

The new decoding matrices are not required to be restrictions of the old ones. The case ϵ=0\epsilon=0ϵ=0 is allowed.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 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