Hi, I am trying to write a tactic that does the following:
original
new
original
with new
; since original = new
, I suppose the simplifier can just prove itoriginal = new
from the premises.so my question is, how do I achieve step 3 and 4? I asked previously so people say that the simplifier is complete in solving commutative monoid. A few pointers leading me to the right direction would be appreciated.
Do you know either where in the goal original
will appear or what original
will be? Otherwise this will be really hard
yes I know its type and it's in a fixed position (more or less). In general, finding original
shouldn't be difficult and deriving new
is dead easy
or in a big picture, I want to replace the goal P original
with P new
without adding anything to the context
You will have to create the term original = new
and prove that separately. Then you can use unfold_thms_tac
to replace all occurrences of original
by new
.
Last updated: Dec 21 2024 at 16:20 UTC