theoremintegrable_mean_sq_distance (hf : Integrable f μ)
(hf2 : Integrable (fun t => ‖f t‖ ^ 2) μ) :
Integrable (fun s =>∫ t, ‖f s - f t‖ ^ 2 ∂μ) μ :=by
proof · 5
lines
have h := (hf2.sub ((hf.inner_const (∫ t, f t ∂μ)).const_mul 2)).add
(integrable_const (∫ t, ‖f t‖ ^ 2 ∂μ))
convert h using1
ext s
exact integral_sq_distance hf hf2 (f s)
The double-variance identity, with only the integrability needed by the
application. The two integrals need not be interchanged.
theoremdouble_variance_identity (hf : Integrable f μ)
(hf2 : Integrable (fun t => ‖f t‖ ^ 2) μ) :
(∫ s, ∫ t, ‖f s - f t‖ ^ 2 ∂μ ∂μ) =
2 * ((∫ t, ‖f t‖ ^ 2 ∂μ) - ‖∫ t, f t ∂μ‖ ^ 2) :=by
proof · 16
lines
simp_rw [integral_sq_distance hf hf2]
have hadd := integral_add (hf2.sub ((hf.inner_const (∫ t, f t ∂μ)).const_mul 2))
(integrable_const (∫ t, ‖f t‖ ^ 2 ∂μ))
have hsub := integral_sub hf2 ((hf.inner_const (∫ t, f t ∂μ)).const_mul 2)
simp only [Pi.sub_apply] at hadd hsub
rw [hadd, hsub, integral_const_mul]
havehinner : (∫ s, inner ℝ (f s) (∫ t, f t ∂μ) ∂μ) = ‖∫ t, f t ∂μ‖ ^ 2:=bycalc
_ = ∫ s, inner ℝ (∫ t, f t ∂μ) (f s) ∂μ :=by
apply integral_congr_ae
exact Eventually.of_forall fun s => real_inner_comm _ _
_ = inner ℝ (∫ t, f t ∂μ) (∫ t, f t ∂μ) := integral_inner hf _
_ = _ := real_inner_self_eq_norm_sq _
rw [hinner]
simp only [integral_const, probReal_univ, one_smul]
ring
A stationary Hilbert-valued curve with a mean-square increment bound
retains this much squared norm after averaging. In the geodesic application,
L is the averaged squared norm of the directional derivative.
theoremincrement_bound_of_derivative {Ad : ℝ→E} {L : ℝ} (hL : 0≤L)
(hd : ∀ t, HasDerivAtA (d t) t) (hbound : ∀ t, ‖d t‖ ^ 2≤L) (s t : ℝ) :
‖A s - A t‖ ^ 2≤L * (s - t) ^ 2:=by
proof · 13
lines
have hnorm (z : ℝ) : ‖d z‖ ≤Real.sqrt L:=by
nlinarith [hbound z, Real.sqrt_nonneg L, Real.sq_sqrt hL, norm_nonneg (d z)]
have hforward (a b : ℝ) (hab : a ≤ b) :
‖A b - A a‖ ≤Real.sqrt L * (b - a) :=by
exact norm_image_sub_le_of_norm_deriv_le_segment'
(fun z _ => (hd z).hasDerivWithinAt) (fun z _ => hnorm z) b ⟨hab, le_rfl⟩
havehdist : ‖A s - A t‖ ≤Real.sqrt L * |s - t| :=by
rcases le_total t s with hts | hst
· simpa only [abs_of_nonneg (sub_nonneg.mpr hts)] using hforward t s hts
· rw [norm_sub_rev, abs_of_nonpos (sub_nonpos.mpr hst), neg_sub]
exact hforward s t hst
have hsq := mul_le_mul hdist hdist (norm_nonneg _) (by positivity)
simpa only [← pow_two, mul_pow, Real.sq_sqrt hL, sq_abs] using hsq