Offline · exact source
Exact Lean source

TensorFlatProjectorCompression

formalization/Cloning/TensorFlatProjectorCompression.lean

Source hash: 18ee6b86c83eb3ea2b919498386a40472fe8704aee488b17377537e45fb6bca8

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.TensorFlatProjectorMatrix
2import Cloning.TensorCartanChannel
3 
4/-! Exact flat-target fidelity from physical support-projection covariance. -/
5noncomputable section
6open scoped BigOperators Matrix Kronecker MatrixOrder Matrix.Norms.L2Operator ComplexOrder
7namespace Cloning.TensorLie
8open Cloning.MatrixFidelity
9set_option maxHeartbeats 1200000
10set_option backward.isDefEq.respectTransparency false
11 
12section Matrices
13variable {A B C : Type*} [Fintype A] [Fintype B] [Fintype C]
14    [DecidableEq A] [DecidableEq B] [DecidableEq C]
15 
16/-- Flat-target fidelity depends only on the exact target-support compression. -/
17theorem fidelity_of_projector_compression (X P : Matrix C C ℂ) (c q : ℝ)
18    (hc : 0 ≤ c) (hq : 0 ≤ q) (hP : P.PosSemidef) (hPP : P*P=P)
19    (hXP : P*X*P=c • P) :
20    fidelity X (q • P) = Real.sqrt (c*q) * (Matrix.trace P).re := by
21  unfold fidelity
22  rw [sqrt_smul_projector hP hPP q hq]
23  have hs : (Real.sqrt q • P)*X*(Real.sqrt q • P)=(c*q) • P := by
24    simp only [Matrix.smul_mul, Matrix.mul_smul, smul_smul]
25    rw [hXP, smul_smul, Real.mul_self_sqrt hq]
26    congr 1
27    ring
28  rw [hs, sqrt_smul_projector hP hPP (c*q) (mul_nonneg hc hq)]
29  simp only [Matrix.trace_smul, Complex.smul_re, smul_eq_mul]
30 
31/-- Covariance at a support projection determines the entire compressed
32Cartan output, with no smaller-rank intertwiner premise. -/
33theorem cartan_support_compression (V : Matrix (A×B) C ℂ)
34    (Pa : Matrix A A ℂ) (Pb : Matrix B B ℂ) (Pc : Matrix C C ℂ)
35    (hV : Vᴴ*V=1) (hPa : Pa*Pa=Pa) (hPc : Pc*Pc=Pc)
36    (hcov : V*Pc=(Pa⊗ₖPb)*V) :
37    Pc*(Vᴴ*(Pa⊗ₖ(1 : Matrix B B ℂ))*V)*Pc=Pc := by
38  have hprod : (Pa⊗ₖ(1 : Matrix B B ℂ))*(Pa⊗ₖPb)=Pa⊗ₖPb := by
39    rw [← Matrix.mul_kronecker_mul, hPa, Matrix.one_mul]
40  have hvp : (Pa⊗ₖ(1 : Matrix B B ℂ))*(V*Pc)=V*Pc := by
41    rw [hcov, ← Matrix.mul_assoc, hprod]
42  calc
43    _ = Pc*(Vᴴ*((Pa⊗ₖ(1 : Matrix B B ℂ))*(V*Pc))) := by simp only [Matrix.mul_assoc]
44    _ = Pc*(Vᴴ*(V*Pc)) := by rw [hvp]
45    _ = Pc*((Vᴴ*V)*Pc) := by simp only [Matrix.mul_assoc]
46    _ = Pc := by rw [hV, Matrix.one_mul, hPc]
47 
48/-- Exact sector fidelity for the genuine Cartan compression formula. -/
49theorem sectorMap_flat_projector_fidelity (V : Matrix (A×B) C ℂ)
50    (Pa : Matrix A A ℂ) (Pb : Matrix B B ℂ) (Pc : Matrix C C ℂ)
51    (Da Dc sa sc : ℝ) (hDa : 0 < Da) (hDc : 0 < Dc) (hsa : 0 < sa) (hsc : 0 < sc)
52    (hV : Vᴴ*V=1) (hPa : Pa*Pa=Pa) (hPc : Pc*Pc=Pc) (hPcpos : Pc.PosSemidef)
53    (htrace : (Matrix.trace Pc).re=sc) (hcov : V*Pc=(Pa⊗ₖPb)*V) :
54    fidelity (Cloning.Compression.sectorMap Da Dc V ((1/sa) • Pa)) ((1/sc) • Pc) =
55      Real.sqrt ((Da/Dc)*(sc/sa)) := by
56  have hcomp : Pc*Cloning.Compression.sectorMap Da Dc V ((1/sa) • Pa)*Pc =
57      ((Da/Dc)*(1/sa)) • Pc := by
58    unfold Cloning.Compression.sectorMap
59    simp only [Matrix.smul_kronecker, Matrix.mul_smul, Matrix.smul_mul, smul_smul]
60    rw [cartan_support_compression V Pa Pb Pc hV hPa hPc hcov]
61  rw [fidelity_of_projector_compression _ Pc ((Da/Dc)*(1/sa)) (1/sc)
62    (by positivity) (by positivity) hPcpos hPc hcomp, htrace]
63  calc
64    _ = Real.sqrt (((Da/Dc)*(1/sa))*(1/sc))*Real.sqrt (sc^2) := by rw [Real.sqrt_sq hsc.le]
65    _ = Real.sqrt ((((Da/Dc)*(1/sa))*(1/sc))*sc^2) :=
66      (Real.sqrt_mul (by positivity) _).symm
67    _ = _ := by
68      congr 1
69      field_simp
70 
71end Matrices
72 
73end Cloning.TensorLie