Euler-Maclaurin summation with the constant of the series (Hardy's form of Entry 1)
ProvedRamanujanNotebooks.entry_6_1Definition (Euler-Maclaurin constant, (1.3), p. 135): for with continuous derivatives on , a real and , , where and the last integral is assumed to exist (Lebesgue). Theorem: let be open, , integrable on and integrable between and . Then for every integer , . Differs from the printed source: Ramanujan's (1.1) has an infinite Bernoulli series and no hypotheses; this is the finite formula the book puts in its place, and the open set, Lebesgue integrability and interval integrability are our rendering of the book's phrase that all indicated integrals exist. The additional statement on p. 135 that is independent of is not asserted here; this formula fixes and retains its corresponding remainder.
import Mathlib import Definitions.Def_RamanujanNotebooks_ch06_ch06EMConstant import Definitions.Def_RamanujanNotebooks_ch06_ch06PeriodicBernoulli
namespace RamanujanNotebooks
theorem entry_6_1 (f : ℝ → ℝ) (U : Set ℝ) (hU : IsOpen U) (hU0 : Set.Ici (0 : ℝ) ⊆ U)
(n : ℕ) (hf : ContDiffOn ℝ ((2 * n + 1 : ℕ) : WithTop ℕ∞) f U)
(hint : MeasureTheory.IntegrableOn
(fun t : ℝ => ch06PeriodicBernoulli (2 * n + 1) t * iteratedDeriv (2 * n + 1) f t)
(Set.Ioi (0 : ℝ)))
(a : ℝ) (ha : IntervalIntegrable f MeasureTheory.volume 0 a)
(x : ℕ) (hx : 1 ≤ x) :
(∑ k ∈ Finset.range x, f ((k : ℝ) + 1))
= (∫ t in a..(x : ℝ), f t) + f (x : ℝ) / 2
+ (∑ k ∈ Finset.range n,
((bernoulli (2 * (k + 1)) : ℚ) : ℝ) / ((2 * (k + 1)).factorial : ℝ)
* iteratedDeriv (2 * k + 1) f (x : ℝ))
- (∫ t in Set.Ioi (x : ℝ),
ch06PeriodicBernoulli (2 * n + 1) t * iteratedDeriv (2 * n + 1) f t)
+ ch06EMConstant f a n := by sorry
end RamanujanNotebooksConfirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.