Title:Erdős Problem 748
Statement:Let count the number of sum-free , i.e. contains no solutions to with . Is it true that
The Cameron–Erdős conjecture. This is true, and in fact , which was proved independently by Green [Gr04] and Sapozhenko [Sa03].
The statement is formalised as .
| Subjects: | Combinatorics (math.CO); Number Theory (math.NT) |
| MSC classes: | 05, 11 |
| Tags: | question, formal_proof |
| Cite as: | NS.03076 [math.CO] · NS.03076v1 for this version |
| Declaration: | Erdos748.erdos_748 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 500ad6a8b68be1c7d0b2d8a75a5c2f4111b97d2fdde481dc07bb0575790f7c17 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/748.lean |
Formal statement
theorem erdos_748 :
Tendsto (fun n : ℕ ↦ logb 2 (f n) / n) atTop (nhds (1 / 2))Show the full Challenge.lean (90 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 748
*References:*
- [erdosproblems.com/748](https://www.erdosproblems.com/748)
- [CaEr90] Cameron, P. J. and Erdős, P., _On the number of sets of integers with various
properties_. (1990), 61-79.
- [Er94b] Erdős, Paul, _Some problems in number theory, combinatorics and combinatorial
geometry_. Math. Pannon. (1994), 261-269.
- [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.
- [Gr04] Green, Ben, _The Cameron-Erdős conjecture_. Bull. London Math. Soc. (2004), 769-778.
- [Sa03] Sapozhenko, A. A., _The Cameron-Erdős conjecture_. Dokl. Akad. Nauk (2003), 749-752.
-/
@[expose] public section
open Filter Real
namespace Erdos748
open scoped Classical in
/-- `f n` counts the number of sum-free $A\subseteq \{1,\ldots,n\}$, i.e. $A$ contains no
solutions to $a=b+c$ with $a,b,c\in A$. -/
noncomputable def f (n : ℕ) : ℕ :=
((Finset.Icc 1 n).powerset.filter fun A : Finset ℕ ↦ IsSumFree (A : Set ℕ)).card
set_option linter.style.formal_proof_palomar false in
/--
Let $f(n)$ count the number of sum-free $A\subseteq \{1,\ldots,n\}$, i.e. $A$ contains no
solutions to $a=b+c$ with $a,b,c\in A$. Is it true that
$$f(n)=2^{(1+o(1))\frac{n}{2}}?$$
The Cameron–Erdős conjecture. This is true, and in fact $f(n) \ll 2^{n/2}$, which was proved
independently by Green [Gr04] and Sapozhenko [Sa03].
The statement $f(n)=2^{(1+o(1))n/2}$ is formalised as $\log_2 f(n)/n\to 1/2$.
-/
@[category research solved, question, AMS 5 11, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos748.lean#L1228"]
theorem erdos_748 :
Tendsto (fun n : ℕ ↦ logb 2 (f n) / n) atTop (nhds (1 / 2)) := by
sorry
/-- It is trivial to see that $f(n) \geq 2^{\frac{n}{2}}$, considering all subsets of
$(n/2,n]$. The source writes $[n/2,n]$, but for even $n$ that interval is not sum-free,
since $n/2 + n/2 = n$. -/
@[category textbook, AMS 5 11]
theorem erdos_748.variants.lower_bound (n : ℕ) :
(2 : ℝ) ^ ((n : ℝ) / 2) ≤ (f n : ℝ) := by
sorry
/-- Green [Gr04] and Sapozhenko [Sa03] proved that $f(n) \ll 2^{n/2}$. -/
@[category research solved, AMS 5 11]
theorem erdos_748.variants.green_sapozhenko :
∃ C : ℝ, ∀ n : ℕ, (f n : ℝ) ≤ C * 2 ^ ((n : ℝ) / 2) := by
sorry
/-- In fact, both Green [Gr04] and Sapozhenko [Sa03] prove the stronger asymptotic
$f(n) \sim c_n 2^{n/2}$, where $c_n$ takes on one of two values depending on the parity of
$n$. -/
@[category research solved, AMS 5 11]
theorem erdos_748.variants.asymptotic :
∃ c₀ c₁ : ℝ, 0 < c₀ ∧ 0 < c₁ ∧
Tendsto (fun m : ℕ ↦ (f (2 * m) : ℝ) / 2 ^ m) atTop (nhds c₀) ∧
Tendsto (fun m : ℕ ↦ (f (2 * m + 1) : ℝ) / 2 ^ ((2 * m + 1 : ℝ) / 2)) atTop
(nhds c₁) := by
sorry
end Erdos748
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos748.erdos_748 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_748 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-748 nosorry submit erdos-748 nosorry/erdos-748/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-748-variants-lower-bound — textbook
- erdos-748-variants-green-sapozhenko — known result
- erdos-748-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.