Download data/lean/OAI/Analysis/Calculus/SmoothExtension/Periodic/Infinity.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.76 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/SmoothExtension/Periodic/Infinity.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Calculus/SmoothExtension/Periodic/Infinity.lean
-
curl -L -o Infinity.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/SmoothExtension/Periodic/Infinity.lean
6.76 kB
| import OAI.Analysis.Calculus.SmoothExtension.Periodic.Extension.Sublevel | |
| import OAI.Analysis.Calculus.SmoothExtension.ExtensionInfinityLocal | |
| open Set Filter Module | |
| open scoped Topology ContDiff Manifold | |
| noncomputable section | |
| namespace OAI.Analysis.Calculus.SmoothExtension | |
| open OAI.Analysis.PDE.Dirichlet OAI.Analysis.PDE.Variational | |
| section Periodic | |
| variable {E T : Type*} [NormedAddCommGroup E] [NormedSpace β E] [AddCommGroup T] | |
| theorem contDiff_discretePeriodization_infty (L : T β+ E) | |
| (hL : β R : β, {z : T | βL zβ β€ R}.Finite) | |
| {Ο : E β β} (hΟ : ContDiff β β Ο) (hc : HasCompactSupport Ο) : | |
| ContDiff β β (OAI.Analysis.PDE.Variational.discretePeriodization L Ο) := by | |
| rw [contDiff_infty] | |
| intro q | |
| exact contDiff_discretePeriodization_order L hL (hΟ.of_le (by simp)) hc | |
| /-- The same compactly weighted average is smooth at every order and | |
| periodic everywhere, while retaining the prescribed values on K. -/ | |
| theorem exists_smooth_periodic_extension_of_weight | |
| (L : T β+ E) (hL : β R : β, {z : T | βL zβ β€ R}.Finite) | |
| {K : Set E} (hK : β x β K, β z, x + L z β K) | |
| (u g Ο : E β β) (hu : β x β K, β z, u (x + L z) = u x) | |
| (hg : ContDiff β β g) (hgu : β x β K, g x = u x) | |
| (hΟ : ContDiff β β Ο) (hΟc : HasCompactSupport Ο) | |
| (hΟ0 : β x, 0 β€ Ο x) (hΟ1 : β x β K, β z, Ο (x + L z) = 1) : | |
| β f : E β β, ContDiff β β f β§ | |
| (β x z, f (x + L z) = f x) β§ β x β K, f x = u x := by | |
| let D := OAI.Analysis.PDE.Variational.discretePeriodization L Ο | |
| let B := OAI.Analysis.PDE.Variational.discretePeriodization L (fun x β¦ Ο x * g x) | |
| have hDc : ContDiff β β D := contDiff_discretePeriodization_infty L hL hΟ hΟc | |
| have hBc : ContDiff β β B := | |
| contDiff_discretePeriodization_infty L hL (hΟ.mul hg) hΟc.mul_right | |
| refine β¨fun x β¦ smoothReciprocal (D x) * B x, | |
| (contDiff_smoothReciprocal.comp hDc).mul hBc, ?_, ?_β© | |
| Β· intro x z | |
| simp only [D,B,OAI.Analysis.PDE.Variational.discretePeriodization_add] | |
| Β· intro x hx | |
| have hD1 : 1 β€ D x := by | |
| obtain β¨z,hzβ© := hΟ1 x hx | |
| rw [β hz] | |
| exact (summable_discrete_translates L hL hΟc x).le_tsum z (fun j _ β¦ hΟ0 _) | |
| have hB : B x = D x * u x := by | |
| calc | |
| B x = β' z, Ο (x + L z) * u x := by | |
| apply tsum_congr | |
| intro z | |
| change Ο (x + L z) * g (x + L z) = _ | |
| rw [hgu _ (hK x hx z),hu x hx z] | |
| _ = D x * u x := by rw [tsum_mul_right]; rfl | |
| change smoothReciprocal (D x) * B x = u x | |
| rw [hB,β mul_assoc,smoothReciprocal_mul hD1,one_mul] | |
| theorem exists_smooth_periodic_extension_of_local_on [FiniteDimensional β E] | |
| (L : T β+ E) (hL : β R : β, {z : T | βL zβ β€ R}.Finite) | |
| {K C : Set E} (hK : IsClosed K) (hC : IsCompact C) | |
| (hKper : β x β K, β z, x + L z β K) | |
| (hcover : β x β K, β z, x + L z β C) | |
| (u : E β β) (huper : β x β K, β z, u (x + L z) = u x) | |
| (hl : β x β K, β U : Set E, IsOpen U β§ x β U β§ | |
| β g : E β β, ContDiffOn β β g U β§ β y β K β© U, g y = u y) : | |
| β g : E β β, ContDiff β β g β§ | |
| (β x z, g (x + L z) = g x) β§ β x β K, g x = u x := by | |
| obtain β¨g,hg,hguβ© := exists_smooth_extension_of_local_on hK u hl | |
| obtain β¨Ο,hΟ,hΟc,hΟ0,hΟ1β© := exists_smooth_compact_one_on_compact hC | |
| apply exists_smooth_periodic_extension_of_weight L hL hKper u g Ο huper hg hgu | |
| hΟ hΟc hΟ0 | |
| intro x hx | |
| obtain β¨z,hzβ© := hcover x hx | |
| exact β¨z,hΟ1 _ hzβ© | |
| end Periodic | |
| section Lattice | |
| variable {E P V ΞΉ : Type*} | |
| [NormedAddCommGroup E] [NormedSpace β E] [FiniteDimensional β E] | |
| [NormedAddCommGroup P] [NormedSpace β P] | |
| [NormedAddCommGroup V] [NormedSpace β V] [Fintype ΞΉ] | |
| theorem exists_latticePeriodic_smooth_extension_of_local_on | |
| (e : E βL[β] P Γ V) (b : Basis ΞΉ β P) | |
| {K C : Set E} (hK : IsClosed K) (hC : IsCompact C) | |
| (hKper : OAI.Analysis.PDE.Dirichlet.LatticePeriodic e b (fun x β¦ x β K)) | |
| (hrep : β x β K, OAI.Analysis.PDE.Dirichlet.latticeRepresentative e b x β C) | |
| (u : E β β) (huper : OAI.Analysis.PDE.Dirichlet.LatticePeriodic e b u) | |
| (hl : β x β K, β U : Set E, IsOpen U β§ x β U β§ | |
| β g : E β β, ContDiffOn β β g U β§ β y β K β© U, g y = u y) : | |
| β g : E β β, ContDiff β β g β§ OAI.Analysis.PDE.Dirichlet.LatticePeriodic e b g β§ β x β K, g x = u x := by | |
| have hshift (x : E) (z : Submodule.span β€ (Set.range b)) : | |
| x + latticeShiftHom e b z = e.symm ((e x).1 + (z : P),(e x).2) := by | |
| change x + e.symm ((z : P),0) = _ | |
| simpa only [add_comm] using (OAI.Analysis.PDE.Dirichlet.lattice_translate_eq e x (z : P)).symm | |
| have hcover : β x β K, β z, x + latticeShiftHom e b z β C := by | |
| intro x hx | |
| refine β¨-ZSpan.floor b (e x).1,?_β© | |
| rw [hshift] | |
| simpa only [OAI.Analysis.PDE.Dirichlet.latticeRepresentative,ZSpan.fract_apply,Submodule.coe_neg,sub_eq_add_neg] | |
| using hrep x hx | |
| obtain β¨g,hg,hgp,hgKβ© := exists_smooth_periodic_extension_of_local_on | |
| (latticeShiftHom e b) (finite_latticeShiftHom_norm e b) hK hC | |
| (fun x hx z β¦ by rw [hshift]; exact Eq.mpr (hKper x z) hx) | |
| hcover u (fun x _ z β¦ by rw [hshift]; exact huper x z) hl | |
| refine β¨g,hg,?_,hgKβ© | |
| intro x z | |
| rw [β hshift] | |
| exact hgp x z | |
| /-- Smooth local representatives on a periodic closed sublevel yield one | |
| globally smooth periodic representative, with exactly the same values. -/ | |
| theorem exists_latticePeriodic_smooth_sublevel_extension_on | |
| (e : E βL[β] P Γ V) (b : Basis ΞΉ β P) | |
| {C : Set V} (hC : IsCompact C) {r : E β β} (hr : Continuous r) | |
| (hrper : OAI.Analysis.PDE.Dirichlet.LatticePeriodic e b r) | |
| (hbounded : β x, r x β€ 0 β (e x).2 β C) | |
| (u : E β β) (huper : OAI.Analysis.PDE.Dirichlet.LatticePeriodic e b u) | |
| (hl : β x, r x β€ 0 β β U : Set E, IsOpen U β§ x β U β§ | |
| β g : E β β, ContDiffOn β β g U β§ β y β U, r y β€ 0 β g y = u y) : | |
| β g : E β β, ContDiff β β g β§ OAI.Analysis.PDE.Dirichlet.LatticePeriodic e b g β§ | |
| β x, r x β€ 0 β g x = u x := by | |
| apply exists_latticePeriodic_smooth_extension_of_local_on e b | |
| (isClosed_le hr continuous_const) (OAI.Analysis.PDE.Dirichlet.isCompact_latticeSublevelCell e b hC hr) | |
| (hrper.comp (fun t β¦ t β€ 0)) | |
| (fun x hx β¦ OAI.Analysis.PDE.Dirichlet.latticeRepresentative_mem_sublevelCell e b hrper hbounded hx) u huper | |
| intro x hx | |
| obtain β¨U,hU,hxU,g,hg,hguβ© := hl x hx | |
| exact β¨U,hU,hxU,g,hg,fun y hy β¦ hgu y hy.2 hy.1β© | |
| end Lattice | |
| end OAI.Analysis.Calculus.SmoothExtension | |