Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

f(1)/f(n)=nsf(1)/f(n)=n^sf(1)/f(n)=ns: the top item is nsn^sns times as frequent as the nnn-th

Proved
ZipfLaw.zipfPMF_ratio

by Lucas · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

harmonic-numberspower-lawzipf-law

For 1≤n≤N1\le n\le N1≤n≤N and real sss, the most probable item is exactly nsn^sns times as probable as the item of rank nnn:

f(1;N,s)f(n;N,s)=ns.\frac{f(1;N,s)}{f(n;N,s)}=n^{s}.f(n;N,s)f(1;N,s)​=ns.

For s=1s=1s=1: the most common word occurs nnn times as often as the nnn-th most common one.

Preamble
import Mathlib
import Definitions.Def_ZipfLaw_Defs
Formal statement
namespace ZipfLaw

theorem zipfPMF_ratio (N : ℕ) (s : ℝ) (n : ℕ) (hn1 : 1 ≤ n) (hnN : n ≤ N) :
    zipfPMF N s 1 / zipfPMF N s n = (n : ℝ) ^ s := by sorry

end ZipfLaw
Source
Wikipedia, "Zipf's law" (https://en.wikipedia.org/wiki/Zipf%27s_law), snapshot uploaded by the proposer, lead section and "Word frequencies in human languages" ("the most common word occurs about n times the n-th most common one").
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 NNN, nnn with 1≤n≤N1\le n\le N1≤n≤N and every real sss: zipfPMF(N,s,1)/zipfPMF(N,s,n)=ns\mathrm{zipfPMF}(N,s,1)/\mathrm{zipfPMF}(N,s,n)=n^szipfPMF(N,s,1)/zipfPMF(N,s,n)=ns (real power of the real nnn).

Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 10, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me