Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 6 (87)

Open
QAlgorithms.Papers.Independent.Advance50.P28.subcode_privacy_bound

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

prove2quantum

Let GGG be a finite abelian additive group, C1≤GC_1\le GC1​≤G a fixed subgroup, and WWW a fixed classical channel with measurable output densities. Let an independent public seed choose C2(X)≤C1C_2(X)\le C_1C2​(X)≤C1​, always of size L≥1L\ge1L≥1, with Pr⁡{x∈C2(X)}≤L/∣C1∣\Pr\{x\in C_2(X)\}\le L/|C_1|Pr{x∈C2​(X)}≤L/∣C1​∣ for every nonzero x∈C1x\in C_1x∈C1​. Encode each uniform coset key by the uniform law on that coset. There are ∣C1∣/L|C_1|/L∣C1​∣/L keys and

EXd1(ΦC1,C2(X)∣E)≤3exp⁡ϕ(t∣W,UC1)Lt(0≤t≤1/2).\mathbb E_Xd_1(\Phi_{C_1,C_2(X)}|E)\le3\frac{\exp\phi(t|W,U_{C_1})}{L^t}\quad(0\le t\le1/2).EX​d1​(ΦC1​,C2​(X)​∣E)≤3Ltexpϕ(t∣W,UC1​​)​(0≤t≤1/2).

The averaged leakage includes the public seed. This theorem supplies secrecy for a fixed main code without a reliability assertion; subgroups are equivalently submodules over the integers. Here UC1U_{C_1}UC1​​ is uniform on C1C_1C1​ and ϕ(t∣W,q)=log⁡∫(∑xq(x)Wx(y)1/(1−t))1−t dy\phi(t|W,q)=\log\int(\sum_xq(x)W_x(y)^{1/(1-t)})^{1-t}\,dyϕ(t∣W,q)=log∫(∑x​q(x)Wx​(y)1/(1−t))1−tdy.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P28
Formal statement
noncomputable section

open MeasureTheory Filter

open scoped BigOperators ENNReal Topology

namespace QAlgorithms.Papers.Independent.Advance50.P28

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

attribute [local instance] Classical.propDecidable Classical.decEq

/-- Hayashi, PDF p.15, Theorem 6, (87): arbitrary fixed main code; no Bob-error
claim. Only additive-group structure of the modules is used. -/
theorem subcode_privacy_bound {G E S : Type*} [AddCommGroup G] [Fintype G]
    [Fintype S] [Nonempty S] [MeasurableSpace E]
    (mu : Measure E) (W : G → E → ℝ≥0∞) (hW : IsDensityChannel mu W)
    (C1 : AddSubgroup G) (H : S → AddSubgroup C1) (w : S → ℝ)
    (L : ℕ) (hL : 0 < L) (hcond : SubcodeCondition C1 H w L) :
    (∀ seed, Nat.card (C1 ⧸ H seed) = Fintype.card C1 / L) ∧
    ∀ t ∈ Set.Icc (0 : ℝ) (1 / 2), expectedCosetLeakage mu W C1 H w ≤
      3 * gallagerDensityMoment mu W (subgroupUniform C1) t / (L : ℝ≥0∞) ^ t := by sorry

end QAlgorithms.Papers.Independent.Advance50.P28

end
Source
Tight exponential analysis of universally composable privacy amplification and its applications, arXiv:1010.1358v5, PDF p. 15, Theorem 6 (87)
Read-back

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

Let GGG be a finite commutative additive group, SSS a finite nonempty type, EEE a measurable space, and μ\muμ a measure on EEE. Let W:G→E→[0,∞]W:G\to E\to[0,\infty]W:G→E→[0,∞] satisfy, for every g∈Gg\in Gg∈G, measurability of e↦W(g,e)e\mapsto W(g,e)e↦W(g,e) and ∫E−W(g,e) dμ(e)=1\int_E^{-}W(g,e)\,d\mu(e)=1∫E−​W(g,e)dμ(e)=1. Let C1≤GC_1\le GC1​≤G, let Hs≤C1H_s\le C_1Hs​≤C1​ for each s∈Ss\in Ss∈S, and let LLL be a positive natural number. Suppose w:S→Rw:S\to\mathbb Rw:S→R satisfies ws≥0w_s\ge0ws​≥0, ∑sws=1\sum_sw_s=1∑s​ws​=1, ∣Hs∣=L|H_s|=L∣Hs​∣=L for every sss, and

∀ x∈C1∖{0},∑s∈Sx∈Hsws≤L∣C1∣.\forall\,x\in C_1\setminus\{0\},\qquad \sum_{\substack{s\in S\\x\in H_s}}w_s\le\frac{L}{|C_1|}.∀x∈C1​∖{0},s∈Sx∈Hs​​∑​ws​≤∣C1​∣L​.

Put u(g)=∣C1∣−1u(g)=|C_1|^{-1}u(g)=∣C1​∣−1 when g∈C1g\in C_1g∈C1​ and u(g)=0u(g)=0u(g)=0 otherwise, viewed in [0,∞][0,\infty][0,∞], and define

B(e)=∑g∈Gu(g)W(g,e),As(x,e)=L−1∑h∈HsW(x+h,e),B(e)=\sum_{g\in G}u(g)W(g,e), \qquad A_s(x,e)=L^{-1}\sum_{h\in H_s}W(x+h,e),B(e)=g∈G∑​u(g)W(g,e),As​(x,e)=L−1h∈Hs​∑​W(x+h,e), Λ=∑sofReal⁡(ws) ∣C1∣−1∑x∈C1∫E−((As(x,e)−B(e))+(B(e)−As(x,e))) dμ(e),\Lambda=\sum_s\operatorname{ofReal}(w_s)\,|C_1|^{-1} \sum_{x\in C_1}\int_E^{-} \bigl((A_s(x,e)-B(e))+(B(e)-A_s(x,e))\bigr)\,d\mu(e),Λ=s∑​ofReal(ws​)∣C1​∣−1x∈C1​∑​∫E−​((As​(x,e)−B(e))+(B(e)−As​(x,e)))dμ(e), G(t)=∫E−(∑g∈Gu(g)W(g,e)1/(1−t))1−t dμ(e).\mathcal G(t)=\int_E^{-} \left(\sum_{g\in G}u(g)W(g,e)^{1/(1-t)}\right)^{1-t}\,d\mu(e).G(t)=∫E−​​g∈G∑​u(g)W(g,e)1/(1−t)​1−tdμ(e).

Then every quotient group C1/HsC_1/H_sC1​/Hs​ has cardinality ∣C1∣/L|C_1|/L∣C1​∣/L, where the division in this cardinality statement is natural-number division, and

∀ t∈[0,12],Λ≤3 G(t)(L:[0,∞])t.\forall\,t\in[0,\tfrac12],\qquad \Lambda\le\frac{3\,\mathcal G(t)}{(L:[0,\infty])^t}.∀t∈[0,21​],Λ≤(L:[0,∞])t3G(t)​.

The integrals and arithmetic in Λ\LambdaΛ and G\mathcal GG are in the extended nonnegative reals, with truncated subtraction and ∞−∞=0\infty-\infty=0∞−∞=0; ofReal⁡(r)=max⁡(r,0)\operatorname{ofReal}(r)=\max(r,0)ofReal(r)=max(r,0) embedded there. Both endpoints t=0t=0t=0 and t=12t=\tfrac12t=21​ are included, and μ\muμ need not be a probability measure.

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

    Confirmed by the moderator at approval.

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