I want a variant of erewrite
which asks for the hypothesis first, and then proceeds to the rewritten goal, rather than the other way round. Here is a small example:
Variable P : Prop.
Variable SomeProp: Prop -> Prop.
Lemma rewriter: forall (R: Prop), SomeProp R -> P = R.
Admitted.
Lemma useRewriter: P.
Proof.
intros.
erewrite rewriter.
(* Current goal state, ?R *)
(* I want SomeProp ?R first, not ?R *)
Abort.
I think SSR has some tactic like this, but I'm not able to find the correct one.
This is on the bug tracker as Premises of rewrite appear in different order.