Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix B, Lemma 6: tilted Bernoulli variational identity

Open
QAlgorithms.Papers.Independent.Intake100.P31.lemma6

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

prove2quantum

For s∈[0,1]s\in[0,1]s∈[0,1] and p∈[0,1]p\in[0,1]p∈[0,1], define E0(s,p)=s−(1+s)log⁡2(p1/(1+s)+(1−p)1/(1+s))E_0(s,p)=s-(1+s)\log_2(p^{1/(1+s)}+(1-p)^{1/(1+s)})E0​(s,p)=s−(1+s)log2​(p1/(1+s)+(1−p)1/(1+s)) and E(R,p)=max⁡0≤s≤1[−sR+E0(s,p)]E(R,p)=\max_{0\le s\le1}[-sR+E_0(s,p)]E(R,p)=max0≤s≤1​[−sR+E0​(s,p)]. Let R∈[0,1]R\in[0,1]R∈[0,1], p∈[0,1]p\in[0,1]p∈[0,1], and R<1−h(p)R<1-h(p)R<1−h(p). For θ∈[0,1]\theta\in[0,1]θ∈[0,1], let pθ=pθ/(pθ+(1−p)θ)p_\theta=p^\theta/(p^\theta+(1-p)^\theta)pθ​=pθ/(pθ+(1−p)θ) on nondegenerate support, with pθ=0p_\theta=0pθ​=0 if p=0p=0p=0 and pθ=1p_\theta=1pθ​=1 if p=1p=1p=1, also at θ=0\theta=0θ=0. Then

inf⁡0≤θ≤1(d(pθ∥p)+[1−h(pθ)−R]+)=E(R,p).\inf_{0\le\theta\le1}\bigl(d(p_\theta\Vert p)+[1-h(p_\theta)-R]_+\bigr)=E(R,p).0≤θ≤1inf​(d(pθ​∥p)+[1−h(pθ​)−R]+​)=E(R,p).

At p=1/2p=1/2p=1/2, no nonnegative rate meets the strict capacity condition; the other parameters give nonvacuous instances. The proof's incorrect convexity wording is not an assumption.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P31
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P31

open scoped BigOperators Matrix ComplexConjugate

open QAlgorithms

local instance {n : ℕ} (C : BinaryLinearCode n) : Fintype C := Fintype.ofFinite C

/-- PDF pp.17--18, Lemma 6: the tiltedBernoulli law preserves support, including theta=0.
The printed convexity claim in the proof is a sign error, not an assumption. -/
theorem lemma6 (R p : ℝ) (hR : R ∈ Set.Icc 0 1) (hp : p ∈ Set.Icc 0 1)
    (hcap : R < 1 - binEntropy2 p) :
    tiltedExponent R p = (gallagerExponent R p : EReal) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P31

end
Source
Dual universality of hash functions and its applications to quantum cryptography, arXiv:1101.0064v4, PDF p. 17, Appendix B, Lemma 6: tilted Bernoulli variational identity
Read-back

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

For every pair of real numbers R,pR,pR,p satisfying 0≤R≤10\le R\le10≤R≤1, 0≤p≤10\le p\le10≤p≤1, and the strict inequality R<1−H2(p)R<1-H_2(p)R<1−H2​(p), the following equality holds in the extended real numbers:

inf⁡0≤θ≤1[D2(qθ∥p)+max⁡{1−H2(qθ)−R,0}]=(sup⁡0≤s≤1[−sR+s−(1+s)log⁡2 ⁣(p1/(1+s)+(1−p)1/(1+s))])ER.\inf_{0\le\theta\le1} \left[ D_2(q_\theta\Vert p)+\max\{1-H_2(q_\theta)-R,0\} \right] = \left( \sup_{0\le s\le1} \left[ -sR+s-(1+s)\log_2\!\left( p^{1/(1+s)}+(1-p)^{1/(1+s)} \right) \right] \right)_{\mathbb E\mathbb R}.0≤θ≤1inf​[D2​(qθ​∥p)+max{1−H2​(qθ​)−R,0}]=(0≤s≤1sup​[−sR+s−(1+s)log2​(p1/(1+s)+(1−p)1/(1+s))])ER​.

The subscript on the right means that the real supremum is embedded into the extended reals. Here log⁡2u=log⁡u/log⁡2\log_2u=\log u/\log2log2​u=logu/log2, H2(u)=−ulog⁡2u−(1−u)log⁡2(1−u)H_2(u)=-u\log_2u-(1-u)\log_2(1-u)H2​(u)=−ulog2​u−(1−u)log2​(1−u), and

qθ={0,p=0,1,p=1,pθpθ+(1−p)θ,p≠0,1.q_\theta= \begin{cases} 0,&p=0,\\ 1,&p=1,\\ \dfrac{p^\theta}{p^\theta+(1-p)^\theta},&p\ne0,1. \end{cases}qθ​=⎩⎨⎧​0,1,pθ+(1−p)θpθ​,​p=0,p=1,p=0,1.​

The quantity D2(q∥p)D_2(q\Vert p)D2​(q∥p) is +∞+\infty+∞ if p=0p=0p=0 and q≠0q\ne0q=0, or if p=1p=1p=1 and q≠1q\ne1q=1; otherwise it is the real number

qlog⁡2(q/p)+(1−q)log⁡2((1−q)/(1−p))q\log_2(q/p)+(1-q)\log_2((1-q)/(1-p))qlog2​(q/p)+(1−q)log2​((1−q)/(1−p))

embedded into the extended reals. In these formulas real division by zero and log⁡0\log0log0 evaluate to zero, so zero-log contributions vanish. The endpoint choices p=0,1p=0,1p=0,1 and θ=0,1\theta=0,1θ=0,1 are included, subject to the stated strict hypothesis on RRR.

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