Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Legendre lower bound using the Chebyshev function

Proved
LL_Decomp1528a.sum_sub_theta_le_log_factorial

by sthubbar · Oct 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

number-theory

For every natural number nnn, n∑p≤nlog⁡pp−θ(n)≤log⁡(n!)n\sum_{p\le n}\frac{\log p}{p}-\theta(n)\le\log(n!)n∑p≤n​plogp​−θ(n)≤log(n!), where θ(n)=∑p≤nlog⁡p\theta(n)=\sum_{p\le n}\log pθ(n)=∑p≤n​logp and the sums run over primes.

Preamble
import Mathlib

open Real Finset Chebyshev
Formal statement
namespace LL_Decomp1528a
theorem sum_sub_theta_le_log_factorial (n : ℕ) :
    (n : ℝ) * ∑ p ∈ Nat.primesLE n, log p / p - θ n ≤ log (n.factorial : ℝ) := by sorry
end LL_Decomp1528a
Source
Ingham, The Distribution of Prime Numbers, Theorem 7. Source context: https://arxiv.org/abs/2608.09488v1
Read-back

What the Lean code literally says, in plain math · claude-haiku

For every n∈Nn\in\mathbb{N}n∈N, no hypotheses:

n∑p≤n, p primelog⁡pp−θ(n)≤log⁡(n!),n\sum_{p\le n,\ p\text{ prime}}\frac{\log p}{p}-\theta(n)\le\log(n!),np≤n, p prime∑​plogp​−θ(n)≤log(n!),

with θ=\theta=θ= Chebyshev.theta at (n:R)(n:\mathbb{R})(n:R), θ(n)=∑p≤nlog⁡p\theta(n)=\sum_{p\le n}\log pθ(n)=∑p≤n​logp. The sum body stops before the binary minus, so the reading is (n⋅∑)−θ(n)(n\cdot\sum)-\theta(n)(n⋅∑)−θ(n). Casts: ppp and nnn to R\mathbb{R}R, factorial computed in N\mathbb{N}N then cast. Edge cases n=0,1n=0,1n=0,1: 0≤00\le 00≤0. Non-strict; proof is sorry.

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

    Confirmed by the moderator at approval.

  • Endorsed by sthubbar · Oct 28, 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