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 793

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Elsewhere:on aiXiv: claimed solved — Claimed proved in aiXiv:2609.00212 (2026-07); no independent check recorded on aiXiv. · erdosproblems.com: proved (Lean) (a claim recorded elsewhere, not verified on nosorry)
1 result recorded on aiXiv
  1. solves Let F(n)F(n) be the maximum size of A⊆{1,…,n}A\subseteq\{1,\dots,n\} such that no a∈Aa\in A divides the product of two other distinct elements of AA. Then F(n)=π(n)+(272+o(1)) n2/3(log⁡n)−2F(n)=\pi(n)+(\tfrac{27}{2}+o(1))\,n^{2/3}(\log n)^{-2}. — aiXiv:2609.00212, 2026-07 · claimed by its authors; no independent check recorded on aiXiv

From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.

Statement:

Let F(n)F(n) be the maximum possible size of a subset A⊆{1,…,n}A \subseteq \{1, \ldots, n\} such that a∤bca \nmid bc whenever a,b,c∈Aa, b, c \in A with a≠ba \neq b and a≠ca \neq c. Is there a constant cc such that F(n)=π(n)+(c+o(1))n2/3(log⁡n)−2?F(n) = \pi(n) + (c + o(1)) n^{2/3} (\log n)^{-2}?

A problem of Erdős [Er69, Er70b], who proved in [Er38] that F(n)=π(n)+O(n2/3(log⁡n)−2)F(n) = \pi(n) + O(n^{2/3} (\log n)^{-2}). The answer is yes, with c=27/2c = 27/2: this was proved by GPT-5.6 Sol (prompted by Chojecki), refining the argument of [Er38]; see erdos_793.variants.constant.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question
Cite as:NS.03228 [math.NT] · NS.03228v1 for this version
Declaration:Erdos793.erdos_793
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:f65501b39ea6f8e14288f781884ccc7c60e863129f72ee34a272242f93e09453
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/793.lean

Formal statement

theorem erdos_793 :
    ∃ c : ℝ, Tendsto (fun n : ℕ ↦ ((F n : ℝ) - Nat.primeCounting n) /
      ((n : ℝ) ^ ((2 : ℝ) / 3) / (log n) ^ 2)) atTop (𝓝 c)
Show the full Challenge.lean (83 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 793

*References:*
- [erdosproblems.com/793](https://www.erdosproblems.com/793)
- [Er38] Erdős, P., *On sequences of integers no one of which divides the product of two others
  and on related problems*. Tomsk. Gos. Univ. Ucen Zap. (1938), 74-82.
- [Er69] Erdős, Paul, *Some applications of graph theory to number theory*. The Many Facets of
  Graph Theory (Proc. Conf., Western Mich. Univ., Kalamazoo, Mich., 1968) (1969), 77-82.
- [Er70b] Erdős, P., *Some applications of graph theory to number theory*. Proc. Second Chapel Hill
  Conf. on Combinatorial Mathematics and its Applications (Univ. North Carolina, Chapel Hill, N.C.,
  1970) (1970), 136-145.
-/

@[expose] public section

open Filter Real
open scoped Topology

namespace Erdos793

/-- A finite set `A ⊆ ℕ` is *strongly 2-primitive* if `a ∤ b * c` whenever `a, b, c ∈ A` with
`a ≠ b` and `a ≠ c`. -/
def Strongly2Primitive (A : Finset ℕ) : Prop :=
  ∀ a ∈ A, ∀ b ∈ A, ∀ c ∈ A, a ≠ b → a ≠ c → ¬ a ∣ b * c

/-- `F n` is the maximal size of a strongly 2-primitive subset of `{1, …, n}`. -/
noncomputable def F (n : ℕ) : ℕ := by
  classical
  exact ((Finset.Icc 1 n).powerset.filter Strongly2Primitive).sup Finset.card

/--
Let $F(n)$ be the maximum possible size of a subset $A \subseteq \{1, \ldots, n\}$ such that
$a \nmid bc$ whenever $a, b, c \in A$ with $a \neq b$ and $a \neq c$. Is there a constant $c$ such
that
$$F(n) = \pi(n) + (c + o(1)) n^{2/3} (\log n)^{-2}?$$

A problem of Erdős [Er69, Er70b], who proved in [Er38] that
$F(n) = \pi(n) + O(n^{2/3} (\log n)^{-2})$. The answer is yes, with $c = 27/2$: this was proved by
GPT-5.6 Sol (prompted by Chojecki), refining the argument of [Er38]; see
`erdos_793.variants.constant`.
-/
@[category research solved, question, AMS 11]
theorem erdos_793 :
    ∃ c : ℝ, Tendsto (fun n : ℕ ↦ ((F n : ℝ) - Nat.primeCounting n) /
      ((n : ℝ) ^ ((2 : ℝ) / 3) / (log n) ^ 2)) atTop (𝓝 c) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
The constant in Problem 793 is $c = 27/2$, i.e.
$$F(n) = \pi(n) + \left(\frac{27}{2} + o(1)\right) \frac{n^{2/3}}{(\log n)^2}.$$
Formalised by van Doorn and Aristotle, following the proof of GPT-5.6 Sol.
-/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos793.lean#L25"]
theorem erdos_793.variants.constant :
    Tendsto (fun n : ℕ ↦ ((F n : ℝ) - Nat.primeCounting n) /
      ((n : ℝ) ^ ((2 : ℝ) / 3) / (log n) ^ 2)) atTop (𝓝 (27 / 2)) := by
  sorry

end Erdos793

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

nosorry fetch erdos-793
nosorry submit erdos-793 nosorry/erdos-793/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.