Better clear tactics #
We define two variants of the standard clear tactic:
-
clear'works likeclearbut the hypotheses that should be cleared can be given in any order. In contrast,clearcan fail if hypotheses that depend on each other are given in the wrong order, even if all of them could be cleared. -
clear_dependentworks likeclear'but also clears any hypotheses that depend on the given hypotheses.
Implementation notes #
The implementation (ab)uses the native revert_lst, which can figure out
dependencies between hypotheses. This implementation strategy was suggested by
Simon Hudon.