File size: 3,653 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
67
68
69
70
71
72
73
74
75
76
77
78
import OAI.Analysis.Calculus.Quaternion.CompactAverage

/-! Smoothness of finite compact averages of translates on an invariant open set. -/

noncomputable section
namespace OAI.Analysis.Calculus.Quaternion

open _root_.MeasureTheory
open scoped ContDiff Topology
universe u v
variable {E F : Type u} {Ξ± : Type v}
  [NormedAddCommGroup E] [NormedSpace ℝ E] [ProperSpace E]
  [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F]
  [TopologicalSpace Ξ±] [CompactSpace Ξ±] [T2Space Ξ±] [SecondCountableTopology Ξ±]
  [MeasurableSpace Ξ±] [BorelSpace Ξ±] {ΞΌ : Measure Ξ±} [IsFiniteMeasure ΞΌ]

omit [CompleteSpace F] in
theorem hasFDerivAt_integral_translate {O : Set E} (ho : IsOpen O)
    (f : E β†’ F) (hf : ContDiffOn ℝ ∞ f O)
    (s : Ξ± β†’ E) (hs : Continuous s) (hO : βˆ€ x ∈ O, βˆ€ t, x + s t ∈ O)
    {x : E} (hx : x ∈ O) :
    HasFDerivAt (fun y => ∫ t, f (y + s t) βˆ‚ΞΌ)
      (∫ t, fderiv ℝ f (x + s t) βˆ‚ΞΌ) x := by
  have hft (y : E) (hy : y ∈ O) (t : α) :
      HasFDerivAt (fun z => f (z + s t)) (fderiv ℝ f (y + s t)) y := by
    have hd := (hf.differentiableOn (by simp) _ (hO y hy t)).differentiableAt
      (ho.mem_nhds (hO y hy t))
    simpa only [ContinuousLinearMap.comp_id, Function.comp_def, id_eq] using
      hd.hasFDerivAt.comp y ((hasFDerivAt_id y).add_const (s t))
  have hcont : ContinuousOn (fun p : E Γ— Ξ± => f (p.1 + s p.2)) (O Γ—Λ’ Set.univ) :=
    hf.continuousOn.comp (continuous_fst.add (hs.comp continuous_snd)).continuousOn
      (fun p hp => hO p.1 hp.1 p.2)
  have hdcont : ContinuousOn (fun p : E Γ— Ξ± =>
      fderiv ℝ (fun z => f (z + s p.2)) p.1) (O Γ—Λ’ Set.univ) := by
    apply ((hf.continuousOn_fderiv_of_isOpen ho (by simp)).comp
      (continuous_fst.add (hs.comp continuous_snd)).continuousOn
      (fun p hp => hO p.1 hp.1 p.2)).congr
    intro p hp
    exact (hft p.1 hp.1 p.2).fderiv
  have h := hasFDerivAt_integral_compact ho (fun y t => f (y + s t)) hx hcont hdcont
    (fun y hy t => (hft y hy t).differentiableAt) (ΞΌ := ΞΌ)
  have he : (fun t => fderiv ℝ (fun y => f (y + s t)) x) =
      (fun t => fderiv ℝ f (x + s t)) := funext fun t => (hft x hx t).fderiv
  rw [he] at h
  exact h

theorem contDiffOn_integral_translate_nat (n : β„•) {O : Set E} (ho : IsOpen O)
    (f : E β†’ F) (hf : ContDiffOn ℝ ∞ f O)
    (s : Ξ± β†’ E) (hs : Continuous s) (hO : βˆ€ x ∈ O, βˆ€ t, x + s t ∈ O) :
    ContDiffOn ℝ n (fun y => ∫ t, f (y + s t) βˆ‚ΞΌ) O := by
  induction n generalizing F with
  | zero =>
    apply contDiffOn_zero.mpr
    intro x hx
    exact (hasFDerivAt_integral_translate ho f hf s hs hO hx).continuousAt.continuousWithinAt
  | succ n ih =>
    have hd : DifferentiableOn ℝ (fun y => ∫ t, f (y + s t) βˆ‚ΞΌ) O :=
      fun x hx => (hasFDerivAt_integral_translate ho f hf s hs hO hx).differentiableAt.differentiableWithinAt
    have hdf : ContDiffOn ℝ ∞ (fderiv ℝ f) O :=
      (contDiffOn_infty_iff_fderiv_of_isOpen ho).mp hf |>.2
    have hid := ih (fderiv ℝ f) hdf
    rw [show ((n + 1 : β„•) : β„•βˆžΟ‰) = (n : β„•βˆžΟ‰) + 1 by simp,
      contDiffOn_succ_iff_fderiv_of_isOpen ho]
    refine ⟨hd, by simp, ?_⟩
    apply hid.congr
    intro x hx
    exact (hasFDerivAt_integral_translate ho f hf s hs hO hx).fderiv

theorem contDiffOn_integral_translate {O : Set E} (ho : IsOpen O)
    (f : E β†’ F) (hf : ContDiffOn ℝ ∞ f O)
    (s : Ξ± β†’ E) (hs : Continuous s) (hO : βˆ€ x ∈ O, βˆ€ t, x + s t ∈ O) :
    ContDiffOn ℝ ∞ (fun y => ∫ t, f (y + s t) βˆ‚ΞΌ) O := by
  rw [contDiffOn_infty]
  intro n
  exact contDiffOn_integral_translate_nat n ho f hf s hs hO

end OAI.Analysis.Calculus.Quaternion