AlexKontorovich/PrimeNumberTheoremAnd
Source indexedlemma ยท leanprover/lean4:v4.32.0
integral_deriv_mul_add_const
PrimeNumberTheoremAnd.EulerMaclaurin ยท PrimeNumberTheoremAnd/EulerMaclaurin.lean:28 to 39
Mathematical statement
Exact Lean statement
lemma integral_deriv_mul_add_const (c : ๐) (hab : a โค b) (h_int : IntervalIntegrable (deriv f) volume a b)
(hf_diff : โ t โ Set.Icc a b, DifferentiableAt โ f t) :
โซ t in a..b, (t + c) * deriv f t = (b + c) * f b - (a + c) * f a - โซ t in a..b, f tComplete declaration
Lean source
Full Lean sourceLean 4
lemma integral_deriv_mul_add_const (c : ๐) (hab : a โค b) (h_int : IntervalIntegrable (deriv f) volume a b) (hf_diff : โ t โ Set.Icc a b, DifferentiableAt โ f t) : โซ t in a..b, (t + c) * deriv f t = (b + c) * f b - (a + c) * f a - โซ t in a..b, f t := by rw [โ Set.uIcc_of_le hab] at hf_diff have : โ t โ [[a, b]], HasDerivAt (fun (t : โ) โฆ t + c) 1 t := by intro t ht simp only [hasDerivAt_add_const_iff] convert! ContinuousLinearMap.hasDerivAt (RCLike.ofRealCLM (K := ๐)) using 1 simp replace hf_diff := fun t ht โฆ (hf_diff t ht).hasDerivAt rw [intervalIntegral.integral_mul_deriv_eq_deriv_mul this hf_diff (by simp) h_int] simp