File size: 2,968 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import Mathlib.Geometry.Manifold.PartitionOfUnity

open Set Filter
open scoped Topology ContDiff Manifold
noncomputable section
namespace OAI.Analysis.Calculus.SmoothExtension

variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
  [FiniteDimensional ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F]

/-- A closed set with compatible local C^q extensions has a genuine global
C^q extension. Compatibility is required only on the closed set itself. -/
theorem exists_contDiff_extension_of_local {K : Set E} (hK : IsClosed K)
    (q : ℕ) (u : E → F)
    (hl : ∀x ∈ K, ∃U : Set E, IsOpen U ∧ x ∈ U ∧
      ∃g : E → F, ContDiff ℝ q g ∧ ∀y ∈ K ∩ U, g y = u y) :
    ∃g : E → F, ContDiff ℝ q g ∧ ∀x ∈ K, g x = u x := by
  classical
  choose U hU hxU g hg heq using (fun x : K ↦ hl x x.property)
  obtain ⟨ρ,hρ⟩ := SmoothPartitionOfUnity.exists_isSubordinate
    (𝓘(ℝ,E)) hK U hU (fun x hx ↦ mem_iUnion.mpr ⟨⟨x,hx⟩,hxU ⟨x,hx⟩⟩)
  refine ⟨fun x ↦ ∑ᶠi : K, ρ i x • g i x, ?_, ?_⟩
  · rw [contDiff_iff_contDiffAt]
    intro x
    exact ρ.contDiffAt_finsum (fun i _ ↦ (hg i).contDiffAt)
  · intro x hx
    calc
      (∑ᶠi : K, ρ i x • g i x) = ∑ᶠi : K, ρ i x • u x := by
        apply finsum_congr
        intro i
        by_cases hi : ρ i x = 0
        · simp [hi]
        · rw [heq i x ⟨hx,hρ i (subset_tsupport _ hi)⟩]
      _ = (∑i ∈ ρ.finsupport x, ρ i x) • u x := by
        rw [← ρ.sum_finsupport_smul_eq_finsum x (fun _ _ ↦ u x), Finset.sum_smul]
      _ = u x := by rw [ρ.sum_finsupport x hx,one_smul]

/-- Local representatives need only be smooth on their open patches. -/
theorem exists_contDiff_extension_of_local_on {K : Set E} (hK : IsClosed K)
    (q : ℕ) (u : E → F)
    (hl : ∀x ∈ K, ∃U : Set E, IsOpen U ∧ x ∈ U ∧
      ∃g : E → F, ContDiffOn ℝ q g U ∧ ∀y ∈ K ∩ U, g y = u y) :
    ∃g : E → F, ContDiff ℝ q g ∧ ∀x ∈ K, g x = u x := by
  classical
  choose U hU hxU g hg heq using (fun x : K ↦ hl x x.property)
  obtain ⟨ρ,hρ⟩ := SmoothPartitionOfUnity.exists_isSubordinate
    (𝓘(ℝ,E)) hK U hU (fun x hx ↦ mem_iUnion.mpr ⟨⟨x,hx⟩,hxU ⟨x,hx⟩⟩)
  refine ⟨fun x ↦ ∑ᶠi : K, ρ i x • g i x, ?_, ?_⟩
  · rw [contDiff_iff_contDiffAt]
    intro x
    exact ρ.contDiffAt_finsum (fun i hi ↦
      (hg i).contDiffAt ((hU i).mem_nhds (hρ i hi)))
  · intro x hx
    calc
      (∑ᶠi : K, ρ i x • g i x) = ∑ᶠi : K, ρ i x • u x := by
        apply finsum_congr
        intro i
        by_cases hi : ρ i x = 0
        · simp [hi]
        · rw [heq i x ⟨hx,hρ i (subset_tsupport _ hi)⟩]
      _ = (∑i ∈ ρ.finsupport x, ρ i x) • u x := by
        rw [← ρ.sum_finsupport_smul_eq_finsum x (fun _ _ ↦ u x), Finset.sum_smul]
      _ = u x := by rw [ρ.sum_finsupport x hx,one_smul]

end OAI.Analysis.Calculus.SmoothExtension