Exact Lean source
InfiniteFiniteCorner
formalization/Cloning/InfiniteFiniteCorner.lean
Source hash: 4fb509a73dfa4fc7bbaa82d2c76dc93aee8f6588a8b8227cc457f95f123e6403
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
theorem
Cloning.InfiniteFiniteCorner.traceCLM_rankOneOperatordefinition Cloning.InfiniteFiniteCorner.matrixLiftdefinition Cloning.InfiniteFiniteCorner.ofMatrixtheorem Cloning.InfiniteFiniteCorner.ofMatrix_traceClasstheorem Cloning.InfiniteFiniteCorner.ofMatrix_eq_sumtheorem Cloning.InfiniteFiniteCorner.ofMatrix_applytheorem Cloning.InfiniteFiniteCorner.inner_ofMatrix_applytheorem Cloning.InfiniteFiniteCorner.ofMatrix_multheorem Cloning.InfiniteFiniteCorner.ofMatrix_conjTransposetheorem Cloning.InfiniteFiniteCorner.ofMatrix_nonnegtheorem Cloning.InfiniteFiniteCorner.sqrt_ofMatrixtheorem Cloning.InfiniteFiniteCorner.trace_ofMatrixtheorem Cloning.InfiniteFiniteCorner.fidelity_ofMatrixdefinition Cloning.InfiniteFiniteCorner.matrixOfdefinition Cloning.InfiniteFiniteCorner.projectiontheorem Cloning.InfiniteFiniteCorner.projection_eq_sumtheorem Cloning.InfiniteFiniteCorner.projection_applytheorem Cloning.InfiniteFiniteCorner.matrixOf_posSemideftheorem Cloning.InfiniteFiniteCorner.ofMatrix_matrixOftheorem Cloning.InfiniteFiniteCorner.matrixOf_ofMatrixtheorem Cloning.InfiniteFiniteCorner.basisFamily_orthonormaltheorem Cloning.InfiniteFiniteCorner.projection_basistheorem Cloning.InfiniteFiniteCorner.ofMatrix_matrixOf_basis1import Cloning.InfiniteFidelity
2import Cloning.InfinitePureStateContinuity
3import Cloning.InfiniteHilbertSchmidtPositive
4import Cloning.InfiniteTraceClassCutoffConvergence
5
6/-!
7# Concrete finite matrix corners of an arbitrary Hilbert space
8
9A finite orthonormal family identifies matrices with finite-rank operators.
10This file constructs that identification using actual rank-one operators and
11proves its multiplication, adjoint, trace, positive-square-root, and fidelity
12identities. No trace or functional-calculus compatibility is assumed.
13-/
14
15noncomputable section
16
17open scoped ComplexOrder MatrixOrder InnerProductSpace Topology BigOperators Matrix
18open Filter
19
20namespace Cloning.InfiniteFiniteCorner
21
22set_option backward.isDefEq.respectTransparency false
23set_option linter.unusedSectionVars false
24
25open InfiniteTraceClass
26
27variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
28variable {ι : Type*} [Fintype ι] [DecidableEq ι]
29
30/-- The analytic trace of a general rank-one operator. -/
31theorem traceCLM_rankOneOperator (x y : H) :
32 traceCLM (rankOneOperator x y) = ⟪y, x⟫_ℂ := by
33 obtain ⟨w, b, _⟩ := exists_hilbertBasis ℂ H
34 change trace (InnerProductSpace.rankOne ℂ x y) _ = _
35 rw [trace_eq_of_hilbertBasis _ b]
36 simpa only [InnerProductSpace.rankOne_apply, inner_smul_right, mul_comm] using
37 (b.hasSum_inner_mul_inner y x).tsum_eq
38
39/-- A finite matrix, bundled with its actual trace-class realization. -/
40def matrixLift (v : ι → H) (M : Matrix ι ι ℂ) : TraceClass H :=
41 ∑ i, ∑ j, M i j • rankOneOperator (v i) (v j)
42
43/-- The corresponding bounded operator on the ambient Hilbert space. -/
44def ofMatrix (v : ι → H) (M : Matrix ι ι ℂ) : H →L[ℂ] H := (matrixLift v M).1
45
46theorem ofMatrix_traceClass (v : ι → H) (M : Matrix ι ι ℂ) :
47 IsTraceClass (ofMatrix v M) := (matrixLift v M).2
48
49theorem ofMatrix_eq_sum (v : ι → H) (M : Matrix ι ι ℂ) :
50 ofMatrix v M = ∑ i, ∑ j, M i j • InnerProductSpace.rankOne ℂ (v i) (v j) := by
51 change inclusionCLM (matrixLift v M) = _
52 simp only [matrixLift, map_sum, map_smul, inclusionCLM_apply,
53 rankOneOperator, TraceClass.ofOperator_coe]
54
55theorem ofMatrix_apply (v : ι → H) (M : Matrix ι ι ℂ) (z : H) :
56 ofMatrix v M z = ∑ i, (∑ j, M i j * ⟪v j, z⟫_ℂ) • v i := by
57 simp only [ofMatrix_eq_sum, ContinuousLinearMap.sum_apply,
58 ContinuousLinearMap.smul_apply, InnerProductSpace.rankOne_apply,
59 smul_smul, Finset.sum_smul]
60
61theorem inner_ofMatrix_apply {v : ι → H} (hv : Orthonormal ℂ v)
62 (M : Matrix ι ι ℂ) (z : H) (i : ι) :
63 ⟪v i, ofMatrix v M z⟫_ℂ = ∑ j, M i j * ⟪v j, z⟫_ℂ := by
64 rw [ofMatrix_apply]
65 exact hv.inner_right_fintype _ _
66
67theorem ofMatrix_mul {v : ι → H} (hv : Orthonormal ℂ v) (M N : Matrix ι ι ℂ) :
68 ofMatrix v (M * N) = ofMatrix v M * ofMatrix v N := by
69 ext z
70 rw [ContinuousLinearMap.mul_apply, ofMatrix_apply v M, ofMatrix_apply v (M * N)]
71 simp_rw [inner_ofMatrix_apply hv]
72 apply Finset.sum_congr rfl
73 intro i _
74 congr 1
75 simp only [Matrix.mul_apply, Finset.sum_mul, Finset.mul_sum, mul_assoc]
76 exact Finset.sum_comm
77
78theorem ofMatrix_conjTranspose (v : ι → H) (M : Matrix ι ι ℂ) :
79 ofMatrix v M.conjTranspose = star (ofMatrix v M) := by
80 simp only [ofMatrix_eq_sum, star_sum, star_smul, Matrix.conjTranspose_apply,
81 ContinuousLinearMap.star_eq_adjoint, InnerProductSpace.adjoint_rankOne]
82 exact Finset.sum_comm
83
84theorem ofMatrix_nonneg {v : ι → H} (hv : Orthonormal ℂ v)
85 {M : Matrix ι ι ℂ} (hM : M.PosSemidef) : 0 ≤ ofMatrix v M := by
86 rw [← MatrixFidelity.sqrt_mul_self hM, ofMatrix_mul hv]
87 have hstar : star (ofMatrix v (CFC.sqrt M)) = ofMatrix v (CFC.sqrt M) := by
88 rw [← ofMatrix_conjTranspose, MatrixFidelity.sqrt_conjTranspose]
89 simpa only [hstar] using star_mul_self_nonneg (ofMatrix v (CFC.sqrt M))
90
91theorem sqrt_ofMatrix {v : ι → H} (hv : Orthonormal ℂ v)
92 {M : Matrix ι ι ℂ} (hM : M.PosSemidef) :
93 CFC.sqrt (ofMatrix v M) = ofMatrix v (CFC.sqrt M) := by
94 apply CFC.sqrt_unique
95 · rw [← ofMatrix_mul hv, MatrixFidelity.sqrt_mul_self hM]
96 · exact ofMatrix_nonneg hv (MatrixFidelity.sqrt_posSemidef M)
97
98theorem trace_ofMatrix {v : ι → H} (hv : Orthonormal ℂ v) (M : Matrix ι ι ℂ) :
99 trace (ofMatrix v M) (ofMatrix_traceClass v M) = Matrix.trace M := by
100 change traceCLM (matrixLift v M) = _
101 simp only [matrixLift, map_sum, map_smul, traceCLM_rankOneOperator,
102 orthonormal_iff_ite.mp hv, smul_eq_mul, mul_ite, mul_one, mul_zero,
103 Matrix.trace, Matrix.diag]
104 simp
105
106/-- Analytic infinite-dimensional fidelity agrees exactly with finite matrix
107fidelity on a finite orthonormal corner. -/
108theorem fidelity_ofMatrix {v : ι → H} (hv : Orthonormal ℂ v)
109 {M N : Matrix ι ι ℂ} (hM : M.PosSemidef) (hN : N.PosSemidef) :
110 InfiniteFidelity.fidelity (ofMatrix v M) (ofMatrix v N)
111 (ofMatrix_nonneg hv hM) (ofMatrix_nonneg hv hN)
112 (ofMatrix_traceClass v M) (ofMatrix_traceClass v N) = MatrixFidelity.fidelity M N := by
113 rw [InfiniteFidelity.fidelity_eq_trace_sqrt_sandwich]
114 have heq : CFC.sqrt (CFC.sqrt (ofMatrix v N) * ofMatrix v M * CFC.sqrt (ofMatrix v N)) =
115 ofMatrix v (CFC.sqrt (CFC.sqrt N * M * CFC.sqrt N)) := by
116 rw [sqrt_ofMatrix hv hN, ← ofMatrix_mul hv, ← ofMatrix_mul hv,
117 sqrt_ofMatrix hv (MatrixFidelity.sandwich_posSemidef hM N)]
118 have htrace {X Y : H →L[ℂ] H} (he : X = Y) (hX : IsTraceClass X) (hY : IsTraceClass Y) :
119 trace X hX = trace Y hY := by subst Y; rfl
120 exact congrArg Complex.re ((htrace heq _ _).trans (trace_ofMatrix hv _))
121
122/-- The actual matrix coefficients of an ambient operator. -/
123def matrixOf (v : ι → H) (A : H →L[ℂ] H) : Matrix ι ι ℂ :=
124 fun i j => ⟪v i, A (v j)⟫_ℂ
125
126/-- The orthogonal projection when `v` is orthonormal. -/
127def projection (v : ι → H) : H →L[ℂ] H := ofMatrix v 1
128
129theorem projection_eq_sum (v : ι → H) :
130 projection v = ∑ i, InnerProductSpace.rankOne ℂ (v i) (v i) := by
131 simp [projection, ofMatrix_eq_sum, Matrix.one_apply]
132
133theorem projection_apply (v : ι → H) (x : H) :
134 projection v x = ∑ i, ⟪v i, x⟫_ℂ • v i := by
135 simp only [projection_eq_sum, ContinuousLinearMap.sum_apply, InnerProductSpace.rankOne_apply]
136
137theorem matrixOf_posSemidef (v : ι → H) {A : H →L[ℂ] H} (hA : 0 ≤ A) :
138 (matrixOf v A).PosSemidef := matrixCoefficients_posSemidef hA v
139
140/-- Reconstructing the coefficients gives the actual two-sided compression. -/
141theorem ofMatrix_matrixOf (v : ι → H) (A : H →L[ℂ] H) :
142 ofMatrix v (matrixOf v A) = projection v * A * projection v := by
143 ext x
144 simp only [ofMatrix_apply, matrixOf, ContinuousLinearMap.mul_apply, projection_apply,
145 map_sum, map_smul, Finset.sum_smul, Finset.smul_sum, smul_smul, mul_comm]
146 exact Finset.sum_comm
147
148theorem matrixOf_ofMatrix {v : ι → H} (hv : Orthonormal ℂ v) (M : Matrix ι ι ℂ) :
149 matrixOf v (ofMatrix v M) = M := by
150 ext i j
151 simp [matrixOf, inner_ofMatrix_apply hv, orthonormal_iff_ite.mp hv]
152
153/-- Every finite subset of a Hilbert basis is an actual orthonormal corner. -/
154theorem basisFamily_orthonormal {κ : Type*} (b : HilbertBasis κ ℂ H) (s : Finset κ) :
155 Orthonormal ℂ (fun i : s => b i) := b.orthonormal.comp Subtype.val Subtype.val_injective
156
157theorem projection_basis {κ : Type*} [DecidableEq κ] (b : HilbertBasis κ ℂ H) (s : Finset κ) :
158 projection (fun i : s => b i) = basisProjection b s := by
159 classical
160 rw [projection_eq_sum, basisProjection]
161 exact Finset.sum_coe_sort s (fun i => InnerProductSpace.rankOne ℂ (b i) (b i))
162
163/-- Coefficients in a finite Hilbert-basis set reconstruct precisely the basis
164projection compression; this includes the empty corner. -/
165theorem ofMatrix_matrixOf_basis {κ : Type*} [DecidableEq κ] (b : HilbertBasis κ ℂ H) (s : Finset κ)
166 (A : H →L[ℂ] H) :
167 ofMatrix (fun i : s => b i) (matrixOf (fun i : s => b i) A) =
168 basisProjection b s * A * basisProjection b s := by
169 classical
170 rw [ofMatrix_matrixOf, projection_basis]
171
172end Cloning.InfiniteFiniteCorner