Offline · exact source
Exact Lean source

PurificationSupport

formalization/Cloning/PurificationSupport.lean

Source hash: 6675b07b2b5e6efdaae382387a778ecde62eba2abaf2b51a1c98c4d4ea2b5735

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.PCTPurificationChannelPhysical
2 
3/-! Actual symmetric support of the Haar square-root purification channel,
4for every complex input matrix. -/
5noncomputable section
6open scoped BigOperators Matrix Kronecker MatrixOrder ComplexOrder InnerProductSpace Matrix.Norms.L2Operator
7open Matrix MeasureTheory Cloning.InfiniteTraceClass Cloning.PCT
8open Cloning.PCTPurificationChannel Cloning.InfiniteFiniteCorner
9 
10namespace Cloning.PurificationSupport
11set_option maxHeartbeats 500000
12set_option backward.isDefEq.respectTransparency false
13set_option linter.unusedSectionVars false
14 
15variable {A : Type*} [Fintype A] [DecidableEq A] [Nonempty A]
16 
17local instance registerFiniteDimensional (I : Type*) [Fintype I] [DecidableEq I] :
18    FiniteDimensional ℂ (Register I) :=
19  (registerBasis I).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
20 
21local instance matrixCStar (I : Type*) [Fintype I] [DecidableEq I] :
22    CStarAlgebra (Matrix I I ℂ) where
23 
24/-- Simultaneous slot permutations in the grouped system/environment register. -/
25def groupedSymmetric (n : ℕ) : Submodule ℂ (Register ((Fin n → A) × (Fin n → A))) where
26  carrier := {x | ∀ a b (σ : Equiv.Perm (Fin n)), x (a ∘ σ, b ∘ σ) = x (a, b)}
27  zero_mem' := by intro a b σ; rfl
28  add_mem' := by intro x y hx hy a b σ; exact congrArg₂ (· + ·) (hx a b σ) (hy a b σ)
29  smul_mem' := by intro c x hx a b σ; exact congrArg (c • ·) (hx a b σ)
30 
31/-- This subspace is exactly the regrouped physical symmetric subspace. -/
32theorem regroup_mem_groupedSymmetric_iff (n : ℕ) (x : Register (Fin n → A × A)) :
33    regroup n x ∈ groupedSymmetric (A := A) n ↔ x ∈ physicalSymmetric n := by
34  constructor
35  · intro hx w σ
36    simpa only [regroup_apply, Function.comp_apply, Prod.eta] using
37      hx (fun i => (w i).1) (fun i => (w i).2) σ
38  · intro hx a b σ
39    simpa only [regroup_apply, Function.comp_apply] using hx (fun i => (a i, b i)) σ
40 
41/-- Computational matrix of the actual orthogonal symmetric projection. -/
42def symmetricMatrix (n : ℕ) :
43    Matrix ((Fin n → A) × (Fin n → A)) ((Fin n → A) × (Fin n → A)) ℂ :=
44  matrixOf (registerBasis _) (groupedSymmetric (A := A) n).starProjection
45 
46theorem ofMatrix_injective {I : Type*} [Fintype I] [DecidableEq I] :
47    Function.Injective (ofMatrix (registerBasis I)) := by
48  intro X Y h
49  have h' := congrArg (matrixOf (registerBasis I)) h
50  simpa only [matrixOf_ofMatrix (registerBasis I).orthonormal] using h'
51 
52theorem ofMatrix_matrixOf_register {I : Type*} [Fintype I] [DecidableEq I]
53    (T : Register I →L[ℂ] Register I) :
54    ofMatrix (registerBasis I) (matrixOf (registerBasis I) T) = T := by
55  apply register_operator_ext
56  intro a b
57  change (registerLiftCLM (matrixOf (registerBasis I) T)).1 (lp.single 2 b 1) a = _
58  rw [registerLiftCLM_coefficient]
59  simp only [matrixOf, registerBasis_apply, register_inner_single]
60 
61theorem ofMatrix_symmetricMatrix (n : ℕ) :
62    ofMatrix (registerBasis _) (symmetricMatrix (A := A) n) =
63      (groupedSymmetric (A := A) n).starProjection :=
64  ofMatrix_matrixOf_register _
65 
66theorem symmetricMatrix_idempotent (n : ℕ) :
67    symmetricMatrix (A := A) n * symmetricMatrix n = symmetricMatrix n := by
68  apply ofMatrix_injective
69  rw [ofMatrix_mul (registerBasis _).orthonormal, ofMatrix_symmetricMatrix]
70  exact (isStarProjection_starProjection (U := groupedSymmetric (A := A) n)).isIdempotentElem.eq
71 
72theorem symmetricMatrix_conjTranspose (n : ℕ) :
73    (symmetricMatrix (A := A) n).conjTranspose = symmetricMatrix n := by
74  apply ofMatrix_injective
75  rw [ofMatrix_conjTranspose, ofMatrix_symmetricMatrix]
76  exact (isStarProjection_starProjection (U := groupedSymmetric (A := A) n)).isSelfAdjoint
77 
78/-- The actual grouped tensor coefficient vector of a bipartite matrix. -/
79def momentVector (n : ℕ) (Z : Matrix A A ℂ) : Register ((Fin n → A) × (Fin n → A)) :=
80  ⟨entangledTensor n Z, memℓp_gen (by
81    simp only [ENNReal.toReal_ofNat]; exact (hasSum_fintype _).summable)⟩
82 
83theorem momentVector_mem (n : ℕ) (Z : Matrix A A ℂ) :
84    momentVector n Z ∈ groupedSymmetric n := by
85  intro a b σ
86  change (∏ i, Z (a (σ i)) (b (σ i))) = ∏ i, Z (a i) (b i)
87  exact Equiv.prod_comp σ (fun i => Z (a i) (b i))
88 
89theorem symmetricMatrix_momentVector (n : ℕ) (Z : Matrix A A ℂ)
90    (a : (Fin n → A) × (Fin n → A)) :
91    ∑ b, symmetricMatrix (A := A) n a b * entangledTensor n Z b = entangledTensor n Z a := by
92  have hv : (groupedSymmetric (A := A) n).starProjection (momentVector n Z) = momentVector n Z :=
93    (groupedSymmetric (A := A) n).starProjection_eq_self_iff.mpr (momentVector_mem n Z)
94  have he := inner_ofMatrix_apply (registerBasis _).orthonormal
95    (symmetricMatrix (A := A) n) (momentVector n Z) a
96  rw [ofMatrix_symmetricMatrix, hv] at he
97  simpa only [registerBasis_apply, register_inner_single, momentVector] using he.symm
98 
99theorem entangledMoment_supported_left (n : ℕ) (Z : Matrix A A ℂ) :
100    symmetricMatrix (A := A) n * entangledMoment n Z = entangledMoment n Z := by
101  ext a c
102  simp only [Matrix.mul_apply, entangledMoment, ← mul_assoc, ← Finset.sum_mul]
103  rw [symmetricMatrix_momentVector]
104 
105theorem entangledMoment_supported_right (n : ℕ) (Z : Matrix A A ℂ) :
106    entangledMoment n Z * symmetricMatrix (A := A) n = entangledMoment n Z := by
107  have h := congrArg Matrix.conjTranspose (entangledMoment_supported_left n Z)
108  simpa only [Matrix.conjTranspose_mul, symmetricMatrix_conjTranspose,
109    (entangledMoment_posSemidef n Z).isHermitian.eq] using h
110 
111/-- Support of the actual Haar moment follows from its concrete tensor integrands. -/
112theorem haarMoment_supported (n : ℕ) :
113    symmetricMatrix (A := A) n * haarMoment n * symmetricMatrix n = haarMoment n := by
114  have he := (matrixSandwichCLM (symmetricMatrix (A := A) n)).integral_comp_comm
115    (integrable_haar_entangledMoment (A := A) n)
116  change (∫ U : unitary (Matrix A A ℂ), symmetricMatrix n * entangledMoment n (U : Matrix A A ℂ) *
117      (symmetricMatrix n).conjTranspose ∂unitaryHaar) =
118    symmetricMatrix n * haarMoment n * (symmetricMatrix n).conjTranspose at he
119  simpa only [symmetricMatrix_conjTranspose, entangledMoment_supported_left,
120    entangledMoment_supported_right, haarMoment, integralMoment] using he.symm
121 
122/-- A positive matrix supported by an orthogonal projector has supported square root. -/
123theorem sqrt_supported {I : Type*} [Fintype I] [DecidableEq I]
124    (P R : Matrix I I ℂ) (hP : P * P = P) (hPs : P.conjTranspose = P)
125    (hR : R.PosSemidef) (hPRP : P * R * P = R) :
126    P * CFC.sqrt R = CFC.sqrt R ∧ CFC.sqrt R * P = CFC.sqrt R := by
127  have hPR : P * R = R := by
128    calc
129      P * R = P * (P * R * P) := by rw [hPRP]
130      _ = P * R * P := by simp only [← Matrix.mul_assoc, hP]
131      _ = R := hPRP
132  have hRP : R * P = R := by
133    simpa only [Matrix.conjTranspose_mul, hPs, hR.isHermitian.eq] using
134      congrArg Matrix.conjTranspose hPR
135  have hzero : (CFC.sqrt R * (1 - P)).conjTranspose * (CFC.sqrt R * (1 - P)) = 0 := by
136    rw [Matrix.conjTranspose_mul, Matrix.conjTranspose_sub, Matrix.conjTranspose_one,
137      hPs, Cloning.MatrixFidelity.sqrt_conjTranspose]
138    calc
139      (1 - P) * CFC.sqrt R * (CFC.sqrt R * (1 - P)) =
140          (1 - P) * (CFC.sqrt R * CFC.sqrt R) * (1 - P) := by simp only [Matrix.mul_assoc]
141      _ = (1 - P) * R * (1 - P) := by rw [Cloning.MatrixFidelity.sqrt_mul_self hR]
142      _ = 0 := by rw [Matrix.sub_mul, Matrix.one_mul, hPR, sub_self, Matrix.zero_mul]
143  have hz : CFC.sqrt R * (1 - P) = 0 :=
144    (CStarRing.star_mul_self_eq_zero_iff _).mp hzero
145  have hright : CFC.sqrt R * P = CFC.sqrt R := by
146    rw [Matrix.mul_sub, Matrix.mul_one] at hz
147    exact (sub_eq_zero.mp hz).symm
148  refine ⟨?_, hright⟩
149  simpa only [Matrix.conjTranspose_mul, hPs, Cloning.MatrixFidelity.sqrt_conjTranspose] using
150    congrArg Matrix.conjTranspose hright
151 
152/-- No square-root support hypothesis is assumed for the Haar construction. -/
153theorem haarMoment_sqrt_supported (n : ℕ) :
154    symmetricMatrix (A := A) n * CFC.sqrt (haarMoment n) = CFC.sqrt (haarMoment n) ∧
155      CFC.sqrt (haarMoment (A := A) n) * symmetricMatrix n = CFC.sqrt (haarMoment n) :=
156  sqrt_supported (symmetricMatrix (A := A) n) (haarMoment (A := A) n)
157    (symmetricMatrix_idempotent (A := A) n) (symmetricMatrix_conjTranspose (A := A) n)
158    (haarMoment_posSemidef (A := A) n) (haarMoment_supported (A := A) n)
159 
160/-- The constructed Haar purification channel takes every complex matrix into
161its actual physical symmetric sector, not only tensor-power density inputs. -/
162theorem haarPurificationChannel_supported (n : ℕ)
163    (X : Matrix (Fin n → A) (Fin n → A) ℂ) :
164    symmetricMatrix (A := A) n * (haarPurificationChannel n).toFun X * symmetricMatrix n =
165      (haarPurificationChannel n).toFun X := by
166  rw [haarPurificationChannel_apply, purificationMap]
167  obtain ⟨hleft, hright⟩ := haarMoment_sqrt_supported (A := A) n
168  calc
169    symmetricMatrix n * (CFC.sqrt (haarMoment n) * (X ⊗ₖ 1) * CFC.sqrt (haarMoment n)) *
170        symmetricMatrix n =
171      (symmetricMatrix n * CFC.sqrt (haarMoment n)) * (X ⊗ₖ 1) *
172        (CFC.sqrt (haarMoment n) * symmetricMatrix n) := by simp only [Matrix.mul_assoc]
173    _ = _ := by rw [hleft, hright]
174 
175 
176end Cloning.PurificationSupport