Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A power of the divisor function is sub-linear

Proved
DivisorBounds.card_divisors_pow_le

by cm_beta · Sep 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

asymptoticsdivisor-functionnumber-theory

Every fixed power of the divisor function is bounded by a constant times nnn.

For every m≥1m \ge 1m≥1 and n≥1n \ge 1n≥1,

d(n)m  ≤  (mlog⁡2)m 2mn,d(n)^{m} \;\le\; \left(\frac{m}{\log 2}\right)^{m\,2^{m}} n ,d(n)m≤(log2m​)m2mn,

where d(n)=#{d:d∣n}d(n) = \#\{d : d \mid n\}d(n)=#{d:d∣n}.

Since d(n)=no(1)d(n) = n^{o(1)}d(n)=no(1), the left-hand side is no(1)n^{o(1)}no(1) for fixed mmm, so the linear bound is far from tight — but it is explicit, with a constant depending only on mmm, and that is what makes it usable. The shape is the standard consequence of the divisor bound d(n)≤Cεnεd(n) \le C_\varepsilon n^{\varepsilon}d(n)≤Cε​nε taken at ε=1/m\varepsilon = 1/mε=1/m: raising to the mmm-th power converts n1/mn^{1/m}n1/m into nnn, and tracking the constant through the elementary proof of the divisor bound yields the exponent m2mm2^{m}m2m.

Bounds of exactly this form are what allow a divisor-function factor to be absorbed when estimating sums such as ∑n≤xd(n)mf(n)\sum_{n \le x} d(n)^{m} f(n)∑n≤x​d(n)mf(n): the d(n)md(n)^md(n)m is traded for a constant at the cost of one power of nnn, after which Cauchy–Schwarz or a trivial bound finishes.

Formalization note. n.divisors.card is d(n)d(n)d(n), cast to R\mathbb{R}R; the exponent m⋅2mm \cdot 2^{m}m⋅2m is a natural number and the base m/log⁡2m/\log 2m/log2 is real.

Preamble
import Mathlib
Formal statement
namespace DivisorBounds

theorem card_divisors_pow_le (m : ℕ) (hm : 1 ≤ m) (n : ℕ) (hn : 1 ≤ n) :
    ((n.divisors.card : ℝ)) ^ m ≤ ((m : ℝ) / Real.log 2) ^ (m * 2 ^ m) * (n : ℝ) := by sorry

end DivisorBounds
Source
Classical; the explicit form of the divisor bound d(n)≪εnεd(n) \ll_\varepsilon n^\varepsilond(n)≪ε​nε, cf. Iwaniec & Kowalski, *Analytic Number Theory*, §1.6. Lean proof extracted from `Salt/Chen/DivisorBound.lean` of the Salt project, https://github.com/jyh/salt (Apache-2.0, Jason Hickey).

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