A chess problem is an exercise in pure mathematics.