Note 001
Invariants as Conservation Laws
A practical way to search for the quantity a legal move cannot change.
An invariant is a quantity or property preserved by every legal move. A monovariant is allowed to change, but only in one direction. Both turn a long search over possible move sequences into a short statement about what no sequence can do.
Start with the move, not the goal
When a puzzle asks whether one state can reach another, resist the urge to simulate immediately. Write down exactly what one legal move changes:
- Which objects are created or removed?
- Which positions change color, parity, or orientation?
- Is there a natural weighted sum?
- Can the move be expressed as addition in a small modulus?
The mutilated chessboard uses a two-color count. Conway's Soldiers uses an infinite weighted sum. The surface details differ, but the proof pattern is the same.
A tiny algebraic model
Suppose a state is a vector
Then
A useful checklist
| Symptom | Candidate tool |
|---|---|
| Pieces cover adjacent cells | Coloring or parity |
| Jumps consume and create pieces | Weighted sum |
| Moves rotate or swap objects | Permutation sign |
| Quantity appears to drift | Monovariant or potential function |
A good invariant does not describe how to win. It explains why an entire universe of attempted wins cannot work.
The creative step is choosing the representation in which the move becomes simple.