math / data /lean /OAI /MathematicalPhysics /NavierStokes /ForcedComputation /Flow /FlowSuperposition.lean
Download data/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Flow/FlowSuperposition.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.32 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Flow/FlowSuperposition.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Flow/FlowSuperposition.lean
-
curl -L -o FlowSuperposition.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Flow/FlowSuperposition.lean
4.32 kB
| import OAI.MathematicalPhysics.NavierStokes.ForcedComputation.Flow.FlowPointwise | |
| import Mathlib.Analysis.Calculus.ContDiff.Comp | |
| import Mathlib.Analysis.Normed.Module.FiniteDimension | |
| import Mathlib.Topology.UniformSpace.HeineCantor | |
| namespace OAI | |
| /-! Differentiation of a smooth finite-dimensional field on compact path space. | |
| Compactness makes the derivative remainder uniform over the path; this is the | |
| analytic ingredient needed to apply the implicit function theorem to Picard's | |
| integral equation. -/ | |
| noncomputable section | |
| namespace ForcedComputation.Flow | |
| open Set Filter Metric | |
| open scoped Topology ContDiff | |
| variable {K E F : Type} [TopologicalSpace K] [CompactSpace K] | |
| [NormedAddCommGroup E] [NormedSpace β E] [FiniteDimensional β E] | |
| [NormedAddCommGroup F] [NormedSpace β F] | |
| def postcompose (f : C(E, F)) (u : C(K, E)) : C(K, F) := f.comp u | |
| omit [CompactSpace K] [NormedSpace β E] [FiniteDimensional β E] [NormedSpace β F] in | |
| theorem postcompose_continuous (f : C(E, F)) : | |
| Continuous (postcompose (K := K) f) := f.continuous_postcomp | |
| theorem postcompose_hasFDerivAt (f : C(E, F)) | |
| (hf : ContDiff β 1 (f : E β F)) (u : C(K, E)) : | |
| HasFDerivAt (postcompose f) | |
| (applyPath β¨fun t => fderiv β f (u t), | |
| (hf.continuous_fderiv (by simp)).comp u.continuousβ©) u := by | |
| rw [hasFDerivAt_iff_isLittleO, Asymptotics.isLittleO_iff] | |
| intro Ξ΅ hΞ΅ | |
| have hdf := hf.continuous_fderiv (by simp) | |
| have huc : UniformContinuousOn (fderiv β f) | |
| (closedBall (0 : E) (βuβ + 1)) := | |
| (isCompact_closedBall (0 : E) (βuβ + 1)).uniformContinuousOn_of_continuous | |
| hdf.continuousOn | |
| obtain β¨Ξ΄, hΞ΄, hcontrolβ© := Metric.uniformContinuousOn_iff.mp huc Ξ΅ hΞ΅ | |
| filter_upwards [Metric.ball_mem_nhds u (lt_min hΞ΄ zero_lt_one)] with v hv | |
| have hvnorm : βv - uβ < min Ξ΄ 1 := by simpa only [mem_ball, dist_eq_norm] using hv | |
| apply (ContinuousMap.norm_le _ | |
| (mul_nonneg hΞ΅.le (norm_nonneg (v - u)))).mpr | |
| intro t | |
| change βf (v t) - f (u t) - fderiv β f (u t) (v t - u t)β β€ Ξ΅ * βv - uβ | |
| have hu : u t β closedBall (0 : E) (βuβ + 1) := by | |
| rw [mem_closedBall, dist_zero_right] | |
| exact (u.norm_coe_le_norm t).trans (by linarith) | |
| have hdiff : βv t - u tβ β€ βv - uβ := (v - u).norm_coe_le_norm t | |
| have hv' : v t β closedBall (0 : E) (βuβ + 1) := by | |
| rw [mem_closedBall, dist_zero_right] | |
| calc | |
| βv tβ β€ βv t - u tβ + βu tβ := by | |
| simpa only [sub_add_cancel] using norm_add_le (v t - u t) (u t) | |
| _ β€ βv - uβ + βuβ := add_le_add hdiff (u.norm_coe_le_norm t) | |
| _ β€ βuβ + 1 := by linarith [lt_of_lt_of_le hvnorm (min_le_right Ξ΄ 1)] | |
| have hsegment := (convex_closedBall (0 : E) (βuβ + 1)).segment_subset hu hv' | |
| have hr := remainder_bound (fun z => (hf.differentiable (by simp) z).hasFDerivAt) | |
| (u t) (v t) (Ξ΅ := Ξ΅) (by | |
| intro z hz | |
| have hzΞ΄ : dist z (u t) < Ξ΄ := by | |
| rw [dist_eq_norm] | |
| exact (norm_sub_le_of_mem_segment hz).trans_lt | |
| (hdiff.trans_lt (lt_of_lt_of_le hvnorm (min_le_left Ξ΄ 1))) | |
| simpa only [dist_eq_norm] using (hcontrol z (hsegment hz) (u t) hu hzΞ΄).le) | |
| exact hr.trans (mul_le_mul_of_nonneg_left hdiff hΞ΅.le) | |
| theorem postcompose_contDiff_nat (n : β) (f : C(E, F)) | |
| (hf : ContDiff β n (f : E β F)) : | |
| ContDiff β n (postcompose (K := K) f) := by | |
| induction n generalizing F with | |
| | zero => | |
| exact contDiff_zero.mpr (postcompose_continuous f) | |
| | succ n ih => | |
| have h1 : ContDiff β 1 (f : E β F) := hf.of_le (by norm_cast; omega) | |
| let df : C(E, E βL[β] F) := | |
| β¨fderiv β f, h1.continuous_fderiv (by simp)β© | |
| have hdf : ContDiff β n (df : E β E βL[β] F) := | |
| hf.fderiv_right (m := n) (by simp) | |
| apply contDiff_succ_iff_hasFDerivAt.mpr | |
| refine β¨fun u => applyPathL (postcompose df u), ?_, ?_β© | |
| Β· exact (applyPathL (K := K) (E := E) (F := F)).contDiff.comp (ih df hdf) | |
| Β· intro u | |
| exact postcompose_hasFDerivAt f h1 u | |
| theorem postcompose_contDiff (f : C(E, F)) (hf : ContDiff β β (f : E β F)) : | |
| ContDiff β β (postcompose (K := K) f) := by | |
| rw [contDiff_infty] | |
| intro n | |
| exact postcompose_contDiff_nat n f (hf.of_le (by simp)) | |
| end ForcedComputation.Flow | |
| end | |
| end OAI | |