Title:Erdős Problem 848
6 results recorded on aiXiv
- solves For every , every such that is not squarefree for all (including ) satisfies . The proof combines exact clique computation for , an independently verified colouring certificate for , and an explicit argument for . — aiXiv:2610.02302, 2026-10-23 · claimed by its authors; no independent check recorded on aiXiv
- solves For every , if and is nonsquarefree for all (with allowed), then . Equality holds for . The claimed proof is formally verified in Lean 4. — aiXiv:2609.03030, 2026-09-05 · claimed by its authors; no independent check recorded on aiXiv
- Lean formalization Lean 4 formalization of the exact extremal bound for every , for sets with all nonsquarefree. — aiXiv:2609.03030, 2026-09-05 · claimed by its authors; no independent check recorded on aiXiv
- partial For all sufficiently large , if and is not squarefree for all , then . Equality holds only for the class or possibly . Small remain a finite computation. — aiXiv:2609.00341, 2025-11-20 · claimed by its authors; no independent check recorded on aiXiv
- new proof An elementary explicit argument, with inequalities checked in interval arithmetic, shows that the residue class is a maximum admissible set for all . It does not use Sawhney's stability theorem. — aiXiv:2610.02302, 2026-10-23 · claimed by its authors; no independent check recorded on aiXiv
- theorem Stability: there is such that for large , every such with is contained in or in . — aiXiv:2609.00341, 2025-11-20 · 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:Is the maximum size of a set such that is never squarefree (for all ) achieved by taking those ?
This asks whether
Erdos848 Nholds for all (formulated usingA ⊆ Finset.range N).This was solved for all sufficiently large by Sawhney in this note. In fact, Sawhney proves something slightly stronger, that there exists some constant such that if and is large then is contained in either or .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question |
| Cite as: | NS.03390 [math.NT] · NS.03390v1 for this version |
| Declaration: | Erdos848.erdos_848 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 922721c06b3dbb7df63d48f12ba6d01b9e7aca0dc1981f85bbdda32b8d6a68b3 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/848.lean |
Formal statement
theorem erdos_848 : ∀ N, Erdos848For NShow the full Challenge.lean (84 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 848
Is the maximum size of a set $A \subseteq \{1, \dots, N\}$ such that $ab + 1$ is never
squarefree (for all $a, b \in A$) achieved by taking those $n \equiv 7 \pmod{25}$?
*References:*
- [erdosproblems.com/848](https://www.erdosproblems.com/848)
- [Er92b] Erdős, P. "Some of my favourite problems in number theory, combinatorics,
and geometry." Resenhas do Instituto de Matemático e Estatística da Universidade
de São Paulo 2.2 (1995): 165-186.
- [Sa25] Sawhney, M. "Problem 848." (2025)
https://www.math.columbia.edu/~msawhney/Problem_848.pdf
- Full formal proof of asymptotic result: https://github.com/The-Obstacle-Is-The-Way/erdos-banger
-/
@[expose] public section
namespace Erdos848
/-- A set $A$ has the non-squarefree product property if $ab + 1$ is not squarefree
for all $a, b ∈ A$. -/
def NonSquarefreeProductProp (A : Finset ℕ) : Prop :=
∀ a ∈ A, ∀ b ∈ A, ¬Squarefree (a * b + 1)
/-- The candidate extremal set: $\{n ∈ \{0, \dots, N-1\} : n ≡ 7 (mod 25)\}$. -/
def A₇ (N : ℕ) : Finset ℕ :=
(Finset.range N).filter (fun n => n % 25 = 7)
/-- The Erdős Problem 848 statement for a fixed $N$: any set $A ⊆ \{0, \dots, N-1\}$ with
the non-squarefree product property has cardinality at most $|A₇(N)|$. -/
def Erdos848For (N : ℕ) : Prop :=
∀ A : Finset ℕ, A ⊆ Finset.range N → NonSquarefreeProductProp A →
A.card ≤ (A₇ N).card
/-- Is the maximum size of a set $A ⊆ \{1, \dots, N\}$ such that $ab + 1$ is never squarefree
(for all $a, b ∈ A$) achieved by taking those $n ≡ 7 \pmod{25}$?
This asks whether `Erdos848 N` holds for all $N$ (formulated using `A ⊆ Finset.range N`).
This was solved for all sufficiently large $N$ by Sawhney in this note. In fact, Sawhney proves
something slightly stronger, that there exists some constant $c>0$ such that if
$\lvert A\rvert \geq (\frac{1}{25}-c)N$ and $N$ is large then $A$ is contained in either
$\{ n\equiv 7\pmod{25}\}$ or $\{n\equiv 18\pmod{25}\}$.
-/
@[category research solved, question, AMS 11]
theorem erdos_848 : ∀ N, Erdos848For N := by
sorry
set_option linter.style.formal_proof_palomar false in
/-- There exists $N₀$ such that for all $N ≥ N₀$, if $A ⊆ \{1, \dots, N\}$ satisfies that $ab + 1$
is never squarefree for all $a, b ∈ A$, then $|A| ≤ |\{n ≤ N : n ≡ 7 \pmod{25}\}|$.
More precisely, Sawhney proves: there exist absolute constants $η > 0$ and $N₀$
such that for all $N ≥ N₀$, if $|A| ≥ (1/25 - η)N$ then $A ⊆ \{n : n ≡ 7 \pmod{25}\}$ or
$A ⊆ \{n : n ≡ 18 \pmod{25}\}$.
A complete formal Lean 4 proof is available at:
https://github.com/The-Obstacle-Is-The-Way/erdos-banger -/
@[category research solved, AMS 11, formal_proof using lean4 at "https://github.com/The-Obstacle-Is-The-Way/erdos-banger/blob/1cc2ac8e9d70516e979733c6ea5c4d2eb652d1f5/formal/lean/Erdos/848.lean"]
theorem erdos_848.variants.asymptotic : ∀ᶠ N in Filter.atTop, Erdos848For N := by
sorry
end Erdos848
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos848.erdos_848 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_848 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-848 nosorry submit erdos-848 nosorry/erdos-848/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-848-variants-asymptotic — known result
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.