Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Quantum and classical chi-square factorization

Open
QAlgorithms.Papers.Independent.Intake100.P74.quantum_classical_chiSquare_factorization

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

prove2quantum

Fix 0≤k≤10\le k\le10≤k≤1, noise photon number Nc≥0N_c\ge0Nc​≥0, and N>0N>0N>0. Let U,VU,VU,V be independent real random variables with arbitrary probability laws. Form Z=N/2(U+iV)Z=\sqrt{N/2}(U+iV)Z=N/2​(U+iV) and pass ∣Z⟩|Z\rangle∣Z⟩ through attenuation of amplitude kkk followed by independent circular Gaussian noise of mean photon number NcN_cNc​. Let ρ\rhoρ be the resulting average Fock-space state and N′=k2N+NcN'=k^2N+N_cN′=k2N+Nc​. If N′>0N'>0N′>0, set

s=k2NN′(N′+1)−k2N.s=\frac{k^2N}{\sqrt{N'(N'+1)}-k^2N}.s=N′(N′+1)​−k2Nk2N​.

Let Y∼N(0,1+s)Y\sim\mathcal N(0,1+s)Y∼N(0,1+s) and let Y1′=sU+G1Y'_1=\sqrt{s}U+G_1Y1′​=s​U+G1​, Y2′=sV+G2Y'_2=\sqrt{s}V+G_2Y2′​=s​V+G2​, with independent standard normal noises independent of the inputs. Then

1+χ2(ρ,τN′)=(1+χ2(PY1′,PY))(1+χ2(PY2′,PY)).1+\chi^2(\rho,\tau_{N'})=(1+\chi^2(P_{Y'_1},P_Y))(1+\chi^2(P_{Y'_2},P_Y)).1+χ2(ρ,τN′​)=(1+χ2(PY1′​​,PY​))(1+χ2(PY2′​​,PY​)).

The quantum convention is Tr⁡[ρτ−1/2ρτ−1/2]−1\operatorname{Tr}[\rho\tau^{-1/2}\rho\tau^{-1/2}]-1Tr[ρτ−1/2ρτ−1/2]−1. All divergences may be infinite. If N′=0N'=0N′=0, ρ\rhoρ is vacuum and its divergence from vacuum is zero. This includes pure loss and the k=1k=1k=1 additive-noise endpoint. The measure formulation includes densities and finite atomic constellations.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P74
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P74

open MeasureTheory

open scoped BigOperators ENNReal

open QAlgorithms.Papers.Independent.Dependency50.P33 (IsDensity)

open QAlgorithms.Papers.Independent.Dependency50.P39 (coherentCoefficient thermalMatrix)

open QAlgorithms.Papers.Independent.Support50.P14 (photonEnergy)

open QAlgorithms.Papers.Independent.Next46.P32 (complexNormal spectralEntropyNats)

open QAlgorithms.Papers.Independent.Claimed50.P39 (thermalProbability g)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF pp.7--9, Lemma 1. Printed: arbitrary density variables, without an
explicit independence hypothesis. Changed: independent coordinate probability
laws. Why: Section 4 specifies independence and (32) factors their joint law.
The measure notation also makes the finite atomic specialization in (12)
well defined by integration of the same kernels; no moment condition is added.
Nc=0 includes pure loss without dividing by Nc. The replacing-vacuum endpoint
is separate from the SNR expression. -/
theorem quantum_classical_chiSquare_factorization
    (k Nc N : ℝ) (hk : 0 ≤ k) (hkUpper : k ≤ 1) (hNc : 0 ≤ Nc) (hN : 0 < N)
    (mu nu : Measure ℝ) [IsProbabilityMeasure mu] [IsProbabilityMeasure nu] :
    (0 < k ^ 2 * N + Nc →
      1 + quantumChiSquare (constellationOutput k Nc N mu nu) (k ^ 2 * N + Nc) =
        (1 + classicalChiSquare (comparisonSnr k Nc N) mu) *
        (1 + classicalChiSquare (comparisonSnr k Nc N) nu)) ∧
    (k ^ 2 * N + Nc = 0 →
      constellationOutput k Nc N mu nu = thermalMatrix 1 ∧
      quantumChiSquare (constellationOutput k Nc N mu nu) 0 = 0) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P74

end
Source
Coherent-state constellations and polar codes for thermal Gaussian channels, arXiv:1603.05970v3, PDF p. 7, Appendix A, Lemma 1: quantum/classical chi-square factorization
Read-back

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

Let k,Nc,N∈Rk,N_c,N\in\mathbb Rk,Nc​,N∈R satisfy 0≤k≤10\le k\le10≤k≤1, Nc≥0N_c\ge0Nc​≥0, and N>0N>0N>0, and let μ,ν\mu,\nuμ,ν be arbitrary probability measures on R\mathbb RR. Set

M=k2N+Nc,s=k2NM(M+1)−k2N.M=k^2N+N_c,\qquad s=\frac{k^2N}{\sqrt{M(M+1)}-k^2N}.M=k2N+Nc​,s=M(M+1)​−k2Nk2N​.

Let γNc\gamma_{N_c}γNc​​ be the point mass at 000 if Nc=0N_c=0Nc​=0, and otherwise the measure on C\mathbb CC with density [e−∣w∣2/Nc/(πNc)]+[e^{-|w|^2/N_c}/(\pi N_c)]_+[e−∣w∣2/Nc​/(πNc​)]+​ relative to planar Lebesgue measure. Let λ\lambdaλ be the pushforward of μ⊗ν⊗γNc\mu\otimes\nu\otimes\gamma_{N_c}μ⊗ν⊗γNc​​ under

(x,y,w)⟼kN/2(x+iy)+w,(x,y,w)\longmapsto k\sqrt{N/2}(x+\mathrm i y)+w,(x,y,w)⟼kN/2​(x+iy)+w,

and define

ci(z)=e−∣z∣2/2zii!,ρij=∫Cci(z)cj(z)‾ dλ(z).c_i(z)=e^{-|z|^2/2}\frac{z^i}{\sqrt{i!}}, \qquad \rho_{ij}=\int_{\mathbb C}c_i(z)\overline{c_j(z)}\,d\lambda(z).ci​(z)=e−∣z∣2/2i!​zi​,ρij​=∫C​ci​(z)cj​(z)​dλ(z).

For a real probability measure η\etaη, define

φv(t)=e−t2/(2v)2πv,Cs(η)=(∫R−(∫R−[φ1(y−s x)]+ dη(x))2[φ1+s(y)]+ dy)\dotminus1.\varphi_v(t)=\frac{e^{-t^2/(2v)}}{\sqrt{2\pi v}},\qquad C_s(\eta)= \left( \int_{\mathbb R}^{-} \frac{\left(\int_{\mathbb R}^{-} [\varphi_1(y-\sqrt{s}\,x)]_+\,d\eta(x)\right)^2} {[\varphi_{1+s}(y)]_+}\,dy \right)\dotminus1.φv​(t)=2πv​e−t2/(2v)​,Cs​(η)=​∫R−​[φ1+s​(y)]+​(∫R−​[φ1​(y−s​x)]+​dη(x))2​dy​\dotminus1.

For M>0M>0M>0, define

QM(ρ)=(∑i,j≥0[∣ρij∣2θM(i)θM(j)]+)\dotminus1,θM(i)=(M/(M+1))iM+1.Q_M(\rho)= \left( \sum_{i,j\ge0} \left[ \frac{|\rho_{ij}|^2} {\sqrt{\theta_M(i)\theta_M(j)}} \right]_+ \right)\dotminus1, \qquad \theta_M(i)=\frac{(M/(M+1))^i}{M+1}.QM​(ρ)=(i,j≥0∑​[θM​(i)θM​(j)​∣ρij​∣2​]+​)\dotminus1,θM​(i)=M+1(M/(M+1))i​.

Then

M>0⟹1+QM(ρ)=(1+Cs(μ))(1+Cs(ν)).M>0\quad\Longrightarrow\quad 1+Q_M(\rho)=\bigl(1+C_s(\mu)\bigr)\bigl(1+C_s(\nu)\bigr).M>0⟹1+QM​(ρ)=(1+Cs​(μ))(1+Cs​(ν)).

Also, if M=0M=0M=0, then ρ00=1\rho_{00}=1ρ00​=1, every other entry of ρ\rhoρ is zero, and Q0(ρ)=0Q_0(\rho)=0Q0​(ρ)=0, where Q0(R)Q_0(R)Q0​(R) is defined as [∣R00∣2]+\dotminus1[|R_{00}|^2]_+\dotminus1[∣R00​∣2]+​\dotminus1 when all entries outside (0,0)(0,0)(0,0) vanish, and as ∞\infty∞ otherwise. Here [r]+=ofReal⁡(r)[r]_+=\operatorname{ofReal}(r)[r]+​=ofReal(r), and all subtractions marked \dotminus\dotminus\dotminus are truncated extended-real subtractions. The measures μ,ν\mu,\nuμ,ν need not have densities or finite moments and may be point masses; infinite chi-square values are allowed. The zero-output case is included and, under these hypotheses, forces k=Nc=0k=N_c=0k=Nc​=0.

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