Offline · exact source
Exact Lean source

MatrixRankCompressionFidelity

formalization/Cloning/MatrixRankCompressionFidelity.lean

Source hash: 6b798ea0615f1024d5e0497d44d4b41683fe5297f6e13a0ba1da142971c6cffb

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Cloning.MatrixFidelityEmbedding
2import Cloning.MatrixFidelityScaling
3import Cloning.CartanChannel
4 
5/-! Exact fidelity under rectangular support compression, and its application
6to the dimension-ratio Cartan formula. These matrix lemmas support the physical
7rank-restriction theorem for arbitrary spectra. -/
8noncomputable section
9open scoped BigOperators MatrixOrder ComplexOrder Matrix Kronecker
10namespace Cloning.MatrixFidelity
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1000000
13variable {m n : Type*} [Fintype m] [Fintype n] [DecidableEq m] [DecidableEq n]
14 
15/-- Only the target support contributes to root fidelity; the first argument
16may have arbitrary positive mass and coherences outside that support. -/
17theorem fidelity_rectangular_compression (J : Matrix m n ℂ) (hJ : Jᴴ*J=1)
18    {A : Matrix m m ℂ} {B : Matrix n n ℂ} (hA : A.PosSemidef) (hB : B.PosSemidef) :
19    fidelity A (J*B*Jᴴ)=fidelity (Jᴴ*A*J) B := by
20  unfold fidelity
21  rw [sqrt_isometric_embedding J hJ hB]
22  have hs : (J*CFC.sqrt B*Jᴴ)*A*(J*CFC.sqrt B*Jᴴ)=
23      J*(CFC.sqrt B*(Jᴴ*A*J)*CFC.sqrt B)*Jᴴ := by simp only [Matrix.mul_assoc]
24  rw [hs,sqrt_isometric_embedding J hJ
25    (sandwich_posSemidef (hA.conjTranspose_mul_mul_same J) B)]
26  rw [Matrix.trace_mul_comm,←Matrix.mul_assoc,hJ,Matrix.one_mul]
27 
28/-- Exact support compression followed by a positive scale gives the square
29root of that scale, including singular and non-flat target states. -/
30theorem fidelity_of_rectangular_compression (J : Matrix m n ℂ) (hJ : Jᴴ*J=1)
31    {A : Matrix m m ℂ} {X B : Matrix n n ℂ} (hA : A.PosSemidef)
32    (hX : X.PosSemidef) (hB : B.PosSemidef) (s : ℝ) (hs : 0≤s)
33    (hcomp : Jᴴ*A*J=s • X) :
34    fidelity A (J*B*Jᴴ)=Real.sqrt s*fidelity X B := by
35  rw [fidelity_rectangular_compression J hJ hA hB,hcomp,fidelity_smul_left s X B hs hX]
36 
37end Cloning.MatrixFidelity
38 
39namespace Cloning.Compression
40open Cloning.MatrixFidelity
41set_option backward.isDefEq.respectTransparency false
42set_option maxHeartbeats 1000000
43variable {A B C a b c : Type*}
44variable [Fintype A] [Fintype B] [Fintype C] [Fintype a] [Fintype b] [Fintype c]
45variable [DecidableEq A] [DecidableEq B] [DecidableEq C]
46variable [DecidableEq a] [DecidableEq b] [DecidableEq c]
47 
48theorem sectorMap_posSemidef (V : Matrix (A×B) C ℂ) (din dout : ℝ)
49    (hr : 0≤din/dout) {X : Matrix A A ℂ} (hX : X.PosSemidef) :
50    (sectorMap din dout V X).PosSemidef := by
51  rw [Cloning.CartanChannel.sectorMap_eq_kraus V X din dout hr]
52  exact Cloning.Channels.krausMap_positive _ hX
53 
54/-- Algebraic root-fidelity rank factorization, for arbitrary positive input
55and target matrices, using the actual rectangular restriction square. -/
56theorem sectorMap_fidelity_factorization
57    (Ja : Matrix A a ℂ) (Jb : Matrix B b ℂ) (Jc : Matrix C c ℂ)
58    (Vd : Matrix (A×B) C ℂ) (Vr : Matrix (a×b) c ℂ)
59    (X : Matrix a a ℂ) (Y : Matrix c c ℂ) (ad bd ar br : ℝ)
60    (ha : Jaᴴ*Ja=1) (hb : Jbᴴ*Jb=1) (hc : Jcᴴ*Jc=1)
61    (hrestriction : Vd*Jc=(Ja⊗ₖJb)*Vr)
62    (had : 0<ad) (hbd : 0<bd) (har : 0<ar) (hbr : 0<br)
63    (hX : X.PosSemidef) (hY : Y.PosSemidef) :
64    fidelity (sectorMap ad bd Vd (Ja*X*Jaᴴ)) (Jc*Y*Jcᴴ)=
65      Real.sqrt ((ad/ar)/(bd/br))*fidelity (sectorMap ar br Vr X) Y := by
66  apply fidelity_of_rectangular_compression Jc hc
67    (sectorMap_posSemidef Vd ad bd (by positivity) (hX.mul_mul_conjTranspose_same Ja))
68    (sectorMap_posSemidef Vr ar br (by positivity) hX) hY _ (by positivity)
69  exact sectorMap_compression Ja Jb Jc Vd Vr X ad bd ar br ha hb hrestriction
70    hbd.ne' har.ne' hbr.ne'
71 
72end Cloning.Compression