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 835

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

Does there exist a k>2k>2 such that the kk-sized subsets of {1,...,2k} can be coloured with k+1k+1 colours such that for every A⊂{1,…,2k}A\subset \{1,\ldots,2k\} with ∣A∣=k+1\lvert A\rvert=k+1 all k+1k+1 colours appear among the kk-sized subsets of AA?

Subjects:Combinatorics (math.CO)
MSC classes:05
Tags:question
Cite as:NS.03353 [math.CO] · NS.03353v1 for this version
Declaration:Erdos835.erdos_835
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:92bee1ceb275c030ab97d4f2616f6dc79260e2bf9583f19d1495669a60e583f6
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/835.lean

Formal statement

theorem erdos_835 : ∃ k > 2, Property k
Show the full Challenge.lean (176 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 835

*References:*
 - [erdosproblems.com/835](https://www.erdosproblems.com/835)
 - [MT25](https://github.com/QuanyuTang/erdos-problem-835/blob/main/On_Problem_835.pdf)
-/

@[expose] public section

open Finset SimpleGraph
open scoped Nat
namespace Erdos835

variable {n k : ℕ}

/--
The property that for a given $k$, the $k$-subsets of a $2k$-set can be colored with $k+1$ colors
such that any $(k+1)$-subset contains all colors.
-/
def Property (k : ℕ) : Prop :=
  let K := {s : Finset (Fin (2 * k)) // s.card = k}
  ∃ c : K → Fin (k + 1),
    ∀ A : Finset (Fin (2 * k)), A.card = k + 1 →
      (image c {s : K | s.val ⊂ A}) = (univ : Finset (Fin (k+1)))

/--
Does there exist a $k>2$ such that the $k$-sized subsets of {1,...,2k} can be coloured with
$k+1$ colours such that for every $A\subset \{1,\ldots,2k\}$ with $\lvert A\rvert=k+1$ all $k+1$
colours appear among the $k$-sized subsets of $A$?
-/
@[category research open, question, AMS 5]
theorem erdos_835 : ∃ k > 2, Property k := by
  sorry

@[category test, AMS 5,
  formal_proof using lean4 at
  "https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-01-000008"]
theorem property_iff_chromaticNumber (k : ℕ) (hk : 0 < k) :
    (J(2 * k, k).chromaticNumber = k + 1) ↔
    Property k := by
  sorry

/--
Alternative statement of Erdős Problem 835 using the chromatic number of the Johnson graph.
This is equivalent to asking whether there exists $k > 2$ such that the chromatic number of the
Johnson graph $J(2k, k)$ is $k+1$.
-/
@[category research open, question, AMS 5]
theorem erdos_835.variants.johnson : ∃ l,
    -- making sure k > 2
    letI k := l + 3
    J(2 * k, k).chromaticNumber = k + 1 := by
  sorry

/--
It is known that for $3 \leq k \leq 8$, the chromatic number of $J(2k, k)$ is greater than $k+1$,
see [Johnson graphs](https://aeb.win.tue.nl/graphs/Johnson.html).
-/
@[category research solved, AMS 5]
theorem johnsonGraph_2k_k_chromaticNumber_known_cases (k : ℕ) (hk : 3 ≤ k) (hk' : k ≤ 8) :
    J(2 * k, k).chromaticNumber > k + 1 := by
  sorry

/--
The smallest case not on this page is $k=9$:
But that one can be solved as well:
The chromatic number of $J(18, 9)$ is at least $11$.
-/
@[category research solved, AMS 5,
  formal_proof using lean4 at
  "https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-01-000008"]
theorem johnsonGraph_18_9_chromaticNumber : J(18, 9).chromaticNumber > 9 + 1 := by
  sorry

/-- Johnson's upper bound on the maximum size `A(n, d, w)` of a `n`-dimensional binary code of
distance `d` and weight `w` is as follows:
* If `d > 2 * w`, then `A(n, d, w) = 1`.
* If `d ≤ 2 * w`, then `A(n, d, w) ≤ ⌊n / w * A(n - 1, d, w - 1)⌋`. -/
def johnsonBound : ℕ → ℕ → ℕ → ℕ
  | 0, _d, _w => 1
  | _n, _d, 0 => 1
  | n + 1, d, w + 1 => if 2 * (w + 1) < d then 1 else (n + 1) * johnsonBound n d w / (w + 1)

/-- Johnson's bound for the independence number of the Johnson graph. -/
@[category research solved, AMS 5, formal_proof using lean4 at
  "https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-06-000013"]
lemma indepNum_johnson_le_johnsonBound : α(J(n, k)) ≤ johnsonBound n 4 k := sorry

/-- Johnson's bound for the chromatic number of the Johnson graph. -/
@[category research solved, AMS 5]
lemma div_johnsonBound_le_chromaticNum_johnson :
    ⌈(n.choose k / johnsonBound n 4 k : ℚ≥0)⌉₊ ≤ χ(J(n, k)) := by
  obtain hnk | hkn := lt_or_ge n k
  · simp [Nat.choose_eq_zero_of_lt, *]
  have : Nonempty {s : Finset (Fin n) // #s = k} := by
    simpa [Finset.Nonempty] using Finset.powersetCard_nonempty (s := .univ).2 <| by simpa
  grw [← card_div_indepNum_le_chromaticNumber, indepNum_johnson_le_johnsonBound] <;> simp

/-- It is known that for $3 \leq k \leq 8$, the chromatic number of $J(2k, k)$ is greater than
$k+1$, see [Johnson graphs](https://aeb.win.tue.nl/graphs/Johnson.html). -/
@[category research solved, AMS 5]
theorem chromaticNumber_johnson_2k_k_lower_bound (hk : 3 ≤ k) (hk' : k ≤ 8) :
    k + 1 < J(2 * k, k).chromaticNumber := by
  sorry

/-- It is also known that for $3 \leq k \leq 203$ odd, the chromatic number of $J(2k, k)$ is
greater than $k+1$, see [Johnson graphs](https://aeb.win.tue.nl/graphs/Johnson.html). -/
@[category research solved, AMS 5]
theorem chromaticNumber_johnson_2k_k_lower_bound_odd (hk : 3 ≤ k) (hk' : k ≤ 300) (hk_odd : Odd k) :
    k + 1 < J(2 * k, k).chromaticNumber := by
  grw [← div_johnsonBound_le_chromaticNum_johnson]
  decide +revert +kernel

/--
It can be seen that the chromatic number of $J(2k,k)$ is $>k+1$ for all odd $k>2$.
-/
@[category research solved, AMS 5,
  formal_proof using lean4 at
  "https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-01-000008"]
theorem johnson_chromaticNumber_odd (k : ℕ) (hk : 2 < k) (h : Odd k) :
    k + 1 < J(2 * k, k).chromaticNumber :=
  sorry

/--
Ma and Tang have proved that the chromatic number of $J(2k,k)$ is $>k+1$ for all $k>2$ not of the
form $p-1$ for prime $p$.
-/
@[category research solved, AMS 5,
  formal_proof using lean4 at
  "https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-01-000008"]
theorem johnson_chromaticNumber_composite (k : ℕ) (hk : 2 < k) (h : (k + 1).Composite) :
    k + 1 < J(2 * k, k).chromaticNumber :=
  sorry

/--
Ma and Tang's result implies the cases for odd $k$.
-/
@[category test, AMS 5]
theorem johnsonGraph_chromaticNumber_odd_of_johnson_chromaticNumber_composite :
    (type_of% johnson_chromaticNumber_composite) → (type_of% johnson_chromaticNumber_odd) := by
  intro h k hk h_odd
  refine h k hk ⟨by omega, ?_⟩
  rw [Nat.not_prime_iff_exists_dvd_lt (by omega)]
  use 2
  constructor
  · exact even_iff_two_dvd.mp (Odd.add_one h_odd)
  · omega

/-- Is the chromatic number of `J(2 * k, k)` always at least `k + 2`? -/
@[category research open, question, AMS 5]
theorem johnson_chromaticNumber :
    ∀ k ≥ 3, k + 2 ≤ J(2 * k, k).chromaticNumber :=
  sorry

end Erdos835

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

nosorry fetch erdos-835
nosorry submit erdos-835 nosorry/erdos-835/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.