For , the Zipf harmonic sums tend to
ProvedZipfLaw.zipf_genHarmonic_tendsto_zetaharmonic-numberspower-lawzipf-law
If , the generalized harmonic partial sums converge to Riemann's zeta function . The formal limit takes place in after casting the real sums, because Mathlib's riemannZeta is complex-valued.
Preamble
import Mathlib import Definitions.Def_ZipfLaw_Defs
Formal statement
namespace ZipfLaw
theorem zipf_genHarmonic_tendsto_zeta (s : ℝ) (hs : 1 < s) :
Filter.Tendsto (fun N : ℕ => ((genHarmonic N s : ℝ) : ℂ)) Filter.atTop
(nhds (riemannZeta s)) := by sorry
end ZipfLawSource
Wikipedia, "Zipf's law", https://en.wikipedia.org/wiki/Zipf%27s_law, section "Formal definition"; auxiliary lemma for the original ZipfLaw mission, derived from its displayed PMF and generalized harmonic sum.