Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§VII-C, unnumbered simultaneous deterministic-code extraction

Open
QAlgorithms.Papers.Independent.Intakethird100.P76.deterministic_code_extraction

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let C\mathcal CC be a finite ensemble with nonnegative masses p(c)p(c)p(c) summing to one. Let e(c),ℓ(c)≥0e(c),\ell(c)\ge0e(c),ℓ(c)≥0 be its realized-code error and leakage statistics. A code in the support simultaneously satisfies

p(c∗)>0,e(c∗)≤3∑cp(c)e(c),ℓ(c∗)≤3∑cp(c)ℓ(c).p(c_*)>0,\qquad e(c_*)\le3\sum_c p(c)e(c),\qquad \ell(c_*)\le3\sum_c p(c)\ell(c).p(c∗​)>0,e(c∗​)≤3c∑​p(c)e(c),ℓ(c∗​)≤3c∑​p(c)ℓ(c).

The statement holds for arbitrary nonnegative statistics, including zero ensemble means.

It supplies a deterministic simultaneous selection with finite factor 3. It does not supply the separate entropy-rate condition or finite-block exponential bounds with prefactor one.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P76
Formal statement
namespace QAlgorithms.Papers.Independent.Intakethird100.P76

noncomputable section

open scoped BigOperators

open Filter Set

attribute [local instance] Classical.propDecidable

-- Exact pinned primitives, inspected at their definitions before reuse.

open QAlgorithms.Papers.Independent.Information100.P56 (IsLaw)

open QAlgorithms.Papers.Independent.Frontier30.P12 (IsStochastic)

variable {S X Y Z : Type} [Fintype S] [Fintype X] [Fintype Y] [Fintype Z]
  [Nonempty S] [Nonempty X] [Nonempty Y] [Nonempty Z]

variable {n u w : ℕ}

/-- PDF pp.15--16: simultaneous extraction from one finite ensemble.
Printed: strict <3*mean bounds and dotted exponential-order comparisons.
Changed: weak <=3*mean bounds with positive ensemble mass. Why: zero mean
forces zero on support, so strict <3*0 is impossible. The finite factor 3 is
retained; no finite-block exponent prefactor one or entropy claim is added. -/
theorem deterministic_code_extraction {C : Type*} [Fintype C]
    (p e l : C → ℝ) (hp : IsLaw p) (he : ∀ c, 0 ≤ e c) (hl : ∀ c, 0 ≤ l c) :
    ∃ c, 0 < p c ∧ e c ≤ 3 * (∑ d, p d * e d) ∧
      l c ≤ 3 * (∑ d, p d * l d) := by sorry

end

end QAlgorithms.Papers.Independent.Intakethird100.P76
Source
The Sender-Excited Secret Key Agreement Model: Capacity, Reliability and Secrecy Exponents, arXiv:1107.4148v4, PDF p. 15, §VII-C, unnumbered simultaneous deterministic-code extraction
Read-back

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

For every finite type CCC, every probability distribution p:C→Rp:C\to\mathbb Rp:C→R, meaning p(c)≥0p(c)\ge0p(c)≥0 for every ccc and ∑cp(c)=1\sum_c p(c)=1∑c​p(c)=1, and every pair of functions e,l:C→Re,l:C\to\mathbb Re,l:C→R satisfying e(c)≥0e(c)\ge0e(c)≥0 and l(c)≥0l(c)\ge0l(c)≥0 for every ccc, there exists c∈Cc\in Cc∈C such that

p(c)>0,e(c)≤3∑d∈Cp(d)e(d),l(c)≤3∑d∈Cp(d)l(d).p(c)>0,\qquad e(c)\le3\sum_{d\in C}p(d)e(d),\qquad l(c)\le3\sum_{d\in C}p(d)l(d).p(c)>0,e(c)≤3d∈C∑​p(d)e(d),l(c)≤3d∈C∑​p(d)l(d).

Both bounds hold for the same ccc, and either weighted average may be zero. Although CCC is not explicitly assumed nonempty, the probability-distribution hypothesis excludes the empty case.

Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me