| 1 |
Require Export Crypto.Util.FixCoqMistakes. |
| 2 |
|
| 3 |
(** [revert_until H] reverts all hypotheses coming after [H] *) |
| 4 |
Ltac revert_until H := |
| 5 |
lazymatch goal with |
| 6 |
| [ H' : _ |- _ ] => tryif constr_eq H' H |
| 7 |
then idtac |
| 8 |
else (revert H'; revert_until H) |
| 9 |
end. |