Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 205

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Is it true that all sufficiently large nn can be written as 2k+m2^k+m for some k≥0k\geq 0, where Ω(m)<log⁡log⁡m\Omega(m)<\log\log m? (Here Ω(m)\Omega(m) is the number of prime divisors of mm counted with multiplicity.)

Barreto and Leeham, using ChatGPT and Aristotle, have proved a negative answer, which was quantified by Tao and Alexeev (see the comments): in fact there are infinitely many nn such that, for all kk with 2k<n2^k<n, n−2kn-2^k has at least ≫(log⁡nlog⁡log⁡n)1/2\gg \left(\frac{\log n}{\log\log n}\right)^{1/2} many prime factors.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question
Cite as:NS.01293 [math.NT] · NS.01293v1 for this version
Declaration:Erdos205.erdos_205.parts.i
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:a58298e6dabc820b8635f1753ee355dcd68f478ea11277e1f48067c439bdc61a
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/205.lean

Formal statement

theorem erdos_205.parts.i :
    ¬ ∀ᶠ n : ℕ in atTop, IsRepresentable (fun m => Real.log (Real.log m)) n
Show the full Challenge.lean (112 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 205

*References:*
- [erdosproblems.com/205](https://www.erdosproblems.com/205)
- [Er80] Erdős, Paul, *A survey of problems in combinatorial number theory*. Ann. Discrete Math.
  (1980), 89-115.
- [Ro34] Romanoff, N. P., *Über einige Sätze der additiven Zahlentheorie*. Math. Ann. (1934),
  668-678.
-/

@[expose] public section

open Asymptotics Filter

open scoped ArithmeticFunction.Omega

namespace Erdos205

/--
`IsRepresentable f n` states that `n` can be written as `2 ^ k + m` for some `k ≥ 0` where the
number of prime divisors of `m`, counted with multiplicity, is less than `f m`.
-/
def IsRepresentable (f : ℕ → ℝ) (n : ℕ) : Prop :=
  ∃ k m : ℕ, n = 2 ^ k + m ∧ (Ω m : ℝ) < f m

/--
Is it true that all sufficiently large $n$ can be written as $2^k+m$ for some $k\geq 0$, where
$\Omega(m)<\log\log m$? (Here $\Omega(m)$ is the number of prime divisors of $m$ counted with
multiplicity.)

Barreto and Leeham, using ChatGPT and Aristotle, have proved a negative answer, which was
quantified by Tao and Alexeev (see the comments): in fact there are infinitely many $n$ such that,
for all $k$ with $2^k<n$, $n-2^k$ has at least
$$\gg \left(\frac{\log n}{\log\log n}\right)^{1/2}$$
many prime factors.
-/
@[category research solved, question, AMS 11]
theorem erdos_205.parts.i :
    ¬ ∀ᶠ n : ℕ in atTop, IsRepresentable (fun m => Real.log (Real.log m)) n := by
  sorry

/--
Is it true that all sufficiently large $n$ can be written as $2^k+m$ for some $k\geq 0$, where
$\Omega(m)<\log\log m$? (Here $\Omega(m)$ is the number of prime divisors of $m$ counted with
multiplicity.) What about $<\epsilon \log\log m$?

Barreto and Leeham, using ChatGPT and Aristotle, have proved a negative answer, which was
quantified by Tao and Alexeev (see the comments).
-/
@[category research solved, question, AMS 11]
theorem erdos_205.parts.ii :
    ¬ ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,
      IsRepresentable (fun m => ε * Real.log (Real.log m)) n := by
  sorry

/--
Is it true that all sufficiently large $n$ can be written as $2^k+m$ for some $k\geq 0$, where
$\Omega(m)<\log\log m$? (Here $\Omega(m)$ is the number of prime divisors of $m$ counted with
multiplicity.) Or some more slowly growing function?

Barreto and Leeham, using ChatGPT and Aristotle, have proved a negative answer, which was
quantified by Tao and Alexeev (see the comments).
-/
@[category research solved, question, AMS 11]
theorem erdos_205.parts.iii :
    ¬ ∃ f : ℕ → ℝ, f =o[atTop] (fun m : ℕ => Real.log (Real.log m)) ∧
      ∀ᶠ n : ℕ in atTop, IsRepresentable f n := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
In fact there are infinitely many $n$ such that, for all $k$ with $2^k<n$, $n-2^k$ has at least
$$\gg \left(\frac{\log n}{\log\log n}\right)^{1/2}$$
many prime factors.
-/
@[category research solved, AMS 11, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos205.lean"]
theorem erdos_205.variants.many_prime_factors : ∃ c > (0 : ℝ),
    {n : ℕ | ∀ k : ℕ, 2 ^ k < n →
      c * Real.sqrt (Real.log n / Real.log (Real.log n)) ≤ (Ω (n - 2 ^ k) : ℝ)}.Infinite := by
  sorry

/--
The $n$ constructed in this way are divisible by a large power of $2$. It remains open whether
there exist arbitrarily large odd counterexamples.
-/
@[category research open, question, AMS 11]
theorem erdos_205.variants.odd_counterexamples :
    {n : ℕ | Odd n ∧ ¬ IsRepresentable (fun m => Real.log (Real.log m)) n}.Infinite := by
  sorry

end Erdos205

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos205.erdos_205.parts.i with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_i : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-205      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-205
nosorry submit erdos-205 nosorry/erdos-205/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.