Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

General additive linear coding secrecy (92)–(94)

Open
QAlgorithms.Papers.Independent.Advance50.P28.general_additive_linear_secrecy

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

prove2quantum

Let AAA be finite and nonempty, let μ\muμ be a probability measure on a measurable space EEE, and let pe(a)p_e(a)pe​(a) be a measurable conditional probability vector. Define ϕ(t)=log⁡∫(∑ape(a)1/(1−t))1−t dμ(e)\phi(t)=\log\int(\sum_a p_e(a)^{1/(1-t)})^{1-t}\,d\mu(e)ϕ(t)=log∫(∑a​pe​(a)1/(1−t))1−tdμ(e) and gE(s)=−log⁡∫∑ape(a)1+s dμ(e)g_E(s)=-\log\int\sum_a p_e(a)^{1+s}\,d\mu(e)gE​(s)=−log∫∑a​pe​(a)1+sdμ(e), with gE(0)=0g_E(0)=0gE​(0)=0. Leakage is full L1L^1L1 distance from a uniform key independent of Eve. Let A=GA=GA=G be a finite abelian group and use n≥1n\ge1n≥1 iid copies of the joint additive noise (G,E)(G,E)(G,E). Let a fixed block subgroup and public random size-LLL subgroups obey Condition 4, with L=enRL=e^{nR}L=enR. Then

EXd1≤3exp⁡(n[tlog⁡∣G∣+ϕ(t)])Lt(0<t<1/2),EXd1≤3e−neϕ(log⁡∣G∣−R).\mathbb E_Xd_1\le3\frac{\exp(n[t\log|G|+\phi(t)])}{L^t}\quad(0<t<1/2),\qquad\mathbb E_Xd_1\le3e^{-n e_\phi(\log|G|-R)}.EX​d1​≤3Ltexp(n[tlog∣G∣+ϕ(t)])​(0<t<1/2),EX​d1​≤3e−neϕ​(log∣G∣−R).

Here eϕ(u)=max⁡0≤t≤1/2[−ϕ(t)−tu]e_\phi(u)=\max_{0\le t\le1/2}[-\phi(t)-tu]eϕ​(u)=max0≤t≤1/2​[−ϕ(t)−tu]. These are the one-shot bounds at n=1n=1n=1 and the iid bound at general positive nnn; the main code need not be random or a product code. Condition 4 means that the seed-independent C1C_1C1​ has Pr⁡{x∈C2(X)}≤L/∣C1∣\Pr\{x\in C_2(X)\}\le L/|C_1|Pr{x∈C2​(X)}≤L/∣C1​∣ for each nonzero x∈C1x\in C_1x∈C1​, with ∣C2(X)∣=L|C_2(X)|=L∣C2​(X)∣=L always. Each uniform coset key is encoded uniformly on its coset; leakage includes the public seed.

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.16, (92)–(94): actual iid joint additive noise, public seed,
and arbitrary fixed block subcode. The case n=1 retains the one-shot bounds. -/
theorem general_additive_linear_secrecy {G E S : Type*} [AddCommGroup G] [Fintype G]
    [MeasurableSpace G] [MeasurableSingletonClass G] [MeasurableSpace E]
    [Fintype S] [Nonempty S] (mu : Measure E) [IsProbabilityMeasure mu]
    (p : E → G → ℝ) (hp : IsConditionalLaw p)
    (n L : ℕ) (hn : 0 < n) (hL : 0 < L)
    (C1 : AddSubgroup (Fin n → G)) (H : S → AddSubgroup C1) (w : S → ℝ)
    (hcond : SubcodeCondition C1 H w L) (R : ℝ)
    (hsize : (L : ℝ) = Real.exp ((n : ℝ) * R)) :
    (∀ t ∈ Set.Ioo (0 : ℝ) (1 / 2), expectedCosetLeakage
      (Measure.pi (fun _ : Fin n => Measure.count.prod mu))
      (blockDensity (generalAdditiveDensity p) n) C1 H w ≤
        3 * ENNReal.ofReal (Real.exp ((n : ℝ) *
          (t * Real.log (Fintype.card G : ℝ) + conditionalPhi mu p t))) /
          (L : ℝ≥0∞) ^ t) ∧
    expectedCosetLeakage (Measure.pi (fun _ : Fin n => Measure.count.prod mu))
      (blockDensity (generalAdditiveDensity p) n) C1 H w ≤
        3 * ENNReal.ofReal (Real.exp (-(n : ℝ) *
          conditionalPhiExponent mu p (Real.log (Fintype.card G : ℝ) - R))) := 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. 16, General additive linear coding secrecy (92)–(94)
Read-back

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

Let GGG be a finite abelian group, equipped with a measurable structure in which singletons are measurable; let EEE be a measurable space with probability measure μ\muμ; and let SSS be a finite nonempty seed set. Suppose p:E×G→Rp:E\times G\to\mathbb Rp:E×G→R satisfies p(e,a)≥0p(e,a)\ge0p(e,a)≥0 and ∑a∈Gp(e,a)=1\sum_{a\in G}p(e,a)=1∑a∈G​p(e,a)=1 for every eee, and e↦p(e,a)e\mapsto p(e,a)e↦p(e,a) is measurable for every aaa. Let n,Ln,Ln,L be positive integers, C1≤GnC_1\le G^nC1​≤Gn an additive subgroup, Hs≤C1H_s\le C_1Hs​≤C1​ a subgroup for each s∈Ss\in Ss∈S, and w:S→Rw:S\to\mathbb Rw:S→R satisfy ws≥0w_s\ge0ws​≥0, ∑sws=1\sum_s w_s=1∑s​ws​=1, ∣Hs∣=L|H_s|=L∣Hs​∣=L, and

∑s∈Sx∈Hsws≤L∣C1∣(x∈C1, x≠0).\sum_{\substack{s\in S\\x\in H_s}}w_s\le \frac{L}{|C_1|} \qquad(x\in C_1,\ x\ne0).s∈Sx∈Hs​​∑​ws​≤∣C1​∣L​(x∈C1​, x=0).

Let R∈RR\in\mathbb RR∈R satisfy L=enRL=e^{nR}L=enR. Write [r]+=max⁡(r,0)[r]_+=\max(r,0)[r]+​=max(r,0), regarded as an extended nonnegative real, and put

ν=(count⁡G⊗μ)⊗n,W(x,((zi,ei))i=1n)=∏i=1n[p(ei,zi−xi)]+.\nu=(\operatorname{count}_G\otimes\mu)^{\otimes n}, \qquad W(x,((z_i,e_i))_{i=1}^n)=\prod_{i=1}^n[p(e_i,z_i-x_i)]_+.ν=(countG​⊗μ)⊗n,W(x,((zi​,ei​))i=1n​)=i=1∏n​[p(ei​,zi​−xi​)]+​.

For x∈C1x\in C_1x∈C1​, define

qs,x(y)=1∣Hs∣∑h∈HsW(x+h,y),qˉ(y)=1∣C1∣∑x∈C1W(x,y),q_{s,x}(y)=\frac1{|H_s|}\sum_{h\in H_s}W(x+h,y), \qquad \bar q(y)=\frac1{|C_1|}\sum_{x\in C_1}W(x,y),qs,x​(y)=∣Hs​∣1​h∈Hs​∑​W(x+h,y),qˉ​(y)=∣C1​∣1​x∈C1​∑​W(x,y),

and define the extended nonnegative quantity

L=∑s∈S[ws]+1∣C1∣∑x∈C1∫((qs,x\dotminusqˉ)+(qˉ\dotminusqs,x)) dν,\mathcal L=\sum_{s\in S}[w_s]_+\frac1{|C_1|} \sum_{x\in C_1}\int \bigl((q_{s,x}\mathbin{\dotminus}\bar q)+(\bar q\mathbin{\dotminus}q_{s,x})\bigr)\,d\nu,L=s∈S∑​[ws​]+​∣C1​∣1​x∈C1​∑​∫((qs,x​\dotminusqˉ​)+(qˉ​\dotminusqs,x​))dν,

where \dotminus\dotminus\dotminus denotes truncated subtraction of extended nonnegative reals. With natural logarithms and real powers, set

Φ(t)=log⁡ ⁣(∫E(∑a∈Gp(e,a)1/(1−t))1−tdμ(e)),E(r)=sup⁡0≤u≤1/2{−Φ(u)−ur}.\Phi(t)=\log\!\left(\int_E \left(\sum_{a\in G}p(e,a)^{1/(1-t)}\right)^{1-t}d\mu(e)\right), \qquad \mathcal E(r)=\sup_{0\le u\le1/2}\{-\Phi(u)-ur\}.Φ(t)=log​∫E​(a∈G∑​p(e,a)1/(1−t))1−tdμ(e)​,E(r)=0≤u≤1/2sup​{−Φ(u)−ur}.

The assertion is that both

∀ 0<t<12,L≤3 [e n(tlog⁡∣G∣+Φ(t))]+Lt,L≤3 [e−nE(log⁡∣G∣−R)]+\forall\,0<t<\tfrac12,\qquad \mathcal L\le \frac{3\,[e^{\,n(t\log|G|+\Phi(t))}]_+}{L^t}, \qquad \mathcal L\le3\,[e^{-n\mathcal E(\log|G|-R)}]_+∀0<t<21​,L≤Lt3[en(tlog∣G∣+Φ(t))]+​​,L≤3[e−nE(log∣G∣−R)]+​

hold. The inequalities and powers involving L\mathcal LL are in the extended nonnegative reals; the supremum defining E\mathcal EE includes both endpoints, whereas the first bound is asserted only for the open interval.

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