Title:Erdős Problem 534
Statement:What is the largest possible subset which contains such that for all ?
Erdős conjectured that if (where are distinct primes) then the maximum is achieved by, for some , those integers in which are a multiple of at least one of .
This conjecture was proved by Ahlswede and Khachatrian [AhKh96].
| Subjects: | Combinatorics (math.CO); Number Theory (math.NT) |
| MSC classes: | 05, 11 |
| Tags: | formal_proof |
| Cite as: | NS.02396 [math.CO] · NS.02396v1 for this version |
| Declaration: | Erdos534.erdos_534 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | ba7dfd1aaec452ace64d069b3f5a5c5b341c8c8f2d79e112a8ae70ca892bf57d |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/534.lean |
Formal statement
theorem erdos_534 (N : ℕ) (hN : 2 ≤ N) :
∃ q ∈ N.primeFactors, IsAdmissible N (ahlswedeKhachatrian N q) ∧
maxCard N = (ahlswedeKhachatrian N q).cardShow the full Challenge.lean (76 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 534
*References:*
- [erdosproblems.com/534](https://www.erdosproblems.com/534)
- [Er73] Erdős, P., _Problems and results on combinatorial number theory_. A survey of
combinatorial theory (Proc. Internat. Sympos., Colorado State Univ., Fort Collins, Colo., 1971)
(1973), 117-138.
- [Er80] Erdős, Paul, _A survey of problems in combinatorial number theory_. Ann. Discrete Math.
(1980), 89-115.
- [AhKh96] Ahlswede, Rudolf and Khachatrian, Levon H., _Sets of integers with pairwise common
divisor and a factor from a specified set of primes_. Acta Arith. (1996), 259--276.
-/
@[expose] public section
namespace Erdos534
/-- A set `A ⊆ {1, …, N}` is *admissible* if it contains `N` and any two distinct elements
of `A` have a common factor. -/
def IsAdmissible (N : ℕ) (A : Finset ℕ) : Prop :=
A ⊆ Finset.Icc 1 N ∧ N ∈ A ∧ (A : Set ℕ).Pairwise fun a b ↦ 1 < Nat.gcd a b
/-- The largest size of an admissible subset of `{1, …, N}`. -/
noncomputable def maxCard (N : ℕ) : ℕ :=
sSup {n | ∃ A : Finset ℕ, IsAdmissible N A ∧ A.card = n}
/-- The prime factors `q₁ < ⋯ < qⱼ` of `N` which are at most `q`. -/
def primePrefix (N q : ℕ) : Finset ℕ := N.primeFactors.filter (· ≤ q)
/-- The Ahlswede–Khachatrian set associated to a prime factor `q` of `N`: those integers in
`[1, N]` which are a multiple of at least one of `2 q₁, …, 2 qⱼ, q₁ ⋯ qⱼ`, where
`q₁ < ⋯ < qⱼ = q` are the prime factors of `N` which are at most `q`. -/
def ahlswedeKhachatrian (N q : ℕ) : Finset ℕ :=
(Finset.Icc 1 N).filter fun m ↦
(∏ p ∈ primePrefix N q, p) ∣ m ∨ ∃ p ∈ primePrefix N q, 2 * p ∣ m
set_option linter.style.formal_proof_palomar false in
/--
What is the largest possible subset $A\subseteq\{1,\ldots,N\}$ which contains $N$ such that
$\mathrm{gcd}(a,b)>1$ for all $a\neq b\in A$?
Erdős conjectured that if $N=q_1^{k_1}\cdots q_r^{k_r}$ (where $q_1<\cdots <q_r$ are distinct
primes) then the maximum is achieved by, for some $1\leq j\leq r$, those integers in $[1,N]$
which are a multiple of at least one of $\{2q_1,\ldots,2q_j,q_1\cdots q_j\}$.
This conjecture was proved by Ahlswede and Khachatrian [AhKh96].
-/
@[category research solved, AMS 5 11, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos534.lean#L39"]
theorem erdos_534 (N : ℕ) (hN : 2 ≤ N) :
∃ q ∈ N.primeFactors, IsAdmissible N (ahlswedeKhachatrian N q) ∧
maxCard N = (ahlswedeKhachatrian N q).card := by
sorry
end Erdos534
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos534.erdos_534 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_534 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-534 nosorry submit erdos-534 nosorry/erdos-534/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.