Euler-Maclaurin with two Bernoulli terms for via Hurwitz zeta
ProvedLL_EMHalf1201.LFunction_EM2_boundFor every Dirichlet character modulo , every with , , and every , the difference between and has absolute value at most . Here is a nonzero natural number; the lab file declares it in a variable block, and the statement includes it explicitly.
import Mathlib open Complex
namespace LL_EMHalf1201
variable {q : ℕ} [NeZero q] in
theorem LFunction_EM2_bound (χ : DirichletCharacter ℂ q) {s : ℂ} (hs : 0 < s.re) (h1 : s ≠ 1)
(N : ℕ) :
‖DirichletCharacter.LFunction χ s - (q : ℂ) ^ (-s) * ∑ a ∈ Finset.Icc 1 q, χ a *
((∑ n ∈ Finset.range N, ((n : ℂ) + (a : ℂ) / q) ^ (-s)) +
((N : ℂ) + (a : ℂ) / q) ^ (1 - s) / (s - 1) + ((N : ℂ) + (a : ℂ) / q) ^ (-s) / 2 +
s * ((N : ℂ) + (a : ℂ) / q) ^ (-s - 1) / 12)‖ ≤
‖s‖ * ‖s + 1‖ / 12 * (q : ℝ) ^ (-s.re) *
(∑ a ∈ Finset.Icc 1 q, ‖χ a‖ * ((N : ℝ) + (a : ℝ) / q) ^ (-s.re - 1)) / (s.re + 1) := by sorry
end LL_EMHalf1201Read-back
What the Lean code literally says, in plain math · claude-haiku
Read-back: LL_EMHalf1201.LFunction_EM2_bound
Draft theorem, currently proved by sorry. This read-back covers the statement only.
Fix a natural number (the instance NeZero q says ) and a complex-valued Dirichlet character modulo . Fix a complex number with real part and , and a natural number . Write for the Dirichlet L-function of at . For an integer , means the value of at the residue class of mod , and the sum over runs over . The theorem asserts that the following inequality holds:
In words, the left side is the distance between and an explicit finite expression. That expression is times a sum over residue classes of a truncated Hurwitz zeta sum: the first terms, plus the tail integral , plus half the next term, plus the correction . The right side is an explicit real upper bound: times times a weighted sum of over , divided by .
Hypotheses. There are five binders and no others. (1) is a natural number with . (2) is any Dirichlet character modulo with values in , including the trivial character and imprimitive characters. (3) is any complex number with . (4) . (5) is any natural number, including . There is no constraint on the imaginary part of .
Conclusion. The norm of minus the finite expression is at most the explicit real bound. The inequality is non-strict.
Junk values and edge cases.
- is excluded by hypothesis (4). This matters: would otherwise divide by zero, which Lean reads as . With (4) there is no junk.
- All complex powers have positive real bases. For and , , and . So the principal-branch power is the ordinary real power, and no junk appears.
- Divisions by are safe since . Division by is safe. Division by is safe since .
- For , is at the class of . This is when , since is not a unit, and when , the trivial character on the zero ring. Both agree with the standard formula.
- is allowed. The first inner sum is then empty, and the statement still makes sense.
- Since and , the value of is the genuine analytic continuation value. For nontrivial , is entire. For trivial , the only pole is at , which is excluded.
What Mathlib means.
DirichletCharacter ℂ qis Mathlib'sMulChar (ZMod q) ℂ. It is a multiplicative map fromZMod qtoℂ, zero on non-units and a group homomorphism into on units. Applying it to a natural numberauses the castℕ → ZMod q, which is whyχ ais the value at the class of .DirichletCharacter.LFunction χ sis, to my understanding, the Dirichlet L-function of regarded as a character mod . It is the analytic continuation of , which converges absolutely for . Because when , there are no Euler factors at primes dividing . This is the imprimitive L-function. It is not the primitive one, so it can differ from the primitive L-function by Euler factors at primes dividing . Mathlib builds it through the Hurwitz zeta function, and the formula in the statement, , is exactly that decomposition.
Plausibility. The statement is the Euler-Maclaurin expansion of the Hurwitz zeta function. Take and . Euler-Maclaurin with one correction term gives , where . Here is the periodic Bernoulli function, , and . So . Multiplying by , using , and applying the triangle inequality over gives exactly the stated bound. The constants match the standard second-order remainder. The statement therefore looks true. It is not vacuous: the hypotheses are satisfiable, for example , trivial, , and any . The bound is a genuine finite inequality.
Mismatch risks.
- The main risk is the definition of
DirichletCharacter.LFunction. If the intended object were the primitive L-function, the statement would concern a different function. The statement's Hurwitz decomposition matches the imprimitive (mod ) L-function, so this should be checked against the Mathlib source. - The cast
ℕ → ZMod qinsideχ ais implicit. Its effect at is handled above and is consistent with the formula. - The right side mixes complex norms with a real
rpowons.re. The types line up, and I found no hidden mismatch. - The statement uses , which is what the bound needs. Nothing is stated about equality or strictness.
- Only the statement is read. The proof is
sorry, so no claim is made about proof completeness.
VERDICT OK
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.