All proofs
Project-declaredLean 4.32.0 · mathlib@81a5d257c8e4

Mu pnt

mu_pnt

Project documentation

The summatory Möbius function has sublinear growth: as xx\to\infty, n<xμ(n)=o(x).\sum_{n<\lfloor x\rfloor}\mu(n)=o(x). This is the Möbius-function form of the prime number theorem.

Exact Lean statement

@[blueprint
  "mu-pnt"
  (title := "M\\\"obius form of prime number theorem")
  (statement := /-- We have $\sum_{n \leq x} \mu(n) = o(x)$. -/)
  (proof := /--
  From the Dirichlet convolution identity
    $$ \mu(n) \log n = - \sum_{d|n} \mu(d) \Lambda(n/d)$$
  and summing we obtain
  $$ \sum_{n \leq x} \mu(n) \log n = - \sum_{d \leq x} \mu(d) \sum_{m \leq x/d} \Lambda(m).$$
  For any $\eps>0$, we have from the prime number theorem that
  $$ \sum_{m \leq x/d} \Lambda(m) = x/d + O(\eps x/d) + O_\eps(1)$$
  (divide into cases depending on whether $x/d$ is large or small compared to $\eps$).
  We conclude that
  $$ \sum_{n \leq x} \mu(n) \log n
    = - x \sum_{d \leq x} \frac{\mu(d)}{d} + O(\eps x \log x) + O_\eps(x).$$
  Applying \eqref{mun} we conclude that
  $$ \sum_{n \leq x} \mu(n) \log n = O(\eps x \log x) + O_\eps(x).$$
  and hence
  $$ \sum_{n \leq x} \mu(n) \log x
    = O(\eps x \log x) + O_\eps(x) + O( \sum_{n \leq x} (\log x - \log n) ).$$
  From Stirling's formula one has
  $$  \sum_{n \leq x} (\log x - \log n) = O(x)$$
  thus
  $$ \sum_{n \leq x} \mu(n) \log x = O(\eps x \log x) + O_\eps(x)$$
  and thus
  $$ \sum_{n \leq x} \mu(n) = O(\eps x) + O_\eps(\frac{x}{\log x}).$$
  Sending $\eps \to 0$ we obtain the claim.
  -/)
  (proofUses := ["WeakPNT", "mun"])
  (latexEnv := "proposition")]
theorem mu_pnt : (fun x : ℝ ↦ ∑ n ∈ range ⌊x⌋₊, μ n) =o[atTop] fun x ↦ x

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
@[blueprint  "mu-pnt"  (title := "M\\\"obius form of prime number theorem")  (statement := /-- We have $\sum_{n \leq x} \mu(n) = o(x)$. -/)  (proof := /--  From the Dirichlet convolution identity    $$ \mu(n) \log n = - \sum_{d|n} \mu(d) \Lambda(n/d)$$  and summing we obtain  $$ \sum_{n \leq x} \mu(n) \log n = - \sum_{d \leq x} \mu(d) \sum_{m \leq x/d} \Lambda(m).$$  For any $\eps>0$, we have from the prime number theorem that  $$ \sum_{m \leq x/d} \Lambda(m) = x/d + O(\eps x/d) + O_\eps(1)$$  (divide into cases depending on whether $x/d$ is large or small compared to $\eps$).  We conclude that  $$ \sum_{n \leq x} \mu(n) \log n    = - x \sum_{d \leq x} \frac{\mu(d)}{d} + O(\eps x \log x) + O_\eps(x).$$  Applying \eqref{mun} we conclude that  $$ \sum_{n \leq x} \mu(n) \log n = O(\eps x \log x) + O_\eps(x).$$  and hence  $$ \sum_{n \leq x} \mu(n) \log x    = O(\eps x \log x) + O_\eps(x) + O( \sum_{n \leq x} (\log x - \log n) ).$$  From Stirling's formula one has  $$  \sum_{n \leq x} (\log x - \log n) = O(x)$$  thus  $$ \sum_{n \leq x} \mu(n) \log x = O(\eps x \log x) + O_\eps(x)$$  and thus  $$ \sum_{n \leq x} \mu(n) = O(\eps x) + O_\eps(\frac{x}{\log x}).$$  Sending $\eps \to 0$ we obtain the claim.  -/)  (proofUses := ["WeakPNT", "mun"])  (latexEnv := "proposition")]theorem mu_pnt : (fun x :   ∑ n  range ⌊x⌋₊, μ n) =o[atTop] fun x  x := by  have h_moebius_sum : (fun x :  => ∑ n  Finset.range ⌊x⌋₊, (μ n : )) =o[atTop] (fun x :  => x) := by    have h_bound : (fun x :  => ∑ n  Finset.range ⌊x⌋₊, (μ n : )) =o[atTop] (fun x :  => x) := by      have h_sum : (fun x :  => ∑ n  Finset.range (⌊x⌋₊ + 1), (μ n : )) =o[atTop] (fun x :  => x) := by        have h_moebius_sum : (fun x :  => ∑ n  Finset.Iic ⌊x⌋₊, (μ n : )) =o[atTop] (fun x :  => x) := by          convert! M_isLittleO using 1        simpa only [Finset.range_eq_Ico] using! h_moebius_sum      have h_mu_floor : (fun x :  => (μ ⌊x⌋₊ : )) =o[atTop] (fun x :  => x) := by        rw [Asymptotics.isLittleO_iff_tendsto'] <;> norm_num        · refine squeeze_zero_norm (a := fun x :  => 1 / |x|) ?_ ?_          · intro x; norm_num [abs_div]            exact mul_le_of_le_one_left (by positivity) (mod_cast by exact abs_moebius_le_one)          · exact tendsto_const_nhds.div_atTop (tendsto_norm_atTop_atTop)        · exact 1, by intros; linarith      simpa [Finset.sum_range_succ] using h_sum.sub h_mu_floor    convert h_bound using 1  rw [Asymptotics.isLittleO_iff] at *  simp_all +decide [Norm.norm]
Project
Prime Number Theorem and More
License
Apache-2.0
Commit
a93551347dce
Source
PrimeNumberTheoremAnd/Consequences.lean:1923-1970

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.32.0

Admissible bound mono

admissible_bound.mono

Plain-language statement

For positive parameters A,B,C,RA,B,C,R, the classical error-bound function A(logxR)Bexp ⁣(ClogxR)A\left(\frac{\log x}{R}\right)^B\exp\!\left(-C\sqrt{\frac{\log x}{R}}\right) is nonincreasing once xexp ⁣(R(2B/C)2)x\ge \exp\!\left(R(2B/C)^2\right).

analytic number theoryprime numbersasymptotics

Source project: Prime Number Theorem and More

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.0

Analytic On div Removable zero

AnalyticOn_divRemovable_zero

Plain-language statement

Let ff be analytic on an open set ss containing 00, and suppose f(0)=0f(0)=0. Define g(z)=f(z)/zg(z)=f(z)/z for z0z\ne0 and g(0)=f(0)g(0)=f'(0). Then the apparent singularity at 00 is removable and gg is analytic throughout ss.

analytic number theoryprime numbersasymptotics

Source project: Prime Number Theorem and More

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.0

Analytic On div Removable zero closed Ball

AnalyticOn_divRemovable_zero_closedBall

Plain-language statement

Suppose R>0R>0 and ff is analytic on the closed disc zR|z|\le R with f(0)=0f(0)=0. Define g(z)=f(z)/zg(z)=f(z)/z for z0z\ne0 and g(0)=f(0)g(0)=f'(0). Then gg is analytic on the entire closed disc, including at the removed singularity.

analytic number theoryprime numbersasymptotics

Source project: Prime Number Theorem and More

Person-level attribution pending.

View proof record