Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Gaussian Choi rank and kernel dimensions

Open
QAlgorithms.Papers.Independent.Advance50.P19.gaussian_choi_rank

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

prove2quantum

Let TTT be an n→nn\to nn→n fermionic Gaussian CPTP channel with parameters A,BA,BA,B. Construct its normalized ordinary Choi density J(T)J(T)J(T) from the actual channel and write r=log⁡2rank⁡J(T)r=\log_2\operatorname{rank}J(T)r=log2​rankJ(T) for its rank in modes. Set M=(BA−AT0)M=\begin{pmatrix}B&A\\-A^T&0\end{pmatrix}M=(B−AT​A0​) and ℓ=dim⁡Cker⁡(I−AAT−iB)\ell=\dim_{\mathbb C}\ker(I-AA^T-iB)ℓ=dimC​ker(I−AAT−iB). Then

rank⁡J(T)=2r,r=2n−ℓ,dim⁡Cker⁡(I−iM)=ℓ,\operatorname{rank}J(T)=2^r,\qquad r=2n-\ell,\qquad\dim_{\mathbb C}\ker(I-iM)=\ell,rankJ(T)=2r,r=2n−ℓ,dimC​ker(I−iM)=ℓ,

and 2r2r2r is the number of eigenvalues of MMM with modulus strictly below one, counted with multiplicity. If I−AATI-AA^TI−AAT has full rank and B′=(I−AAT)−1/2B(I−AAT)−1/2B'=(I-AA^T)^{-1/2}B(I-AA^T)^{-1/2}B′=(I−AAT)−1/2B(I−AAT)−1/2, then also ℓ=dim⁡Cker⁡(I−iB′)\ell=\dim_{\mathbb C}\ker(I-iB')ℓ=dimC​ker(I−iB′). This identifies the required environment size without defining it by the formula to be proved.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P19
Formal statement
noncomputable section

open scoped BigOperators Matrix ComplexConjugate ComplexOrder

namespace QAlgorithms.Papers.Independent.Advance50.P19

open QAlgorithms.Papers.Independent.Information100.P67
  (IsIsometry receiverChannel complementaryChannel)

open QAlgorithms.Papers.Independent.Information100.P62 (tensorChannel)

open QAlgorithms.Papers.Independent.Information100.P80 (quantumCapacity)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF p.9, Lemma S9: ordinary Choi rank is 2^r and its mode rank r is
2n-l. Eigenvalues are counted with algebraic multiplicity, using the complex
characteristic polynomial of M. The final normalized-noise equality is guarded
by full rank of I-AA^T. The proof's mixed-mode kernel-dimension typo is not used. -/
theorem gaussian_choi_rank {n : ℕ} (s t : CARSystem n)
    (T : Superop (Qubits n) (Qubits n)) (A B : Matrix (Major n) (Major n) ℝ)
    (hT : IsFGC s t T A B) :
    let M := (choiCovariance A B).map Complex.ofReal
    let l := nullityC (fermionicCPMatrix A B)
    let r := choiModeRank T
    Matrix.rank (normalizedChoiDensity T) = 2 ^ r ∧
      r = 2 * n - l ∧
      nullityC (1 - Complex.I • M) = l ∧
      2 * r = (M.charpoly.roots.filter (fun z => ‖z‖ < 1)).card ∧
      (Matrix.rank (1 - A * A.transpose) = 2 * n →
        l = nullityC (1 - Complex.I • normalizedNoise A B)) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P19

end
Source
Degradability of Fermionic Gaussian Channels, arXiv:1604.01954v2, PDF p. 9, Lemma S9
Read-back

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

For every n∈Nn\in\mathbb Nn∈N, put Mn={0,…,2n−1}M_n=\{0,\ldots,2n-1\}Mn​={0,…,2n−1}, Hn=C{0,1}n\mathcal H_n=\mathbb C^{\{0,1\}^n}Hn​=C{0,1}n, and let si,tis_i,t_isi​,ti​, i∈Mni\in M_ni∈Mn​, be two families of Hermitian matrices on Hn\mathcal H_nHn​, each satisfying the anticommutation identities sisj+sjsi=2δijIs_i s_j+s_j s_i=2\delta_{ij}Isi​sj​+sj​si​=2δij​I, respectively titj+tjti=2δijIt_i t_j+t_j t_i=2\delta_{ij}Iti​tj​+tj​ti​=2δij​I. Let TTT be a matrix map on Hn\mathcal H_nHn​, and A,B∈RMn×MnA,B\in\mathbb R^{M_n\times M_n}A,B∈RMn​×Mn​. Assume T(X)=∑νKνXKν†T(X)=\sum_\nu K_\nu X K_\nu^\daggerT(X)=∑ν​Kν​XKν†​ for a finite family with ∑νKν†Kν=I\sum_\nu K_\nu^\dagger K_\nu=I∑ν​Kν†​Kν​=I, BT=−BB^{\mathsf T}=-BBT=−B, and the following identities for every complex matrix XXX and every ordered list L=(L0,…,Lq−1)L=(L_0,\ldots,L_{q-1})L=(L0​,…,Lq−1​) in MnM_nMn​:

tr⁡ ⁣(T(X)∏ptLp)=tr⁡ ⁣(X∑S⊆{0,…,q−1}(−1)c(S)Wq(C,LSc)∏p∈Sin increasing order(∑jALpjsj)).\operatorname{tr}\!\left(T(X)\prod_p t_{L_p}\right) = \operatorname{tr}\!\left( X\sum_{S\subseteq\{0,\ldots,q-1\}} (-1)^{c(S)}W_q(C,L_{S^c}) \prod_{p\in S}^{\text{in increasing order}} \left(\sum_j A_{L_pj}s_j\right)\right).tr(T(X)p∏​tLp​​)=tr​XS⊆{0,…,q−1}∑​(−1)c(S)Wq​(C,LSc​)p∈S∏in increasing order​(j∑​ALp​j​sj​)​.

Here C(i,j)=δij−(AAT)ij−iBijC(i,j)=\delta_{ij}-(AA^{\mathsf T})_{ij}-\mathrm iB_{ij}C(i,j)=δij​−(AAT)ij​−iBij​, c(S)=∣{(p,r):p∉S, r∈S, p<r}∣c(S)=|\{(p,r):p\notin S,\ r\in S,\ p<r\}|c(S)=∣{(p,r):p∈/S, r∈S, p<r}∣, and LScL_{S^c}LSc​ retains its order; the recursion is Wf(C,[])=1W_f(C,[])=1Wf​(C,[])=1, W0(C,L)=0W_0(C,L)=0W0​(C,L)=0 for nonempty LLL, and Wf+1(C,i::L)=∑r=0∣L∣−1(−1)rC(i,Lr)Wf(C,L with position r removed)W_{f+1}(C,i::L)=\sum_{r=0}^{|L|-1}(-1)^r C(i,L_r)W_f(C,L\text{ with position }r\text{ removed})Wf+1​(C,i::L)=∑r=0∣L∣−1​(−1)rC(i,Lr​)Wf​(C,L with position r removed). Define the complex matrices

H(b,a),(b′,a′)=2−nT(Eaa′)bb′,M=(BA−AT0),P=I−AAT−iB,H_{(b,a),(b',a')}=2^{-n}T(E_{aa'})_{bb'},\qquad M=\begin{pmatrix}B&A\\-A^{\mathsf T}&0\end{pmatrix},\qquad P=I-AA^{\mathsf T}-\mathrm iB,H(b,a),(b′,a′)​=2−nT(Eaa′​)bb′​,M=(B−AT​A0​),P=I−AAT−iB,

where a,a′,b,b′∈{0,1}na,a',b,b'\in\{0,1\}^na,a′,b,b′∈{0,1}n and Eaa′E_{aa'}Eaa′​ is the corresponding matrix unit. Put l=dim⁡Cker⁡Pl=\dim_{\mathbb C}\ker Pl=dimC​kerP and r=⌊log⁡2(rank⁡H)⌋r=\lfloor\log_2(\operatorname{rank}H)\rfloorr=⌊log2​(rankH)⌋, using the natural-number logarithm, whose value at zero is zero. Then

rank⁡H=2r,r=2n−˙l,dim⁡Cker⁡(I−iM)=l,2r=#{z among the roots of det⁡(xI−M):∣z∣<1},\operatorname{rank}H=2^r,\qquad r=2n\mathbin{\dot-}l,\qquad \dim_{\mathbb C}\ker(I-\mathrm iM)=l,\qquad 2r=\#\{z\text{ among the roots of }\det(xI-M):|z|<1\},rankH=2r,r=2n−˙​l,dimC​ker(I−iM)=l,2r=#{z among the roots of det(xI−M):∣z∣<1},

where roots are counted with algebraic multiplicity and 2n−˙l=max⁡(2n−l,0)2n\mathbin{\dot-}l=\max(2n-l,0)2n−˙​l=max(2n−l,0). Furthermore, if the real matrix I−AATI-AA^{\mathsf T}I−AAT has rank 2n2n2n, then

l=dim⁡Cker⁡(I−iRBR),R=f(I−AAT),f(x)=(x)−1,l=\dim_{\mathbb C}\ker(I-\mathrm iRBR),\qquad R=f(I-AA^{\mathsf T}),\quad f(x)=(\sqrt{x})^{-1},l=dimC​ker(I−iRBR),R=f(I−AAT),f(x)=(x​)−1,

where real matrices are viewed as complex matrices and fff is applied by continuous functional calculus, with the real square root and inverse interpreted as total functions, in particular f(0)=0f(0)=0f(0)=0. The statement includes n=0n=0n=0.

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