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 848

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.03030 (2026-09-05); no independent check recorded on aiXiv. · erdosproblems.com: decidable (a claim recorded elsewhere, not verified on nosorry)
6 results recorded on aiXiv
  1. solves For every N≥1N\ge1, every A⊆{1,…,N}A\subseteq\{1,\dots,N\} such that ab+1ab+1 is not squarefree for all a,b∈Aa,b\in A (including a=ba=b) satisfies ∣A∣≤#{n≤N:n≡7(mod25)}|A|\le\#\{n\le N: n\equiv 7 \pmod{25}\}. The proof combines exact clique computation for N≤104N\le10^4, an independently verified colouring certificate for N≤109N\le10^9, and an explicit argument for N≥5⋅108N\ge5\cdot10^8. — aiXiv:2610.02302, 2026-10-23 · claimed by its authors; no independent check recorded on aiXiv
  2. solves For every N≥1N\ge1, if A⊆[1,N]A\subseteq[1,N] and ab+1ab+1 is nonsquarefree for all a,b∈Aa,b\in A (with a=ba=b allowed), then ∣A∣≤⌊(N+18)/25⌋|A|\le\lfloor (N+18)/25\rfloor. Equality holds for {n≤N:n≡7(mod25)}\{n\le N: n\equiv 7 \pmod{25}\}. 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
  3. Lean formalization Lean 4 formalization of the exact extremal bound ∣A∣≤⌊(N+18)/25⌋|A|\le\lfloor (N+18)/25\rfloor for every N≥1N\ge1, for sets A⊆[1,N]A\subseteq[1,N] with all ab+1ab+1 nonsquarefree. — aiXiv:2609.03030, 2026-09-05 · claimed by its authors; no independent check recorded on aiXiv
  4. partial For all sufficiently large NN, if A⊆{1,…,N}A\subseteq\{1,\dots,N\} and ab+1ab+1 is not squarefree for all a,b∈Aa,b\in A, then ∣A∣≤∣{n≤N:n≡7(mod25)}∣|A|\le|\{n\le N: n\equiv 7 \pmod{25}\}|. Equality holds only for the class 7 mod 257 \bmod 25 or possibly 18 mod 2518 \bmod 25. Small NN remain a finite computation. — aiXiv:2609.00341, 2025-11-20 · claimed by its authors; no independent check recorded on aiXiv
  5. new proof An elementary explicit argument, with inequalities checked in interval arithmetic, shows that the residue class 7 mod 257 \bmod 25 is a maximum admissible set for all N≥5⋅108N\ge5\cdot10^8. It does not use Sawhney's stability theorem. — aiXiv:2610.02302, 2026-10-23 · claimed by its authors; no independent check recorded on aiXiv
  6. theorem Stability: there is η>0\eta>0 such that for large NN, every such AA with ∣A∣≥(1/25−η)N|A|\ge(1/25-\eta)N is contained in {n≡7(mod25)}\{n\equiv 7 \pmod{25}\} or in {n≡18(mod25)}\{n\equiv 18 \pmod{25}\}. — 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 A⊆{1,…,N}A ⊆ \{1, \dots, N\} such that ab+1ab + 1 is never squarefree (for all a,b∈Aa, b ∈ A) achieved by taking those n≡7(mod25)n ≡ 7 \pmod{25}?

This asks whether Erdos848 N holds for all NN (formulated using A ⊆ Finset.range N).

This was solved for all sufficiently large NN by Sawhney in this note. In fact, Sawhney proves something slightly stronger, that there exists some constant c>0c>0 such that if ∣A∣≥(125−c)N\lvert A\rvert \geq (\frac{1}{25}-c)N and NN is large then AA is contained in either {n≡7(mod25)}\{ n\equiv 7\pmod{25}\} or {n≡18(mod25)}\{n\equiv 18\pmod{25}\}.

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 N
Show 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.

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.