Better clear
tactics #
We define two variants of the standard clear
tactic:
-
clear'
works likeclear
but the hypotheses that should be cleared can be given in any order. In contrast,clear
can fail if hypotheses that depend on each other are given in the wrong order, even if all of them could be cleared. -
clear_dependent
works 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.