All finite Zipf moments are ratios of shifted harmonic sums
ProvedZipfLaw.zipfPMF_momentharmonic-numberspower-lawzipf-law
For every cutoff , real exponent , and integer moment order , the finite Zipf law satisfies . The identity includes under Lean's convention for division by zero. The first and second moment formulas in the mission are its special cases.
Preamble
import Mathlib import Definitions.Def_ZipfLaw_Defs
Formal statement
namespace ZipfLaw
theorem zipfPMF_moment (N : ℕ) (s : ℝ) (p : ℕ) :
(∑ k ∈ Finset.Icc 1 N, (k : ℝ) ^ p * zipfPMF N s k) =
genHarmonic N (s - p) / genHarmonic N 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.