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 888

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:

What is the size of the largest A⊆{1,…,n}A\subseteq \{1,\ldots,n\} such that if a≤b≤c≤d∈Aa\leq b\leq c\leq d\in A are such that abcdabcd is a square then ad=bcad=bc?

This was proved by GPT-5.5 Pro (prompted by Chojecki).

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

Formal statement

theorem erdos_888 :
    (fun n : ℕ ↦ (Nat.findGreatest (p n) n : ℝ)) =Θ[atTop]
      (fun n : ℕ ↦ (n : ℝ) * Real.log (Real.log n) / Real.log n)
Show the full Challenge.lean (95 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 888

*References:*
- [erdosproblems.com/888](https://www.erdosproblems.com/888)
- [Er98] Erdős, Paul, Some of my new and almost new problems and results in combinatorial number
  theory. Number theory (Eger, 1996) (1998), 169-180.
-/

@[expose] public section

open Filter

namespace Erdos888

/--
Condition on the sets $A$ appearing in Erdős 888. Namely, let $A$ be a subset
of ${1,...,n}$ such that if $a ≤ b ≤ c ≤ d ∈ A$ and $abcd$ square then $ad=bc$.
-/
def RequiredCondition (A : Finset ℕ) (n : ℕ) : Prop :=
  A ⊆ Finset.Ioc 0 n ∧ ∀ᵉ (a ∈ A) (b ∈ A) (c ∈ A) (d ∈ A),
  a ≤ b → b ≤ c → c ≤ d → IsSquare (a * b * c * d) → a * d = b * c

/--
Proposition that for a specific $n$ an $A$ with the above defined condition and cardinality $k$
exists.
-/
def p (n : ℕ) (k : ℕ) : Prop := ∃ A : Finset ℕ, RequiredCondition A n ∧ A.card = k

open scoped Classical in
set_option linter.style.formal_proof_palomar false in
/--
What is the size of the largest $A\subseteq \{1,\ldots,n\}$ such that if
$a\leq b\leq c\leq d\in A$ are such that $abcd$ is a square then $ad=bc$?

This was proved by GPT-5.5 Pro (prompted by Chojecki).
-/
@[category research solved, AMS 11,
  formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/dfe2d78128b493c572cf525b1b8edf4897fb7664/src/latest/ErdosProblems/Erdos888.lean#L47"]
theorem erdos_888 :
    (fun n : ℕ ↦ (Nat.findGreatest (p n) n : ℝ)) =Θ[atTop]
      (fun n : ℕ ↦ (n : ℝ) * Real.log (Real.log n) / Real.log n) := by
  sorry

open scoped Classical in
/--
Erdős claims that Sárközy proved that $\lvert A\rvert =o(n)$ (a proof of this
bound is provided by Tao in the comments).
-/
@[category research solved, AMS 11]
theorem erdos_888.variants.sarkozy :
    (fun n ↦ (Nat.findGreatest (p n) n : ℝ)) =o[atTop] (Nat.cast : ℕ → ℝ) := by
  sorry

open scoped Classical in
/--
The primes show that $\lvert A\rvert \gg n/\log n$ is possible.
-/
@[category research solved, AMS 11]
theorem erdos_888.variants.primes :
    (fun n : ℕ ↦ (Nat.findGreatest (p n) n : ℝ)) ≫ (fun n : ℕ ↦ (n : ℝ) / Real.log n) := by
  sorry

open scoped Classical in
/--
Cambie and Weisenberg have noted in the comments that the set of semiprimes
also works, showing $(1+o(1))\frac{\log\log n}{\log n}n \leq \lvert A\rvert$ is achievable.
-/
@[category research solved, AMS 11]
theorem erdos_888.variants.semiprimes :
    ∃ c : ℕ → ℝ, c =o[atTop] (1 : ℕ → ℝ) ∧ ∀ᶠ n : ℕ in atTop,
      (1 + c n) * ((n : ℝ) * Real.log (Real.log n) / Real.log n) ≤ Nat.findGreatest (p n) n := by
  sorry

end Erdos888

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

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