Download data/lean/OAI/Geometry/IsometricImmersion/Flows/CompactParameterIntegral.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 7.94 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Flows/CompactParameterIntegral.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/IsometricImmersion/Flows/CompactParameterIntegral.lean
-
curl -L -o CompactParameterIntegral.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Flows/CompactParameterIntegral.lean
7.94 kB
| import OAI.Geometry.IsometricImmersion.Calculus.CoordinateJetNorm | |
| import Mathlib.Analysis.Calculus.ParametricIntegral | |
| import Mathlib.MeasureTheory.Integral.Bochner.Set | |
| import Mathlib.Analysis.Normed.Module.FiniteDimension | |
| namespace OAI | |
| noncomputable section | |
| open Set Filter MeasureTheory | |
| open scoped ContDiff Topology | |
| universe u | |
| namespace SmoothLocal.Analytic | |
| open SmoothLocal.Geometry | |
| variable {F : Type u} [NormedAddCommGroup F] [NormedSpace β F] [CompleteSpace F] | |
| def compactParameterIntegral (H : Coord Γ β β F) (p : Coord) : F := | |
| β« s in Icc (0 : β) 1, H (p,s) | |
| def compactParameterPartial (H : Coord Γ β β F) (q : Coord Γ β) : Coord βL[β] F := | |
| (fderiv β H q).comp (ContinuousLinearMap.inl β Coord β) | |
| omit [NormedSpace β F] [CompleteSpace F] in | |
| theorem parameter_slice_continuousOn | |
| {H : Coord Γ β β F} {U : Set Coord} {D : Set (Coord Γ β)} | |
| (hH : ContinuousOn H D) (hUD : U ΓΛ’ Icc (0 : β) 1 β D) | |
| {p : Coord} (hp : p β U) : ContinuousOn (fun s => H (p,s)) (Icc (0 : β) 1) := | |
| hH.comp (continuous_const.prodMk continuous_id).continuousOn (fun _ hs => hUD β¨hp,hsβ©) | |
| omit [NormedSpace β F] [CompleteSpace F] in | |
| theorem exists_local_parameter_norm_bound | |
| {H : Coord Γ β β F} {U : Set Coord} {D : Set (Coord Γ β)} | |
| (hH : ContinuousOn H D) (hU : IsOpen U) | |
| (hUD : U ΓΛ’ Icc (0 : β) 1 β D) {p : Coord} (hp : p β U) : | |
| β e B : β, 0 < e β§ 0 β€ B β§ Metric.ball p e β U β§ | |
| β x β Metric.ball p e, β s β Icc (0 : β) 1, βH (x,s)β β€ B := by | |
| obtain β¨e,he,hballβ© := Metric.mem_nhds_iff.mp (hU.mem_nhds hp) | |
| let K := Metric.closedBall p (e/2) ΓΛ’ Icc (0 : β) 1 | |
| have hK : IsCompact K := (isCompact_closedBall p (e/2)).prod isCompact_Icc | |
| have hKD : K β D := by | |
| intro q hq | |
| exact hUD β¨hball (Metric.closedBall_subset_ball (half_lt_self he) hq.1),hq.2β© | |
| obtain β¨B,hBβ© := hK.exists_bound_of_continuousOn (hH.mono hKD) | |
| refine β¨e/2,max B 0,half_pos he,le_max_right _ _,?_,?_β© | |
| Β· intro x hx | |
| exact hball ((Metric.ball_subset_ball (half_le_self he.le)) hx) | |
| Β· intro x hx s hs | |
| exact (hB (x,s) β¨Metric.ball_subset_closedBall hx,hsβ©).trans (le_max_left _ _) | |
| omit [CompleteSpace F] in | |
| theorem compactParameterIntegral_continuousOn | |
| {H : Coord Γ β β F} {U : Set Coord} {D : Set (Coord Γ β)} | |
| (hH : ContinuousOn H D) (hD : IsOpen D) (hU : IsOpen U) | |
| (hUD : U ΓΛ’ Icc (0 : β) 1 β D) : ContinuousOn (compactParameterIntegral H) U := by | |
| intro p hp | |
| obtain β¨e,B,he,hB,hball,hboundβ© := exists_local_parameter_norm_bound hH hU hUD hp | |
| have hmeas : βαΆ x in π p, AEStronglyMeasurable (fun s => H (x,s)) | |
| (volume.restrict (Icc (0 : β) 1)) := by | |
| filter_upwards [hU.mem_nhds hp] with x hx | |
| exact ((parameter_slice_continuousOn hH hUD hx).integrableOn_compact isCompact_Icc).aestronglyMeasurable | |
| have hdom : βαΆ x in π p, βα΅ s βvolume.restrict (Icc (0 : β) 1), βH (x,s)β β€ B := by | |
| filter_upwards [Metric.ball_mem_nhds p he] with x hx | |
| filter_upwards [ae_restrict_mem measurableSet_Icc] with s hs | |
| exact hbound x hx s hs | |
| have hint : Integrable (fun _ : β => B) (volume.restrict (Icc (0 : β) 1)) := | |
| integrableOn_const isCompact_Icc.measure_ne_top | |
| have hpoint : βα΅ s βvolume.restrict (Icc (0 : β) 1), ContinuousAt (fun x => H (x,s)) p := by | |
| filter_upwards [ae_restrict_mem measurableSet_Icc] with s hs | |
| exact (hH.continuousAt (hD.mem_nhds (hUD β¨hp,hsβ©))).comp | |
| (continuous_id.prodMk continuous_const).continuousAt | |
| exact (continuousAt_of_dominated hmeas hdom hint hpoint).continuousWithinAt | |
| omit [CompleteSpace F] in | |
| theorem compactParameterPartial_contDiffOn | |
| {H : Coord Γ β β F} {D : Set (Coord Γ β)} (hD : IsOpen D) (n : β) | |
| (hH : ContDiffOn β (n+1 : β) H D) : | |
| ContDiffOn β n (compactParameterPartial H) D := by | |
| have hd : ContDiffOn β n (fderiv β H) D := hH.fderiv_of_isOpen hD (by simp) | |
| exact hd.clm_comp contDiffOn_const | |
| omit [CompleteSpace F] in | |
| theorem compactParameter_slice_hasFDerivAt | |
| {H : Coord Γ β β F} {D : Set (Coord Γ β)} (hH : ContDiffOn β 1 H D) | |
| (hD : IsOpen D) {p : Coord} {s : β} (hp : (p,s) β D) : | |
| HasFDerivAt (fun x => H (x,s)) (compactParameterPartial H (p,s)) p := by | |
| have hd := ((hH.contDiffAt (hD.mem_nhds hp)).differentiableAt (by norm_num)).hasFDerivAt | |
| have hi : HasFDerivAt (fun x : Coord => (x,s)) (ContinuousLinearMap.inl β Coord β) p := | |
| hasFDerivAt_prodMk_left p s | |
| exact hd.comp p hi | |
| omit [CompleteSpace F] in | |
| theorem compactParameterIntegral_hasFDerivAt | |
| {H : Coord Γ β β F} {U : Set Coord} {D : Set (Coord Γ β)} | |
| (hH : ContDiffOn β 1 H D) (hD : IsOpen D) (hU : IsOpen U) | |
| (hUD : U ΓΛ’ Icc (0 : β) 1 β D) {p : Coord} (hp : p β U) : | |
| HasFDerivAt (compactParameterIntegral H) | |
| (compactParameterIntegral (compactParameterPartial H) p) p := by | |
| have hpart : ContinuousOn (compactParameterPartial H) D := | |
| (compactParameterPartial_contDiffOn hD 0 hH).continuousOn | |
| obtain β¨e,B,he,hB,hball,hboundβ© := exists_local_parameter_norm_bound hpart hU hUD hp | |
| apply hasFDerivAt_integral_of_dominated_of_fderiv_le | |
| (ΞΌ := volume.restrict (Icc (0 : β) 1)) (bound := fun _ => B) | |
| (s := Metric.ball p e) (F' := fun x s => compactParameterPartial H (x,s)) | |
| (Metric.ball_mem_nhds p he) | |
| Β· filter_upwards [hU.mem_nhds hp] with x hx | |
| exact ((parameter_slice_continuousOn hH.continuousOn hUD hx).integrableOn_compact isCompact_Icc).aestronglyMeasurable | |
| Β· exact (parameter_slice_continuousOn hH.continuousOn hUD hp).integrableOn_compact isCompact_Icc | |
| Β· exact ((parameter_slice_continuousOn hpart hUD hp).integrableOn_compact isCompact_Icc).aestronglyMeasurable | |
| Β· filter_upwards [ae_restrict_mem measurableSet_Icc] with s hs | |
| intro x hx | |
| exact hbound x hx s hs | |
| Β· exact integrableOn_const isCompact_Icc.measure_ne_top | |
| Β· filter_upwards [ae_restrict_mem measurableSet_Icc] with s hs | |
| intro x hx | |
| exact compactParameter_slice_hasFDerivAt hH hD (hUD β¨hball hx,hsβ©) | |
| theorem compactParameterIntegral_contDiffOn_finite (n : β) : | |
| β {F : Type u} [NormedAddCommGroup F] [NormedSpace β F] [CompleteSpace F] | |
| {H : Coord Γ β β F} {U : Set Coord} {D : Set (Coord Γ β)}, | |
| ContDiffOn β n H D β IsOpen D β IsOpen U β | |
| U ΓΛ’ Icc (0 : β) 1 β D β ContDiffOn β n (compactParameterIntegral H) U := by | |
| induction n with | |
| | zero => | |
| intro F _ _ _ H U D hH hD hU hUD | |
| simpa only [Nat.cast_zero,contDiffOn_zero] using | |
| compactParameterIntegral_continuousOn hH.continuousOn hD hU hUD | |
| | succ n ih => | |
| intro F _ _ _ H U D hH hD hU hUD | |
| have hH1 : ContDiffOn β 1 H D := hH.of_le (by exact_mod_cast (show 1 β€ n+1 by omega)) | |
| have hd (p : Coord) (hp : p β U) := compactParameterIntegral_hasFDerivAt hH1 hD hU hUD hp | |
| have hpart : ContDiffOn β n (compactParameterPartial H) D := | |
| compactParameterPartial_contDiffOn hD n hH | |
| have hmeanPart : ContDiffOn β n (compactParameterIntegral (compactParameterPartial H)) U := | |
| ih hpart hD hU hUD | |
| have hs : ContDiffOn β ((n : ββΟ)+1) (compactParameterIntegral H) U := by | |
| rw [contDiffOn_succ_iff_fderiv_of_isOpen hU] | |
| refine β¨fun p hp => (hd p hp).differentiableAt.differentiableWithinAt,by simp,?_β© | |
| exact hmeanPart.congr (fun p hp => (hd p hp).fderiv) | |
| simpa only [Nat.cast_add,Nat.cast_one] using hs | |
| theorem compactParameterIntegral_contDiffOn | |
| {H : Coord Γ β β F} {U : Set Coord} {D : Set (Coord Γ β)} | |
| (hH : ContDiffOn β β H D) (hD : IsOpen D) (hU : IsOpen U) | |
| (hUD : U ΓΛ’ Icc (0 : β) 1 β D) : | |
| ContDiffOn β β (compactParameterIntegral H) U := | |
| contDiffOn_infty.mpr (fun n => compactParameterIntegral_contDiffOn_finite n | |
| (hH.of_le (WithTop.coe_le_coe.mpr le_top)) hD hU hUD) | |
| end SmoothLocal.Analytic | |
| end | |
| end OAI | |