leanprover-community / aesop

White-box automation for Lean 4
Apache License 2.0
155 stars 25 forks source link

Don't use implDetail hypotheses #108

Open JLimperg opened 4 months ago

JLimperg commented 4 months ago

revert may revert implDetail hypotheses if they depend on one of the (regular) hypotheses to be reverted. As a result, tactics which are implemented in terms of revert, such as subst, can inadvertently turn implDetail hypotheses into regular hypotheses. I don't expect this to get fixed in core since core doesn't use implDetail hypotheses in this way, so we should make sure that rules never receive goals with implDetail hypotheses.