Skip to main content
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 t

Complete declaration

Lean source

Canonical 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