Buckets:
| import Mathlib.Analysis.InnerProductSpace.Projection.FiniteDimensional | |
| import Mathlib.Analysis.InnerProductSpace.Adjoint | |
| import Mathlib.LinearAlgebra.Trace | |
| namespace OAI | |
| /-! | |
| # Traces of actual orthogonal projections | |
| The trace calculation uses the algebraic theorem for a projection onto a | |
| submodule. In particular, no spectral decomposition or matrix norm instance | |
| is needed. Matrix transport is valid in every basis, and hence in the | |
| orthonormal basis used for the weighted grading. | |
| -/ | |
| noncomputable section | |
| namespace LeanBlast.GotsmanLinial | |
| section General | |
| variable {๐ E ฮน : Type*} [RCLike ๐] [NormedAddCommGroup E] | |
| [InnerProductSpace ๐ E] [FiniteDimensional ๐ E] | |
| /-- The actual orthogonal projection is algebraically a projection onto its | |
| specified submodule. -/ | |
| theorem starProjection_isProj (K : Submodule ๐ E) : | |
| LinearMap.IsProj K K.starProjection.toLinearMap where | |
| map_mem := K.starProjection_apply_mem | |
| map_id := fun _ hx => Submodule.starProjection_eq_self_iff.mpr hx | |
| /-- The trace of the actual orthogonal projection is the dimension of its range. -/ | |
| theorem trace_starProjection (K : Submodule ๐ E) : | |
| LinearMap.trace ๐ E K.starProjection.toLinearMap = (Module.finrank ๐ K : ๐) := | |
| (starProjection_isProj K).trace | |
| variable [Fintype ฮน] [DecidableEq ฮน] | |
| /-- The matrix trace of an orthogonal projection is independent of the chosen basis. -/ | |
| theorem trace_toMatrix_starProjection (b : Module.Basis ฮน ๐ E) (K : Submodule ๐ E) : | |
| Matrix.trace (LinearMap.toMatrix b b K.starProjection.toLinearMap) = | |
| (Module.finrank ๐ K : ๐) := by | |
| rw [โ LinearMap.trace_eq_matrix_trace ๐ b, trace_starProjection] | |
| /-- The orthonormal matrix representation used by the grading has the correct trace. -/ | |
| theorem trace_toMatrixOrthonormal_starProjection (b : OrthonormalBasis ฮน ๐ E) | |
| (K : Submodule ๐ E) : | |
| Matrix.trace (LinearMap.toMatrixOrthonormal b K.starProjection.toLinearMap) = | |
| (Module.finrank ๐ K : ๐) := | |
| trace_toMatrix_starProjection b.toBasis K | |
| end General | |
| section Complex | |
| variable {E ฮน : Type*} [NormedAddCommGroup E] [InnerProductSpace โ E] | |
| [FiniteDimensional โ E] [Fintype ฮน] [DecidableEq ฮน] | |
| /-- The real trace required by Hilbert--Schmidt block-mass computations. -/ | |
| theorem re_trace_toMatrixOrthonormal_starProjection (b : OrthonormalBasis ฮน โ E) | |
| (K : Submodule โ E) : | |
| (Matrix.trace (LinearMap.toMatrixOrthonormal b K.starProjection.toLinearMap)).re = | |
| (Module.finrank โ K : โ) := by | |
| rw [trace_toMatrixOrthonormal_starProjection] | |
| simp | |
| end Complex | |
| end LeanBlast.GotsmanLinial | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 2.64 kB
- Xet hash:
- 5b9070855480f029ae80df4cf3cb062ba0a7830cda3986d340c961c5d3dcc5fb
ยท
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.