3COL ∈ ⟹ 4COL ∈
Suppose ; take a legal . Define by Let .
- If : then , , and legality of in gives .
- Otherwise is a new edge, so or . Then has colour and the other has a colour in , so again .
So is a legal 4-colouring, i.e. .
, hence is NP-complete. The same idea gives for every constant .
On input :
In general, for : add new vertices, join them pairwise (a clique) and join each to every vertex of .
The vertex "burns" the fourth colour: it is adjacent to every original vertex, so no original vertex can take its colour.
Suppose ; take a legal . Define by Let .
So is a legal 4-colouring, i.e. .
Suppose ; take a legal . W.l.o.g. — colours are perfectly symmetric, and if got another colour, rename the two.
Define for , and check the range really is : let . Since was joined to every vertex of , we have , so . Hence for every .
Now let . No edge was removed, so too, and legality of in gives . So is a legal 3-colouring of , i.e. .
The construction adds one vertex and edges, so it is linear in the input size. The output exceeds the input by less than a factor of two plus a constant.
is NP-complete. With the picture is complete: easy, hard — a sharp jump at exactly one place.
The identity fails. If is -colourable it is in particular -colourable — the first direction works, which is exactly why one should be suspicious. The second collapses: is -colourable and certainly not -colourable, so but .
A new vertex with no edges is not enough. The step "for every , " rests entirely on the edge existing. Without those edges nothing stops a vertex of from taking colour . Counterexample: plus an isolated vertex is -colourable, while is not -colourable.
"Add a new vertex and colour it with a fourth colour" is a serious misstatement. The construction is the same, but the phrasing grants the algorithm access to a colouring. A reduction algorithm has — and can have — no access to a solution: it takes a graph and returns a graph. The colourings and appear only in the correctness proof, where, and only where, "a legal colouring exists" may be assumed.