{
  "id": "7461",
  "ident": "NS.07461",
  "slug": "papers-onetwothreeconjecture",
  "title": "The 1-2-3 conjecture (Karoński–Łuczak–Thomason 2004; proved by Keusch 2024)",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "**The 1-2-3 conjecture (Karoński–Łuczak–Thomason 2004), proved by Keusch (2024).**\n\nEvery finite simple graph with no isolated edge admits an edge weighting with weights in\n$\\{1, 2, 3\\}$ such that adjacent vertices have different weighted degrees.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [],
  "collection": "papers",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OneTwoThreeConjecture.one_two_three_conjecture",
  "statement_lean": "theorem one_two_three_conjecture :\n    ∀ {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj],\n      NoIsolatedEdge G →\n      ∃ w : Sym2 V → ℕ, (∀ e ∈ G.edgeFinset, 1 ≤ w e ∧ w e ≤ 3) ∧\n        IsVertexColouringWeighting G w",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\n\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# The 1-2-3 conjecture (Karoński–Łuczak–Thomason 2004; proved by Keusch 2024)\n\n*References:*\n* [KLT04] Karoński, M., Łuczak, T. and Thomason, A. (2004). \"Edge weights and vertex colours.\"\n  *J. Combin. Theory Ser. B* 91, pp. 151--157.\n* [ABDMRT07] Addario-Berry, L., Dalal, K., McDiarmid, C., Reed, B. A. and Thomason, A.\n  (2007). \"Vertex-colouring edge-weightings.\" *Combinatorica* 27, pp. 1--12.\n* [KKP10] Kalkowski, M., Karoński, M. and Pfender, F. (2010). \"Vertex-coloring edge-weightings:\n  towards the 1-2-3-conjecture.\" *J. Combin. Theory Ser. B* 100, pp. 347--349.\n* [Ke24] Keusch, R. (2024). \"A solution to the 1-2-3 conjecture.\"\n  *J. Combin. Theory Ser. B* 166, pp. 183--202.\n  [arXiv:2303.02611](https://arxiv.org/abs/2303.02611)\n-/\n\n@[expose] public section\n\nopen SimpleGraph Finset\n\nnamespace OneTwoThreeConjecture\n\nvariable {V : Type*} [Fintype V] [DecidableEq V]\n\n/-- The **weighted degree** of `v` under the edge weighting `w`: the sum of the weights of the\nedges incident to `v`. -/\ndef weightedDegree (G : SimpleGraph V) [DecidableRel G.Adj] (w : Sym2 V → ℕ) (v : V) : ℕ :=\n  ∑ e ∈ G.incidenceFinset v, w e\n\n/-- An edge weighting `w` of `G` is **vertex-colouring** if adjacent vertices receive different\nweighted degrees. -/\ndef IsVertexColouringWeighting (G : SimpleGraph V) [DecidableRel G.Adj] (w : Sym2 V → ℕ) : Prop :=\n  ∀ u v, G.Adj u v → weightedDegree G w u ≠ weightedDegree G w v\n\n/-- `G` has **no isolated edge**: no edge has both endpoints of degree `1` (equivalently, no\nconnected component is a single edge). -/\ndef NoIsolatedEdge (G : SimpleGraph V) [DecidableRel G.Adj] : Prop :=\n  ∀ u v, G.Adj u v → 2 ≤ G.degree u ∨ 2 ≤ G.degree v\n\n/--\n**The 1-2-3 conjecture (Karoński–Łuczak–Thomason 2004), proved by Keusch (2024).**\n\nEvery finite simple graph with no isolated edge admits an edge weighting with weights in\n$\\{1, 2, 3\\}$ such that adjacent vertices have different weighted degrees.\n-/\n@[category research solved, AMS 5]\ntheorem one_two_three_conjecture :\n    ∀ {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj],\n      NoIsolatedEdge G →\n      ∃ w : Sym2 V → ℕ, (∀ e ∈ G.edgeFinset, 1 ≤ w e ∧ w e ≤ 3) ∧\n        IsVertexColouringWeighting G w := by\n  sorry\n\n/--\n**Kalkowski–Karoński–Pfender (2010): weights in $\\{1, \\dots, 5\\}$ suffice.**\n\n*Reference:* [KKP10].\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-13-000017\"]\ntheorem one_two_three_conjecture.variants.one_to_five\n    {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj]\n    (hG : NoIsolatedEdge G) :\n    ∃ w : Sym2 V → ℕ, (∀ e ∈ G.edgeFinset, 1 ≤ w e ∧ w e ≤ 5) ∧\n      IsVertexColouringWeighting G w := by\n  sorry\n\n/--\n**Addario-Berry–Dalal–McDiarmid–Reed–Thomason (2007): weights in $\\{1, \\dots, 30\\}$ suffice.**\n\n*Reference:* [ABDMRT07]; see also the introduction of [KKP10].\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-13-000017\"]\ntheorem one_two_three_conjecture.variants.one_to_thirty\n    {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj]\n    (hG : NoIsolatedEdge G) :\n    ∃ w : Sym2 V → ℕ, (∀ e ∈ G.edgeFinset, 1 ≤ w e ∧ w e ≤ 30) ∧\n      IsVertexColouringWeighting G w := by\n  sorry\n\n/--\n**The hypothesis \"no isolated edge\" is necessary.**\n\nA single edge `K₂` has no vertex-colouring edge weighting at all: both endpoints receive the\nweight of the unique edge as their weighted degree.\n-/\n@[category research solved, AMS 5]\ntheorem one_two_three_conjecture.variants.isolated_edge_necessary :\n    ¬ ∃ w : Sym2 (Fin 2) → ℕ, IsVertexColouringWeighting (completeGraph (Fin 2)) w := by\n  rintro ⟨w, hw⟩\n  refine hw 0 1 (by decide) ?_\n  have h : ∀ v : Fin 2, (completeGraph (Fin 2)).incidenceFinset v = {s(0, 1)} := by\n    intro v\n    ext e\n    rw [mem_incidenceFinset, Finset.mem_singleton]\n    refine ⟨fun ⟨he, hv⟩ => ?_, fun he => ?_⟩\n    · induction e with\n      | h a b =>\n        rw [mem_edgeSet, completeGraph_eq_top, top_adj] at he\n        fin_cases a <;> fin_cases b <;> first | exact absurd rfl he | rfl | exact Sym2.eq_swap\n    · subst he\n      refine ⟨by rw [mem_edgeSet, completeGraph_eq_top, top_adj]; decide, ?_⟩\n      fin_cases v <;> simp\n  simp only [weightedDegree, h, Finset.sum_singleton]\n\n/--\n**Weights $\\{1, 2\\}$ do not suffice: the triangle.**\n\nIn `K₃` the three vertex sums are `a + b`, `a + c`, `b + c` for the three edge weights\n`a, b, c`, and they are pairwise distinct only if `a, b, c` are, which is impossible with\ntwo available weights. Hence the constant `3` in the conjecture cannot be lowered to `2`.\n-/\n@[category research solved, AMS 5]\ntheorem one_two_three_conjecture.variants.two_weights_insufficient :\n    ¬ ∃ w : Sym2 (Fin 3) → ℕ, (∀ e ∈ (completeGraph (Fin 3)).edgeFinset, 1 ≤ w e ∧ w e ≤ 2) ∧\n      IsVertexColouringWeighting (completeGraph (Fin 3)) w := by\n  rintro ⟨w, hw, hcol⟩\n  have h0 : (completeGraph (Fin 3)).incidenceFinset 0 = {s(0, 1), s(0, 2)} := by decide\n  have h1 : (completeGraph (Fin 3)).incidenceFinset 1 = {s(0, 1), s(1, 2)} := by decide\n  have h2 : (completeGraph (Fin 3)).incidenceFinset 2 = {s(0, 2), s(1, 2)} := by decide\n  have e01 : s((0 : Fin 3), 1) ∈ (completeGraph (Fin 3)).edgeFinset := by decide\n  have e02 : s((0 : Fin 3), 2) ∈ (completeGraph (Fin 3)).edgeFinset := by decide\n  have e12 : s((1 : Fin 3), 2) ∈ (completeGraph (Fin 3)).edgeFinset := by decide\n  have ha := hw _ e01\n  have hb := hw _ e02\n  have hc := hw _ e12\n  have d01 := hcol 0 1 (by decide)\n  have d02 := hcol 0 2 (by decide)\n  have d12 := hcol 1 2 (by decide)\n  simp only [weightedDegree, h0, h1, h2, Finset.sum_pair (by decide : s((0 : Fin 3), 1) ≠ s(0, 2)),\n    Finset.sum_pair (by decide : s((0 : Fin 3), 1) ≠ s(1, 2)),\n    Finset.sum_pair (by decide : s((0 : Fin 3), 2) ≠ s(1, 2))] at d01 d02 d12\n  omega\n\nend OneTwoThreeConjecture\n",
  "statement_hash": "38c90fd641c3699ed44884d3de881b426a5f9b108994ceb7b6d957790bcd0a67",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}