The subst
tactic is very useful in coq, it can remove useless variable names and make our context clear.
But when we have a = a1 , a1 = a2
in our context, it often keeps a2
instead of a
in the result, which makes our context ugly.
Of course you can rename
them one by one, but that makes subst
not as convenient as before.
So I'm wondering, is there an easy way to make subst
just keep the prettiest variable name, which can be just the minimum one in lexicographical order.