Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Three-mode AFG posterior entropy and symplectic spectrum

Open
QAlgorithms.Papers.Independent.Intake100.P05.conditionalEntropy

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

prove2quantum

Let V≥1V\ge1V≥1, 0<T≤10<T\le10<T≤1, χC≥(1−T)/T\chi_C\ge(1-T)/TχC​≥(1−T)/T, 0<TB≤10<T_B\le10<TB​≤1 and N≥1N\ge1N≥1 be finite. Mix Bob's actual received mode with one half of a trusted EPR pair of local quadrature variance NNN on the beamsplitter of transmittivity TBT_BTB​, then homodyne the measured port. Let bbb be its outcome after gain 1/TB1/\sqrt{T_B}1/TB​​, and keep F,GF,GF,G in Bob's laboratory. Put χD=(1−TB)N/TB\chi_D=(1-T_B)N/T_BχD​=(1−TB​)N/TB​, x=Vx=Vx=V, y=T(V+χC)y=T(V+\chi_C)y=T(V+χC​), z=T(V2−1)z=\sqrt{T(V^2-1)}z=T(V2−1)​, Δ=x2+y2−2z2\Delta=x^2+y^2-2z^2Δ=x2+y2−2z2 and D=xy−z2D=xy-z^2D=xy−z2. Define

A=y+xD+χDΔy+χD,B=D(x+χDD)y+χD.A=\frac{y+xD+\chi_D\Delta}{y+\chi_D},\qquad B=\frac{D(x+\chi_DD)}{y+\chi_D}.A=y+χD​y+xD+χD​Δ​,B=y+χD​D(x+χD​D)​.

The outcome has normal density of variance y+χDy+\chi_Dy+χD​, positive for every real bbb. The actual normalized three-mode posterior ρAFG∣b\rho_{AFG\mid b}ρAFG∣b​ has covariance independent of bbb. Its symplectic eigenvalues are λ3,λ4,1\lambda_3,\lambda_4,1λ3​,λ4​,1, with λ3≥λ4≥1\lambda_3\ge\lambda_4\ge1λ3​≥λ4​≥1, where

λ3,42=A±A2−4B2,(λj2)2−Aλj2+B=0 (j=3,4),S(ρAFG∣b)=G ⁣(λ3−12)+G ⁣(λ4−12).\lambda_{3,4}^2=\frac{A\pm\sqrt{A^2-4B}}2,\qquad (\lambda_j^2)^2-A\lambda_j^2+B=0\ (j=3,4),\qquad S(\rho_{AFG\mid b})=G\!\left(\frac{\lambda_3-1}2\right)+G\!\left(\frac{\lambda_4-1}2\right).λ3,42​=2A±A2−4B​​,(λj2​)2−Aλj2​+B=0 (j=3,4),S(ρAFG∣b​)=G(2λ3​−1​)+G(2λ4​−1​).

Here GGG is thermal entropy in bits with G(0)=0G(0)=0G(0)=0. Entropy is finite and independent of the outcome, even though conditional means vary with bbb. The third vacuum symplectic eigenvalue is retained in the actual six-dimensional characteristic polynomial. The construction and independent full-Hermite-basis entropy make this an identity about the measured optical state, not a covariance-defined surrogate.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P05
Formal statement
noncomputable section

open MeasureTheory ProbabilityTheory

open scoped BigOperators ENNReal

namespace QAlgorithms.Papers.Independent.Intake100.P05

open QAlgorithms.Papers.Independent.Dependency50.P30 (thermalEntropyBits)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- arXiv:0806.3954v2, PDF pp.3–4, Eqs.(7)–(8): the constructed
three-mode AFG posterior has outcome-independent covariance and entropy.
All three symplectic eigenvalues are retained: lambda_3, lambda_4, and 1.
Bob's rescaled outcome has variance y+chiD, and Eve never receives F,G.
The target evaluates entropy; it makes no operational key-capacity claim. -/
theorem conditionalEntropy (V T chiC TB N : ℝ) (hV : 1 ≤ V)
    (hT : 0 < T) (hTupper : T ≤ 1) (hC : (1 - T) / T ≤ chiC)
    (hTB : 0 < TB) (hTBupper : TB ≤ 1) (hN : 1 ≤ N) :
    let chiD := detectorNoise TB N
    let A := conditionalA V T chiC chiD
    let B := conditionalB V T chiC chiD
    let l3 := conditionalLambda V T chiC chiD true
    let l4 := conditionalLambda V T chiC chiD false
    1 ≤ l4 ∧ l4 ≤ l3 ∧ 0 ≤ A ^ 2 - 4 * B ∧
    (l3 ^ 2) ^ 2 - A * l3 ^ 2 + B = 0 ∧
    (l4 ^ 2) ^ 2 - A * l4 ^ 2 + B = 0 ∧
    ∀ b : ℝ,
      0 < afgBornDensity V T chiC TB N b ∧
      afgBornDensity V T chiC TB N b = normalPDF (T * (V + chiC) + chiD) b ∧
      IsContinuousDensityKernel volume (afgPosterior V T chiC TB N b) ∧
      QAlgorithms.Papers.Independent.Dependency50.P33.IsDensity
        (afgNumberCoefficients (afgPosterior V T chiC TB N b)) ∧
      (∀ m n : (ℕ × ℕ) × ℕ, Integrable
        (fun xy : AFGPosition × AFGPosition =>
          star (afgNumberWave m xy.1) * afgPosterior V T chiC TB N b xy.1 xy.2 *
            afgNumberWave n xy.2) volume) ∧
      ContDiff ℝ 2 (afgCharacteristic (afgPosterior V T chiC TB N b)) ∧
      afgCovariance (afgPosterior V T chiC TB N b) =
        afgCovariance (afgPosterior V T chiC TB N 0) ∧
      (afgOmega * afgCovariance (afgPosterior V T chiC TB N b)).charpoly =
        (Polynomial.X ^ 2 + 1) *
          (Polynomial.X ^ 2 + Polynomial.C (l3 ^ 2)) *
          (Polynomial.X ^ 2 + Polynomial.C (l4 ^ 2)) ∧
      afgEntropyBits (afgPosterior V T chiC TB N b) < ⊤ ∧
      afgEntropyBits (afgPosterior V T chiC TB N b) = ENNReal.ofReal
        (thermalEntropyBits ((l3 - 1) / 2) + thermalEntropyBits ((l4 - 1) / 2)) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P05

end
Source
Continuous-variable quantum key distribution protocols over noisy channels, arXiv:0806.3954v2, PDF p. 4, Eqs.(7)–(8), continued from p.3
Read-back

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

For all real numbers V,T,c,t,NV,T,c,t,NV,T,c,t,N satisfying

V≥1,0<T≤1,c≥1−TT,0<t≤1,N≥1,V\ge1,\qquad 0<T\le1,\qquad c\ge\frac{1-T}{T},\qquad 0<t\le1,\qquad N\ge1,V≥1,0<T≤1,c≥T1−T​,0<t≤1,N≥1,

where c=χCc=\chi_Cc=χC​ and t=TBt=T_Bt=TB​, define

d=(1−t)Nt,y=T(V+c),Δ=V2+y2−2T(V2−1),D=Vy−T(V2−1),A=y+VD+dΔy+d,B=D(V+dD)y+d,ℓ3=A+A2−4B2,ℓ4=A−A2−4B2.\begin{aligned} d&=\frac{(1-t)N}{t},& y&=T(V+c),\\ \Delta&=V^2+y^2-2T(V^2-1),& D&=Vy-T(V^2-1),\\ A&=\frac{y+VD+d\Delta}{y+d},& B&=\frac{D(V+dD)}{y+d},\\ \ell_3&=\sqrt{\frac{A+\sqrt{A^2-4B}}2},& \ell_4&=\sqrt{\frac{A-\sqrt{A^2-4B}}2}. \end{aligned}dΔAℓ3​​=t(1−t)N​,=V2+y2−2T(V2−1),=y+dy+VD+dΔ​,=2A+A2−4B​​​,​yDBℓ4​​=T(V+c),=Vy−T(V2−1),=y+dD(V+dD)​,=2A−A2−4B​​​.​

The kernels and quantities appearing in the assertion are specified as follows. Let γv\gamma_vγv​ be the centered real Gaussian measure with variance max⁡(v,0)\max(v,0)max(v,0), including the Dirac measure at 000 when that variance is zero. For a real parameter aaa, define

Ea(x,y)=ηa(x)ηa(y)‾,ηa(x1,x2)=12πexp⁡ ⁣[−a(x12+x22)−2a2−1 x1x24],E_a(x,y)=\eta_a(x)\overline{\eta_a(y)},\qquad \eta_a(x_1,x_2)=\frac1{\sqrt{2\pi}} \exp\!\left[-\frac{a(x_1^2+x_2^2)-2\sqrt{a^2-1}\,x_1x_2}{4}\right],Ea​(x,y)=ηa​(x)ηa​(y)​,ηa​(x1​,x2​)=2π​1​exp[−4a(x12​+x22​)−2a2−1​x1​x2​​],

and define

τ(q,r)=12πexp⁡ ⁣[−(q+r)28−(q−r)28].\tau(q,r)=\frac1{\sqrt{2\pi}} \exp\!\left[-\frac{(q+r)^2}{8}-\frac{(q-r)^2}{8}\right].τ(q,r)=2π​1​exp[−8(q+r)2​−8(q−r)2​].

For x=(x1,x2)x=(x_1,x_2)x=(x1​,x2​) and y′=(y1,y2)y'=(y_1,y_2)y′=(y1​,y2​) in R2\mathbb R^2R2, put

LV,T(x,y′)=∫REV ⁣((x1,T x2−1−T e),(y1,T y2−1−T e))⋅τ ⁣(1−T x2+T e, 1−T y2+T e) de,CV,T,c(x,y′)=∫R2exp⁡ ⁣[iv(x2−y2)2]LV,T((x1,x2−u),(y1,y2−u)) d(γTc−(1−T)⊗γTc−(1−T))(u,v).\begin{aligned} L_{V,T}(x,y') ={}&\int_{\mathbb R} E_V\!\left( (x_1,\sqrt T\,x_2-\sqrt{1-T}\,e), (y_1,\sqrt T\,y_2-\sqrt{1-T}\,e)\right)\\ &\hspace{15mm}\cdot \tau\!\left(\sqrt{1-T}\,x_2+\sqrt T\,e,\, \sqrt{1-T}\,y_2+\sqrt T\,e\right)\,de,\\ C_{V,T,c}(x,y') ={}&\int_{\mathbb R^2} \exp\!\left[\frac{i v(x_2-y_2)}2\right] L_{V,T}\bigl((x_1,x_2-u),(y_1,y_2-u)\bigr)\, d(\gamma_{Tc-(1-T)}\otimes\gamma_{Tc-(1-T)})(u,v). \end{aligned}LV,T​(x,y′)=CV,T,c​(x,y′)=​∫R​EV​((x1​,T​x2​−1−T​e),(y1​,T​y2​−1−T​e))⋅τ(1−T​x2​+T​e,1−T​y2​+T​e)de,∫R2​exp[2iv(x2​−y2​)​]LV,T​((x1​,x2​−u),(y1​,y2​−u))d(γTc−(1−T)​⊗γTc−(1−T)​)(u,v).​

Let Ω=(R×R)×R\Omega=(\mathbb R\times\mathbb R)\times\mathbb RΩ=(R×R)×R, with its Lebesgue measure. For each real bbb, and x=((x1,x2),x3)x=((x_1,x_2),x_3)x=((x1​,x2​),x3​), y′=((y1,y2),y3)y'=((y_1,y_2),y_3)y′=((y1​,y2​),y3​) in Ω\OmegaΩ, define

Hb(x,y′)=t CV,T,c ⁣((x1,tb−1−t x2),(y1,tb−1−t y2))⋅EN ⁣((1−tt b+t x2,x3),(1−tt b+t y2,y3)),pb=∫ΩRe⁡Hb(x,x) dx,Kb(x,y′)=Hb(x,y′)pb.\begin{aligned} H_b(x,y')={}&\sqrt t\, C_{V,T,c}\!\left( (x_1,tb-\sqrt{1-t}\,x_2), (y_1,tb-\sqrt{1-t}\,y_2)\right)\\ &\quad\cdot E_N\!\left( (\sqrt{1-t}\sqrt t\,b+\sqrt t\,x_2,x_3), (\sqrt{1-t}\sqrt t\,b+\sqrt t\,y_2,y_3)\right),\\ p_b={}&\int_\Omega \operatorname{Re}H_b(x,x)\,dx,\qquad K_b(x,y')=\frac{H_b(x,y')}{p_b}. \end{aligned}Hb​(x,y′)=pb​=​t​CV,T,c​((x1​,tb−1−t​x2​),(y1​,tb−1−t​y2​))⋅EN​((1−t​t​b+t​x2​,x3​),(1−t​t​b+t​y2​,y3​)),∫Ω​ReHb​(x,x)dx,Kb​(x,y′)=pb​Hb​(x,y′)​.​

To define the coefficient matrix of KbK_bKb​, let

Hk(s)=(−1)kes2dkdske−s2,hk(q)=e−q2/4Hk(q/2)2 2kk!π,w((m1,m2),m3)(((x1,x2),x3))=hm1(x1)hm2(x2)hm3(x3).\begin{aligned} \mathcal H_k(s) &=(-1)^k e^{s^2}\frac{d^k}{ds^k}e^{-s^2},\\ h_k(q) &=\frac{e^{-q^2/4}\mathcal H_k(q/\sqrt2)} {\sqrt{\sqrt2}\,\sqrt{2^k k!\sqrt\pi}},\\ w_{((m_1,m_2),m_3)}(((x_1,x_2),x_3)) &=h_{m_1}(x_1)h_{m_2}(x_2)h_{m_3}(x_3). \end{aligned}Hk​(s)hk​(q)w((m1​,m2​),m3​)​(((x1​,x2​),x3​))​=(−1)kes2dskdk​e−s2,=2​​2kk!π​​e−q2/4Hk​(q/2​)​,=hm1​​(x1​)hm2​​(x2​)hm3​​(x3​).​

Writing I=(N×N)×N\mathcal I=(\mathbb N\times\mathbb N)\times\mathbb NI=(N×N)×N, set

Qb(m,n)=∫Ω×Ωwm(x)‾Kb(x,y′)wn(y′) d(x,y′)(m,n∈I).Q_b(m,n)=\int_{\Omega\times\Omega} \overline{w_m(x)}K_b(x,y')w_n(y')\,d(x,y') \qquad(m,n\in\mathcal I).Qb​(m,n)=∫Ω×Ω​wm​(x)​Kb​(x,y′)wn​(y′)d(x,y′)(m,n∈I).

For any kernel KKK on Ω\OmegaΩ, define its characteristic function by

FK(u)=∫ΩK ⁣(((q1+u1,q2+u3),q3+u5),((q1−u1,q2−u3),q3−u5))ei(u0q1+u2q2+u4q3) dq,u∈R6,F_K(u)=\int_\Omega K\!\left(((q_1+u_1,q_2+u_3),q_3+u_5), ((q_1-u_1,q_2-u_3),q_3-u_5)\right) e^{i(u_0q_1+u_2q_2+u_4q_3)}\,dq, \qquad u\in\mathbb R^6,FK​(u)=∫Ω​K(((q1​+u1​,q2​+u3​),q3​+u5​),((q1​−u1​,q2​−u3​),q3​−u5​))ei(u0​q1​+u2​q2​+u4​q3​)dq,u∈R6,

and its real 6×66\times66×6 covariance matrix by

ΓK(i,j)=−Re⁡ ⁣(D(DFK)(0)[ei][ej])−Im⁡ ⁣(DFK(0)[ei])Im⁡ ⁣(DFK(0)[ej]),0≤i,j<6,\Gamma_K(i,j)= -\operatorname{Re}\!\left(D(DF_K)(0)[e_i][e_j]\right) -\operatorname{Im}\!\left(DF_K(0)[e_i]\right) \operatorname{Im}\!\left(DF_K(0)[e_j]\right), \qquad 0\le i,j<6,ΓK​(i,j)=−Re(D(DFK​)(0)[ei​][ej​])−Im(DFK​(0)[ei​])Im(DFK​(0)[ej​]),0≤i,j<6,

where eie_iei​ are the standard coordinate vectors and the derivatives are real Fréchet derivatives. Let

J=diag⁡ ⁣((01−10),(01−10),(01−10)).J=\operatorname{diag}\!\left( \begin{pmatrix}0&1\\-1&0\end{pmatrix}, \begin{pmatrix}0&1\\-1&0\end{pmatrix}, \begin{pmatrix}0&1\\-1&0\end{pmatrix}\right).J=diag((0−1​10​),(0−1​10​),(0−1​10​)).

Finally, for a complex matrix QQQ indexed by I\mathcal II, define the extended nonnegative entropy

S(Q)=1log⁡2sup⁡S⊆IS finite[Re⁡tr⁡(QS)log⁡ ⁣(Re⁡tr⁡(QS))−Re⁡tr⁡ ⁣(QS log⁡fc(QS))]+,\mathscr S(Q)=\frac1{\log2} \sup_{\substack{S\subseteq\mathcal I\\S\text{ finite}}} \left[ \operatorname{Re}\operatorname{tr}(Q_S) \log\!\bigl(\operatorname{Re}\operatorname{tr}(Q_S)\bigr) -\operatorname{Re}\operatorname{tr}\!\bigl(Q_S\,\log_{\mathrm{fc}}(Q_S)\bigr) \right]_+,S(Q)=log21​S⊆IS finite​sup​[Retr(QS​)log(Retr(QS​))−Retr(QS​logfc​(QS​))]+​,

where QSQ_SQS​ is the principal submatrix on SSS, [r]+=max⁡(r,0)[r]_+=\max(r,0)[r]+​=max(r,0) is viewed in [0,∞][0,\infty][0,∞], and log⁡fc\log_{\mathrm{fc}}logfc​ is the continuous functional calculus applied to the real logarithm. Also put

g(x)=(1+x)log⁡2(1+x)−xlog⁡2x,g(x)=(1+x)\log_2(1+x)-x\log_2x,g(x)=(1+x)log2​(1+x)−xlog2​x,

using the total real logarithm, for which log⁡0=0\log0=0log0=0, so g(0)=0g(0)=0g(0)=0. With these definitions, the assertion is

1≤ℓ4≤ℓ3,A2−4B≥0,(ℓ32)2−Aℓ32+B=0,(ℓ42)2−Aℓ42+B=0,\begin{gathered} 1\le\ell_4\le\ell_3,\qquad A^2-4B\ge0,\\ (\ell_3^2)^2-A\ell_3^2+B=0,\qquad (\ell_4^2)^2-A\ell_4^2+B=0, \end{gathered}1≤ℓ4​≤ℓ3​,A2−4B≥0,(ℓ32​)2−Aℓ32​+B=0,(ℓ42​)2−Aℓ42​+B=0,​

and, for every real bbb, all of the following hold: pb>0p_b>0pb​>0 and

pb=12π(y+d)exp⁡ ⁣[−b22(y+d)];p_b=\frac1{\sqrt{2\pi(y+d)}}\exp\!\left[-\frac{b^2}{2(y+d)}\right];pb​=2π(y+d)​1​exp[−2(y+d)b2​];

the function (x,y′)↦Kb(x,y′)(x,y')\mapsto K_b(x,y')(x,y′)↦Kb​(x,y′) is continuous, satisfies Kb(x,y′)=Kb(y′,x)‾K_b(x,y')=\overline{K_b(y',x)}Kb​(x,y′)=Kb​(y′,x)​, and, for every finite S⊆ΩS\subseteq\OmegaS⊆Ω and every function a:Ω→Ca:\Omega\to\mathbb Ca:Ω→C, the number

∑x∈S∑y′∈Sa(x)‾Kb(x,y′)a(y′)\sum_{x\in S}\sum_{y'\in S}\overline{a(x)}K_b(x,y')a(y')x∈S∑​y′∈S∑​a(x)​Kb​(x,y′)a(y′)

has zero imaginary part and nonnegative real part; moreover, x↦Re⁡Kb(x,x)x\mapsto\operatorname{Re}K_b(x,x)x↦ReKb​(x,x) is integrable and has integral 111. The matrix QbQ_bQb​ is a density matrix in the following precise sense: there exist sequences ur,vr∈ℓ2(I;C)u_r,v_r\in\ell^2(\mathcal I;\mathbb C)ur​,vr​∈ℓ2(I;C), indexed by r∈Nr\in\mathbb Nr∈N, such that

∑r∥ur∥∥vr∥<∞,Qb(m,n)=∑rur(m)vr(n)‾for every m,n;\sum_r\|u_r\|\|v_r\|<\infty,\qquad Q_b(m,n)=\sum_r u_r(m)\overline{v_r(n)} \quad\text{for every }m,n;r∑​∥ur​∥∥vr​∥<∞,Qb​(m,n)=r∑​ur​(m)vr​(n)​for every m,n;

for every finite S⊆IS\subseteq\mathcal IS⊆I and every a:I→Ca:\mathcal I\to\mathbb Ca:I→C, the sum ∑m,n∈Sa(m)‾Qb(m,n)a(n)\sum_{m,n\in S}\overline{a(m)}Q_b(m,n)a(n)∑m,n∈S​a(m)​Qb​(m,n)a(n) has zero imaginary part and nonnegative real part; and the real diagonal entries are summable with

∑m∈IRe⁡Qb(m,m)=1.\sum_{m\in\mathcal I}\operatorname{Re}Q_b(m,m)=1.m∈I∑​ReQb​(m,m)=1.

For every m,n∈Im,n\in\mathcal Im,n∈I, the integrand (x,y′)↦wm(x)‾Kb(x,y′)wn(y′)(x,y')\mapsto\overline{w_m(x)}K_b(x,y')w_n(y')(x,y′)↦wm​(x)​Kb​(x,y′)wn​(y′) is integrable on Ω×Ω\Omega\times\OmegaΩ×Ω. The function FKbF_{K_b}FKb​​ is twice continuously differentiable on all of R6\mathbb R^6R6, and

ΓKb=ΓK0,charpoly⁡(JΓKb)(ξ)=(ξ2+1)(ξ2+ℓ32)(ξ2+ℓ42).\Gamma_{K_b}=\Gamma_{K_0},\qquad \operatorname{charpoly}(J\Gamma_{K_b})(\xi) =(\xi^2+1)(\xi^2+\ell_3^2)(\xi^2+\ell_4^2).ΓKb​​=ΓK0​​,charpoly(JΓKb​​)(ξ)=(ξ2+1)(ξ2+ℓ32​)(ξ2+ℓ42​).

Its coefficient entropy satisfies

S(Qb)<∞,S(Qb)=[g ⁣(ℓ3−12)+g ⁣(ℓ4−12)]+.\mathscr S(Q_b)<\infty,\qquad \mathscr S(Q_b)= \left[g\!\left(\frac{\ell_3-1}{2}\right) +g\!\left(\frac{\ell_4-1}{2}\right)\right]_+.S(Qb​)<∞,S(Qb​)=[g(2ℓ3​−1​)+g(2ℓ4​−1​)]+​.

The parameter ranges include T=1T=1T=1, t=1t=1t=1, V=1V=1V=1, N=1N=1N=1, and equality in the lower bound on ccc; thus the Gaussian measures used in constructing CV,T,cC_{V,T,c}CV,T,c​ may have zero variance, and ddd may be zero. Equality ℓ4=1\ell_4=1ℓ4​=1 is allowed, with the corresponding g(0)g(0)g(0) term equal to zero. The displayed kernel integrals use the total Bochner integral, which is zero for a nonintegrable integrand.

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

    Confirmed by the moderator at approval.

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