Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Covariance of the actual attenuator output on AB

Open
QAlgorithms.Papers.Independent.Intake100.P05.channelCovariance

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

prove2quantum

Let V≥1V\ge1V≥1, 0<T≤10<T\le10<T≤1, and χC≥(1−T)/T\chi_C\ge(1-T)/TχC​≥(1−T)/T be finite real parameters. Send mode BBB of the normalized EPR preparation through the phase-insensitive attenuating line of transmittivity TTT and input-referred noise χC\chi_CχC​. The line is constructed as vacuum attenuation followed by independent Gaussian quadrature displacements of variance TχC−(1−T)T\chi_C-(1-T)TχC​−(1−T). No trusted detector mode is added at this stage. In the order (qA,pA,qB,pB)(q_A,p_A,q_B,p_B)(qA​,pA​,qB​,pB​), the actual output is a centered normalized density with smooth Weyl characteristic and covariance

γAB=(VIzσzσT(V+χC)I),z=T(V2−1),I=diag⁡(1,1),σ=diag⁡(1,−1).\gamma_{AB}=\begin{pmatrix}VI&z\sigma\\ z\sigma&T(V+\chi_C)I\end{pmatrix}, \qquad z=\sqrt{T(V^2-1)},\quad I=\operatorname{diag}(1,1),\quad \sigma=\operatorname{diag}(1,-1).γAB​=(VIzσ​zσT(V+χC​)I​),z=T(V2−1)​,I=diag(1,1),σ=diag(1,−1).

The covariance is obtained from the first and second derivatives of the constructed output's characteristic function. This identifies the actual channel output with the covariance used in the security calculation; the matrix is not an assumed description of an arbitrary state.

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 p.3, Eq.(3): the covariance of the actual
EPR source after the physical attenuating channel. Channel CP noise is
chiC >= (1-T)/T. The construction includes T=1 with finite additive noise,
and V=1 with zero cross covariance. Detector modes have not been added. -/
theorem channelCovariance (V T chiC : ℝ) (hV : 1 ≤ V)
    (hT : 0 < T) (hTupper : T ≤ 1) (hC : (1 - T) / T ≤ chiC) :
    IsContinuousDensityKernel volume (channelKernel V T chiC) ∧
    ContDiff ℝ 2 (kernelCharacteristic (channelKernel V T chiC)) ∧
    (∀ i, kernelMean (channelKernel V T chiC) i = 0) ∧
    kernelCovariance (channelKernel V T chiC) = abCovariance V T chiC := by sorry

end QAlgorithms.Papers.Independent.Intake100.P05

end
Source
Continuous-variable quantum key distribution protocols over noisy channels, arXiv:0806.3954v2, PDF p. 3, Eq.(3)
Read-back

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

For every V,T,χC∈RV,T,\chi_C\in\mathbb RV,T,χC​∈R satisfying V≥1V\ge1V≥1, 0<T≤10<T\le10<T≤1, and χC≥(1−T)/T\chi_C\ge(1-T)/TχC​≥(1−T)/T, put η=TχC−(1−T)≥0\eta=T\chi_C-(1-T)\ge0η=TχC​−(1−T)≥0, and let Nη\mathcal N_\etaNη​ be the centered Gaussian measure of variance η\etaη, with the point-mass convention when η=0\eta=0η=0. Define

EV(s,q)=12πexp⁡ ⁣(−V(s2+q2)−2V2−1 sq4),H1(q,t)=12πexp⁡ ⁣(−(q+t)28−(q−t)28),E_V(s,q)=\frac{1}{\sqrt{2\pi}} \exp\!\left(-\frac{V(s^2+q^2)-2\sqrt{V^2-1}\,sq}{4}\right), \quad H_1(q,t)=\frac{1}{\sqrt{2\pi}} \exp\!\left(-\frac{(q+t)^2}{8}-\frac{(q-t)^2}{8}\right),EV​(s,q)=2π​1​exp(−4V(s2+q2)−2V2−1​sq​),H1​(q,t)=2π​1​exp(−8(q+t)2​−8(q−t)2​), L(x,y)=∫REV ⁣(x1,T x2−1−T e)EV ⁣(y1,T y2−1−T e)‾H1 ⁣(1−T x2+T e, 1−T y2+T e) de,L(x,y)=\int_{\mathbb R} E_V\!\left(x_1,\sqrt T\,x_2-\sqrt{1-T}\,e\right) \overline{E_V\!\left(y_1,\sqrt T\,y_2-\sqrt{1-T}\,e\right)} H_1\!\left(\sqrt{1-T}\,x_2+\sqrt T\,e,\, \sqrt{1-T}\,y_2+\sqrt T\,e\right)\,de,L(x,y)=∫R​EV​(x1​,T​x2​−1−T​e)EV​(y1​,T​y2​−1−T​e)​H1​(1−T​x2​+T​e,1−T​y2​+T​e)de, K(x,y)=∫R2e iv(x2−y2)/2L((x1,x2−u),(y1,y2−u)) d(Nη⊗Nη)(u,v),K(x,y)=\int_{\mathbb R^2} e^{\,iv(x_2-y_2)/2} L\bigl((x_1,x_2-u),(y_1,y_2-u)\bigr)\, d(\mathcal N_\eta\otimes\mathcal N_\eta)(u,v),K(x,y)=∫R2​eiv(x2​−y2​)/2L((x1​,x2​−u),(y1​,y2​−u))d(Nη​⊗Nη​)(u,v),

and

CK(a)=∫R2K((q1+a1,q2+a3),(q1−a1,q2−a3))e i(a0q1+a2q2) dq.C_K(a)=\int_{\mathbb R^2} K\bigl((q_1+a_1,q_2+a_3),(q_1-a_1,q_2-a_3)\bigr) e^{\,i(a_0q_1+a_2q_2)}\,dq.CK​(a)=∫R2​K((q1​+a1​,q2​+a3​),(q1​−a1​,q2​−a3​))ei(a0​q1​+a2​q2​)dq.

The theorem asserts that KKK is jointly continuous and Hermitian, every finite quadratic sum ∑x,y∈Fc(x)‾K(x,y)c(y)\sum_{x,y\in F}\overline{c(x)}K(x,y)c(y)∑x,y∈F​c(x)​K(x,y)c(y) is real and nonnegative for every finite F⊆R2F\subseteq\mathbb R^2F⊆R2 and every c:R2→Cc:\mathbb R^2\to\mathbb Cc:R2→C, and its real diagonal is integrable with integral 111. It also asserts that CK:R4→CC_K:\mathbb R^4\to\mathbb CCK​:R4→C is twice continuously differentiable, that Im⁡(DCK(0)[ei])=0\operatorname{Im}(DC_K(0)[e_i])=0Im(DCK​(0)[ei​])=0 for every i∈{0,1,2,3}i\in\{0,1,2,3\}i∈{0,1,2,3}, and that the matrix with entries

−Re⁡ ⁣(D(DCK)(0)[ei][ej])−Im⁡(DCK(0)[ei])Im⁡(DCK(0)[ej])-\operatorname{Re}\!\left(D(DC_K)(0)[e_i][e_j]\right) -\operatorname{Im}(DC_K(0)[e_i])\operatorname{Im}(DC_K(0)[e_j])−Re(D(DCK​)(0)[ei​][ej​])−Im(DCK​(0)[ei​])Im(DCK​(0)[ej​])

equals

(V0z00V0−zz0y00−z0y),z=T(V2−1),y=T(V+χC).\begin{pmatrix} V&0&z&0\\ 0&V&0&-z\\ z&0&y&0\\ 0&-z&0&y \end{pmatrix}, \qquad z=\sqrt{T(V^2-1)},\quad y=T(V+\chi_C).​V0z0​0V0−z​z0y0​0−z0y​​,z=T(V2−1)​,y=T(V+χC​).

All unlabeled integrals use Lebesgue measure, and all derivatives are real Fréchet derivatives.

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