lemmaintegral_gradient_compact {q : Space d →ℝ} {K : ℝ≥0}
(hq : LipschitzWithK q) (hc : HasCompactSupport q) (e : Space d) :
(∫ x, inner ℝ (gradient q x) e) = 0:=by
proof · 11
lines
have hh := (LipschitzWith.const (1:ℝ)).integral_lineDeriv_mul_eq
(μ:=volume) hq hc (-e)
havehe : (fun x => lineDeriv ℝ q x (-(-e)) * (1:ℝ)) =ᵐ[volume]
(fun x => inner ℝ (gradient q x) e) :=by
filter_upwards [hq.ae_differentiableAt] with x hx
simp only [neg_neg,mul_one,hx.lineDeriv_eq_fderiv,inner_gradient_left]
rw [integral_congr_ae he] at hh
have hz (x : Space d) : lineDeriv ℝ (fun_ : Space d => (1:ℝ)) x (-e)=0:=by
rw [(differentiableAt_const (1:ℝ)).lineDeriv_eq_fderiv]
simp
simpa only [hz,zero_mul,integral_zero] using hh.symm