The sum equals the harmonic number
Provedharmonic_eq_sum_Icc0elementary-identitiesharmonic-numberspntreal-analysis
For every natural number ,
where is the -th harmonic number (a rational number, here coerced to ), and the term contributes nothing by the standard convention in Lean's real-number division.
The content is purely a re-indexing: the sum over the closed interval coincides with the usual harmonic number because the spurious term vanishes. This lets estimates phrased over — as naturally arise from Euler–Maclaurin-style manipulations in the zeta bounds — be rewritten in terms of the library's harmonic number and its known asymptotics .
Preamble
import Batteries.Tactic.Lemma import Mathlib.MeasureTheory.Function.Floor import Mathlib.MeasureTheory.Order.Group.Lattice import Mathlib.NumberTheory.Harmonic.Bounds import Mathlib.NumberTheory.LSeries.Nonvanishing import Mathlib.Algebra.Order.Floor.Defs import Mathlib.Algebra.Order.Floor.Ring import Mathlib.Algebra.Order.Floor.Semiring import Mathlib.Analysis.Calculus.Deriv.Support import Mathlib.Analysis.Complex.CauchyIntegral import Mathlib.Analysis.Complex.Convex import Mathlib.Analysis.Complex.RealDeriv import Mathlib.Analysis.Complex.RemovableSingularity import Mathlib.Analysis.Distribution.SchwartzSpace.Deriv import Mathlib.Analysis.Fourier.FourierTransformDeriv import Mathlib.Analysis.InnerProductSpace.Basic import Mathlib.Analysis.Meromorphic.NormalForm import Mathlib.Analysis.Normed.Order.Lattice import Mathlib.Analysis.SpecialFunctions.Integrals.Basic import Mathlib.Analysis.SpecialFunctions.Log.Basic import Mathlib.Analysis.SpecialFunctions.Pow.Continuity import Mathlib.MeasureTheory.Integral.IntegralEqImproper import Mathlib.NumberTheory.AbelSummation import Mathlib.Order.Filter.ZeroAndBoundedAtFilter import Mathlib.Order.Interval.Set.Monotone import Mathlib.Tactic.Abel import Mathlib.Tactic.LinearCombinationPrime import Mathlib.Topology.ContinuousMap.Bounded.Basic import Definitions.Def_EulerMaclaurin_defs import Definitions.Def_Fourier_defs import Definitions.Def_Rectangle_defs import Definitions.Def_ResidueCalcOnRectangles_defs import Definitions.Def_ZetaBounds_defs set_option lang.lemmaCmd true open Complex Topology Filter Interval Set Asymptotics local notation (name := riemannzeta) "ζ" => riemannZeta local notation (name := derivriemannzeta) "ζ'" => deriv riemannZeta -- Main theorem: if functions agree on a punctured set, their derivatives agree there too /- New two theorems to be proven -/ -- Alternative cleaner proof using more direct approach /- The set should be open so that f'(p) = O(1) for all p ∈ U -/ /-- We use `ζ` to denote the Rieman zeta function and `ζ₀` to denote the alternative Rieman zeta function. -/ local notation (name := riemannzeta0) "ζ₀" => riemannZeta0
Formal statement
theorem harmonic_eq_sum_Icc0 (N : ℕ) : ∑ i ∈ Finset.Icc 0 N, (i : ℝ)⁻¹ = (harmonic N : ℝ) := by sorry
Source