Log–log plot of the Zipf distribution is affine with slope
ProvedZipfLaw.log_zipfPMF_affineharmonic-numberspower-lawzipf-law
For and real ,
so on a log–log plot (log rank against log frequency) the Zipf distribution lies on a straight line of slope .
Preamble
import Mathlib import Definitions.Def_ZipfLaw_Defs
Formal statement
namespace ZipfLaw
theorem log_zipfPMF_affine (N : ℕ) (s : ℝ) (k : ℕ) (hk1 : 1 ≤ k) (hkN : k ≤ N) :
Real.log (zipfPMF N s k) = -s * Real.log k - Real.log (genHarmonic N s) := by sorry
end ZipfLawSource
Wikipedia, "Zipf's law" (https://en.wikipedia.org/wiki/Zipf%27s_law), snapshot uploaded by the proposer, section "Empirical testing" ("The data conform to Zipf's law with exponent s to the extent that the plot approximates a linear (more precisely, affine) function with slope −s").
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) - non-blind, same agent as the drafter
Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement, with full knowledge of the source article and of the intended meaning. It is not a blind audit by an independent reader, and no reviewer should treat it as one. Please compare it against the Lean code yourself.
For all naturals , with and every real : .
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.