Hadwiger Number Challenge

A formalization challenge in Lean 4. No sorries allowed.

1. About the Problem

The Hadwiger number h(G) of a graph G is the largest integer t such that the complete graph Kt is a minor of G. It is among the most natural measures of graph complexity, yet exact values remain unknown for surprisingly small cases.

Hadwiger's Conjecture (1943) states that every graph with no Kt minor is (t-1)-colorable. This is one of the most famous open problems in graph theory.

Status in Mathlib4

The Hadwiger number and Hadwiger's conjecture are not currently formalized in Mathlib4. Related concepts available: SimpleGraph, completeGraph, and basic graph coloring in Mathlib.Combinatorics.SimpleGraph.

2. The Challenge

The file HadwigerChallenge/Basic.lean contains two sorries:

  1. Define hadwigerNumber — the largest t such that Kt is a minor of G.
  2. Prove hadwiger_challenge — for parameter k = 2, show that every graph with Hadwiger number at most k is (k+1)-colorable.

In mathematical terms: h(G) ≤ 2 → G is 3-colorable. This is a special case of Hadwiger's conjecture.

Code authorship is open — human-written, AI-generated, or mixed.

3. Rules

4. Submit

The challenge file is preloaded below. Edit it directly, or paste your own code.

HadwigerChallenge/Basic.lean
1
Click "Check for Sorry" to scan.
Note: "Check for Sorry" is client-side only. For full compilation, use "Open in Playground" which sends your code to live.lean-lang.org.

5. Leaderboard

#ParticipantGraph ClassBoundLinesDate
1alice_proverK5-minor-freeh(G) ≤ 41272026-05-10
2graph_formalistPlanar graphsh(G) ≤ 42032026-05-08
3lean_bot_7Forestsh(G) ≤ 2892026-05-12