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 302 · variants.lower_half

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:the main problem, on aiXiv: partial progress — Not resolved on aiXiv. Latest progress: bound in aiXiv:2611.02605 (2026-11-23). · erdosproblems.com: open (a claim recorded elsewhere, not verified on nosorry)
5 results recorded on aiXiv
  1. bound Let f(N)f(N) be the largest size of a subset of {1,…,N}\{1,\dots,N\} with no distinct a<b<ca<b<c satisfying 1/a=1/b+1/c1/a=1/b+1/c. Then lim sup⁡N→∞f(N)/N≤0.830311602828140\limsup_{N\to\infty} f(N)/N\le 0.830311602828140. The proof is computer-assisted and improves Khanukov's bound 0.8307830223670.830783022367. — aiXiv:2611.02605, 2026-11-23 · claimed by its authors; no independent check recorded on aiXiv
  2. bound A Lean-verified proof gives the weaker upper bound lim sup⁡f(N)/N≤0.844641943930542\limsup f(N)/N\le 0.844641943930542 for subsets of {1,…,N}\{1,\dots,N\} avoiding 1/a=1/b+1/c1/a=1/b+1/c. — aiXiv:2611.02605, 2026-11-23 · claimed by its authors; no independent check recorded on aiXiv
  3. bound Let f(N)f(N) be the largest size of a subset of {1,…,N}\{1,\dots,N\} with no a<b<ca<b<c satisfying 1/a=1/b+1/c1/a=1/b+1/c. Then lim inf⁡N→∞f(N)/N>5/8+3.7047×10−9\liminf_{N\to\infty} f(N)/N>5/8+3.7047\times10^{-9}. The construction adds odd integers from two short intervals to Cambie's density-5/85/8 set and removes conflicts using prime-factor-count thresholds and a Selberg sieve. — aiXiv:2611.02604, 2026-11-23 · claimed by its authors; no independent check recorded on aiXiv
  4. bound Let f(N)f(N) be the largest reciprocal-sum-free subset of {1,…,N}\{1,\dots,N\} (no distinct a,b,ca,b,c with 1/a=1/b+1/c1/a=1/b+1/c), and let UVU_V be the density for the relaxation that keeps only triples with primitive coordinates smooth over the primes ≤2V\le 2V. Then 0≤UV−C≤(1023+561000)(log⁡V)−1/1400\le U_V-C\le(10^{23}+561000)(\log V)^{-1/140} for V≥4V\ge4, and 0≤(FV(N)−f(N))/N≤(2⋅1023+561000)(log⁡min⁡(V,N))−1/1400\le (F_V(N)-f(N))/N\le(2\cdot10^{23}+561000)(\log\min(V,N))^{-1/140}. — aiXiv:2611.02282, 2026-11-21 · claimed by its authors; no independent check recorded on aiXiv
  5. new proof f(N)=CN+o(N)f(N)=CN+o(N), where C=inf⁡V≥4UV≥5/8C=\inf_{V\ge4}U_V\ge5/8. CC admits rational enclosures of any prescribed width, and f(N)/Nf(N)/N has an explicit modulus of convergence. — aiXiv:2611.02282, 2026-11-21 · 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:

One can take either AA to be all odd integers in [1,N][1,N] or all integers in [N/2,N][N/2,N] to show f(N)≥(1/2+o(1))Nf(N)\geq (1/2+o(1))N.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.01621 [math.NT] · NS.01621v1 for this version
Declaration:Erdos302.erdos_302.variants.lower_half
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:e21d9ae799c5ff8b9d4e5bb7edf91e99b9ddd3f63c0c791e41e608a40ff14c27
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/302.lean

Formal statement

theorem erdos_302.variants.lower_half (f : ℕ → ℕ) (hf : ∀ N, IsMaxNoTripleCard N (f N))
    (ε : ℝ) (hε : 0 < ε) :
    ∀ᶠ N : ℕ in atTop, ((1 : ℝ) / 2 - ε) * N ≤ f N
Show the full Challenge.lean (157 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 302

*References:*
- [erdosproblems.com/302](https://www.erdosproblems.com/302)
- [BrRo91] Brown, Tom C. and Rödl, Voijtech, Monochromatic solutions to equations with unit
  fractions. Bull. Austral. Math. Soc. (1991), 387-392.
- [ErGr80] Erdős, P. and Graham, R., Old and new problems and results in combinatorial number
  theory. Monographies de L'Enseignement Mathematique (1980).
- [va25](https://github.com/Woett/Mathematical-shorts/blob/main/Two-colouring%20and%20density%20lead%20to%20solutions%20to%20an%20equation%20in%20unit%20fractions.pdf)
-/

@[expose] public section

open Filter Finset
open scoped Topology

namespace Erdos302

/--
A finite set $A$ of positive integers admits no solution to
$\frac{1}{a} = \frac{1}{b} + \frac{1}{c}$ with $a, b, c$ distinct elements of $A$.
-/
def NoUnitFractionTriple (A : Finset ℕ) : Prop :=
  ∀ a ∈ A, ∀ b ∈ A, ∀ c ∈ A, a ≠ b → a ≠ c → b ≠ c →
    (1 : ℚ) / a ≠ (1 : ℚ) / b + (1 : ℚ) / c

/--
$f N$ is the size of the largest $A ⊆ \{1, …, N\}$ containing no solution to
$\frac{1}{a} = \frac{1}{b} + \frac{1}{c}$ with distinct $a, b, c ∈ A$.
-/
def IsMaxNoTripleCard (N m : ℕ) : Prop :=
  IsGreatest {k | ∃ A ⊆ Finset.Icc 1 N, NoUnitFractionTriple A ∧ A.card = k} m

def erdos_302.parts.i.answer : ℝ := sorry

/--
Let $f(N)$ be the size of the largest $A\subseteq \{1,\ldots,N\}$ such that there are no
solutions to
$$\frac{1}{a}= \frac{1}{b}+\frac{1}{c}$$
with distinct $a,b,c\in A$? Estimate $f(N)$.

The colouring version of this is [303], which was solved by Brown and Rödl [BrRo91].
-/
@[category research open, question value, AMS 11]
theorem erdos_302.parts.i (f : ℕ → ℕ) (hf : ∀ N, IsMaxNoTripleCard N (f N)) :
    Tendsto (fun N : ℕ => (f N : ℝ) / N) atTop (𝓝 erdos_302.parts.i.answer) := by
  sorry

/--
In particular, is $f(N)=(\tfrac{1}{2}+o(1))N$?

This is false: it is contradicted by Cambie's lower bound of $(5/8+o(1))N$ recorded below,
since $5/8 > 1/2$.
-/
@[category research solved, AMS 11]
theorem erdos_302.parts.ii (f : ℕ → ℕ) (hf : ∀ N, IsMaxNoTripleCard N (f N)) :
    ¬ Tendsto (fun N : ℕ => (f N : ℝ) / N) atTop (𝓝 ((1 : ℝ) / 2)) := by
  sorry

/--
One can take either $A$ to be all odd integers in $[1,N]$ or all integers in $[N/2,N]$ to show
$f(N)\geq (1/2+o(1))N$.
-/
@[category research solved, AMS 11]
theorem erdos_302.variants.lower_half (f : ℕ → ℕ) (hf : ∀ N, IsMaxNoTripleCard N (f N))
    (ε : ℝ) (hε : 0 < ε) :
    ∀ᶠ N : ℕ in atTop, ((1 : ℝ) / 2 - ε) * N ≤ f N := by
  refine Filter.Eventually.of_forall fun N => ?_
  set A : Finset ℕ := (Finset.range ((N + 1) / 2)).image (fun x => 2 * x + 1) with hA
  have hsub : A ⊆ Finset.Icc 1 N := by
    intro a ha
    obtain ⟨x, hx, rfl⟩ := Finset.mem_image.1 ha
    rw [Finset.mem_range] at hx
    rw [Finset.mem_Icc]
    omega
  have hno : NoUnitFractionTriple A := by
    intro a ha b hb c hc _ _ _ h
    obtain ⟨x, -, rfl⟩ := Finset.mem_image.1 ha
    obtain ⟨y, -, rfl⟩ := Finset.mem_image.1 hb
    obtain ⟨z, -, rfl⟩ := Finset.mem_image.1 hc
    have hx : ((2 * x + 1 : ℕ) : ℚ) ≠ 0 := by positivity
    have hy : ((2 * y + 1 : ℕ) : ℚ) ≠ 0 := by positivity
    have hz : ((2 * z + 1 : ℕ) : ℚ) ≠ 0 := by positivity
    field_simp at h
    have h' : (2 * y + 1) * (2 * z + 1) = (2 * x + 1) * (2 * z + 1 + (2 * y + 1)) := by
      exact_mod_cast h
    have := congrArg (· % 2) h'
    simp [Nat.mul_mod, Nat.add_mod] at this
  have hcard : A.card = (N + 1) / 2 := by
    rw [hA, Finset.card_image_of_injective _ (fun x y hxy => by simpa using hxy),
      Finset.card_range]
  have hle : (N + 1) / 2 ≤ f N := by
    rw [← hcard]
    exact (hf N).2 ⟨A, hsub, hno, rfl⟩
  have h1 : (N : ℝ) ≤ 2 * ((N + 1) / 2 : ℕ) := by
    exact_mod_cast (by omega : N ≤ 2 * ((N + 1) / 2))
  have h2 : (((N + 1) / 2 : ℕ) : ℝ) ≤ f N := by exact_mod_cast hle
  have hN : (0 : ℝ) ≤ N := Nat.cast_nonneg N
  nlinarith

/--
Stijn Cambie has observed that
$$f(N)\geq (5/8+o(1))N,$$
taking $A$ to be all odd integers $\leq N/4$ and all integers in $[N/2,N]$.
-/
@[category research solved, AMS 11]
theorem erdos_302.variants.lower_five_eighths (f : ℕ → ℕ) (hf : ∀ N, IsMaxNoTripleCard N (f N))
    (ε : ℝ) (hε : 0 < ε) :
    ∀ᶠ N : ℕ in atTop, ((5 : ℝ) / 8 - ε) * N ≤ f N := by
  sorry

/--
Wouter van Doorn has proved [va25] that
$$f(N) \leq (9/10+o(1))N.$$
-/
@[category research solved, AMS 11]
theorem erdos_302.variants.upper_nine_tenths (f : ℕ → ℕ) (hf : ∀ N, IsMaxNoTripleCard N (f N))
    (ε : ℝ) (hε : 0 < ε) :
    ∀ᶠ N : ℕ in atTop, (f N : ℝ) ≤ ((9 : ℝ) / 10 + ε) * N := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Kenta Kitamura (KitaKen1 on GitHub) has given a Lean proof
([erdos-302-upper-bound](https://github.com/KitaKen1/erdos-302-upper-bound)) that
$$f(N) \leq (0.8461739827964010+o(1))N.$$
-/
@[category research solved, AMS 11,
  formal_proof using lean4 at
    "https://github.com/KitaKen1/erdos-302-upper-bound/blob/9447ceb/lean/Erdos302ReflectiveUpperFC.lean#L92-L99"]
theorem erdos_302.variants.upper_0_8461739827964010 (f : ℕ → ℕ)
    (hf : ∀ N, IsMaxNoTripleCard N (f N)) (ε : ℝ) (hε : 0 < ε) :
    ∀ᶠ N : ℕ in atTop, (f N : ℝ) ≤ ((8461739827964010 : ℝ) / 10000000000000000 + ε) * N := by
  sorry

end Erdos302

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

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