Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:The 1-2-3 conjecture (Karoński–Łuczak–Thomason 2004; proved by Keusch 2024)

Source:Problems from papers
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

The 1-2-3 conjecture (Karoński–Łuczak–Thomason 2004), proved by Keusch (2024).

Every finite simple graph with no isolated edge admits an edge weighting with weights in {1,2,3}\{1, 2, 3\} such that adjacent vertices have different weighted degrees.

Subjects:Combinatorics (math.CO)
MSC classes:05
Cite as:NS.07461 [math.CO] · NS.07461v1 for this version
Declaration:OneTwoThreeConjecture.one_two_three_conjecture
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:38c90fd641c3699ed44884d3de881b426a5f9b108994ceb7b6d957790bcd0a67
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Paper/OneTwoThreeConjecture.lean

Formal statement

theorem one_two_three_conjecture :
    ∀ {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj],
      NoIsolatedEdge G →
      ∃ w : Sym2 V → ℕ, (∀ e ∈ G.edgeFinset, 1 ≤ w e ∧ w e ≤ 3) ∧
        IsVertexColouringWeighting G w
Show the full Challenge.lean (156 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# The 1-2-3 conjecture (Karoński–Łuczak–Thomason 2004; proved by Keusch 2024)

*References:*
* [KLT04] Karoński, M., Łuczak, T. and Thomason, A. (2004). "Edge weights and vertex colours."
  *J. Combin. Theory Ser. B* 91, pp. 151--157.
* [ABDMRT07] Addario-Berry, L., Dalal, K., McDiarmid, C., Reed, B. A. and Thomason, A.
  (2007). "Vertex-colouring edge-weightings." *Combinatorica* 27, pp. 1--12.
* [KKP10] Kalkowski, M., Karoński, M. and Pfender, F. (2010). "Vertex-coloring edge-weightings:
  towards the 1-2-3-conjecture." *J. Combin. Theory Ser. B* 100, pp. 347--349.
* [Ke24] Keusch, R. (2024). "A solution to the 1-2-3 conjecture."
  *J. Combin. Theory Ser. B* 166, pp. 183--202.
  [arXiv:2303.02611](https://arxiv.org/abs/2303.02611)
-/

@[expose] public section

open SimpleGraph Finset

namespace OneTwoThreeConjecture

variable {V : Type*} [Fintype V] [DecidableEq V]

/-- The **weighted degree** of `v` under the edge weighting `w`: the sum of the weights of the
edges incident to `v`. -/
def weightedDegree (G : SimpleGraph V) [DecidableRel G.Adj] (w : Sym2 V → ℕ) (v : V) : ℕ :=
  ∑ e ∈ G.incidenceFinset v, w e

/-- An edge weighting `w` of `G` is **vertex-colouring** if adjacent vertices receive different
weighted degrees. -/
def IsVertexColouringWeighting (G : SimpleGraph V) [DecidableRel G.Adj] (w : Sym2 V → ℕ) : Prop :=
  ∀ u v, G.Adj u v → weightedDegree G w u ≠ weightedDegree G w v

/-- `G` has **no isolated edge**: no edge has both endpoints of degree `1` (equivalently, no
connected component is a single edge). -/
def NoIsolatedEdge (G : SimpleGraph V) [DecidableRel G.Adj] : Prop :=
  ∀ u v, G.Adj u v → 2 ≤ G.degree u ∨ 2 ≤ G.degree v

/--
**The 1-2-3 conjecture (Karoński–Łuczak–Thomason 2004), proved by Keusch (2024).**

Every finite simple graph with no isolated edge admits an edge weighting with weights in
$\{1, 2, 3\}$ such that adjacent vertices have different weighted degrees.
-/
@[category research solved, AMS 5]
theorem one_two_three_conjecture :
    ∀ {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj],
      NoIsolatedEdge G →
      ∃ w : Sym2 V → ℕ, (∀ e ∈ G.edgeFinset, 1 ≤ w e ∧ w e ≤ 3) ∧
        IsVertexColouringWeighting G w := by
  sorry

/--
**Kalkowski–Karoński–Pfender (2010): weights in $\{1, \dots, 5\}$ suffice.**

*Reference:* [KKP10].
-/
@[category research solved, AMS 5, formal_proof using lean4 at
  "https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-13-000017"]
theorem one_two_three_conjecture.variants.one_to_five
    {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj]
    (hG : NoIsolatedEdge G) :
    ∃ w : Sym2 V → ℕ, (∀ e ∈ G.edgeFinset, 1 ≤ w e ∧ w e ≤ 5) ∧
      IsVertexColouringWeighting G w := by
  sorry

/--
**Addario-Berry–Dalal–McDiarmid–Reed–Thomason (2007): weights in $\{1, \dots, 30\}$ suffice.**

*Reference:* [ABDMRT07]; see also the introduction of [KKP10].
-/
@[category research solved, AMS 5, formal_proof using lean4 at
  "https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-13-000017"]
theorem one_two_three_conjecture.variants.one_to_thirty
    {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj]
    (hG : NoIsolatedEdge G) :
    ∃ w : Sym2 V → ℕ, (∀ e ∈ G.edgeFinset, 1 ≤ w e ∧ w e ≤ 30) ∧
      IsVertexColouringWeighting G w := by
  sorry

/--
**The hypothesis "no isolated edge" is necessary.**

A single edge `K₂` has no vertex-colouring edge weighting at all: both endpoints receive the
weight of the unique edge as their weighted degree.
-/
@[category research solved, AMS 5]
theorem one_two_three_conjecture.variants.isolated_edge_necessary :
    ¬ ∃ w : Sym2 (Fin 2) → ℕ, IsVertexColouringWeighting (completeGraph (Fin 2)) w := by
  rintro ⟨w, hw⟩
  refine hw 0 1 (by decide) ?_
  have h : ∀ v : Fin 2, (completeGraph (Fin 2)).incidenceFinset v = {s(0, 1)} := by
    intro v
    ext e
    rw [mem_incidenceFinset, Finset.mem_singleton]
    refine ⟨fun ⟨he, hv⟩ => ?_, fun he => ?_⟩
    · induction e with
      | h a b =>
        rw [mem_edgeSet, completeGraph_eq_top, top_adj] at he
        fin_cases a <;> fin_cases b <;> first | exact absurd rfl he | rfl | exact Sym2.eq_swap
    · subst he
      refine ⟨by rw [mem_edgeSet, completeGraph_eq_top, top_adj]; decide, ?_⟩
      fin_cases v <;> simp
  simp only [weightedDegree, h, Finset.sum_singleton]

/--
**Weights $\{1, 2\}$ do not suffice: the triangle.**

In `K₃` the three vertex sums are `a + b`, `a + c`, `b + c` for the three edge weights
`a, b, c`, and they are pairwise distinct only if `a, b, c` are, which is impossible with
two available weights. Hence the constant `3` in the conjecture cannot be lowered to `2`.
-/
@[category research solved, AMS 5]
theorem one_two_three_conjecture.variants.two_weights_insufficient :
    ¬ ∃ w : Sym2 (Fin 3) → ℕ, (∀ e ∈ (completeGraph (Fin 3)).edgeFinset, 1 ≤ w e ∧ w e ≤ 2) ∧
      IsVertexColouringWeighting (completeGraph (Fin 3)) w := by
  rintro ⟨w, hw, hcol⟩
  have h0 : (completeGraph (Fin 3)).incidenceFinset 0 = {s(0, 1), s(0, 2)} := by decide
  have h1 : (completeGraph (Fin 3)).incidenceFinset 1 = {s(0, 1), s(1, 2)} := by decide
  have h2 : (completeGraph (Fin 3)).incidenceFinset 2 = {s(0, 2), s(1, 2)} := by decide
  have e01 : s((0 : Fin 3), 1) ∈ (completeGraph (Fin 3)).edgeFinset := by decide
  have e02 : s((0 : Fin 3), 2) ∈ (completeGraph (Fin 3)).edgeFinset := by decide
  have e12 : s((1 : Fin 3), 2) ∈ (completeGraph (Fin 3)).edgeFinset := by decide
  have ha := hw _ e01
  have hb := hw _ e02
  have hc := hw _ e12
  have d01 := hcol 0 1 (by decide)
  have d02 := hcol 0 2 (by decide)
  have d12 := hcol 1 2 (by decide)
  simp only [weightedDegree, h0, h1, h2, Finset.sum_pair (by decide : s((0 : Fin 3), 1) ≠ s(0, 2)),
    Finset.sum_pair (by decide : s((0 : Fin 3), 1) ≠ s(1, 2)),
    Finset.sum_pair (by decide : s((0 : Fin 3), 2) ≠ s(1, 2))] at d01 d02 d12
  omega

end OneTwoThreeConjecture

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

nosorry fetch papers-onetwothreeconjecture
nosorry submit papers-onetwothreeconjecture nosorry/papers-onetwothreeconjecture/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.