cfahlgren1/math / lean /OAI /Geometry /NodalSets /Charts /ManifoldMatrixSmooth.lean
cfahlgren1's picture
download
raw
2.27 kB
import Mathlib.Geometry.Manifold.Algebra.LieGroup
import OAI.Geometry.NodalSets.Elliptic.IndependentWeightedSmooth
namespace OAI
namespace Yau.Geometry
open Manifold Matrix
open scoped ContDiff
noncomputable section
local instance : ContMDiffMul π“˜(ℝ,ℝ) ∞ ℝ := by
constructor
rw [← modelWithCornersSelf_prod,chartedSpaceSelf_prod]
exact contDiff_mul.contMDiff
variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
{H : Type*} [TopologicalSpace H] {I : ModelWithCorners ℝ E H}
{M : Type*} [TopologicalSpace M] [ChartedSpace H M]
{n : Type*} [Fintype n] [DecidableEq n]
lemma manifold_matrix_det_smooth (A : M β†’ Matrix n n ℝ)
(hA : βˆ€ i j, ContMDiff I π“˜(ℝ,ℝ) ∞ (fun x ↦ A x i j)) :
ContMDiff I π“˜(ℝ,ℝ) ∞ (fun x ↦ (A x).det) := by
simp only [Matrix.det_apply']
apply ContMDiff.sum
intro Οƒ _
apply contMDiff_const.mul
apply ContMDiff.prod
intro i _
exact hA (Οƒ i) i
lemma manifold_matrix_adjugate_smooth (A : M β†’ Matrix n n ℝ)
(hA : βˆ€ i j, ContMDiff I π“˜(ℝ,ℝ) ∞ (fun x ↦ A x i j)) (i j : n) :
ContMDiff I π“˜(ℝ,ℝ) ∞ (fun x ↦ (A x).adjugate i j) := by
simp only [Matrix.adjugate_apply]
apply manifold_matrix_det_smooth
intro k l
by_cases hk : k = j
Β· subst k
simpa using (contMDiff_const (I := I) (c := (Pi.single i (1:ℝ) : n β†’ ℝ) l))
Β· simpa only [Matrix.updateRow_ne hk] using hA k l
lemma manifold_matrix_inverse_smooth (A : M β†’ Matrix n n ℝ)
(hA : βˆ€ i j, ContMDiff I π“˜(ℝ,ℝ) ∞ (fun x ↦ A x i j))
(hdet : βˆ€ x, (A x).det β‰  0) (i j : n) :
ContMDiff I π“˜(ℝ,ℝ) ∞ (fun x ↦ (A x)⁻¹ i j) := by
have heq : (fun x ↦ (A x)⁻¹ i j) =
(fun x ↦ ((A x).det)⁻¹ * (A x).adjugate i j) := by
funext x
rw [Matrix.inv_def,Ring.inverse_eq_inv]
rfl
rw [heq]
exact ((manifold_matrix_det_smooth A hA).invβ‚€ hdet).mul
(manifold_matrix_adjugate_smooth A hA i j)
lemma manifold_positive_sqrt_smooth (f : M β†’ ℝ)
(hf : ContMDiff I π“˜(ℝ,ℝ) ∞ f) (hp : βˆ€ x, 0 < f x) :
ContMDiff I π“˜(ℝ,ℝ) ∞ (fun x ↦ Real.sqrt (f x)) := by
intro x
exact (ContDiffAt.contMDiffAt (contDiffAt_id.sqrt (hp x).ne')).comp x (hf x)
end
end Yau.Geometry
end OAI

Xet Storage Details

Size:
2.27 kB
Β·
Xet hash:
ed5e508c11d4f85e503172f3cc86c0f8dbb27bac72b2c8c1403e2f59139ee866

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.