Title:Erdős Problem 438
Statement:How large can be if contains no square numbers?
A problem of Erdős [Er80, Er80c, ErGr80]. Taking all integers gives , and Massias observed that all integers give . Lagarias, Odlyzko and Shearer [LOS83] proved that is sharp for the modular version of the problem, and Khalfalah, Lodha and Szemerédi [KLS02] proved that it is sharp in general: the maximal such satisfies .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | formal_proof |
| Cite as: | NS.02145 [math.NT] · NS.02145v1 for this version |
| Declaration: | Erdos438.erdos_438 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | d7bf31d3a703abd4cc6fe46e9f25f8f7fe1375503108aa2e3a308b77a7063129 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/438.lean |
Formal statement
theorem erdos_438 :
Tendsto (fun N : ℕ ↦ (extremalSize N : ℝ) / (N : ℝ)) atTop (𝓝 ((11 : ℝ) / 32))Show the full Challenge.lean (74 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 438
*References:*
- [erdosproblems.com/438](https://www.erdosproblems.com/438)
- [Er80] Erdős, Paul, *A survey of problems in combinatorial number theory*. Ann. Discrete Math.
(1980), 89-115.
- [Er80c] Erdős, Paul, *Nine little known problems in combinatorial number theory*. Normat (1980),
155-164, 180.
- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number
theory*. Monographies de L'Enseignement Mathematique (1980).
- [LOS83] Lagarias, J. C. and Odlyzko, A. M. and Shearer, J. B., *On the density of sequences of
integers the sum of no two of which is a square. II. General sequences*. J. Combin. Theory Ser. A
(1983), 123-139.
- [KLS02] Khalfalah, A. and Lodha, S. and Szemerédi, E., *Tight bound for the density of sequence
of integers the sum of no two of which is a perfect square*. Discrete Math. (2002), 243-255.
-/
@[expose] public section
open Filter
open scoped Topology
namespace Erdos438
/-- A finite set of natural numbers is square-sum-free if the sum of any two of its elements
(possibly equal) is not a square. -/
def SquareSumFree (A : Finset ℕ) : Prop :=
∀ a ∈ A, ∀ b ∈ A, ¬ IsSquare (a + b)
/-- The largest size of a square-sum-free subset of `{1, …, N}`. -/
noncomputable def extremalSize (N : ℕ) : ℕ := by
classical
exact ((Finset.Icc 1 N).powerset.filter SquareSumFree).sup Finset.card
set_option linter.style.formal_proof_palomar false in
/--
How large can $A \subseteq \{1, \ldots, N\}$ be if $A + A$ contains no square numbers?
A problem of Erdős [Er80, Er80c, ErGr80]. Taking all integers $\equiv 1 \pmod 3$ gives
$|A| \ge N/3$, and Massias observed that all integers
$\equiv 1, 5, 9, 13, 14, 17, 21, 25, 26, 29, 30 \pmod{32}$ give $|A| \ge \frac{11}{32} N$.
Lagarias, Odlyzko and Shearer [LOS83] proved that $11/32$ is sharp for the modular version of the
problem, and Khalfalah, Lodha and Szemerédi [KLS02] proved that it is sharp in general: the
maximal such $A$ satisfies $|A| \le (\frac{11}{32} + o(1)) N$.
-/
@[category research solved, AMS 11, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos438.lean#L46"]
theorem erdos_438 :
Tendsto (fun N : ℕ ↦ (extremalSize N : ℝ) / (N : ℝ)) atTop (𝓝 ((11 : ℝ) / 32)) := by
sorry
end Erdos438
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos438.erdos_438 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_438 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-438 nosorry submit erdos-438 nosorry/erdos-438/Solution.lean --wait
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.