Reflection Principle
test
test
Theory & Core Principles
Introduction & Core Concept
In many competition problems, you are presented with a system that changes according to specified rules (e.g. numbers written on a blackboard replaced by their difference, tokens moved on a grid, or chameleons changing colors). The question often asks whether a certain state can ever be reached.
Directly tracking all possible sequences of moves rapidly leads to exponential growth. The Invariance Principle instructs us to ignore the transient states and look for a property or quantity $I(S)$ of the system state $S$ that remains constant under every valid operation:
If the desired final state $S_{\text{target}}$ has $I(S_{\text{target}}) \neq I(S_{\text{initial}})$, then the target state is impossible to reach!
---
Standard Invariant Taxonomies
- 1Parity Invariants: Quantities whose oddness/evenness does not change under valid moves. (e.g. Replacing $a, b$ with $|a-b|$ preserves the parity of the sum $a+b$).
- 1Modular Residue Invariants: Quantities that remain invariant modulo $m$. (e.g. Modulo $3$ invariants in chameleon color-changing problems).
- 1Grid & Coloring Invariants: Assigning colors or algebraic values ($1, -1, i$) to grid cells to show certain tilings or configurations are impossible.
- 1Monovariants: Quantities that strictly increase or decrease with each step, proving that processes must terminate or cannot loop.
---
Standard 4-Step Execution Workflow
- 1Observe: Identify what changes and what stays the same after one step of the process.
- 1Define: Define a mathematical function $I(S)$ on the state (e.g. sum, product, parity, count modulo $k$).
- 1Verify: Verify that $I(S_{\text{after}}) = I(S_{\text{before}})$ for every allowed move.
- 1Conclude: Compare $I(S_{\text{initial}})$ with $I(S_{\text{target}})$. If they differ, the target state is impossible.
Worked Examples
Step-by-step solutions showing how to apply the technique.
Practice Problems
Try solving these problems on your own before checking the hints or solution.
.png)