Download data/lean/OAI/Geometry/IsometricImmersion/LocalDomains.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.27 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/LocalDomains.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/IsometricImmersion/LocalDomains.lean
-
curl -L -o LocalDomains.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/LocalDomains.lean
6.27 kB
| import OAI.Geometry.IsometricImmersion.Metric | |
| import Mathlib.Geometry.Manifold.ContMDiff.NormedSpace | |
| import Mathlib.Geometry.Manifold.MFDeriv.FDeriv | |
| namespace OAI | |
| noncomputable section | |
| open Set Filter Function TopologicalSpace | |
| open scoped ContDiff Topology Manifold Matrix | |
| namespace SmoothLocal.Geometry | |
| section Extension | |
| variable {E : Type*} | |
| def openDomainExtend (U : Opens Coord) (F : U β E) (outside : E) : Coord β E := | |
| Function.extend Subtype.val F (fun _ => outside) | |
| @[simp] theorem openDomainExtend_apply (U : Opens Coord) (F : U β E) | |
| (outside : E) (p : U) : openDomainExtend U F outside p = F p := | |
| Subtype.val_injective.extend_apply F (fun _ => outside) p | |
| theorem openDomainExtend_restrict (U : Opens Coord) (F : U β E) | |
| (outside : E) : (fun p : U => openDomainExtend U F outside p) = F := by | |
| funext p | |
| exact openDomainExtend_apply U F outside p | |
| variable [NormedAddCommGroup E] [NormedSpace β E] | |
| theorem contMDiff_restrict_iff (U : Opens Coord) (F : Coord β E) | |
| (n : ββΟ) : | |
| ContMDiff π(β, Coord) π(β, E) n (fun p : U => F p) β | |
| ContDiffOn β n F (U : Set Coord) := by | |
| constructor | |
| Β· intro h p hp | |
| have hs := contMDiffAt_subtype_iff.mp (h β¨p, hpβ©) | |
| exact hs.contDiffAt.contDiffWithinAt | |
| Β· intro h p | |
| apply contMDiffAt_subtype_iff.mpr | |
| exact ((h p p.property).contDiffAt (U.isOpen.mem_nhds p.property)).contMDiffAt | |
| theorem openDomainExtend_contDiffOn (U : Opens Coord) (F : U β E) | |
| (outside : E) {n : ββΟ} | |
| (hF : ContMDiff π(β, Coord) π(β, E) n F) : | |
| ContDiffOn β n (openDomainExtend U F outside) (U : Set Coord) := by | |
| apply (contMDiff_restrict_iff U _ n).mp | |
| rw [openDomainExtend_restrict] | |
| exact hF | |
| theorem mfderiv_restrict_eq_fderiv (U : Opens Coord) (F : Coord β E) | |
| (p : U) (hF : ContDiffAt β β F (p : Coord)) : | |
| mfderiv π(β, Coord) π(β, E) (fun q : U => F q) p = | |
| fderiv β F (p : Coord) := by | |
| have hs : ContMDiffAt π(β, Coord) π(β, E) β | |
| (fun q : U => F q) p := | |
| contMDiffAt_subtype_iff.mpr hF.contMDiffAt | |
| have hd := hs.mdifferentiableAt (by simp : (β : ββΟ) β 0) | |
| have hc : (fun y : Coord => ((chartAt Coord p).symm y : Coord)) | |
| =αΆ [π (p : Coord)] (fun y : Coord => y) := by | |
| exact (U.chartAt_subtype_val_symm_eventuallyEq (H := Coord) (x := p)).symm | |
| have he : writtenInExtChartAt π(β, Coord) π(β, E) p | |
| (fun q : U => F q) =αΆ [π (p : Coord)] F := by | |
| exact hc.fun_comp F | |
| rw [hd.mfderiv] | |
| change fderivWithin β | |
| (writtenInExtChartAt π(β, Coord) π(β, E) p (fun q : U => F q)) | |
| (range π(β, Coord)) (p : Coord) = _ | |
| rw [ModelWithCorners.range_eq_univ, fderivWithin_univ] | |
| exact he.fderiv_eq | |
| theorem fderiv_openDomainExtend_eq_mfderiv (U : Opens Coord) (F : U β E) | |
| (outside : E) (hF : ContMDiff π(β, Coord) π(β, E) β F) (p : U) : | |
| fderiv β (openDomainExtend U F outside) (p : Coord) = | |
| mfderiv π(β, Coord) π(β, E) F p := by | |
| have hd := ((openDomainExtend_contDiffOn U F outside hF) p p.property).contDiffAt | |
| (U.isOpen.mem_nhds p.property) | |
| have he := mfderiv_restrict_eq_fderiv U (openDomainExtend U F outside) p hd | |
| rw [openDomainExtend_restrict] at he | |
| exact he.symm | |
| end Extension | |
| def LocalIsometric (g : MetricField) (U : Opens Coord) (F : U β Ambient) : Prop := | |
| ContMDiff π(β, Coord) π(β, Ambient) β F β§ | |
| β p : U, β v w : Coord, | |
| (inner β : Ambient β Ambient β β) (mfderiv π(β, Coord) π(β, Ambient) F p v) | |
| (mfderiv π(β, Coord) π(β, Ambient) F p w) = | |
| v β¬α΅₯ (g p *α΅₯ w) | |
| theorem localIsometric_restrict_iff (g : MetricField) (U : Opens Coord) | |
| (F : Coord β Ambient) : | |
| LocalIsometric g U (fun p : U => F p) β IsometricOn g F (U : Set Coord) := by | |
| constructor | |
| Β· rintro β¨hF, heβ© | |
| have hc := (contMDiff_restrict_iff U F β).mp hF | |
| refine β¨hc, ?_β© | |
| intro p hp v w | |
| have hd := mfderiv_restrict_eq_fderiv U F β¨p, hpβ© | |
| ((hc p hp).contDiffAt (U.isOpen.mem_nhds hp)) | |
| have hinner := he β¨p, hpβ© v w | |
| rw [hd] at hinner | |
| exact hinner | |
| Β· rintro β¨hF, heβ© | |
| refine β¨(contMDiff_restrict_iff U F β).mpr hF, ?_β© | |
| intro p v w | |
| rw [mfderiv_restrict_eq_fderiv U F p | |
| ((hF p p.property).contDiffAt (U.isOpen.mem_nhds p.property))] | |
| exact he p p.property v w | |
| theorem localIsometric_extend_iff (g : MetricField) (U : Opens Coord) | |
| (F : U β Ambient) (outside : Ambient) : | |
| LocalIsometric g U F β IsometricOn g (openDomainExtend U F outside) U := by | |
| rw [β localIsometric_restrict_iff, openDomainExtend_restrict] | |
| theorem localIsometric_injective_differential {g : MetricField} {U : Opens Coord} | |
| {F : U β Ambient} (hg : SmoothPositiveOn g U) (hF : LocalIsometric g U F) | |
| (p : U) : Function.Injective (mfderiv π(β, Coord) π(β, Ambient) F p) := by | |
| rw [β fderiv_openDomainExtend_eq_mfderiv U F 0 hF.1 p] | |
| exact isometricOn_injective_differential hg | |
| ((localIsometric_extend_iff g U F 0).mp hF) p.property | |
| def LocalSmoothPositive (U : Opens Coord) | |
| (g : U β Matrix (Fin 2) (Fin 2) β) : Prop := | |
| (β i j, ContMDiff π(β, Coord) π(β, β) β (fun p => g p i j)) β§ | |
| β p, (g p).PosDef | |
| theorem localSmoothPositive_restrict_iff (U : Opens Coord) (g : MetricField) : | |
| LocalSmoothPositive U (fun p => g p) β SmoothPositiveOn g U := by | |
| constructor | |
| Β· rintro β¨hs, hpβ© | |
| exact β¨fun i j => (contMDiff_restrict_iff U (fun p => g p i j) β).mp (hs i j), | |
| fun p h => hp β¨p, hβ©β© | |
| Β· rintro β¨hs, hpβ© | |
| exact β¨fun i j => (contMDiff_restrict_iff U (fun p => g p i j) β).mpr (hs i j), | |
| fun p => hp p p.propertyβ© | |
| theorem localSmoothPositive_extend_iff (U : Opens Coord) | |
| (g : U β Matrix (Fin 2) (Fin 2) β) (outside : Matrix (Fin 2) (Fin 2) β) : | |
| LocalSmoothPositive U g β SmoothPositiveOn | |
| (Function.extend Subtype.val g (fun _ => outside)) U := by | |
| rw [β localSmoothPositive_restrict_iff] | |
| have he : (fun p : U => Function.extend Subtype.val g (fun _ => outside) p) = g := by | |
| funext p | |
| exact Subtype.val_injective.extend_apply g (fun _ => outside) p | |
| rw [he] | |
| end SmoothLocal.Geometry | |
| end | |
| end OAI | |