Exact Lean source
PCTRankPurificationNormalization
formalization/Cloning/PCTRankPurificationNormalization.lean
Source hash: 58fb5c579cf95f55ebede22e06c0a8ec4188c635bed6a029b233f7c10121ee36
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
definition
Cloning.PCTRankPurification.momentNormalizerdefinition Cloning.PCTRankPurification.momentSupporttheorem Cloning.PCTRankPurification.momentNormalizer_startheorem Cloning.PCTRankPurification.momentSupport_startheorem Cloning.PCTRankPurification.momentSupport_mul_selftheorem Cloning.PCTRankPurification.momentNormalizer_normalizesdefinition Cloning.PCTRankPurification.normalizedMomenttheorem Cloning.PCTRankPurification.normalizedMoment_posSemideftheorem Cloning.PCTRankPurification.partialTrace_normalizedMomenttheorem Cloning.PCTRankPurification.partialTrace_rectangularHaarMoment_posSemidefdefinition Cloning.PCTRankPurification.rankPurificationChannel1import Cloning.PCTRankPurificationMoment
2import Cloning.MatrixPartialTraceCovariance
3import Mathlib.Analysis.Matrix.PosDef
4
5/-! Spectral support normalization of the literal rectangular Haar moment. -/
6noncomputable section
7open scoped BigOperators Classical Matrix Kronecker MatrixOrder ComplexOrder Matrix.Norms.L2Operator
8open Matrix MeasureTheory Unitary
9namespace Cloning.PCTRankPurification
10open Cloning.PCTPurificationChannel Cloning.Compression Cloning.Channels
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1400000
13variable {A B : Type*} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
14local instance normalizationMatrixCStar (I : Type*) [Fintype I] [DecidableEq I] :
15 CStarAlgebra (Matrix I I ℂ) where
16
17/-- Inverse square root on positive eigenvalues, with zero on the null space. -/
18def momentNormalizer (H : Matrix A A ℂ) (hH : H.PosSemidef) : Matrix A A ℂ :=
19 conjStarAlgAut ℂ _ hH.1.eigenvectorUnitary
20 (Matrix.diagonal (fun a => ((Real.sqrt (hH.1.eigenvalues a))⁻¹ : ℂ)))
21
22def momentSupport (H : Matrix A A ℂ) (hH : H.PosSemidef) : Matrix A A ℂ :=
23 conjStarAlgAut ℂ _ hH.1.eigenvectorUnitary
24 (Matrix.diagonal (fun a => if hH.1.eigenvalues a=0 then 0 else (1 : ℂ)))
25
26theorem momentNormalizer_star (H : Matrix A A ℂ) (hH : H.PosSemidef) :
27 (momentNormalizer H hH)ᴴ=momentNormalizer H hH := by
28 change star (momentNormalizer H hH)=momentNormalizer H hH
29 unfold momentNormalizer
30 rw [← map_star]
31 congr 1
32 ext a b
33 by_cases hab : a=b
34 · subst b; simp [Matrix.diagonal_apply]
35 · simp [Matrix.diagonal_apply,hab,Ne.symm hab]
36
37theorem momentSupport_star (H : Matrix A A ℂ) (hH : H.PosSemidef) :
38 (momentSupport H hH)ᴴ=momentSupport H hH := by
39 change star (momentSupport H hH)=momentSupport H hH
40 unfold momentSupport
41 rw [← map_star]
42 congr 1
43 ext a b
44 by_cases hab : a=b
45 · subst b; simp [Matrix.diagonal_apply]
46 · simp [Matrix.diagonal_apply,hab,Ne.symm hab]
47
48theorem momentSupport_mul_self (H : Matrix A A ℂ) (hH : H.PosSemidef) :
49 momentSupport H hH*momentSupport H hH=momentSupport H hH := by
50 unfold momentSupport
51 rw [← map_mul,Matrix.diagonal_mul_diagonal]
52 congr 1
53 ext a b
54 by_cases hab : a=b
55 · subst b
56 simp
57 · simp [Matrix.diagonal_apply_ne _ hab]
58
59theorem momentNormalizer_normalizes (H : Matrix A A ℂ) (hH : H.PosSemidef) :
60 momentNormalizer H hH*H*(momentNormalizer H hH)ᴴ=momentSupport H hH := by
61 rw [momentNormalizer_star]
62 conv_lhs => arg 1; arg 2; rw [hH.1.spectral_theorem]
63 unfold momentNormalizer momentSupport
64 rw [← map_mul,← map_mul,Matrix.diagonal_mul_diagonal,Matrix.diagonal_mul_diagonal]
65 congr 1
66 apply congrArg Matrix.diagonal
67 funext a
68 change ((Real.sqrt (hH.1.eigenvalues a))⁻¹ : ℂ)*(hH.1.eigenvalues a : ℂ)*
69 ((Real.sqrt (hH.1.eigenvalues a))⁻¹ : ℂ) = if hH.1.eigenvalues a=0 then 0 else 1
70 by_cases ha : hH.1.eigenvalues a=0
71 · simp [ha]
72 · rw [if_neg ha]
73 have hs : Real.sqrt (hH.1.eigenvalues a) ≠ 0 :=
74 (Real.sqrt_pos.2 (lt_of_le_of_ne (hH.eigenvalues_nonneg a) (Ne.symm ha))).ne'
75 have he := Real.sq_sqrt (hH.eigenvalues_nonneg a)
76 have hz : ((Real.sqrt (hH.1.eigenvalues a))⁻¹ : ℝ)*hH.1.eigenvalues a*
77 (Real.sqrt (hH.1.eigenvalues a))⁻¹=1 := by
78 field_simp
79 nlinarith [he]
80 exact_mod_cast hz
81
82/-- Normalize a positive bipartite moment on its actual input support. -/
83def normalizedMoment (R : Matrix (A×B) (A×B) ℂ)
84 (hH : (partialTrace R).PosSemidef) : Matrix (A×B) (A×B) ℂ :=
85 (momentNormalizer (partialTrace R) hH ⊗ₖ (1 : Matrix B B ℂ))*R*
86 (momentNormalizer (partialTrace R) hH ⊗ₖ (1 : Matrix B B ℂ))ᴴ
87
88theorem normalizedMoment_posSemidef (R : Matrix (A×B) (A×B) ℂ)
89 (hR : R.PosSemidef) (hH : (partialTrace R).PosSemidef) :
90 (normalizedMoment R hH).PosSemidef := hR.mul_mul_conjTranspose_same _
91
92theorem partialTrace_normalizedMoment (R : Matrix (A×B) (A×B) ℂ)
93 (hH : (partialTrace R).PosSemidef) :
94 partialTrace (normalizedMoment R hH)=momentSupport (partialTrace R) hH := by
95 rw [normalizedMoment,partialTrace_tensor_conjugation _ _ _ (by simp)]
96 exact momentNormalizer_normalizes _ hH
97
98variable [Nonempty A]
99theorem partialTrace_rectangularHaarMoment_posSemidef (n : ℕ) (J : Matrix A B ℂ) :
100 (partialTrace (rectangularHaarMoment n J)).PosSemidef := by
101 rw [partialTrace_rectangularHaarMoment]
102 apply Matrix.nonneg_iff_posSemidef.mp
103 apply integral_nonneg
104 intro U
105 change 0 ≤ tensorPower n (U.val*(J*Jᴴ)*U.valᴴ)
106 have he : (U.val*(J*Jᴴ)*U.valᴴ)=(U.val*J)*(U.val*J)ᴴ := by
107 simp only [Matrix.conjTranspose_mul,Matrix.mul_assoc]
108 rw [he,tensorPower_mul,tensorPower_star]
109 exact (Matrix.posSemidef_self_mul_conjTranspose _).nonneg
110
111/-- An explicit all-input CPTP rectangular purification map. Its normalization
112and completion are proved from the actual Haar moment and its spectrum. -/
113def rankPurificationChannel (n : ℕ) (J : Matrix A B ℂ)
114 (b0 : (Fin n → A)×(Fin n → B)) :
115 MatrixChannel (Fin n → A) ((Fin n → A)×(Fin n → B)) :=
116 supportedPurificationChannel
117 (normalizedMoment (rectangularHaarMoment n J) (partialTrace_rectangularHaarMoment_posSemidef n J))
118 (normalizedMoment_posSemidef _ (rectangularHaarMoment_posSemidef n J) _)
119 (momentSupport _ (partialTrace_rectangularHaarMoment_posSemidef n J))
120 (momentSupport_star _ _) (momentSupport_mul_self _ _)
121 (partialTrace_normalizedMoment _ _) b0
122
123end Cloning.PCTRankPurification