For the conclusion is immediate, so suppose and index the terms of an arithmetic progression by . There are only finitely many equivalence relations on this index set. Consequently, recording which terms have equal colours produces a finite colouring of the positive parameter pairs , even though the original colouring need not be finite.
We use the Gallai theorem for an integer lattice in this form: a finite colouring of the positive integer lattice contains a monochromatic homothetic copy of any prescribed finite integer pattern. Patterns with negative coordinates are allowed here by first translating them into the positive quadrant; the translation is absorbed into the base point of the resulting copy.
Consider the finite pattern
The Gallai theorem for an integer lattice supplies integers and such that every point of lies in the positive quadrant and has the same equality equivalence relation . If has only singleton classes, any parameter pair in this copy gives an arithmetic progression whose colours are pairwise distinct, so the original colouring is injective on it.
Otherwise choose with . For every , the parameter pair
has relation . Its terms at indices and are therefore equally coloured. But these terms simplify to
Thus for every . Fixing proves that all have the same colour. Every is positive, because it is a term of one of the positive-parameter progressions above, and the common difference is positive. Hence is a monochromatic arithmetic progression of length .
The canonical arithmetic progression dichotomy is therefore constant or injective on an arithmetic progression of the prescribed length. The key point is that one equal-colour index pair has been made to vary independently over two complete progressions; a merely monochromatic block of parameter pairs would not by itself give this conclusion.