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 877 · variants.cameron_erdos

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Cameron and Erdős [CaEr90] proved that fm(n)>2n/4f_m(n)>2^{n/4}.

Subjects:Combinatorics (math.CO); Number Theory (math.NT)
MSC classes:05, 11
Cite as:NS.03480 [math.CO] · NS.03480v1 for this version
Declaration:Erdos877.erdos_877.variants.cameron_erdos
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:3148a62cb6830af65e3703e9afe0226811ffb669125dcc6f1496d5edba95deb4
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/877.lean

Formal statement

theorem erdos_877.variants.cameron_erdos :
    ∀ᶠ n : ℕ in atTop, (2 : ℝ) ^ ((n : ℝ) / 4) < fm n
Show the full Challenge.lean (95 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 877

*References:*
- [erdosproblems.com/877](https://www.erdosproblems.com/877)
- [CaEr90] Cameron, P. J. and Erdős, P., _On the number of sets of integers with various
  properties_. (1990), 61-79.
- [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.
- [LuSc01] Łuczak, Tomasz and Schoen, Tomasz, _On the number of maximal sum-free sets_. Proc.
  Amer. Math. Soc. (2001), 2205--2207.
- [BLST15] Balogh, József and Liu, Hong and Sharifzadeh, Maryam and Treglown, Andrew, _The
  number of maximal sum-free subsets of integers_. Proc. Amer. Math. Soc. (2015), 4713--4721.
- [BLST18] Balogh, József and Liu, Hong and Sharifzadeh, Maryam and Treglown, Andrew, _Sharp
  bound on the number of maximal sum-free subsets of integers_. J. Eur. Math. Soc. (JEMS) (2018),
  1885--1911.
-/

@[expose] public section

open Filter Asymptotics Real

namespace Erdos877

/-- `A` is a maximal sum-free subset of `{1, …, n}`. -/
def IsMaximalSumFree (n : ℕ) (A : Finset ℕ) : Prop :=
  A ⊆ Finset.Icc 1 n ∧ IsSumFree (A : Set ℕ) ∧
    ∀ B ⊆ Finset.Icc 1 n, IsSumFree (B : Set ℕ) → A ⊆ B → A = B

open scoped Classical in
/-- `fm n` counts the number of maximal sum-free subsets $A\subseteq\{1,\ldots,n\}$. -/
noncomputable def fm (n : ℕ) : ℕ :=
  ((Finset.Icc 1 n).powerset.filter fun A : Finset ℕ ↦ IsMaximalSumFree n A).card

set_option linter.style.formal_proof_palomar false in
/--
Let $f_m(n)$ count the number of maximal sum-free subsets $A\subseteq\{1,\ldots,n\}$ - that is,
there are no solutions to $a=b+c$ in $A$ and $A$ is maximal with this property. Estimate $f(n)$
- is it true that $f_m(n)=o(2^{n/2})$?

A problem of Cameron and Erdős. Łuczak and Schoen [LuSc01] proved that there exists a constant
$c<1/2$ such that $f_m(n)<2^{cn}$, resolving this question. Balogh, Liu, Sharifzadeh, and
Treglown [BLST15] proved that $f_m(n)=2^{(\frac{1}{4}+o(1))n}$.

See [748](https://www.erdosproblems.com/748) for the non-maximal case.
-/
@[category research solved, question, AMS 5 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos877.lean#L170"]
theorem erdos_877 :
    (fun n : ℕ ↦ (fm n : ℝ)) =o[atTop] fun n : ℕ ↦ (2 : ℝ) ^ ((n : ℝ) / 2) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/-- Łuczak and Schoen [LuSc01] proved that there exists a constant $c<1/2$ such that
$f_m(n)<2^{cn}$ for all large $n$. -/
@[category research solved, AMS 5 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos877.lean#L127"]
theorem erdos_877.variants.luczak_schoen :
    ∃ c : ℝ, c < 1 / 2 ∧ ∀ᶠ n : ℕ in atTop, (fm n : ℝ) ≤ 2 ^ (c * n) := by
  sorry

/-- Cameron and Erdős [CaEr90] proved that $f_m(n)>2^{n/4}$. -/
@[category research solved, AMS 5 11]
theorem erdos_877.variants.cameron_erdos :
    ∀ᶠ n : ℕ in atTop, (2 : ℝ) ^ ((n : ℝ) / 4) < fm n := by
  sorry

/-- Balogh, Liu, Sharifzadeh, and Treglown [BLST15] proved that
$f_m(n)=2^{(\frac{1}{4}+o(1))n}$. -/
@[category research solved, AMS 5 11]
theorem erdos_877.variants.balogh_liu_sharifzadeh_treglown :
    Tendsto (fun n : ℕ ↦ logb 2 (fm n) / n) atTop (nhds (1 / 4)) := by
  sorry

end Erdos877

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos877.erdos_877.variants.cameron_erdos with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_cameron_erdos : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-877--erdos-877-variants-cameron-erdos      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-877--erdos-877-variants-cameron-erdos
nosorry submit erdos-877--erdos-877-variants-cameron-erdos nosorry/erdos-877--erdos-877-variants-cameron-erdos/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.