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 467

Source:Erdős Problems · erdosproblems.com/467
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

For every sufficiently large xx, choose a congruence class ap(modp)a_p\pmod p for each prime p≤xp\leq x. Can the primes be decomposed into two nonempty sets AA and BB such that every n<xn<x lies in a chosen class from AA and in a chosen class from BB?

This follows the interpretation on the Erdős Problems website, which notes that the original source omits some crucial quantifiers.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question
Cite as:NS.02218 [math.NT] · NS.02218v1 for this version
Declaration:Erdos467.erdos_467
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:4459085e4456715e35a5dad9efba25ae79edbf0ffd0821434f26854da6084c03
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/467.lean

Formal statement

theorem erdos_467 :
    ∀ᶠ x in atTop, ∃ residue : ℕ → ℕ, ∃ A B : Finset ℕ,
      PrimePartitionUpTo x A B ∧ CongruenceCover x residue A B
Show the full Challenge.lean (68 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 467

*Reference:* [erdosproblems.com/467](https://www.erdosproblems.com/467)
-/

@[expose] public section

namespace Erdos467

open Filter

/-- The finite set of primes at most $x$. -/
def primesUpTo (x : ℕ) : Finset ℕ :=
  (Finset.Icc 2 x).filter Nat.Prime

/-- The sets $A$ and $B$ form a disjoint nonempty decomposition of the primes up to $x$. -/
def PrimePartitionUpTo (x : ℕ) (A B : Finset ℕ) : Prop :=
  A.Nonempty ∧
    B.Nonempty ∧
      A ∪ B = primesUpTo x ∧
        A ∩ B = ∅

/--
The selected congruence classes cover every $n<x$ from both sides of the partition.
-/
def CongruenceCover (x : ℕ) (residue : ℕ → ℕ) (A B : Finset ℕ) : Prop :=
  ∀ n : ℕ,
    n < x →
      (∃ p : ℕ, p ∈ A ∧ n % p = residue p % p) ∧
        ∃ q : ℕ, q ∈ B ∧ n % q = residue q % q

/--
For every sufficiently large $x$, choose a congruence class $a_p\pmod p$ for each prime $p\leq x$.
Can the primes be decomposed into two nonempty sets $A$ and $B$ such that every $n<x$ lies in a
chosen class from $A$ and in a chosen class from $B$?

This follows the interpretation on the Erdős Problems website, which notes that the original
source omits some crucial quantifiers.
-/
@[category research open, question, AMS 11]
theorem erdos_467 :
    ∀ᶠ x in atTop, ∃ residue : ℕ → ℕ, ∃ A B : Finset ℕ,
      PrimePartitionUpTo x A B ∧ CongruenceCover x residue A B := by
  sorry

end Erdos467

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

nosorry fetch erdos-467
nosorry submit erdos-467 nosorry/erdos-467/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.