lemmaintegrable_mul_deriv {f g : Coordinates d →ℂ}
(hf : ContDiffℝ∞ f) (hg : ContDiffℝ∞ g) (hc : HasCompactSupport f)
(v : Coordinates d) : Integrable (fun z => f z * fderiv ℝ g z v) :=
lemmaintegrable_deriv_mul {f g : Coordinates d →ℂ}
(hf : ContDiffℝ∞ f) (hg : ContDiffℝ∞ g) (hc : HasCompactSupport f)
(v : Coordinates d) : Integrable (fun z => fderiv ℝ f z v * g z) :=
lemmacontinuous_mul_on_tsupport {E : Type*} [TopologicalSpaceE] {f g : E→ℂ}
(hf : Continuous f) (hg : ∀ z ∈ tsupport f, ContinuousAt g z) :
Continuous (fun z => f z * g z) :=by
proof · 7
lines
rw [continuous_iff_continuousAt]
intro z
by_cases hz : z ∈ tsupport f
· exact hf.continuousAt.mul (hg z hz)
· apply (continuousAt_const (y := (0 : ℂ))).congr
filter_upwards [notMem_tsupport_iff_eventuallyEq.mp hz] with y hy
simp only [hy, zero_mul, Pi.zero_apply]
lemmacontDiff_mul_on_tsupport {E : Type*} [NormedAddCommGroupE] [NormedSpaceℝE]
{f g : E→ℂ} (hf : ContDiffℝ∞ f)
(hg : ∀ z ∈ tsupport f, ContDiffAtℝ∞ g z) :
ContDiffℝ∞ (fun z => f z * g z) :=by
proof · 7
lines
rw [contDiff_iff_contDiffAt]
intro z
by_cases hz : z ∈ tsupport f
· exact hf.contDiffAt.mul (hg z hz)
· apply (contDiffAt_const (c := (0 : ℂ))).congr_of_eventuallyEq
filter_upwards [notMem_tsupport_iff_eventuallyEq.mp hz] with y hy
simp only [hy, zero_mul, Pi.zero_apply]
lemmaintegrable_mul_deriv_local {f g : Coordinates d →ℂ}
(hf : ContDiffℝ∞ f) (hg : ∀ z ∈ tsupport f, ContDiffAtℝ∞ g z)
(hc : HasCompactSupport f) (v : Coordinates d) :
Integrable (fun z => f z * fderiv ℝ g z v) :=
proof · 3
lines
(continuous_mul_on_tsupport hf.continuous (fun z hz =>
(contDiffAt_deriv_direction (hg z hz) v).continuousAt)).integrable_of_hasCompactSupport
hc.mul_right
lemmaintegrable_deriv_mul_local {f g : Coordinates d →ℂ}
(hf : ContDiffℝ∞ f) (hg : ∀ z ∈ tsupport f, ContDiffAtℝ∞ g z)
(hc : HasCompactSupport f) (v : Coordinates d) :
Integrable (fun z => fderiv ℝ f z v * g z) :=
proof · 3
lines
(continuous_mul_on_tsupport (contDiff_deriv_direction hf v).continuous (fun z hz =>
(hg z (tsupport_fderiv_apply_subset ℝ v hz)).continuousAt)).integrable_of_hasCompactSupport
(hc.fderiv_apply ℝ v).mul_right
lemmaintegral_mul_barDeriv_local {f g : Coordinates d →ℂ}
(hf : ContDiffℝ∞ f) (hg : ∀ z ∈ tsupport f, ContDiffAtℝ∞ g z)
(hc : HasCompactSupport f) (j : Fin d) :
(∫ z, f z * barDeriv g z j) = -(∫ z, barDeriv f z j * g z) :=by
proof · 22
lines
have hv (v : Coordinates d) : (∫ z, f z * fderiv ℝ g z v) =
-(∫ z, fderiv ℝ f z v * g z) :=
integral_mul_fderiv_eq_neg_fderiv_mul_of_integrable
(integrable_deriv_mul_local hf hg hc v) (integrable_mul_deriv_local hf hg hc v)
((continuous_mul_on_tsupport hf.continuous (fun z hz => (hg z hz).continuousAt)).integrable_of_hasCompactSupport hc.mul_right)
(fun z _ => hf.differentiable (by simp) z)
(fun z hz => (hg z hz).differentiableAt (by simp))
have he (z : Coordinates d) : f z * barDeriv g z j =
(2 : ℂ)⁻¹ * (f z * fderiv ℝ g z (coordinateVector j)) +
((2 : ℂ)⁻¹ * Complex.I) * (f z * fderiv ℝ g z (Complex.I • coordinateVector j)) :=by
unfold barDeriv
ring
have he' (z : Coordinates d) : barDeriv f z j * g z =
(2 : ℂ)⁻¹ * (fderiv ℝ f z (coordinateVector j) * g z) +
((2 : ℂ)⁻¹ * Complex.I) * (fderiv ℝ f z (Complex.I • coordinateVector j) * g z) :=by
unfold barDeriv
ring
simp_rw [he, he']
rw [integral_add ((integrable_mul_deriv_local hf hg hc _).const_mul _) ((integrable_mul_deriv_local hf hg hc _).const_mul _),
integral_add ((integrable_deriv_mul_local hf hg hc _).const_mul _) ((integrable_deriv_mul_local hf hg hc _).const_mul _)]
simp only [integral_const_mul, hv]
ring