File size: 1,168 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | import OAI.Analysis.Calculus.SmoothExtension.Periodic.Extension.Local
open Set Filter Metric
open scoped Topology ContDiff Manifold
noncomputable section
namespace OAI.Analysis.Calculus.SmoothExtension
variable {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] [FiniteDimensional β E]
theorem exists_smooth_compact_one_on_compact {C : Set E} (hC : IsCompact C) :
βΟ : E β β, ContDiff β β Ο β§ HasCompactSupport Ο β§
(βx, 0 β€ Ο x) β§ βx β C, Ο x = 1 := by
obtain β¨R,hR,hCRβ© := hC.isBounded.exists_pos_norm_le
have hsub : C β interior (closedBall (0 : E) (R + 1)) := by
intro x hx
apply isOpen_ball.subset_interior_iff.mpr ball_subset_closedBall
simp only [mem_ball,dist_zero_right]
linarith [hCR x hx]
obtain β¨Ο,hΟ1,hΟ0,hΟβ© := exists_contMDiffMap_one_nhds_of_subset_interior
(π(β,E)) hC.isClosed hsub (n := (β€ : ββ))
refine β¨Ο,?_,?_,fun x β¦ (hΟ x).1,fun x hx β¦ hΟ1.self_of_nhdsSet x hxβ©
Β· exact contMDiff_iff_contDiff.mp Ο.contMDiff
Β· exact HasCompactSupport.intro (isCompact_closedBall (0 : E) (R + 1)) hΟ0
end OAI.Analysis.Calculus.SmoothExtension
|