FormalConjectures/ErdosProblems/848.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
5 declarations, 2 contain sorry, 0 declared as axioms
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
- [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
Imports (1)
- def
Erdos848.NonSquarefreeProductPropA set $A$ has the non-squarefree product property if $ab + 1$ is not squarefree for all $a, b ∈ A$ line 42 sourceSource documentation
A set $A$ has the non-squarefree product property if $ab + 1$ is not squarefree for all $a, b ∈ A$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Finset,NatProof uses:
Membership.mem,Not,Squarefree,HAdd.hAdd,HMul.hMul,OfNat.ofNat8 instances, coercions and auxiliary constants left out.
def NonSquarefreeProductProp (A : Finset ℕ) : Prop := …
- def
Erdos848.A₇The candidate extremal set: $\{n ∈ \{0, \dots, N-1\} : n ≡ 7 (mod 25)\}$ line 46 sourceSource documentation
The candidate extremal set: $\{n ∈ \{0, \dots, N-1\} : n ≡ 7 (mod 25)\}$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,FinsetProof uses:
Finset.filter,Eq,HMod.hMod,OfNat.ofNat,Finset.range4 instances, coercions and auxiliary constants left out.
def A₇ (N : ℕ) : Finset ℕ := …
- def
Erdos848.Erdos848ForThe 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)|$ line 51 sourceSource documentation
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)|$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Finset,LE.le,Finset.range, Erdos848.NonSquarefreeProductProp,Finset.card, Erdos848.A₇4 instances, coercions and auxiliary constants left out.
def Erdos848For (N : ℕ) : Prop := …
- theorem
Erdos848.erdos_848Is 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}$? sorry line 66 sourceSource documentation
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 Nholds for all $N$ (formulated usingA ⊆ 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}\}$.
depends on sorry what this means
Statement uses:
Iff,True,Nat, Erdos848.Erdos848ForProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat1 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_848 : answer(True) ↔ ∀ N, Erdos848For N := by …
Mentions: Erdos848.Erdos848For
- theorem
Erdos848.erdos_848.variants.asymptoticThere 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}\}|$ sorry line 79 sourceSource documentation
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
depends on sorry what this means
Statement uses:
Filter.Eventually,Nat, Erdos848.Erdos848For,Filter.atTopProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat3 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_848.variants.asymptotic : ∀ᶠ N in Filter.atTop, Erdos848For N := by …
Mentions: Erdos848.Erdos848For