When there is an hypothesis with an equality, two tactics are proposed when clicking on the = sign: “Apply equality from left to right” and “Equality from right to left”. These tactics replace one side of the equality with the other one in the goal and the other hypotheses. Then, the equality remains in the hypotheses, but it is typically not needed anymore.
It would be simpler if some tactics could apply the equality and then hide the hypothesis.
Bugs: #818
Bugs: #825
Feature Requests: #401
Feature Requests: #402
Actually, it depends on the rewriting that is performed. For instance, if the used equality is
x = y + 1, then rewriting all occurrence ofxwithy + 1, then removing the equality is OK. On the other have, if we rewritey + 1withx, then it would be a bad idea to remove the equality. There might still be some occurrences ofythat have not been rewritten.I would thus propose to create a new level of the reasoner that removes (hides) the equality only when the rewritten expression is a bare identifier, and behaves as current otherwise.
This feature request has been implemented and merged in commit [79a6c5].
Related
Commit: [79a6c5]