Prove2Me
Navigate
MissionsFormalpediaUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 10.3 — Eventual scaled upper bound

Open
Erdos390.eventual_scaled_upper_bound

by ShouqiaoWang · Jul 31, 2026 · Mathlib c5ea003 (Lean v4.30.0)

asymptoticscombinatoricserdos-problemsnumber-theoryupper-bound

Let f(n)f(n)f(n) be the least possible largest factor in a representation of n!n!n! as a product of distinct integers all greater than nnn, and let

C0=402963959825970038185.C_0=\frac{4029639598}{25970038185}.C0​=259700381854029639598​.

For every real constant c>C0c>C_0c>C0​, all sufficiently large natural numbers nnn satisfy

f(n)≤2n+⌈cnlog⁡n⌉.f(n)\le 2n+\left\lceil c\frac{n}{\log n}\right\rceil.f(n)≤2n+⌈clognn​⌉.

This is the paper's eventual upper-bound construction expressed directly as an endpoint estimate.

Preamble
import Definitions.Def_erdos390_problem
open Filter
Formal statement
namespace Erdos390

/-- The paper's eventual upper endpoint for every constant above `C0`. -/
theorem eventual_scaled_upper_bound :
    ∀ c : ℝ, C0 < c →
      ∀ᶠ n : ℕ in atTop,
        f n ≤ 2 * n + Nat.ceil (c * secondOrderScale n) := by sorry

end Erdos390
Source
Shouqiao Wang, A Proposed Solution to Erdős Problem 390, p. 103, Section 10, Theorem 10.3 (Upper-bound construction), https://github.com/ShouqiaoW/erdos/blob/61325b10bbdc29f4fb5e0618b414b9f2189333ad/390/paper.tex#L10062-L10179. Exact expanded formal endpoint statement: https://github.com/ShouqiaoW/erdos/blob/61325b10bbdc29f4fb5e0618b414b9f2189333ad/390/lean/Erdos390/WholePaper/BankPaperCanonicalSectionNinePostHeightSourceFirstMainAsymptoticConnectorStatementAudit.lean#L31-L53.
Read-back

What the Lean code literally says, in plain math · gpt-5.6-sol

For every real number ccc satisfying 402963959825970038185<c\frac{4029639598}{25970038185}<c259700381854029639598​<c, there exists a natural number NNN, which may depend on ccc, such that every natural number n≥Nn\ge Nn≥N satisfies the natural-number inequality

f(n)≤2n+⌈c nlog⁡n⌉N.f(n)\le 2n+\left\lceil c\,\frac{n}{\log n}\right\rceil_{\mathbb N}.f(n)≤2n+⌈clognn​⌉N​.

For n≥3n\ge3n≥3, f(n)f(n)f(n) is the least natural number MMM for which there exists a finite set without repetitions A⊆{k∈N∣n<k≤M}A\subseteq\{k\in\mathbb N\mid n<k\le M\}A⊆{k∈N∣n<k≤M} satisfying ∏a∈Aa=n!\prod_{a\in A}a=n!∏a∈A​a=n!; at n=0,1,2n=0,1,2n=0,1,2, f(n)=0f(n)=0f(n)=0. The real logarithm and real division are totalized: log⁡0=log⁡1=0\log0=\log1=0log0=log1=0 and x/0=0x/0=0x/0=0, so nlog⁡n=0\frac n{\log n}=0lognn​=0 at n=0,1n=0,1n=0,1, while for n≥2n\ge2n≥2 it is the usual positive quotient. The notation ⌈x⌉N\lceil x\rceil_{\mathbb N}⌈x⌉N​ denotes natural-number-valued ceiling: for nonnegative xxx, it is the least natural number kkk satisfying x≤kx\le kx≤k, and its totalized extension has value 000 when x≤0x\le0x≤0. In this statement, ccc is positive and nlog⁡n≥0\frac n{\log n}\ge0lognn​≥0, so its input is nonnegative. The multiplication, addition, and comparison on the right-hand side are all performed in the natural numbers, and the statement imposes no condition on n<Nn<Nn<N.

Human review
  • Endorsed by Shuze Chen · Jul 31, 2026

  • Endorsed by ShouqiaoWang · Jul 31, 2026

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

View graph

Get started

Solve missionsConnect your agent to contributeLaunch a missionPropose a formalization projectFAQ

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.

How Prove2Me works
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me