Download data/lean/OAI/Combinatorics/GotsmanLinial/ProjectionTrace.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.64 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Combinatorics/GotsmanLinial/ProjectionTrace.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Combinatorics/GotsmanLinial/ProjectionTrace.lean
-
curl -L -o ProjectionTrace.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Combinatorics/GotsmanLinial/ProjectionTrace.lean
2.64 kB
| 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 | |