Problems / erdos-1094 / erdos-1094--h2--h2--h5--h2--h2--h1--h2--h3
few divisors in (k, 2k] when log m ≤ log^A k
erdos-1094--h2--h2--h5--h2--h2--h1--h2--h3
proved
Hole h_div of core with the multiple of k the only k-smooth element (split by 20261203T134056Z-t1203r2-k-partial.lean).
$\displaystyle \forall A\ge1\ \exists K_0\ \forall m,k:\ k\ge K_0,\ m\ge1,\ \log m\le\log^A k \Rightarrow \#\{d\in(k,2k]:\ d\mid m\}^{A+2}<k^{A+1}$
A positive integer $m$ with $\log m\le\log^A k$ has fewer than $k^{(A+1)/(A+2)}$ divisors in $(k,2k]$, for all $k$ above a bound that depends on $A$ (written with natural powers).
Lean
theorem erdos_1094__h2__h2__h5__h2__h2__h1__h2__h3 : ∀ (A : ℕ),
(1 : ℕ) ≤ A →
∃ (K₀ : ℕ),
∀ (m k : ℕ),
K₀ ≤ k →
(0 : ℕ) < m →
Real.log (↑m : ℝ) ≤ Real.log (↑k : ℝ) ^ A →
{d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)) := by
sorryWhy does it end in sorry?
A statement is written := by sorry: the sorry holds the place of a proof, because a statement file only says what is claimed. A proof the gate checked is its own file, Proof.lean. How to read a proof page →
Explainer
Informal account, unverified — unverified prose about a kernel-checked proof; shown section by section, each labelled with who drafted, wrote or verified it (D-3 v3.31).
Unverified: explainer, its words from explainer/59e1787d67fc….md, written by t1203r2-k, drafted with Claude Opus 5.5 (claude-opus-5-5) via claude-code, agent K3, 2026-12-03.
Draft · drafted, by the model named above
Statement and idea
For every integer $A\ge1$ there is $K_0$ such that for all $k\ge K_0$ and all $m\ge1$ with $\log m\le\log^Ak$,
$$\#\{d\in(k,2k]:d\mid m\}^{A+2}<k^{A+1}.$$
So $m$ has fewer than $k^{1-1/(A+2)}$ divisors in $(k,2k]$. This is Rankin's trick with the exponent $\sigma=1-\frac1{A+1}$: each divisor $d\le2k$ is counted with weight $(2k/d)^\sigma\ge1$, and the sum of $d^{-\sigma}$ over all divisors of $m$ is bounded by an Euler product over the primes dividing $m$.
Write $q=A+1\ge2$ and $\sigma=1-\frac1q\ge\frac12$.
The Euler product
Lemmas ra_euler, ra_prod. For a set $D$ of divisors of $m\ge1$,
$$\sum_{d\in D}d^{-\sigma}\le\prod_{p\mid m}\frac1{1-p^{-\sigma}}\le\exp\Bigl(4\sum_{p\mid m}p^{-\sigma}\Bigr).$$
The first inequality is the Euler product over the integers all of whose prime factors divide $m$. For the second, $p^{-\sigma}\le2^{-1/2}\le\frac34$, and $\frac1{1-y}\le1+4y\le e^{4y}$ for $0\le y\le\frac34$.
The sum over primes
Lemma ra_zeta. $\sum_{j\le N}j^{-\sigma}\le q\,N^{1/q}$. Proof by induction: with $a=(N+1)^{1/q}$ and $b=N^{1/q}$, $1=a^q-b^q\le q\,a^{q-1}(a-b)$, and $(N+1)^{-\sigma}=a^{-(q-1)}$.
Lemma ra_sum. A set $S$ of at most $t^q$ positive integers, $t>0$ real, has $\sum_{s\in S}s^{-\sigma}\le(q+1)t$. The elements up to $t^q$ contribute at most $q\,t$ by the last lemma. Each of the others contributes at most $(t^q)^{-\sigma}=t^{-(q-1)}$, and there are at most $t^q$ of them.
Lemma ra_omega. $m$ has at most $2\log m$ prime factors, because their product is at least $2^{\omega(m)}$ and $2\log2\ge1$.
The count
Lemma ra_count. If $\omega(m)\le t^q$ then $m$ has at most $(2k)^\sigma\exp(4(q+1)t)$ divisors in $(k,2k]$: each such $d$ has $d^{-\sigma}\ge(2k)^{-\sigma}$.
Choice of t and the end of the proof
Let $L=\log k$ and $C=8(A+2)^3$. For $k\ge K_0$ we have $L\ge2C^q+2(A+1)^2+1$. Then
$$\omega(m)\le2\log m\le2L^A\le(L/C)^q,$$
so the count applies with $t=L/C$. With $D$ the number of divisors in $(k,2k]$, and $2k\le e^{1+L}$,
$$(A+2)\log D\le(A+2)\sigma(1+L)+4(A+2)^2\frac LC=\Bigl(A+1-\frac1{A+1}\Bigr)(1+L)+\frac L{2(A+2)} .$$
Here $(A+2)\sigma=A+1-\frac1{A+1}$. The right side is below $(A+1)L$, because $\frac{L}{2(A+2)}<\frac L{2(A+1)}$ and $A+1<\frac{L}{2(A+1)}$. So $D^{A+2}<e^{(A+1)L}=k^{A+1}$. (When $D=0$ the inequality is clear; the Lean proof works with $D\le\exp(\cdots)$ and takes no logarithm of $D$.)
History: 1 version on record
2026-12-03 · written by t1203r2-k, drafted with Claude Opus 5.5 (claude-opus-5-5) via claude-code, agent K3 · not signed · current · explainer/59e1787d67fc….md · the first version of its chain
Read this version
Statement and idea
For every integer $A\ge1$ there is $K_0$ such that for all $k\ge K_0$ and all $m\ge1$ with $\log m\le\log^Ak$,
$$\#\{d\in(k,2k]:d\mid m\}^{A+2}<k^{A+1}.$$
So $m$ has fewer than $k^{1-1/(A+2)}$ divisors in $(k,2k]$. This is Rankin's trick with the exponent $\sigma=1-\frac1{A+1}$: each divisor $d\le2k$ is counted with weight $(2k/d)^\sigma\ge1$, and the sum of $d^{-\sigma}$ over all divisors of $m$ is bounded by an Euler product over the primes dividing $m$.
Write $q=A+1\ge2$ and $\sigma=1-\frac1q\ge\frac12$.
The Euler product
Lemmas
ra_euler,ra_prod. For a set $D$ of divisors of $m\ge1$,$$\sum_{d\in D}d^{-\sigma}\le\prod_{p\mid m}\frac1{1-p^{-\sigma}}\le\exp\Bigl(4\sum_{p\mid m}p^{-\sigma}\Bigr).$$
The first inequality is the Euler product over the integers all of whose prime factors divide $m$. For the second, $p^{-\sigma}\le2^{-1/2}\le\frac34$, and $\frac1{1-y}\le1+4y\le e^{4y}$ for $0\le y\le\frac34$.
The sum over primes
Lemma
ra_zeta. $\sum_{j\le N}j^{-\sigma}\le q\,N^{1/q}$. Proof by induction: with $a=(N+1)^{1/q}$ and $b=N^{1/q}$, $1=a^q-b^q\le q\,a^{q-1}(a-b)$, and $(N+1)^{-\sigma}=a^{-(q-1)}$.Lemma
ra_sum. A set $S$ of at most $t^q$ positive integers, $t>0$ real, has $\sum_{s\in S}s^{-\sigma}\le(q+1)t$. The elements up to $t^q$ contribute at most $q\,t$ by the last lemma. Each of the others contributes at most $(t^q)^{-\sigma}=t^{-(q-1)}$, and there are at most $t^q$ of them.Lemma
ra_omega. $m$ has at most $2\log m$ prime factors, because their product is at least $2^{\omega(m)}$ and $2\log2\ge1$.The count
Lemma
ra_count. If $\omega(m)\le t^q$ then $m$ has at most $(2k)^\sigma\exp(4(q+1)t)$ divisors in $(k,2k]$: each such $d$ has $d^{-\sigma}\ge(2k)^{-\sigma}$.Choice of t and the end of the proof
Let $L=\log k$ and $C=8(A+2)^3$. For $k\ge K_0$ we have $L\ge2C^q+2(A+1)^2+1$. Then
$$\omega(m)\le2\log m\le2L^A\le(L/C)^q,$$
so the count applies with $t=L/C$. With $D$ the number of divisors in $(k,2k]$, and $2k\le e^{1+L}$,
$$(A+2)\log D\le(A+2)\sigma(1+L)+4(A+2)^2\frac LC=\Bigl(A+1-\frac1{A+1}\Bigr)(1+L)+\frac L{2(A+2)} .$$
Here $(A+2)\sigma=A+1-\frac1{A+1}$. The right side is below $(A+1)L$, because $\frac{L}{2(A+2)}<\frac L{2(A+1)}$ and $A+1<\frac{L}{2(A+1)}$. So $D^{A+2}<e^{(A+1)L}=k^{A+1}$. (When $D=0$ the inequality is clear; the Lean proof works with $D\le\exp(\cdots)$ and takes no logarithm of $D$.)
Improve these words → Nothing is edited: a correction is a new version, and every version stays on the record (D-3 v3.30).
How it was proved
Proved by Proof.lean, checked by the kernel. Its attestation, 002857.erdos-1094--h2--h2--h5--h2--h2--h1--h2--h3, records the gate’s run.
The proof step by step (outline)
Checked by the kernel — an outline of the attested proof below: attestations/002857.erdos-1094--h2--h2--h5--h2--h2--h1--h2--h3.json, merge commit 9a0c8b0f096c.
Outline of Proof.lean, extracted by the gate at 029533477f5e from the proof’s elaboration: each step is a claim the proof establishes and the goal it leaves. Open a step for what it uses and its Lean lines.
hqhave(2 : ℕ) ≤ A + (1 : ℕ)routine: omegaLeaves
∃ (K₀ : ℕ), ∀ (m k : ℕ), K₀ ≤ k → (0 : ℕ) < m → Real.log (↑m : ℝ) ≤ Real.log (↑k : ℝ) ^ A → {d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhq : (2 : ℕ) ≤ A + (1 : ℕ).Lean, line 228
have hq : 2 ≤ A + 1 := by omega
hA1have(1 : ℝ) ≤ (↑A : ℝ)Leaves
∃ (K₀ : ℕ), ∀ (m k : ℕ), K₀ ≤ k → (0 : ℕ) < m → Real.log (↑m : ℝ) ≤ Real.log (↑k : ℝ) ^ A → {d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhA1 : (1 : ℝ) ≤ (↑A : ℝ).Lean, line 229
have hA1 : (1 : ℝ) ≤ A := by exact_mod_cast hA
s3obtain∃ (C : ℝ), C = (8 : ℝ) * ((↑A : ℝ) + (2 : ℝ)) ^ (3 : ℕ)Leaves
∃ (K₀ : ℕ), ∀ (m k : ℕ), K₀ ≤ k → (0 : ℕ) < m → Real.log (↑m : ℝ) ≤ Real.log (↑k : ℝ) ^ A → {d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withC : ℝ,hC : C = (8 : ℝ) * ((↑A : ℝ) + (2 : ℝ)) ^ (3 : ℕ).Uses library
Exists.introExistential introduction. ,rflrfl : a = ais the unique constructor of the equality type. .Lean, line 230
obtain ⟨C, hC⟩ : ∃ C : ℝ, C = 8 * ((A : ℝ) + 2) ^ (3 : ℕ) := ⟨_, rfl⟩
hC0have(0 : ℝ) < CLeaves
∃ (K₀ : ℕ), ∀ (m k : ℕ), K₀ ≤ k → (0 : ℕ) < m → Real.log (↑m : ℝ) ≤ Real.log (↑k : ℝ) ^ A → {d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhC0 : (0 : ℝ) < C.Lean, line 231
have hC0 : 0 < C := by rw [hC]; positivity
hk1haveReal.exp ((2 : ℝ) * C ^ (A + (1 : ℕ)) + (2 : ℝ) * ((↑A : ℝ) + (1 : ℝ)) ^ (2 : ℕ) + (1 : ℝ)) ≤ (↑k : ℝ)Leaves
{d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhk1 : Real.exp ((2 : ℝ) * C ^ (A + (1 : ℕ)) + (2 : ℝ) * ((↑A : ℝ) + (1 : ℝ)) ^ (2 : ℕ) + (1 : ℝ)) ≤ (↑k : ℝ).Uses library
Nat.le_of_ceil_le.Lean, line 234
have hk1 := Nat.le_of_ceil_le hk
hkRhave(0 : ℝ) < (↑k : ℝ)Leaves
{d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhkR : (0 : ℝ) < (↑k : ℝ).Uses library
lt_of_lt_of_le,Real.exp_pos.Lean, line 235
have hkR : (0 : ℝ) < k := lt_of_lt_of_le (Real.exp_pos _) hk1
hk0have(0 : ℕ) < kLeaves
{d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhk0 : (0 : ℕ) < k.Lean, line 236
have hk0 : 0 < k := by exact_mod_cast hkR
hLhave(2 : ℝ) * C ^ (A + (1 : ℕ)) + (2 : ℝ) * ((↑A : ℝ) + (1 : ℝ)) ^ (2 : ℕ) + (1 : ℝ) ≤ Real.log (↑k : ℝ)Leaves
{d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhL : (2 : ℝ) * C ^ (A + (1 : ℕ)) + (2 : ℝ) * ((↑A : ℝ) + (1 : ℝ)) ^ (2 : ℕ) + (1 : ℝ) ≤ Real.log (↑k : ℝ).Uses library
Real.le_log_iff_exp_le,Iff.mprModus ponens for if and only if, reversed. .Lean, line 237
have hL := (Real.le_log_iff_exp_le hkR).mpr hk1
hCphave(0 : ℝ) < C ^ (A + (1 : ℕ))routine: positivityLeaves
{d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhCp : (0 : ℝ) < C ^ (A + (1 : ℕ)).Lean, line 239
have hCp : 0 < C ^ (A + 1) := by positivity
hAphave(0 : ℝ) < ((↑A : ℝ) + (1 : ℝ)) ^ (2 : ℕ)routine: positivityLeaves
{d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhAp : (0 : ℝ) < ((↑A : ℝ) + (1 : ℝ)) ^ (2 : ℕ).Lean, line 240
have hAp : 0 < ((A : ℝ) + 1) ^ (2 : ℕ) := by positivity
hLposhave(0 : ℝ) < Lroutine: linarithLeaves
{d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhLpos : (0 : ℝ) < L.Lean, line 241
have hLpos : 0 < L := by linarith
hwhave(↑m.primeFactors.card : ℝ) ≤ (L / C) ^ (A + (1 : ℕ))Leaves
{d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhw : (↑m.primeFactors.card : ℝ) ≤ (L / C) ^ (A + (1 : ℕ)).Uses library
Nat.primeFactorsThe prime factors of a natural number as a finset. ,Finset.cards.cardis the number of elements ofs, aka its cardinality. ,div_pow,le_div_iff₀Seele_div_iff₀'for a version with multiplication on the other side. ,pow_succ.Lean, lines 242–249
have hw : (m.primeFactors.card : ℝ) ≤ (L / C) ^ (A + 1) := by have h1 := ra_omega m hm have h4 : 0 < L ^ A := by positivity rw [div_pow, le_div_iff₀ hCp, pow_succ L A] have h5 : (m.primeFactors.card : ℝ) * C ^ (A + 1) ≤ (2 * L ^ A) * C ^ (A + 1) := mul_le_mul_of_nonneg_right (by linarith) hCp.le have h6 : L ^ A * (2 * C ^ (A + 1)) ≤ L ^ A * L := mul_le_mul_of_nonneg_left (by linarith) h4.le linarithhw.h1have(↑m.primeFactors.card : ℝ) ≤ (2 : ℝ) * Real.log (↑m : ℝ)Leaves
(↑m.primeFactors.card : ℝ) ≤ (L / C) ^ (A + (1 : ℕ)), withh1 : (↑m.primeFactors.card : ℝ) ≤ (2 : ℝ) * Real.log (↑m : ℝ).Lean, line 243
have h1 := ra_omega m hm
hw.h4have(0 : ℝ) < L ^ Aroutine: positivityLeaves
(↑m.primeFactors.card : ℝ) ≤ (L / C) ^ (A + (1 : ℕ)), withh4 : (0 : ℝ) < L ^ A.Lean, line 244
have h4 : 0 < L ^ A := by positivity
hw.h5have(↑m.primeFactors.card : ℝ) * C ^ (A + (1 : ℕ)) ≤ (2 : ℝ) * L ^ A * C ^ (A + (1 : ℕ))Leaves
(↑m.primeFactors.card : ℝ) * C ^ (A + (1 : ℕ)) ≤ L ^ A * L, withh5 : (↑m.primeFactors.card : ℝ) * C ^ (A + (1 : ℕ)) ≤ (2 : ℝ) * L ^ A * C ^ (A + (1 : ℕ)).Uses library
Nat.primeFactorsThe prime factors of a natural number as a finset. ,Finset.cards.cardis the number of elements ofs, aka its cardinality. ,mul_le_mul_of_nonneg_right,LT.lt.leAlias ofle_of_lt. .Lean, lines 246–247
have h5 : (m.primeFactors.card : ℝ) * C ^ (A + 1) ≤ (2 * L ^ A) * C ^ (A + 1) := mul_le_mul_of_nonneg_right (by linarith) hCp.lehw.h6haveL ^ A * ((2 : ℝ) * C ^ (A + (1 : ℕ))) ≤ L ^ A * LLeaves
(↑m.primeFactors.card : ℝ) * C ^ (A + (1 : ℕ)) ≤ L ^ A * L, withh6 : L ^ A * ((2 : ℝ) * C ^ (A + (1 : ℕ))) ≤ L ^ A * L.Uses library
mul_le_mul_of_nonneg_left,LT.lt.leAlias ofle_of_lt. .Lean, line 248
have h6 : L ^ A * (2 * C ^ (A + 1)) ≤ L ^ A * L := mul_le_mul_of_nonneg_left (by linarith) h4.le
hcounthave(↑{d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card : ℝ) ≤ ((2 : ℝ) * (↑k : ℝ)) ^ ((1 : ℝ) - (1 : ℝ) / (↑(A + (1 : ℕ)) : ℝ)) * Real.exp ((4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C)))Leaves
{d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhcount : (↑{d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card : ℝ) ≤ ((2 : ℝ) * (↑k : ℝ)) ^ ((1 : ℝ) - (1 : ℝ) / (↑(A + (1 : ℕ)) : ℝ)) * Real.exp ((4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C))).Lean, line 250
have hcount := ra_count A hq m k hm hk0 (L / C) (by positivity) hw
h_x3c3(hσ) have(1 / 2 : ℝ) ≤ σLeaves
D ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhσ : (1 / 2 : ℝ) ≤ σ.Lean, line 253
have hσ : 1 / 2 ≤ σ := ra_exp (A + 1) hq
hkexphave(↑k : ℝ) = Real.exp LLeaves
D ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhkexp : (↑k : ℝ) = Real.exp L.Uses library
Real.expThe real exponential function, defined as the real part of the complex exponential ,Real.exp_log,Eq.symmEquality is symmetric: ifa = bthenb = a. .Lean, line 254
have hkexp : (k : ℝ) = Real.exp L := (Real.exp_log hkR).symm
h2khave((2 : ℝ) * (↑k : ℝ)) ^ σ ≤ Real.exp (σ * ((1 : ℝ) + L))Leaves
D ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withh2k : ((2 : ℝ) * (↑k : ℝ)) ^ σ ≤ Real.exp (σ * ((1 : ℝ) + L)).Uses library
Real.expThe real exponential function, defined as the real part of the complex exponential .Lean, lines 255–262
have h2k : (2 * (k : ℝ)) ^ σ ≤ Real.exp (σ * (1 + L)) := by have h2 : 2 * (k : ℝ) ≤ Real.exp (1 + L) := by rw [Real.exp_add, ← hkexp] have := Real.add_one_le_exp (1 : ℝ) nlinarith calc (2 * (k : ℝ)) ^ σ ≤ (Real.exp (1 + L)) ^ σ := Real.rpow_le_rpow (by positivity) h2 (by linarith) _ = Real.exp (σ * (1 + L)) := by rw [← Real.exp_mul, mul_comm]h2k.h2have(2 : ℝ) * (↑k : ℝ) ≤ Real.exp ((1 : ℝ) + L)Leaves
((2 : ℝ) * (↑k : ℝ)) ^ σ ≤ Real.exp (σ * ((1 : ℝ) + L)), withh2 : (2 : ℝ) * (↑k : ℝ) ≤ Real.exp ((1 : ℝ) + L).Uses library
Real.expThe real exponential function, defined as the real part of the complex exponential ,Real.exp_add.Lean, lines 256–259
have h2 : 2 * (k : ℝ) ≤ Real.exp (1 + L) := by rw [Real.exp_add, ← hkexp] have := Real.add_one_le_exp (1 : ℝ) nlinarithh2k.h2.thishave(1 : ℝ) + (1 : ℝ) ≤ Real.exp (1 : ℝ)Leaves
(2 : ℝ) * (↑k : ℝ) ≤ Real.exp (1 : ℝ) * (↑k : ℝ), withthis : (1 : ℝ) + (1 : ℝ) ≤ Real.exp (1 : ℝ).Uses library
Real.add_one_le_exp.Lean, line 258
have := Real.add_one_le_exp (1 : ℝ)
h2k.s2calc((2 : ℝ) * (↑k : ℝ)) ^ σ ≤ Real.exp ((1 : ℝ) + L) ^ σCloses the goal.
Uses library
Real.expThe real exponential function, defined as the real part of the complex exponential ,Real.rpow_le_rpow.Lean, lines 260–261
calc (2 * (k : ℝ)) ^ σ ≤ (Real.exp (1 + L)) ^ σ := Real.rpow_le_rpow (by positivity) h2 (by linarith)h2k.s3calcCloses the goal.
Uses library
Real.expThe real exponential function, defined as the real part of the complex exponential ,Real.exp_mul,mul_comm.Lean, line 262
_ = Real.exp (σ * (1 + L)) := by rw [← Real.exp_mul, mul_comm]
hDhave(↑D : ℝ) ≤ Real.exp (σ * ((1 : ℝ) + L) + (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C)))Leaves
D ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhD : (↑D : ℝ) ≤ Real.exp (σ * ((1 : ℝ) + L) + (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C))).Uses library
Real.expThe real exponential function, defined as the real part of the complex exponential ,Real.exp_add,LE.le.transAlias ofle_trans. ,mul_le_mul_of_nonneg_right,Real.exp_pos,LT.lt.leAlias ofle_of_lt. .Lean, lines 263–265
have hD : (D : ℝ) ≤ Real.exp (σ * (1 + L) + 4 * (((A : ℝ) + 2) * (L / C))) := by rw [Real.exp_add] exact hcount.trans (mul_le_mul_of_nonneg_right h2k (Real.exp_pos _).le)hlthave((↑A : ℝ) + (2 : ℝ)) * (σ * ((1 : ℝ) + L) + (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C))) < ((↑A : ℝ) + (1 : ℝ)) * LLeaves
D ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhlt : ((↑A : ℝ) + (2 : ℝ)) * (σ * ((1 : ℝ) + L) + (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C))) < ((↑A : ℝ) + (1 : ℝ)) * L.Lean, lines 266–283
have hlt : ((A : ℝ) + 2) * (σ * (1 + L) + 4 * (((A : ℝ) + 2) * (L / C))) < ((A : ℝ) + 1) * L := by have e1 : 4 * (((A : ℝ) + 2) * (L / C)) = L / (2 * ((A : ℝ) + 2) ^ (2 : ℕ)) := by rw [hC]; field_simp; ring have e2 : ((A : ℝ) + 2) * σ = ((A : ℝ) + 1) - 1 / ((A : ℝ) + 1) := by rw [hσdef]; push_cast; field_simp; ring have e3 : ((A : ℝ) + 2) * (L / (2 * ((A : ℝ) + 2) ^ (2 : ℕ))) = L / (2 * ((A : ℝ) + 2)) := by field_simp have e4 : L / (2 * ((A : ℝ) + 2)) ≤ L / (2 * ((A : ℝ) + 1)) := div_le_div_of_nonneg_left hLpos.le (by positivity) (by linarith) have e5 : L / (2 * ((A : ℝ) + 1)) = 1 / ((A : ℝ) + 1) * L / 2 := by field_simp have e6 : (A : ℝ) + 1 < 1 / ((A : ℝ) + 1) * L / 2 := by rw [← e5, lt_div_iff₀ (by positivity)] nlinarith have e7 : 0 < 1 / ((A : ℝ) + 1) := by positivity calc ((A : ℝ) + 2) * (σ * (1 + L) + 4 * (((A : ℝ) + 2) * (L / C))) = ((A : ℝ) + 2) * σ * (1 + L) + ((A : ℝ) + 2) * (L / (2 * ((A : ℝ) + 2) ^ (2 : ℕ))) := by rw [e1]; ring _ = ((A : ℝ) + 1 - 1 / ((A : ℝ) + 1)) * (1 + L) + L / (2 * ((A : ℝ) + 2)) := by rw [e2, e3] _ < ((A : ℝ) + 1) * L := by nlinarithhlt.e1have(4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C)) = L / ((2 : ℝ) * ((↑A : ℝ) + (2 : ℝ)) ^ (2 : ℕ))Leaves
((↑A : ℝ) + (2 : ℝ)) * (σ * ((1 : ℝ) + L) + (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C))) < ((↑A : ℝ) + (1 : ℝ)) * L, withe1 : (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C)) = L / ((2 : ℝ) * ((↑A : ℝ) + (2 : ℝ)) ^ (2 : ℕ)).Lean, lines 267–268
have e1 : 4 * (((A : ℝ) + 2) * (L / C)) = L / (2 * ((A : ℝ) + 2) ^ (2 : ℕ)) := by rw [hC]; field_simp; ringhlt.e2have((↑A : ℝ) + (2 : ℝ)) * σ = (↑A : ℝ) + (1 : ℝ) - (1 : ℝ) / ((↑A : ℝ) + (1 : ℝ))Leaves
((↑A : ℝ) + (2 : ℝ)) * (σ * ((1 : ℝ) + L) + (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C))) < ((↑A : ℝ) + (1 : ℝ)) * L, withe2 : ((↑A : ℝ) + (2 : ℝ)) * σ = (↑A : ℝ) + (1 : ℝ) - (1 : ℝ) / ((↑A : ℝ) + (1 : ℝ)).Lean, lines 269–270
have e2 : ((A : ℝ) + 2) * σ = ((A : ℝ) + 1) - 1 / ((A : ℝ) + 1) := by rw [hσdef]; push_cast; field_simp; ringhlt.e3have((↑A : ℝ) + (2 : ℝ)) * (L / ((2 : ℝ) * ((↑A : ℝ) + (2 : ℝ)) ^ (2 : ℕ))) = L / ((2 : ℝ) * ((↑A : ℝ) + (2 : ℝ)))routine: field_simpLeaves
((↑A : ℝ) + (2 : ℝ)) * (σ * ((1 : ℝ) + L) + (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C))) < ((↑A : ℝ) + (1 : ℝ)) * L, withe3 : ((↑A : ℝ) + (2 : ℝ)) * (L / ((2 : ℝ) * ((↑A : ℝ) + (2 : ℝ)) ^ (2 : ℕ))) = L / ((2 : ℝ) * ((↑A : ℝ) + (2 : ℝ))).Lean, lines 271–272
have e3 : ((A : ℝ) + 2) * (L / (2 * ((A : ℝ) + 2) ^ (2 : ℕ))) = L / (2 * ((A : ℝ) + 2)) := by field_simphlt.e4haveL / ((2 : ℝ) * ((↑A : ℝ) + (2 : ℝ))) ≤ L / ((2 : ℝ) * ((↑A : ℝ) + (1 : ℝ)))Leaves
((↑A : ℝ) + (2 : ℝ)) * (σ * ((1 : ℝ) + L) + (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C))) < ((↑A : ℝ) + (1 : ℝ)) * L, withe4 : L / ((2 : ℝ) * ((↑A : ℝ) + (2 : ℝ))) ≤ L / ((2 : ℝ) * ((↑A : ℝ) + (1 : ℝ))).Uses library
div_le_div_of_nonneg_left,LT.lt.leAlias ofle_of_lt. .Lean, lines 273–274
have e4 : L / (2 * ((A : ℝ) + 2)) ≤ L / (2 * ((A : ℝ) + 1)) := div_le_div_of_nonneg_left hLpos.le (by positivity) (by linarith)hlt.e5haveL / ((2 : ℝ) * ((↑A : ℝ) + (1 : ℝ))) = (1 : ℝ) / ((↑A : ℝ) + (1 : ℝ)) * L / (2 : ℝ)routine: field_simpLeaves
((↑A : ℝ) + (2 : ℝ)) * (σ * ((1 : ℝ) + L) + (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C))) < ((↑A : ℝ) + (1 : ℝ)) * L, withe5 : L / ((2 : ℝ) * ((↑A : ℝ) + (1 : ℝ))) = (1 : ℝ) / ((↑A : ℝ) + (1 : ℝ)) * L / (2 : ℝ).Lean, line 275
have e5 : L / (2 * ((A : ℝ) + 1)) = 1 / ((A : ℝ) + 1) * L / 2 := by field_simp
hlt.e6have(↑A : ℝ) + (1 : ℝ) < (1 : ℝ) / ((↑A : ℝ) + (1 : ℝ)) * L / (2 : ℝ)Leaves
((↑A : ℝ) + (2 : ℝ)) * (σ * ((1 : ℝ) + L) + (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C))) < ((↑A : ℝ) + (1 : ℝ)) * L, withe6 : (↑A : ℝ) + (1 : ℝ) < (1 : ℝ) / ((↑A : ℝ) + (1 : ℝ)) * L / (2 : ℝ).Uses library
lt_div_iff₀Seelt_div_iff₀'for a version with multiplication on the other side. .Lean, lines 276–278
have e6 : (A : ℝ) + 1 < 1 / ((A : ℝ) + 1) * L / 2 := by rw [← e5, lt_div_iff₀ (by positivity)] nlinarithhlt.e7have(0 : ℝ) < (1 : ℝ) / ((↑A : ℝ) + (1 : ℝ))routine: positivityLeaves
((↑A : ℝ) + (2 : ℝ)) * (σ * ((1 : ℝ) + L) + (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C))) < ((↑A : ℝ) + (1 : ℝ)) * L, withe7 : (0 : ℝ) < (1 : ℝ) / ((↑A : ℝ) + (1 : ℝ)).Lean, line 279
have e7 : 0 < 1 / ((A : ℝ) + 1) := by positivity
hlt.s8calc((↑A : ℝ) + (2 : ℝ)) * (σ * ((1 : ℝ) + L) + (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C))) = ((↑A : ℝ) + (2 : ℝ)) * σ * ((1 : ℝ) + L) + ((↑A : ℝ) + (2 : ℝ)) * (L / ((2 : ℝ) * ((↑A : ℝ) + (2 : ℝ)) ^ (2 : ℕ)))Closes the goal.
Lean, lines 280–281
calc ((A : ℝ) + 2) * (σ * (1 + L) + 4 * (((A : ℝ) + 2) * (L / C))) = ((A : ℝ) + 2) * σ * (1 + L) + ((A : ℝ) + 2) * (L / (2 * ((A : ℝ) + 2) ^ (2 : ℕ))) := by rw [e1]; ringhlt.s9calcCloses the goal.
Lean, line 282
_ = ((A : ℝ) + 1 - 1 / ((A : ℝ) + 1)) * (1 + L) + L / (2 * ((A : ℝ) + 2)) := by rw [e2, e3]
hlt.s10calc routine: nlinarithCloses the goal.
Lean, line 283
_ < ((A : ℝ) + 1) * L := by nlinarith
hfinhave(↑(D ^ (A + (2 : ℕ))) : ℝ) < (↑(k ^ (A + (1 : ℕ))) : ℝ)Leaves
D ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)), withhfin : (↑(D ^ (A + (2 : ℕ))) : ℝ) < (↑(k ^ (A + (1 : ℕ))) : ℝ).Lean, lines 284–292
have hfin : ((D ^ (A + 2) : ℕ) : ℝ) < ((k ^ (A + 1) : ℕ) : ℝ) := by push_cast calc (D : ℝ) ^ (A + 2) ≤ Real.exp (σ * (1 + L) + 4 * (((A : ℝ) + 2) * (L / C))) ^ (A + 2) := pow_le_pow_left₀ (Nat.cast_nonneg _) hD _ _ = Real.exp (((A : ℝ) + 2) * (σ * (1 + L) + 4 * (((A : ℝ) + 2) * (L / C)))) := by rw [← Real.exp_nat_mul]; push_cast; rfl _ < Real.exp (((A : ℝ) + 1) * L) := Real.exp_lt_exp.mpr hlt _ = (k : ℝ) ^ (A + 1) := by rw [hkexp, ← Real.exp_nat_mul]; push_cast; rflhfin.s1calc(↑D : ℝ) ^ (A + (2 : ℕ)) ≤ Real.exp (σ * ((1 : ℝ) + L) + (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C))) ^ (A + (2 : ℕ))Closes the goal.
Uses library
Real.expThe real exponential function, defined as the real part of the complex exponential ,pow_le_pow_left₀,Nat.cast_nonnegSpecialisation ofNat.cast_nonneg', which seems to be easier for Lean to use. .Lean, lines 286–287
calc (D : ℝ) ^ (A + 2) ≤ Real.exp (σ * (1 + L) + 4 * (((A : ℝ) + 2) * (L / C))) ^ (A + 2) := pow_le_pow_left₀ (Nat.cast_nonneg _) hD _hfin.s2calcCloses the goal.
Uses library
Real.expThe real exponential function, defined as the real part of the complex exponential ,Real.exp_nat_mul.Lean, lines 288–289
_ = Real.exp (((A : ℝ) + 2) * (σ * (1 + L) + 4 * (((A : ℝ) + 2) * (L / C)))) := by rw [← Real.exp_nat_mul]; push_cast; rflhfin.s3calcReal.exp (((↑A : ℝ) + (2 : ℝ)) * (σ * ((1 : ℝ) + L) + (4 : ℝ) * (((↑A : ℝ) + (2 : ℝ)) * (L / C)))) < Real.exp (((↑A : ℝ) + (1 : ℝ)) * L)Closes the goal.
Uses library
Real.expThe real exponential function, defined as the real part of the complex exponential ,Real.exp_lt_exp,Iff.mprModus ponens for if and only if, reversed. .Lean, line 290
_ < Real.exp (((A : ℝ) + 1) * L) := Real.exp_lt_exp.mpr hlt
hfin.s4calcCloses the goal.
Uses library
Real.exp_nat_mul.Lean, lines 291–292
_ = (k : ℝ) ^ (A + 1) := by rw [hkexp, ← Real.exp_nat_mul]; push_cast; rfl
closetermD ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ))Closes the goal.
Lean, line 293
exact_mod_cast hfin
The proof in Lean (Proof.lean)
Checked by the kernel — these bytes are the ones its attestation names: attestations/002857.erdos-1094--h2--h2--h5--h2--h2--h1--h2--h3.json, merge commit 9a0c8b0f096c.
artifact_hash of the attestation below, so these are the bytes the gate checked. Rendered from targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h2--h2--h1--h2--h3/Proof.lean, sha256 4ae9f02776ae.import Mathlib
import Nodes.«erdos-1094--h2--h2--h5--h2--h2--h1--h2--h3».Context
open scoped Nat
/-! Hole `h_div` of a merged partial proof, as a node (D-12 #5, D-29).
Statement generated by the gate from the assembly; immutable (D-3). -/
private lemma ra_exp (q : ℕ) (hq : 2 ≤ q) : 1 / 2 ≤ 1 - 1 / (q : ℝ) := by
have h : (2 : ℝ) ≤ q := by exact_mod_cast hq
have : 1 / (q : ℝ) ≤ 1 / 2 := one_div_le_one_div_of_le (by norm_num) h
linarith
/-- `n ↦ n^(-(1-1/q))` as a completely multiplicative function. -/
private noncomputable def ra_f (q : ℕ) (hq : 2 ≤ q) : ℕ →*₀ ℝ where
toFun n := (n : ℝ) ^ (-(1 - 1 / (q : ℝ)))
map_zero' := by
rw [Nat.cast_zero]
have := ra_exp q hq
exact Real.zero_rpow (by linarith)
map_one' := by simp
map_mul' a b := by
simp only [Nat.cast_mul]
exact Real.mul_rpow (Nat.cast_nonneg a) (Nat.cast_nonneg b)
private lemma ra_f_apply (q : ℕ) (hq : 2 ≤ q) (n : ℕ) : ra_f q hq n = (n : ℝ) ^ (-(1 - 1 / (q : ℝ))) := rfl
private lemma ra_f_nonneg (q : ℕ) (hq : 2 ≤ q) (n : ℕ) : 0 ≤ ra_f q hq n := by
rw [ra_f_apply]; positivity
private lemma ra_f_le (q : ℕ) (hq : 2 ≤ q) (p : ℕ) (hp : 2 ≤ p) : ra_f q hq p ≤ 3 / 4 := by
rw [ra_f_apply]
have h0 := ra_exp q hq
have h1 : (p : ℝ) ^ (-(1 - 1 / (q : ℝ))) ≤ (2 : ℝ) ^ (-(1 - 1 / (q : ℝ))) :=
Real.rpow_le_rpow_of_nonpos (by norm_num) (by exact_mod_cast hp) (by linarith)
have h2 : (2 : ℝ) ^ (-(1 - 1 / (q : ℝ))) ≤ (2 : ℝ) ^ (-(1 / 2 : ℝ)) :=
Real.rpow_le_rpow_of_exponent_le (by norm_num) (by linarith)
have h3 : (2 : ℝ) ^ (-(1 / 2 : ℝ)) ≤ 3 / 4 := by
have h4 : ((2 : ℝ) ^ (-(1 / 2 : ℝ))) ^ (2 : ℕ) ≤ (3 / 4 : ℝ) ^ (2 : ℕ) := by
rw [← Real.rpow_natCast ((2 : ℝ) ^ (-(1 / 2 : ℝ))) 2, ← Real.rpow_mul (by norm_num)]
have e : (-(1 / 2 : ℝ)) * ((2 : ℕ) : ℝ) = ((-1 : ℤ) : ℝ) := by norm_num
rw [e, Real.rpow_intCast]
norm_num
exact le_of_pow_le_pow_left₀ (by norm_num) (by norm_num) h4
exact h1.trans (h2.trans h3)
private lemma ra_euler (q : ℕ) (hq : 2 ≤ q) (m : ℕ) (hm : 0 < m) (D : Finset ℕ) (hD : ∀ d ∈ D, d ∣ m) :
∑ d ∈ D, ra_f q hq d ≤ ∏ p ∈ m.primeFactors, (1 - ra_f q hq p)⁻¹ := by
have hs : ∀ {p : ℕ}, p.Prime → ‖ra_f q hq p‖ < 1 := by
intro p hp
rw [Real.norm_of_nonneg (ra_f_nonneg q hq p)]
linarith [ra_f_le q hq p hp.two_le]
have h := (EulerProduct.summable_and_hasSum_factoredNumbers_prod_filter_prime_geometric
(f := (ra_f q hq).toMonoidHom) hs m.primeFactors).2
have hfil : m.primeFactors.filter Nat.Prime = m.primeFactors :=
Finset.filter_true_of_mem (fun p hp => Nat.prime_of_mem_primeFactors hp)
rw [hfil] at h
have hmem : ∀ d ∈ D, d ∈ Nat.factoredNumbers m.primeFactors := by
intro d hd
rw [Nat.mem_factoredNumbers_iff_primeFactors_subset]
exact ⟨ne_zero_of_dvd_ne_zero hm.ne' (hD d hd), Nat.primeFactors_mono (hD d hd) hm.ne'⟩
have h2 := sum_le_hasSum (D.subtype (fun d => d ∈ Nat.factoredNumbers m.primeFactors))
(fun i _ => ra_f_nonneg q hq i) h
rw [Finset.sum_subtype_of_mem (fun d => ra_f q hq d) hmem] at h2
exact h2
private lemma ra_inv_le (y : ℝ) (h0 : 0 ≤ y) (h1 : y ≤ 3 / 4) : (1 - y)⁻¹ ≤ Real.exp (4 * y) := by
have hpos : 0 < 1 - y := by linarith
have h2 : (1 - y)⁻¹ ≤ 1 + 4 * y := by
rw [inv_le_iff_one_le_mul₀ hpos]
nlinarith
have := Real.add_one_le_exp (4 * y)
linarith
private lemma ra_prod (q : ℕ) (hq : 2 ≤ q) (m : ℕ) :
∏ p ∈ m.primeFactors, (1 - ra_f q hq p)⁻¹ ≤ Real.exp (4 * ∑ p ∈ m.primeFactors, ra_f q hq p) := by
rw [Finset.mul_sum, Real.exp_sum]
apply Finset.prod_le_prod
· intro p hp
have := ra_f_le q hq p (Nat.prime_of_mem_primeFactors hp).two_le
exact inv_nonneg.mpr (by linarith)
· intro p hp
exact ra_inv_le _ (ra_f_nonneg q hq p) (ra_f_le q hq p (Nat.prime_of_mem_primeFactors hp).two_le)
private lemma ra_powdiff (a b : ℝ) (hb : 0 ≤ b) (hab : b ≤ a) (n : ℕ) :
a ^ (n + 1) - b ^ (n + 1) ≤ ((n : ℝ) + 1) * a ^ n * (a - b) := by
have ha : 0 ≤ a := hb.trans hab
induction n with
| zero => simp
| succ n ih =>
have h1 : b ^ (n + 1) ≤ a ^ (n + 1) := pow_le_pow_left₀ hb hab _
have h2 := mul_le_mul_of_nonneg_left ih ha
have h3 := mul_le_mul_of_nonneg_right h1 (sub_nonneg.mpr hab)
have e1 : a ^ (n + 1 + 1) - b ^ (n + 1 + 1) = a * (a ^ (n + 1) - b ^ (n + 1)) + b ^ (n + 1) * (a - b) := by ring
have e2 : (((n + 1 : ℕ) : ℝ) + 1) * a ^ (n + 1) * (a - b) =
a * (((n : ℝ) + 1) * a ^ n * (a - b)) + a ^ (n + 1) * (a - b) := by push_cast; ring
rw [e1, e2]
linarith
/-- For `t > 0`: `(t^q)^(-(1-1/q)) = (t^(q-1))⁻¹`, written with `q = r + 1`. -/
private lemma ra_root (r : ℕ) (t : ℝ) (ht : 0 < t) :
(t ^ (r + 1)) ^ (-(1 - 1 / ((r + 1 : ℕ) : ℝ))) = (t ^ r)⁻¹ := by
have h : ((r : ℝ) + 1) ≠ 0 := by positivity
rw [← Real.rpow_natCast t (r + 1), ← Real.rpow_mul ht.le, ← Real.rpow_natCast t r, ← Real.rpow_neg ht.le]
congr 1
push_cast
field_simp
ring
/-- `∑_{j=1}^N j^(-(1-1/q)) ≤ q N^(1/q)`. -/
private lemma ra_zeta (r : ℕ) (hq : 2 ≤ r + 1) (N : ℕ) :
∑ j ∈ Finset.Icc 1 N, ra_f (r + 1) hq j ≤ ((r : ℝ) + 1) * (N : ℝ) ^ (1 / ((r + 1 : ℕ) : ℝ)) := by
induction N with
| zero =>
have : 0 ≤ ((r : ℝ) + 1) * ((0 : ℕ) : ℝ) ^ (1 / ((r + 1 : ℕ) : ℝ)) := by positivity
simpa using this
| succ N ih =>
rw [Finset.sum_Icc_succ_top (by omega)]
set a : ℝ := ((N + 1 : ℕ) : ℝ) ^ (1 / ((r + 1 : ℕ) : ℝ)) with ha
set b : ℝ := (N : ℝ) ^ (1 / ((r + 1 : ℕ) : ℝ)) with hb
have hb0 : 0 ≤ b := by positivity
have ha0 : 0 < a := by positivity
have haq : a ^ (r + 1) = ((N + 1 : ℕ) : ℝ) := by
rw [ha, ← Real.rpow_natCast, ← Real.rpow_mul (by positivity), one_div_mul_cancel (by positivity), Real.rpow_one]
have hbq : b ^ (r + 1) = (N : ℝ) := by
rw [hb, ← Real.rpow_natCast, ← Real.rpow_mul (by positivity), one_div_mul_cancel (by positivity), Real.rpow_one]
have hab : b ≤ a := Real.rpow_le_rpow (by positivity) (by push_cast; linarith) (by positivity)
have hf : ra_f (r + 1) hq (N + 1) = (a ^ r)⁻¹ := by
rw [ra_f_apply, ← haq]
exact ra_root r a ha0
have key : (a ^ r)⁻¹ ≤ ((r : ℝ) + 1) * (a - b) := by
rw [inv_le_iff_one_le_mul₀ (by positivity)]
have h := ra_powdiff a b hb0 hab r
rw [haq, hbq] at h
push_cast at h
linarith
rw [hf]
linarith
/-- A set of at most `t^q` positive integers has `∑ s^(-(1-1/q)) ≤ (q+1) t`. -/
private lemma ra_sum (r : ℕ) (hq : 2 ≤ r + 1) (S : Finset ℕ) (t : ℝ) (ht : 0 < t) (hS : ∀ s ∈ S, 1 ≤ s)
(hc : (S.card : ℝ) ≤ t ^ (r + 1)) : ∑ s ∈ S, ra_f (r + 1) hq s ≤ ((r : ℝ) + 2) * t := by
set N : ℕ := ⌊t ^ (r + 1)⌋₊ with hN
have hNle : (N : ℝ) ≤ t ^ (r + 1) := Nat.floor_le (by positivity)
have hroot : (t ^ (r + 1)) ^ (1 / ((r + 1 : ℕ) : ℝ)) = t := by
rw [← Real.rpow_natCast, ← Real.rpow_mul ht.le, mul_one_div_cancel (by positivity), Real.rpow_one]
have hσ := ra_exp (r + 1) hq
rw [← Finset.sum_filter_add_sum_filter_not S (fun s => s ≤ N)]
have h1 : ∑ s ∈ S.filter (fun s => s ≤ N), ra_f (r + 1) hq s ≤ ((r : ℝ) + 1) * t := by
calc ∑ s ∈ S.filter (fun s => s ≤ N), ra_f (r + 1) hq s ≤ ∑ j ∈ Finset.Icc 1 N, ra_f (r + 1) hq j := by
apply Finset.sum_le_sum_of_subset_of_nonneg
· intro s hs
rw [Finset.mem_filter] at hs
exact Finset.mem_Icc.mpr ⟨hS s hs.1, hs.2⟩
· intro i _ _; exact ra_f_nonneg _ _ i
_ ≤ ((r : ℝ) + 1) * (N : ℝ) ^ (1 / ((r + 1 : ℕ) : ℝ)) := ra_zeta r hq N
_ ≤ ((r : ℝ) + 1) * (t ^ (r + 1)) ^ (1 / ((r + 1 : ℕ) : ℝ)) :=
mul_le_mul_of_nonneg_left (Real.rpow_le_rpow (by positivity) hNle (by positivity)) (by positivity)
_ = ((r : ℝ) + 1) * t := by rw [hroot]
have h2 : ∑ s ∈ S.filter (fun s => ¬ s ≤ N), ra_f (r + 1) hq s ≤ t := by
calc ∑ s ∈ S.filter (fun s => ¬ s ≤ N), ra_f (r + 1) hq s
≤ ∑ s ∈ S.filter (fun s => ¬ s ≤ N), (t ^ r)⁻¹ := by
apply Finset.sum_le_sum
intro s hs
rw [Finset.mem_filter, not_le] at hs
have hlt : t ^ (r + 1) < s := (Nat.floor_lt (by positivity)).mp hs.2
rw [ra_f_apply, ← ra_root r t ht]
exact Real.rpow_le_rpow_of_nonpos (by positivity) hlt.le (by linarith)
_ = ((S.filter (fun s => ¬ s ≤ N)).card : ℝ) * (t ^ r)⁻¹ := by
rw [Finset.sum_const, nsmul_eq_mul]
_ ≤ t ^ (r + 1) * (t ^ r)⁻¹ := by
apply mul_le_mul_of_nonneg_right _ (by positivity)
refine le_trans ?_ hc
exact_mod_cast Finset.card_filter_le _ _
_ = t := by rw [pow_succ]; field_simp
linarith
/-- `ω(m) ≤ 2 log m`. -/
private lemma ra_omega (m : ℕ) (hm : 0 < m) : (m.primeFactors.card : ℝ) ≤ 2 * Real.log m := by
have h1 : 2 ^ m.primeFactors.card ≤ m := by
calc 2 ^ m.primeFactors.card = ∏ _p ∈ m.primeFactors, 2 := by rw [Finset.prod_const]
_ ≤ ∏ p ∈ m.primeFactors, p :=
Finset.prod_le_prod' (fun p hp => (Nat.prime_of_mem_primeFactors hp).two_le)
_ ≤ m := Nat.le_of_dvd hm (Nat.prod_primeFactors_dvd m)
have h2 : Real.log ((2 : ℝ) ^ m.primeFactors.card) ≤ Real.log m :=
Real.log_le_log (by positivity) (by exact_mod_cast h1)
rw [Real.log_pow] at h2
have h3 := Real.log_two_gt_d9
have h4 : (0 : ℝ) ≤ m.primeFactors.card := Nat.cast_nonneg _
nlinarith
private lemma ra_count (r : ℕ) (hq : 2 ≤ r + 1) (m k : ℕ) (hm : 0 < m) (hk : 0 < k) (t : ℝ) (ht : 0 < t)
(hw : (m.primeFactors.card : ℝ) ≤ t ^ (r + 1)) :
(Finset.card (Finset.filter (fun (d : ℕ) => d ∣ m) (Finset.Ioc k ((2 : ℕ) * k))) : ℝ)
≤ (2 * (k : ℝ)) ^ (1 - 1 / ((r + 1 : ℕ) : ℝ)) * Real.exp (4 * (((r : ℝ) + 2) * t)) := by
set D := Finset.filter (fun (d : ℕ) => d ∣ m) (Finset.Ioc k ((2 : ℕ) * k)) with hDdef
have hkR : (0 : ℝ) < k := by exact_mod_cast hk
have hσ := ra_exp (r + 1) hq
have h1 : (D.card : ℝ) * ((2 * (k : ℝ)) ^ (-(1 - 1 / ((r + 1 : ℕ) : ℝ)))) ≤ ∑ d ∈ D, ra_f (r + 1) hq d := by
rw [← nsmul_eq_mul, ← Finset.sum_const]
apply Finset.sum_le_sum
intro d hd
rw [hDdef, Finset.mem_filter, Finset.mem_Ioc] at hd
rw [ra_f_apply]
apply Real.rpow_le_rpow_of_nonpos _ _ (by linarith)
· have : 0 < d := by omega
exact_mod_cast this
· exact_mod_cast hd.1.2
have h2 := ra_euler (r + 1) hq m hm D (fun d hd => (Finset.mem_filter.mp hd).2)
have h3 := ra_prod (r + 1) hq m
have h4 := ra_sum r hq m.primeFactors t ht (fun p hp => (Nat.prime_of_mem_primeFactors hp).one_le) hw
have h5 : Real.exp (4 * ∑ p ∈ m.primeFactors, ra_f (r + 1) hq p) ≤ Real.exp (4 * (((r : ℝ) + 2) * t)) :=
Real.exp_le_exp.mpr (by linarith)
have h6 := h1.trans (h2.trans (h3.trans h5))
have hX : 0 < (2 * (k : ℝ)) ^ (1 - 1 / ((r + 1 : ℕ) : ℝ)) := by positivity
rw [Real.rpow_neg (by positivity), ← div_eq_mul_inv, div_le_iff₀ hX] at h6
linarith
theorem erdos_1094__h2__h2__h5__h2__h2__h1__h2__h3 : ∀ (A : ℕ),
(1 : ℕ) ≤ A →
∃ (K₀ : ℕ),
∀ (m k : ℕ),
K₀ ≤ k →
(0 : ℕ) < m →
Real.log (↑m : ℝ) ≤ Real.log (↑k : ℝ) ^ A →
{d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)) := by
intro A hA
have hq : 2 ≤ A + 1 := by omega
have hA1 : (1 : ℝ) ≤ A := by exact_mod_cast hA
obtain ⟨C, hC⟩ : ∃ C : ℝ, C = 8 * ((A : ℝ) + 2) ^ (3 : ℕ) := ⟨_, rfl⟩
have hC0 : 0 < C := by rw [hC]; positivity
refine ⟨⌈Real.exp (2 * C ^ (A + 1) + 2 * ((A : ℝ) + 1) ^ (2 : ℕ) + 1)⌉₊, ?_⟩
intro m k hk hm hlog
have hk1 := Nat.le_of_ceil_le hk
have hkR : (0 : ℝ) < k := lt_of_lt_of_le (Real.exp_pos _) hk1
have hk0 : 0 < k := by exact_mod_cast hkR
have hL := (Real.le_log_iff_exp_le hkR).mpr hk1
set L := Real.log (k : ℝ) with hLdef
have hCp : 0 < C ^ (A + 1) := by positivity
have hAp : 0 < ((A : ℝ) + 1) ^ (2 : ℕ) := by positivity
have hLpos : 0 < L := by linarith
have hw : (m.primeFactors.card : ℝ) ≤ (L / C) ^ (A + 1) := by
have h1 := ra_omega m hm
have h4 : 0 < L ^ A := by positivity
rw [div_pow, le_div_iff₀ hCp, pow_succ L A]
have h5 : (m.primeFactors.card : ℝ) * C ^ (A + 1) ≤ (2 * L ^ A) * C ^ (A + 1) :=
mul_le_mul_of_nonneg_right (by linarith) hCp.le
have h6 : L ^ A * (2 * C ^ (A + 1)) ≤ L ^ A * L := mul_le_mul_of_nonneg_left (by linarith) h4.le
linarith
have hcount := ra_count A hq m k hm hk0 (L / C) (by positivity) hw
set D := Finset.card (Finset.filter (fun (d : ℕ) => d ∣ m) (Finset.Ioc k ((2 : ℕ) * k))) with hDdef
set σ : ℝ := 1 - 1 / ((A + 1 : ℕ) : ℝ) with hσdef
have hσ : 1 / 2 ≤ σ := ra_exp (A + 1) hq
have hkexp : (k : ℝ) = Real.exp L := (Real.exp_log hkR).symm
have h2k : (2 * (k : ℝ)) ^ σ ≤ Real.exp (σ * (1 + L)) := by
have h2 : 2 * (k : ℝ) ≤ Real.exp (1 + L) := by
rw [Real.exp_add, ← hkexp]
have := Real.add_one_le_exp (1 : ℝ)
nlinarith
calc (2 * (k : ℝ)) ^ σ ≤ (Real.exp (1 + L)) ^ σ :=
Real.rpow_le_rpow (by positivity) h2 (by linarith)
_ = Real.exp (σ * (1 + L)) := by rw [← Real.exp_mul, mul_comm]
have hD : (D : ℝ) ≤ Real.exp (σ * (1 + L) + 4 * (((A : ℝ) + 2) * (L / C))) := by
rw [Real.exp_add]
exact hcount.trans (mul_le_mul_of_nonneg_right h2k (Real.exp_pos _).le)
have hlt : ((A : ℝ) + 2) * (σ * (1 + L) + 4 * (((A : ℝ) + 2) * (L / C))) < ((A : ℝ) + 1) * L := by
have e1 : 4 * (((A : ℝ) + 2) * (L / C)) = L / (2 * ((A : ℝ) + 2) ^ (2 : ℕ)) := by
rw [hC]; field_simp; ring
have e2 : ((A : ℝ) + 2) * σ = ((A : ℝ) + 1) - 1 / ((A : ℝ) + 1) := by
rw [hσdef]; push_cast; field_simp; ring
have e3 : ((A : ℝ) + 2) * (L / (2 * ((A : ℝ) + 2) ^ (2 : ℕ))) = L / (2 * ((A : ℝ) + 2)) := by
field_simp
have e4 : L / (2 * ((A : ℝ) + 2)) ≤ L / (2 * ((A : ℝ) + 1)) :=
div_le_div_of_nonneg_left hLpos.le (by positivity) (by linarith)
have e5 : L / (2 * ((A : ℝ) + 1)) = 1 / ((A : ℝ) + 1) * L / 2 := by field_simp
have e6 : (A : ℝ) + 1 < 1 / ((A : ℝ) + 1) * L / 2 := by
rw [← e5, lt_div_iff₀ (by positivity)]
nlinarith
have e7 : 0 < 1 / ((A : ℝ) + 1) := by positivity
calc ((A : ℝ) + 2) * (σ * (1 + L) + 4 * (((A : ℝ) + 2) * (L / C)))
= ((A : ℝ) + 2) * σ * (1 + L) + ((A : ℝ) + 2) * (L / (2 * ((A : ℝ) + 2) ^ (2 : ℕ))) := by rw [e1]; ring
_ = ((A : ℝ) + 1 - 1 / ((A : ℝ) + 1)) * (1 + L) + L / (2 * ((A : ℝ) + 2)) := by rw [e2, e3]
_ < ((A : ℝ) + 1) * L := by nlinarith
have hfin : ((D ^ (A + 2) : ℕ) : ℝ) < ((k ^ (A + 1) : ℕ) : ℝ) := by
push_cast
calc (D : ℝ) ^ (A + 2) ≤ Real.exp (σ * (1 + L) + 4 * (((A : ℝ) + 2) * (L / C))) ^ (A + 2) :=
pow_le_pow_left₀ (Nat.cast_nonneg _) hD _
_ = Real.exp (((A : ℝ) + 2) * (σ * (1 + L) + 4 * (((A : ℝ) + 2) * (L / C)))) := by
rw [← Real.exp_nat_mul]; push_cast; rfl
_ < Real.exp (((A : ℝ) + 1) * L) := Real.exp_lt_exp.mpr hlt
_ = (k : ℝ) ^ (A + 1) := by
rw [hkexp, ← Real.exp_nat_mul]; push_cast; rfl
exact_mod_cast hfinWhat is known
Work on it
How to contribute → · Pull requests in flight ↗ · See it in the problem’s graph →
Record
Statement: the Lean file and its words (1 version)
Statement not audited — only a problem’s root statement is audited for fidelity (D-9); the kernel checks a proof against this Lean as written.
import Mathlib
import Nodes.«erdos-1094--h2--h2--h5--h2--h2--h1--h2--h3».Context
open scoped Nat
/-! Hole `h_div` of a merged partial proof, as a node (D-12 #5, D-29).
Statement generated by the gate from the assembly; immutable (D-3). -/
theorem erdos_1094__h2__h2__h5__h2__h2__h1__h2__h3 : ∀ (A : ℕ),
(1 : ℕ) ≤ A →
∃ (K₀ : ℕ),
∀ (m k : ℕ),
K₀ ≤ k →
(0 : ℕ) < m →
Real.log (↑m : ℝ) ≤ Real.log (↑k : ℝ) ^ A →
{d ∈ Finset.Ioc k ((2 : ℕ) * k) | d ∣ m}.card ^ (A + (2 : ℕ)) < k ^ (A + (1 : ℕ)) := by
sorryA statement is written := by sorry: the sorry holds the place of a proof, because a statement file only says what is claimed. A proof the gate checked is its own file, Proof.lean. How to read a proof page →
In words, unverified — what this statement says; written by t1203r2-k, drafted with claude-opus-5-5 with claude-fable-5-1 / claude-fable-5-2 (agents A, B, K1 shift 1), 2026-12-03; no one has read it against the Lean and signed it.
Draft · drafted, by the model named above
$\displaystyle \forall A\ge1\ \exists K_0\ \forall m,k:\ k\ge K_0,\ m\ge1,\ \log m\le\log^A k \Rightarrow \#\{d\in(k,2k]:\ d\mid m\}^{A+2}<k^{A+1}$
A positive integer $m$ with $\log m\le\log^A k$ has fewer than $k^{(A+1)/(A+2)}$ divisors in $(k,2k]$, for all $k$ above a bound that depends on $A$ (written with natural powers).
Rendered from gloss/1795acedaaed….md · Improve these words →
Rendered from targets/erdos-1094/nodes/erdos-1094--h2--h2--h5--h2--h2--h1--h2--h3/Statement.lean. Origin: compiler-derived.
Attestation: pass, 7 of 7 checks
Checked by the kernel — the gate’s record of the run: attestations/002857.erdos-1094--h2--h2--h5--h2--h2--h1--h2--h3.json, merge commit 9a0c8b0f096c.
Verdict pass, from attestations/002857.erdos-1094--h2--h2--h5--h2--h2--h1--h2--h3.json.
- Submitter
t1203r2-k- Toolchain
- leanprover/lean4:v4.33.1 (hash
f54d0bc916bf76a7fae460ce9d078ccd1f74aeb4fd12c4b6546bca28b6aa1c63) - Mathlib
- 0df444a360eaa60ab8c11dca51a86af692955474
- Reviewer
- none needed (intermediate)
| Step | Check | Result |
|---|---|---|
| 1 | toolchain | pass |
| 2 | paths | pass |
| 4 | kernel-replay | pass |
| 5 | axioms | pass |
| 6 | hazards | pass |
| 7 | witness | pass |
| 8 | deps | pass |
Witness
Checked by the kernel — step 7 passed in the run its attestation records: attestations/002857.erdos-1094--h2--h2--h5--h2--h2--h1--h2--h3.json, merge commit 9a0c8b0f096c.
efc4fe7d940d.import Mathlib open scoped Nat theorem witness : ∃ (A : ℕ), (1 : ℕ) ≤ A := ⟨1, le_rfl⟩
No gloss yet: no one has written in words what this witness says (D-3 v3.30); the Lean above is the witness. How to write one →