| 1 |
Ltac induction_last := |
| 2 |
let v := match goal with |
| 3 |
| |- forall x y, _ = _ -> _ => 1 |
| 4 |
| |- forall x y, _ -> _ = _ -> _ => 2 |
| 5 |
| |- forall x y, _ -> _ -> _ = _ -> _ => 3 |
| 6 |
end in |
| 7 |
induction v. |
| 8 |
|
| 9 |
Goal forall n m : nat, True -> n = m -> m = n. |
| 10 |
induction_last. |
| 11 |
reflexivity. |
| 12 |
Qed. |