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 842

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

Let GG be a graph on 3n3n vertices formed by taking nn vertex disjoint triangles and adding a Hamiltonian cycle (with all new edges) between these vertices. Does GG have chromatic number at most 33?

The answer is yes, proved by Fleischner and Stiebitz [FlSt92].

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

Formal statement

theorem erdos_842 :
    ∀ (V : Type) (G : SimpleGraph V) (n : ℕ), IsTrianglesPlusHamiltonianCycle G n →
      G.chromaticNumber ≤ 3
Show the full Challenge.lean (60 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 842

*References:*
- [erdosproblems.com/842](https://www.erdosproblems.com/842)
- [Er92b] Erdős, Paul, _Some of my favourite problems in various branches of combinatorics_.
  Matematiche (Catania) (1992), 231-240.
- [FlSt92] Fleischner, Herbert and Stiebitz, Michael, _A solution to a colouring problem of
  P. Erdős_. Discrete Math. (1992), 39--48.
-/

@[expose] public section

open SimpleGraph

namespace Erdos842

/-- `G` is a graph on `3n` vertices formed by taking `n` vertex-disjoint triangles `T` and adding
a Hamiltonian cycle `C` (with all new edges): `G = T ⊔ C` with `T` and `C` edge-disjoint. -/
def IsTrianglesPlusHamiltonianCycle {V : Type*} (G : SimpleGraph V) (n : ℕ) : Prop :=
  ∃ T C : SimpleGraph V, G = T ⊔ C ∧ Disjoint T C ∧
    (∃ e : V ≃ Fin n × Fin 3, ∀ u v, T.Adj u v ↔ u ≠ v ∧ (e u).1 = (e v).1) ∧
    ∃ e : Fin (3 * n) ≃ V, C = (cycleGraph (3 * n)).map e.toEmbedding

set_option linter.style.formal_proof_palomar false in
/--
Let $G$ be a graph on $3n$ vertices formed by taking $n$ vertex disjoint triangles and adding a
Hamiltonian cycle (with all new edges) between these vertices. Does $G$ have chromatic number at
most $3$?

The answer is yes, proved by Fleischner and Stiebitz [FlSt92].
-/
@[category research solved, question, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos842.lean#L46"]
theorem erdos_842 :
    ∀ (V : Type) (G : SimpleGraph V) (n : ℕ), IsTrianglesPlusHamiltonianCycle G n →
      G.chromaticNumber ≤ 3 := by
  sorry

end Erdos842

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

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