Download data/lean/OAI/Analysis/Calculus/SmoothExtension/HalfspaceExtension.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.24 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/SmoothExtension/HalfspaceExtension.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Calculus/SmoothExtension/HalfspaceExtension.lean
-
curl -L -o HalfspaceExtension.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/SmoothExtension/HalfspaceExtension.lean
5.24 kB
| import OAI.Analysis.Calculus.SmoothExtension.HalfspaceSeries | |
| import OAI.Analysis.Calculus.FiniteExtension.Halfspace.Extension.Local | |
| import Mathlib.Analysis.Calculus.BumpFunction.InnerProduct | |
| /-! A genuine smooth extension, with a single function valid at all orders. -/ | |
| noncomputable section | |
| open Set Metric | |
| open scoped ContDiff Topology | |
| namespace OAI.Analysis.Calculus.SmoothExtension | |
| open OAI.Analysis.Calculus.FiniteExtension OAI.Analysis.PDE.Schauder | |
| variable {E F : Type*} [NormedAddCommGroup E] [InnerProductSpace β E] | |
| [FiniteDimensional β E] [NormedAddCommGroup F] [NormedSpace β F] [CompleteSpace F] | |
| omit [CompleteSpace F] in | |
| theorem exists_compact_finite_halfspace_extension {N : β} | |
| (β : E βL[β] β) (Ξ½ : E) (hΞ½ : β Ξ½ = 1) (f : E β F) | |
| (hf : ContDiffOn β N f {x | 0 β€ β x}) (hc : HasCompactSupport f) : | |
| β g : E β F, ContDiff β N g β§ HasCompactSupport g β§ EqOn g f {x | 0 β€ β x} := by | |
| obtain β¨g,hg,heqβ© := OAI.Analysis.Calculus.FiniteExtension.exists_contDiff_extension_of_contDiffOn_halfspace β Ξ½ hΞ½ f hf | |
| obtain β¨R,hR,hboundβ© := hc.isBounded.exists_pos_norm_le | |
| let ΞΈ : ContDiffBump (0:E) := β¨R,R+1,hR,by linarithβ© | |
| refine β¨fun x => ΞΈ x β’ g x, ΞΈ.contDiff.smul hg, ΞΈ.hasCompactSupport.smul_right, ?_β© | |
| intro x hx | |
| dsimp only | |
| rw [heq hx] | |
| by_cases hfx : f x = 0 | |
| Β· simp [hfx] | |
| Β· rw [ΞΈ.one_of_mem_closedBall] | |
| Β· simp | |
| Β· change dist x 0 β€ R | |
| rw [dist_zero_right] | |
| exact hbound x (subset_tsupport _ (Function.mem_support.mpr hfx)) | |
| omit [FiniteDimensional β E] [CompleteSpace F] in | |
| theorem seeleyExtension_congr_on_halfspace (β : E βL[β] β) (Ξ½ : E) (hΞ½ : β Ξ½ = 1) | |
| (f g : E β F) (heq : EqOn f g {x | 0 β€ β x}) : | |
| OAI.Analysis.PDE.Schauder.levelGlue β f (seeleyReflection β Ξ½ f) = OAI.Analysis.PDE.Schauder.levelGlue β g (seeleyReflection β Ξ½ g) := by | |
| funext x | |
| by_cases hx : 0 β€ β x | |
| Β· simp only [OAI.Analysis.PDE.Schauder.levelGlue,ite_eq_left hx,heq hx] | |
| Β· simp only [OAI.Analysis.PDE.Schauder.levelGlue,ite_eq_right hx,seeleyReflection] | |
| apply tsum_congr | |
| intro i | |
| rw [heq] | |
| rw [Set.mem_ofPred_eq,OAI.Analysis.Calculus.FiniteExtension.reflectionLinear_normal β Ξ½ hΞ½] | |
| exact mul_nonneg_of_nonpos_of_nonpos ((seeleyNode_le_neg_one i).trans (by norm_num)) | |
| (le_of_not_ge hx) | |
| omit [FiniteDimensional β E] in | |
| /-- One and the same Seeley extension is smooth to all orders. The hypotheses | |
| provide actual finite-order compact extensions, not a pre-assumed smooth one. -/ | |
| theorem seeleyExtension_contDiff_infty_of_finite_extensions | |
| (β : E βL[β] β) (Ξ½ : E) (hΞ½ : β Ξ½ = 1) (f : E β F) | |
| (hf : β N : β, β g : E β F, | |
| ContDiff β N g β§ HasCompactSupport g β§ EqOn g f {x | 0 β€ β x}) : | |
| ContDiff β β (OAI.Analysis.PDE.Schauder.levelGlue β f (seeleyReflection β Ξ½ f)) := by | |
| rw [contDiff_infty] | |
| intro N | |
| obtain β¨g,hg,hgc,hgfβ© := hf N | |
| rw [seeleyExtension_congr_on_halfspace β Ξ½ hΞ½ f g hgf.symm] | |
| exact seeleyExtension_contDiff_of_compact β Ξ½ hg hgc | |
| theorem exists_smooth_compact_data_halfspace_extension | |
| (β : E βL[β] β) (Ξ½ : E) (hΞ½ : β Ξ½ = 1) (f : E β F) | |
| (hf : ContDiffOn β β f {x | 0 β€ β x}) (hc : HasCompactSupport f) : | |
| β g : E β F, ContDiff β β g β§ EqOn g f {x | 0 β€ β x} := by | |
| refine β¨OAI.Analysis.PDE.Schauder.levelGlue β f (seeleyReflection β Ξ½ f), ?_, ?_β© | |
| Β· apply seeleyExtension_contDiff_infty_of_finite_extensions β Ξ½ hΞ½ f | |
| intro N | |
| exact exists_compact_finite_halfspace_extension β Ξ½ hΞ½ f | |
| (hf.of_le (by exact_mod_cast (show (N:ββ) β€ β€ from le_top))) hc | |
| Β· intro x hx | |
| exact ite_eq_left hx | |
| /-- A single globally Cβ function agrees with the given one-sided smooth | |
| function on a fixed smaller half-ball. The neighborhood is independent of | |
| the derivative order. -/ | |
| theorem exists_smooth_extension_of_halfball | |
| (β : E βL[β] β) (Ξ½ : E) (hΞ½ : β Ξ½ = 1) (f : E β F) | |
| (R : β) (hR : 0 < R) | |
| (hf : ContDiffOn β β f (ball 0 R β© {x | 0 β€ β x})) : | |
| β g : E β F, ContDiff β β g β§ | |
| EqOn g f (ball 0 (R/4) β© {x | 0 β€ β x}) := by | |
| let Ξ· : ContDiffBump (0:E) := β¨R/4,R/2,by positivity,by linarithβ© | |
| have hs : tsupport (Ξ· : E β β) β ball 0 R := by | |
| rw [Ξ·.tsupport_eq] | |
| exact closedBall_subset_ball (by dsimp [Ξ·]; linarith) | |
| have hlocal : ContDiffOn β β (fun x => Ξ· x β’ f x) {x | 0 β€ β x} := by | |
| rw [contDiffOn_infty] | |
| intro N | |
| have hfn : ContDiffOn β N f ({x | 0 β€ β x} β© ball 0 R) := by | |
| simpa only [inter_comm] using | |
| (hf.of_le (show (N:ββΟ) β€ β by exact_mod_cast (show (N:ββ) β€ β€ from le_top))) | |
| exact OAI.Analysis.Calculus.FiniteExtension.contDiffOn_cutoff_smul isOpen_ball f hfn (Ξ· : E β β) Ξ·.contDiff hs | |
| obtain β¨g,hg,heqβ© := exists_smooth_compact_data_halfspace_extension β Ξ½ hΞ½ | |
| (fun x => Ξ· x β’ f x) hlocal Ξ·.hasCompactSupport.smul_right | |
| refine β¨g,hg,?_β© | |
| intro x hx | |
| rw [heq hx.2] | |
| dsimp only | |
| rw [Ξ·.one_of_mem_closedBall (ball_subset_closedBall hx.1),one_smul] | |
| end OAI.Analysis.Calculus.SmoothExtension | |