Arbitrary-order Euler–Maclaurin summation #
Adapted from Interval/EulerMaclaurin/Bernoulli.lean and
Interval/EulerMaclaurin/EulerMaclaurin.lean in
girving/interval at commit
f4a3231fd735cdf6d5265864d9a9207744a7aca2, licensed under Apache-2.0.
Adaptations for Expdb: combined the Bernoulli and Euler–Maclaurin developments in one module, retained the summation identity, and provided an explicit norm bound for sums over closed natural-number intervals. Auxiliary declarations are private; namespaces and proofs were updated for the current Mathlib API.
Periodic Bernoulli functions #
The scaled periodic Bernoulli function of order s.
Equations
- Expdb.EulerMaclaurin.saw s x = (↑s.factorial)⁻¹ * periodizedBernoulli s ↑x
Instances For
Explicit bounds #
An explicit uniform bound for the absolute value of saw s, obtained by summing the
absolute values of the coefficients of the sth Bernoulli polynomial.
Equations
Instances For
Euler–Maclaurin on one unit interval #
The full formula #
The arbitrary-order Euler–Maclaurin formula for a sum over consecutive integers.
A convenient norm form of Euler–Maclaurin for natural endpoints. Uniform bounds on the function and its derivatives control the difference between the inclusive sum and its integral; the right-hand side records the endpoint, correction-term, and remainder contributions.