Title:Erdős Problem 885
1 result recorded on aiXiv
- Lean formalization Lean 4 proof that for every there are positive integers , namely and , whose factor-difference sets share distinct positive elements. The construction iterates doubling on and separates the points by 2-adic valuations. — aiXiv:2610.02674, 2026-10-25 · 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:Is it true that, for every , there exist integers such that ?
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question |
| Cite as: | NS.03513 [math.NT] · NS.03513v1 for this version |
| Declaration: | Erdos885.erdos_885 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | e656e948f8f036c6af8980efcb21495b970973922dbe8affc5fe687a466fdebf |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/885.lean |
Formal statement
theorem erdos_885 : ∀ k ≥ 1,
∃ Ns : Finset ℕ,
(∀ n ∈ Ns, 1 ≤ n) ∧
Ns.card = k ∧
(⋂ n ∈ Ns, factorDifferenceSet n).ncard ≥ kShow the full Challenge.lean (170 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 885
*References:*
- [erdosproblems.com/885](https://www.erdosproblems.com/885)
- [ErRo97] Erdős, P. and Rosenfeld, M., The factor-difference set of integers. (1997)
- [Ji99] Jiménez-Urroz, J., A note on a conjecture of Erdős and {R}osenfeld. (1999)
- [Br19] Bremner, A., On a problem of Erdős related to common factor differences. (2019)
-/
@[expose] public section
open Nat Set Finset
namespace Erdos885
/--
For integer $n \geq 1$ we define the factor difference set of $n$ by
$D(n) = \{|a-b| : n=ab\}$.
-/
def factorDifferenceSet (n : ℕ) : Set ℕ :=
{d | ∃ a b : ℕ, n = a * b ∧ (d : ℤ) = |(a : ℤ) - b|}
@[category API, AMS 11]
lemma mem_factorDifferenceSet_of_eq {n d b : ℕ} (h : n = b * (b + d)) :
d ∈ factorDifferenceSet n :=
⟨b, b + d, h, by push_cast; rw [show (b : ℤ) - (b + d) = -d by ring, abs_neg,
abs_of_nonneg (by positivity)]⟩
@[category API, AMS 11]
lemma factorDifferenceSet_finite {n : ℕ} (hn : 1 ≤ n) : (factorDifferenceSet n).Finite := by
refine (Set.finite_Iic n).subset ?_
rintro d ⟨a, b, rfl, hd⟩
have ha : 1 ≤ a := Nat.pos_of_ne_zero (by rintro rfl; simp at hn)
have hb : 1 ≤ b := Nat.pos_of_ne_zero (by rintro rfl; simp at hn)
have h1 : (a : ℤ) ≤ a * b := by exact_mod_cast Nat.le_mul_of_pos_right a hb
have h2 : (b : ℤ) ≤ a * b := by exact_mod_cast Nat.le_mul_of_pos_left b ha
have : (d : ℤ) ≤ a * b := hd ▸ abs_sub_le_iff.2 ⟨by linarith, by linarith⟩
exact_mod_cast this
/--
Is it true that, for every $k \geq 1$, there exist integers $N_1 < \dots < N_k$ such that
$|\cap_i D(N_i)| \geq k$?
-/
@[category research open, question, AMS 11]
theorem erdos_885 : ∀ k ≥ 1,
∃ Ns : Finset ℕ,
(∀ n ∈ Ns, 1 ≤ n) ∧
Ns.card = k ∧
(⋂ n ∈ Ns, factorDifferenceSet n).ncard ≥ k := by
sorry
/--
Erdős and Rosenfeld [ErRo97] proved this is true for $k=2$.
-/
@[category research solved, AMS 11]
theorem erdos_885.variants.k_eq_2 :
∃ Ns : Finset ℕ,
(∀ n ∈ Ns, 1 ≤ n) ∧
Ns.card = 2 ∧
(⋂ n ∈ Ns, factorDifferenceSet n).ncard ≥ 2 := by
refine ⟨{12, 42}, by decide, by decide, ?_⟩
have hsub : ({1, 11} : Set ℕ) ⊆
⋂ n ∈ ({12, 42} : Finset ℕ), factorDifferenceSet n := by
simp only [Set.subset_def, Set.mem_insert_iff, Set.mem_singleton_iff, Set.mem_iInter,
Finset.mem_insert, Finset.mem_singleton]
rintro d (rfl | rfl) n (rfl | rfl)
· exact ⟨3, 4, by norm_num, by norm_num⟩
· exact ⟨6, 7, by norm_num, by norm_num⟩
· exact ⟨1, 12, by norm_num, by norm_num⟩
· exact ⟨3, 14, by norm_num, by norm_num⟩
have hfin : (⋂ n ∈ ({12, 42} : Finset ℕ), factorDifferenceSet n).Finite :=
(factorDifferenceSet_finite (by norm_num)).subset (Set.iInter₂_subset 12 (by simp))
have h2 : ({1, 11} : Set ℕ).ncard = 2 := Set.ncard_pair (by norm_num)
exact h2 ▸ Set.ncard_le_ncard hsub hfin
/--
Jiménez-Urroz [Ji99] proved this for $k=3$.
-/
@[category research solved, AMS 11]
theorem erdos_885.variants.k_eq_3 :
∃ Ns : Finset ℕ,
(∀ n ∈ Ns, 1 ≤ n) ∧
Ns.card = 3 ∧
(⋂ n ∈ Ns, factorDifferenceSet n).ncard ≥ 3 := by
refine ⟨{1936, 4900, 32400}, by decide, by decide, ?_⟩
have hsub : ({0, 105, 480} : Set ℕ) ⊆
⋂ n ∈ ({1936, 4900, 32400} : Finset ℕ), factorDifferenceSet n := by
simp only [Set.subset_def, Set.mem_insert_iff, Set.mem_singleton_iff, Set.mem_iInter,
Finset.mem_insert, Finset.mem_singleton]
rintro d (rfl | rfl | rfl) n (rfl | rfl | rfl)
· exact ⟨44, 44, by norm_num, by norm_num⟩
· exact ⟨70, 70, by norm_num, by norm_num⟩
· exact ⟨180, 180, by norm_num, by norm_num⟩
· exact ⟨16, 121, by norm_num, by norm_num⟩
· exact ⟨35, 140, by norm_num, by norm_num⟩
· exact ⟨135, 240, by norm_num, by norm_num⟩
· exact ⟨4, 484, by norm_num, by norm_num⟩
· exact ⟨10, 490, by norm_num, by norm_num⟩
· exact ⟨60, 540, by norm_num, by norm_num⟩
have hfin : (⋂ n ∈ ({1936, 4900, 32400} : Finset ℕ), factorDifferenceSet n).Finite :=
(factorDifferenceSet_finite (by norm_num)).subset (Set.iInter₂_subset 1936 (by simp))
have h3 : ({0, 105, 480} : Set ℕ).ncard = 3 :=
Set.ncard_eq_three.mpr ⟨0, 105, 480, by norm_num, by norm_num, by norm_num, rfl⟩
exact h3 ▸ Set.ncard_le_ncard hsub hfin
/--
Bremner [Br19] proved this for $k=4$.
-/
@[category research solved, AMS 11]
theorem erdos_885.variants.k_eq_4 :
∃ Ns : Finset ℕ,
(∀ n ∈ Ns, 1 ≤ n) ∧
Ns.card = 4 ∧
(⋂ n ∈ Ns, factorDifferenceSet n).ncard ≥ 4 := by
refine ⟨{65984625, 508032000, 1578963456, 2505664000}, by simp, by decide, ?_⟩
have hsub : (↑({5040, 27720, 68880, 164976} : Finset ℕ) : Set ℕ) ⊆
⋂ n ∈ ({65984625, 508032000, 1578963456, 2505664000} : Finset ℕ),
factorDifferenceSet n := by
intro d hd
simp only [Finset.coe_insert, Finset.coe_singleton, Set.mem_insert_iff,
Set.mem_singleton_iff] at hd
simp only [Set.mem_iInter, Finset.mem_insert, Finset.mem_singleton]
rintro n (rfl | rfl | rfl | rfl) <;> rcases hd with rfl | rfl | rfl | rfl
-- `N = b * (b + d)`, with `b` listed per `N` in the order `d = 5040, 27720, 68880, 164976`
exacts [mem_factorDifferenceSet_of_eq (b := 5985) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 2205) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 945) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 399) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 20160) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 12600) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 6720) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 3024) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 37296) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 28224) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 18144) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 9072) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 47600) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 38080) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 26320) (by norm_num),
mem_factorDifferenceSet_of_eq (b := 14000) (by norm_num)]
have hfin : (⋂ n ∈ ({65984625, 508032000, 1578963456, 2505664000} : Finset ℕ),
factorDifferenceSet n).Finite :=
(factorDifferenceSet_finite (by norm_num : 1 ≤ 65984625)).subset
(Set.iInter₂_subset 65984625 (by simp))
calc 4 = (↑({5040, 27720, 68880, 164976} : Finset ℕ) : Set ℕ).ncard := by
rw [Set.ncard_coe_finset]; decide
_ ≤ _ := Set.ncard_le_ncard hsub hfin
end Erdos885
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos885.erdos_885 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_885 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-885 nosorry submit erdos-885 nosorry/erdos-885/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-885-variants-k-eq-2 — known result
- erdos-885-variants-k-eq-3 — known result
- erdos-885-variants-k-eq-4 — 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.