Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Landau's function as the maximal lcm of a partition

Proved
LandauFunction.landau_eq_sup_partition_lcm

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

landau-functionpartitions

For every natural number nnn, Landau's function equals the largest least common multiple of the parts of a partition of nnn:

g(n)=max⁡λ⊢nlcm⁡(λ1,…,λk),g(n)=\max_{\lambda\vdash n}\operatorname{lcm}(\lambda_1,\dots,\lambda_k),g(n)=λ⊢nmax​lcm(λ1​,…,λk​),

where λ=(λ1,…,λk)\lambda=(\lambda_1,\dots,\lambda_k)λ=(λ1​,…,λk​) ranges over all partitions of nnn into positive parts.

This is the bridge between the group-theoretic definition of ggg and its arithmetic study.

Formalization Note Partitions are Mathlib's Nat.Partition n; the lcm of the empty partition of 000 is 111.

Preamble
import Mathlib
import Definitions.Def_LandauFunction_landau
Formal statement
namespace LandauFunction
theorem landau_eq_sup_partition_lcm (n : ℕ) :
    landau n = (Finset.univ : Finset (Nat.Partition n)).sup fun p => p.parts.lcm := by sorry
end LandauFunction
Source
Wikipedia, "Landau's function", revision oldid=1303222269 (https://en.wikipedia.org/w/index.php?title=Landau%27s_function&oldid=1303222269), first paragraph ("Equivalently, g(n) is the largest least common multiple (lcm) of any partition of n").
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 below, with full knowledge of the source material and of the intended meaning. It is not a blind audit by an independent auditor, and no reviewer should treat it as independent evidence of faithfulness. It was produced at the explicit request of the proposal owner.

For every natural number nnn:

g(n)=sup⁡λlcm⁡(λ),g(n)=\sup_{\lambda}\operatorname{lcm}(\lambda),g(n)=λsup​lcm(λ),

where g(n)g(n)g(n) is the maximum order of a permutation of {0,…,n−1}\{0,\dots,n-1\}{0,…,n−1} (definition landau: the supremum of the orders of all such permutations), λ\lambdaλ ranges over all partitions of nnn, i.e. all finite multisets of positive integers whose sum is nnn, and lcm⁡(λ)\operatorname{lcm}(\lambda)lcm(λ) is the least common multiple of the multiset's elements (with the convention that the lcm of the empty multiset is 111). The supremum is taken in N\mathbb NN (least element 000) over the finite set of all partitions of nnn, which is nonempty for every nnn; for n=0n=0n=0 the only partition is the empty one, so the right-hand side is 111. No hypothesis on nnn is imposed.

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