Proof by exhaustion and deduction