Download data/lean/OAI/Geometry/Borsuk/MatrixGeometry/MatrixNorm.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.66 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Borsuk/MatrixGeometry/MatrixNorm.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/Borsuk/MatrixGeometry/MatrixNorm.lean
-
curl -L -o MatrixNorm.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Borsuk/MatrixGeometry/MatrixNorm.lean
2.66 kB
| import Mathlib | |
| namespace OAI | |
| namespace BorsukNine | |
| open scoped RealInnerProductSpace ContDiff | |
| open scoped Manifold | |
| open MeasureTheory Set Metric | |
| open scoped ENNReal Pointwise Matrix | |
| section MatrixNorm | |
| open scoped MatrixOrder Matrix.Norms.L2Operator | |
| variable {Ξ½ : Type*} [Fintype Ξ½] [DecidableEq Ξ½] | |
| local notation "E" => EuclideanSpace β Ξ½ | |
| lemma matrix_action_norm_sq (A : Matrix Ξ½ Ξ½ β) (x : E) : | |
| β(Matrix.toEuclideanCLM (n := Ξ½) (π := β)) A xβ ^ 2 = | |
| βͺx, (Matrix.toEuclideanCLM (n := Ξ½) (π := β)) (star A * A) xβ« := by | |
| rw [map_mul, map_star] | |
| change β(Matrix.toEuclideanCLM (n := Ξ½) (π := β)) A xβ ^ 2 = | |
| βͺx, (star ((Matrix.toEuclideanCLM (n := Ξ½) (π := β)) A)) ((Matrix.toEuclideanCLM (n := Ξ½) (π := β)) A x)β« | |
| rw [ContinuousLinearMap.star_eq_adjoint, ContinuousLinearMap.adjoint_inner_right, | |
| real_inner_self_eq_norm_sq] | |
| lemma sqrt_action_norm_sq (Q : Matrix Ξ½ Ξ½ β) (hQ : 0 β€ Q) (x : E) : | |
| β(Matrix.toEuclideanCLM (n := Ξ½) (π := β)) (CFC.sqrt Q) xβ ^ 2 = βͺx, (Matrix.toEuclideanCLM (n := Ξ½) (π := β)) Q xβ« := by | |
| rw [matrix_action_norm_sq, (CFC.sqrt_nonneg Q).star_eq, CFC.sqrt_mul_sqrt_self Q hQ] | |
| lemma matrix_sqrt_smul {Q : Matrix Ξ½ Ξ½ β} (hQ : 0 β€ Q) {t : β} (ht : 0 β€ t) : | |
| CFC.sqrt (t β’ Q) = Real.sqrt t β’ CFC.sqrt Q := by | |
| apply (CFC.sqrt_eq_iff _ _ (smul_nonneg ht hQ) | |
| (smul_nonneg (Real.sqrt_nonneg _) (CFC.sqrt_nonneg _))).mpr | |
| rw [smul_mul_smul, CFC.sqrt_mul_sqrt_self Q hQ, Real.mul_self_sqrt ht] | |
| end MatrixNorm | |
| section MatrixRange | |
| open scoped MatrixOrder Matrix.Norms.L2Operator | |
| variable {Ξ½ : Type*} [Fintype Ξ½] [DecidableEq Ξ½] | |
| local notation "E" => EuclideanSpace β Ξ½ | |
| local notation "op" => Matrix.toEuclideanCLM (n := Ξ½) (π := β) | |
| lemma matrix_sqrt_range (Q : Matrix Ξ½ Ξ½ β) (hQ : 0 β€ Q) : | |
| LinearMap.range (op (CFC.sqrt Q)).toLinearMap = LinearMap.range (op Q).toLinearMap := by | |
| have hs : star (op (CFC.sqrt Q)) = op (CFC.sqrt Q) := by | |
| rw [β map_star, (CFC.sqrt_nonneg Q).star_eq] | |
| have hh := LinearMap.range_adjoint_comp_self (op (CFC.sqrt Q)).toLinearMap | |
| have ha : (op (CFC.sqrt Q)).toLinearMap.adjoint = (op (CFC.sqrt Q)).toLinearMap := by | |
| change (ContinuousLinearMap.adjoint (op (CFC.sqrt Q))).toLinearMap = _ | |
| rw [β ContinuousLinearMap.star_eq_adjoint, hs] | |
| rw [ha] at hh | |
| have hm : (op (CFC.sqrt Q)).toLinearMap.comp (op (CFC.sqrt Q)).toLinearMap = (op Q).toLinearMap := by | |
| change (op (CFC.sqrt Q) * op (CFC.sqrt Q)).toLinearMap = _ | |
| rw [β map_mul, CFC.sqrt_mul_sqrt_self Q hQ] | |
| rw [hm] at hh | |
| exact hh.symm | |
| end MatrixRange | |
| end BorsukNine | |
| end OAI | |