Exact Lean source
PCTRankPurificationFunctional
formalization/Cloning/PCTRankPurificationFunctional.lean
Source hash: 1a92ef46adb5fd0f6bb196f046354fb2002672a1139634f6d1298cf8f6597ffb
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.momentSpectraltheorem Cloning.PCTRankPurification.diagonal_function_commutestheorem Cloning.PCTRankPurification.momentSpectral_commutestheorem Cloning.PCTRankPurification.momentNormalizer_commutestheorem Cloning.PCTRankPurification.momentSupport_commutestheorem Cloning.PCTRankPurification.diagonal_function_left_eigenrelationtheorem Cloning.PCTRankPurification.momentSpectral_left_eigenrelation1import Cloning.PCTRankPurificationNormalization
2
3/-! Elementary finite spectral calculus for the actual moment normalizer. -/
4noncomputable section
5open scoped BigOperators Classical Matrix ComplexOrder
6open Matrix Unitary
7namespace Cloning.PCTRankPurification
8set_option backward.isDefEq.respectTransparency false
9set_option maxHeartbeats 1200000
10variable {A : Type*} [Fintype A] [DecidableEq A]
11
12def momentSpectral (H : Matrix A A ℂ) (hH : H.PosSemidef) (f : ℝ → ℂ) : Matrix A A ℂ :=
13 conjStarAlgAut ℂ _ hH.1.eigenvectorUnitary (Matrix.diagonal (fun a => f (hH.1.eigenvalues a)))
14
15theorem diagonal_function_commutes (lambda : A → ℝ) (f : ℝ → ℂ) (X : Matrix A A ℂ)
16 (hX : Matrix.diagonal (fun a => (lambda a : ℂ))*X=X*Matrix.diagonal (fun a => (lambda a : ℂ))) :
17 Matrix.diagonal (fun a => f (lambda a))*X=X*Matrix.diagonal (fun a => f (lambda a)) := by
18 ext a b
19 have hab := congrArg (fun T : Matrix A A ℂ => T a b) hX
20 simp only [Matrix.diagonal_mul,Matrix.mul_diagonal] at hab ⊢
21 by_cases he : lambda a=lambda b
22 · rw [he]; exact mul_comm _ _
23 · have hn : (lambda a : ℂ)-(lambda b : ℂ)≠0 := by
24 exact sub_ne_zero.mpr (fun hh => he (Complex.ofReal_injective hh))
25 have hz : ((lambda a : ℂ)-(lambda b : ℂ))*X a b=0 := by linear_combination hab
26 have hzero := (mul_eq_zero.mp hz).resolve_left hn
27 simp [hzero]
28
29theorem momentSpectral_commutes (H : Matrix A A ℂ) (hH : H.PosSemidef)
30 (f : ℝ → ℂ) (X : Matrix A A ℂ) (hX : H*X=X*H) :
31 momentSpectral H hH f*X=X*momentSpectral H hH f := by
32 let C := conjStarAlgAut ℂ (Matrix A A ℂ) hH.1.eigenvectorUnitary
33 have hs : H=C (Matrix.diagonal (fun a => (hH.1.eigenvalues a : ℂ))) := hH.1.spectral_theorem
34 have hCH : C.symm H=Matrix.diagonal (fun a => (hH.1.eigenvalues a : ℂ)) :=
35 (congrArg C.symm hs).trans (C.symm_apply_apply _)
36 have he := congrArg C.symm hX
37 simp only [map_mul,hCH] at he
38 have hf := diagonal_function_commutes hH.1.eigenvalues f (C.symm X) he
39 have hh := congrArg C hf
40 simpa only [map_mul,StarAlgEquiv.apply_symm_apply] using hh
41
42theorem momentNormalizer_commutes (H : Matrix A A ℂ) (hH : H.PosSemidef)
43 (X : Matrix A A ℂ) (hX : H*X=X*H) :
44 momentNormalizer H hH*X=X*momentNormalizer H hH :=
45 momentSpectral_commutes H hH (fun t => ((Real.sqrt t)⁻¹ : ℂ)) X hX
46
47theorem momentSupport_commutes (H : Matrix A A ℂ) (hH : H.PosSemidef)
48 (X : Matrix A A ℂ) (hX : H*X=X*H) :
49 momentSupport H hH*X=X*momentSupport H hH :=
50 momentSpectral_commutes H hH (fun t => if t=0 then 0 else 1) X hX
51
52theorem diagonal_function_left_eigenrelation (lambda : A → ℝ) (f : ℝ → ℂ)
53 (X : Matrix A A ℂ) (c : ℝ)
54 (hX : Matrix.diagonal (fun a => (lambda a : ℂ))*X=(c : ℂ) • X) :
55 Matrix.diagonal (fun a => f (lambda a))*X=f c • X := by
56 ext a b
57 have hab := congrArg (fun T : Matrix A A ℂ => T a b) hX
58 simp only [Matrix.diagonal_mul,Matrix.smul_apply,smul_eq_mul] at hab ⊢
59 by_cases he : lambda a=c
60 · rw [he]
61 · have hn : (lambda a : ℂ)-(c : ℂ)≠0 :=
62 sub_ne_zero.mpr (fun hh => he (Complex.ofReal_injective hh))
63 have hz : ((lambda a : ℂ)-(c : ℂ))*X a b=0 := by linear_combination hab
64 simp [(mul_eq_zero.mp hz).resolve_left hn]
65
66theorem momentSpectral_left_eigenrelation (H : Matrix A A ℂ) (hH : H.PosSemidef)
67 (f : ℝ → ℂ) (X : Matrix A A ℂ) (c : ℝ) (hX : H*X=(c : ℂ) • X) :
68 momentSpectral H hH f*X=f c • X := by
69 let C := conjStarAlgAut ℂ (Matrix A A ℂ) hH.1.eigenvectorUnitary
70 have hs : H=C (Matrix.diagonal (fun a => (hH.1.eigenvalues a : ℂ))) := hH.1.spectral_theorem
71 have hCH : C.symm H=Matrix.diagonal (fun a => (hH.1.eigenvalues a : ℂ)) :=
72 (congrArg C.symm hs).trans (C.symm_apply_apply _)
73 have he := congrArg C.symm hX
74 simp only [map_mul,map_smul,hCH] at he
75 have hf := diagonal_function_left_eigenrelation hH.1.eigenvalues f (C.symm X) c he
76 have hh := congrArg C hf
77 simpa only [map_mul,map_smul,StarAlgEquiv.apply_symm_apply] using hh
78
79end Cloning.PCTRankPurification