Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 8 (73)

Open
QAlgorithms.Papers.Independent.Advance50.P28.conditional_exponent_comparison

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 0≤R<H(A∣E)0\le R<H(A|E)0≤R<H(A∣E), and define eϕ=max⁡0≤t≤1/2[−ϕ(t)−tR]e_\phi=\max_{0\le t\le1/2}[-\phi(t)-tR]eϕ​=max0≤t≤1/2​[−ϕ(t)−tR], eH=max⁡0≤s≤1(gE(s)−sR)/(1+s)e_H=\max_{0\le s\le1}(g_E(s)-sR)/(1+s)eH​=max0≤s≤1​(gE​(s)−sR)/(1+s), and e~H=max⁡0≤s≤1(gE(s)−sR)/2\widetilde e_H=\max_{0\le s\le1}(g_E(s)-sR)/2eH​=max0≤s≤1​(gE​(s)−sR)/2. Then

eϕ≥eH≥e~H.e_\phi\ge e_H\ge\widetilde e_H.eϕ​≥eH​≥eH​.

The first equality holds iff there is a maximizer s0∈[0,1]s_0\in[0,1]s0​∈[0,1] of −ϕ(s/(1+s))−sR/(1+s)-\phi(s/(1+s))-sR/(1+s)−ϕ(s/(1+s))−sR/(1+s) for which H1+s0(pe)H_{1+s_0}(p_e)H1+s0​​(pe​) is almost surely constant. The second holds iff eH=(gE(1)−R)/2e_H=(g_E(1)-R)/2eH​=(gE​(1)−R)/2. This records the exceptions to strict improvement; the second condition uses the proof's correction s=1s=1s=1. The conditional Shannon entropy is H(A∣E)=−∫∑ape(a)log⁡pe(a) dμ(e)H(A|E)=-\int\sum_a p_e(a)\log p_e(a)\,d\mu(e)H(A∣E)=−∫∑a​pe​(a)logpe​(a)dμ(e), and H1+s(pe)=−(1/s)log⁡∑ape(a)1+sH_{1+s}(p_e)=-(1/s)\log\sum_a p_e(a)^{1+s}H1+s​(pe​)=−(1/s)log∑a​pe​(a)1+s for s>0s>0s>0.

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 pp.11–12, Lemma 8, (73). The unbound s in the second printed
condition is repaired to s=1, as explicitly stated by its proof on p.12. -/
theorem conditional_exponent_comparison {A E : Type*} [Fintype A] [Nonempty A]
    [MeasurableSpace E] (mu : Measure E) [IsProbabilityMeasure mu]
    (p : E → A → ℝ) (hp : IsConditionalLaw p) (R : ℝ)
    (hR : 0 ≤ R) (hent : R < integratedFiberEntropyNats mu p) :
    conditionalHExponent mu p R ≤ conditionalPhiExponent mu p R ∧
    conditionalTildeExponent mu p R ≤ conditionalHExponent mu p R ∧
    (conditionalPhiExponent mu p R = conditionalHExponent mu p R ↔
      ∃ s ∈ Set.Icc (0 : ℝ) 1,
        -conditionalPhi mu p (s / (1 + s)) - s * R / (1 + s) =
          conditionalPhiExponent mu p R ∧
        ∃ c : ℝ, ∀ᵐ e ∂mu, fiberRenyi (p e) s = c) ∧
    (conditionalHExponent mu p R = conditionalTildeExponent mu p R ↔
      conditionalHExponent mu p R = (conditionalRenyiNumerator mu p 1 - R) / 2) := 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. 11, Lemma 8 (73)
Read-back

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

Let AAA be a finite nonempty set, EEE a measurable space, μ\muμ a probability measure on EEE, and p:E×A→Rp:E\times A\to\mathbb Rp:E×A→R satisfy p(e,a)≥0p(e,a)\ge0p(e,a)≥0 and ∑ap(e,a)=1\sum_a p(e,a)=1∑a​p(e,a)=1 for every eee, with each coordinate e↦p(e,a)e\mapsto p(e,a)e↦p(e,a) measurable. Let R∈RR\in\mathbb RR∈R satisfy

0≤R<∫E−∑ap(e,a)log⁡p(e,a) dμ(e).0\le R<\int_E-\sum_a p(e,a)\log p(e,a)\,d\mu(e).0≤R<∫E​−a∑​p(e,a)logp(e,a)dμ(e).

Define

Φ(t)=log⁡∫E(∑ap(e,a)1/(1−t))1−t dμ(e),C(s)={0,s=0,−log⁡∫E∑ap(e,a)1+s dμ(e),s≠0,\Phi(t)=\log\int_E\left(\sum_a p(e,a)^{1/(1-t)}\right)^{1-t}\,d\mu(e), \qquad C(s)= \begin{cases} 0,&s=0,\\ -\log\int_E\sum_a p(e,a)^{1+s}\,d\mu(e),&s\ne0, \end{cases}Φ(t)=log∫E​(a∑​p(e,a)1/(1−t))1−tdμ(e),C(s)={0,−log∫E​∑a​p(e,a)1+sdμ(e),​s=0,s=0,​

and the real suprema

EΦ=sup⁡0≤t≤1/2{−Φ(t)−tR},EH=sup⁡0≤s≤1C(s)−sR1+s,E∼=sup⁡0≤s≤1C(s)−sR2.E_\Phi=\sup_{0\le t\le1/2}\{-\Phi(t)-tR\},\quad E_H=\sup_{0\le s\le1}\frac{C(s)-sR}{1+s},\quad E_{\sim}=\sup_{0\le s\le1}\frac{C(s)-sR}{2}.EΦ​=0≤t≤1/2sup​{−Φ(t)−tR},EH​=0≤s≤1sup​1+sC(s)−sR​,E∼​=0≤s≤1sup​2C(s)−sR​.

Then EH≤EΦE_H\le E_\PhiEH​≤EΦ​ and E∼≤EHE_{\sim}\le E_HE∼​≤EH​. Furthermore, EΦ=EHE_\Phi=E_HEΦ​=EH​ if and only if there exists s∈[0,1]s\in[0,1]s∈[0,1] such that

−Φ ⁣(s1+s)−sR1+s=EΦ-\Phi\!\left(\frac{s}{1+s}\right)-\frac{sR}{1+s}=E_\Phi−Φ(1+ss​)−1+ssR​=EΦ​

and there exists c∈Rc\in\mathbb Rc∈R for which

−log⁡(∑ap(e,a)1+s)s=cfor μ-almost every e.-\frac{\log\bigl(\sum_a p(e,a)^{1+s}\bigr)}s=c \quad\text{for }\mu\text{-almost every }e.−slog(∑a​p(e,a)1+s)​=cfor μ-almost every e.

The witness s=0s=0s=0 is allowed, and at s=0s=0s=0 this last quotient is defined to be 000. Finally,

EH=E∼⟺EH=C(1)−R2.E_H=E_{\sim}\quad\Longleftrightarrow\quad E_H=\frac{C(1)-R}{2}.EH​=E∼​⟺EH​=2C(1)−R​.

Here log⁡0=0\log0=0log0=0, so zero probabilities contribute 000 to the entropy integral; if that integral is 000, no RRR satisfies the hypotheses.

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