Download data/lean/OAI/MathematicalPhysics/NavierStokes/Material/SpatialL2.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.35 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/NavierStokes/Material/SpatialL2.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MathematicalPhysics/NavierStokes/Material/SpatialL2.lean
-
curl -L -o SpatialL2.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/NavierStokes/Material/SpatialL2.lean
5.35 kB
| import OAI.MathematicalPhysics.NavierStokes.Material.Curls | |
| namespace OAI | |
| namespace Alternating | |
| open scoped Topology BigOperators | |
| open MeasureTheory Filter | |
| noncomputable section | |
| theorem spatialD_iterate_smooth {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| {g : Space β E} (hg : ContDiff β (β€ : ββ) g) (i : Fin 3) (n : β) : | |
| ContDiff β (β€ : ββ) ((spatialD i)^[n] g) := by | |
| induction n with | |
| | zero => exact hg | |
| | succ n ih => simpa only [Function.iterate_succ_apply'] using spatialD_smooth ih i | |
| theorem spatialPartial_smooth {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| {g : Space β E} (hg : ContDiff β (β€ : ββ) g) (Ξ± : MultiIndex) : | |
| ContDiff β (β€ : ββ) (spatialPartial Ξ± g) := | |
| spatialD_iterate_smooth (spatialD_iterate_smooth (spatialD_iterate_smooth hg 0 (Ξ± 0)) 1 (Ξ± 1)) 2 (Ξ± 2) | |
| theorem spatialD_finiteCombination {ΞΉ : Type*} (s : Finset ΞΉ) (c : ΞΉ β β) | |
| {W : ΞΉ β Space β Space} (hW : β n β s, ContDiff β (β€ : ββ) (W n)) (i : Fin 3) : | |
| spatialD i (fun x => β n β s, c n β’ W n x) = fun x => β n β s, c n β’ spatialD i (W n) x := by | |
| funext x | |
| have hd : β n β s, Differentiable β (fun y => c n β’ W n y) := by | |
| intro n hn | |
| exact ((hW n hn).differentiable (by simp)).fun_const_smul (c n) | |
| simp only [spatialD, fderiv_fun_sum (fun n hn => hd n hn x), sum_apply] | |
| apply Finset.sum_congr rfl | |
| intro n hn | |
| rw [fderiv_fun_const_smul ((hW n hn).differentiable (by simp) x), smul_apply] | |
| theorem spatialD_iterate_finiteCombination {ΞΉ : Type*} (s : Finset ΞΉ) (c : ΞΉ β β) | |
| {W : ΞΉ β Space β Space} (hW : β n β s, ContDiff β (β€ : ββ) (W n)) (i : Fin 3) (r : β) : | |
| (spatialD i)^[r] (fun x => β n β s, c n β’ W n x) = | |
| fun x => β n β s, c n β’ (spatialD i)^[r] (W n) x := by | |
| induction r with | |
| | zero => rfl | |
| | succ r ih => | |
| rw [Function.iterate_succ_apply', ih, | |
| spatialD_finiteCombination s c (fun n hn => spatialD_iterate_smooth (hW n hn) i r) i] | |
| simp only [Function.iterate_succ_apply'] | |
| theorem spatialPartial_finiteCombination {ΞΉ : Type*} (s : Finset ΞΉ) (c : ΞΉ β β) | |
| {W : ΞΉ β Space β Space} (hW : β n β s, ContDiff β (β€ : ββ) (W n)) (Ξ± : MultiIndex) : | |
| spatialPartial Ξ± (fun x => β n β s, c n β’ W n x) = | |
| fun x => β n β s, c n β’ spatialPartial Ξ± (W n) x := by | |
| unfold spatialPartial | |
| rw [spatialD_iterate_finiteCombination s c hW 0 (Ξ± 0), | |
| spatialD_iterate_finiteCombination s c (fun n hn => spatialD_iterate_smooth (hW n hn) 0 (Ξ± 0)) 1 (Ξ± 1), | |
| spatialD_iterate_finiteCombination s c | |
| (fun n hn => spatialD_iterate_smooth (spatialD_iterate_smooth (hW n hn) 0 (Ξ± 0)) 1 (Ξ± 1)) 2 (Ξ± 2)] | |
| theorem tsupport_spatialD_iterate_subset {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| (g : Space β E) (i : Fin 3) (n : β) : tsupport ((spatialD i)^[n] g) β tsupport g := by | |
| induction n with | |
| | zero => exact Set.Subset.rfl | |
| | succ n ih => | |
| rw [Function.iterate_succ_apply'] | |
| exact (tsupport_fderiv_apply_subset β (basisVector i)).trans ih | |
| theorem spatialPartial_hasCompactSupport {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| {g : Space β E} (hg : HasCompactSupport g) (Ξ± : MultiIndex) : HasCompactSupport (spatialPartial Ξ± g) := by | |
| apply hg.of_isClosed_subset (isClosed_tsupport _) | |
| exact (tsupport_spatialD_iterate_subset _ 2 (Ξ± 2)).trans | |
| ((tsupport_spatialD_iterate_subset _ 1 (Ξ± 1)).trans (tsupport_spatialD_iterate_subset _ 0 (Ξ± 0))) | |
| namespace SlotL2 | |
| variable (W : β β Space β Space) (hW : β n, ContDiff β (β€ : ββ) (W n)) | |
| (hc : β n, HasCompactSupport (W n)) | |
| include hW hc in | |
| theorem mem (Ξ± : MultiIndex) (n : β) : MemLp (spatialPartial Ξ± (W n)) 2 volume := | |
| (spatialPartial_smooth (hW n) Ξ±).continuous.memLp_of_hasCompactSupport | |
| (spatialPartial_hasCompactSupport (hc n) Ξ±) | |
| def component (Ξ± : MultiIndex) (n : β) : SpatialL2 Space := (mem W hW hc Ξ± n).toLp _ | |
| def finiteLift (a : β β β) (Ξ± : MultiIndex) (N : β) (t : β) : SpatialL2 Space := | |
| β n β Finset.range N, a (t - n) β’ component W hW hc Ξ± n | |
| theorem finiteLift_continuous {a : β β β} (ha : Continuous a) (Ξ± : MultiIndex) (N : β) : | |
| Continuous (finiteLift W hW hc a Ξ± N) := by | |
| apply continuous_finsetSum | |
| intro n hn | |
| exact (ha.comp (continuous_id.sub continuous_const)).smul continuous_const | |
| theorem finiteLift_ae (a : β β β) (Ξ± : MultiIndex) (N : β) (t : β) : | |
| (fun x : Space => (finiteLift W hW hc a Ξ± N t) x) =α΅[volume] | |
| fun x => β n β Finset.range N, a (t - n) β’ spatialPartial Ξ± (W n) x := by | |
| unfold finiteLift | |
| induction N with | |
| | zero => simp | |
| | succ N ih => | |
| simp only [Finset.sum_range_succ] | |
| exact (Lp.coeFn_add _ _).trans | |
| (ih.add ((Lp.coeFn_smul _ _).trans ((mem W hW hc Ξ± N).coeFn_toLp.const_smul _))) | |
| theorem finiteLift_hasDerivAt {a : β β β} (ha : Differentiable β a) | |
| (Ξ± : MultiIndex) (N : β) (t : β) : | |
| HasDerivAt (finiteLift W hW hc a Ξ± N) | |
| (finiteLift W hW hc (deriv a) Ξ± N t) t := by | |
| apply HasDerivAt.fun_sum | |
| intro n hn | |
| have hh := (ha (t - n)).hasDerivAt.comp t ((hasDerivAt_id t).sub_const (n : β)) | |
| simpa using hh.smul_const (component W hW hc Ξ± n) | |
| end SlotL2 | |
| end | |
| end Alternating | |
| end OAI | |