Let’s say I have a fancy tactic that solves lemmas of a certain kind:
Ltac solveFancy :=
some_preparation;
repeat (first [important_step1 | important_step2];
some_cleanup);
solve_basecase.
Now I use this tactic to prove further lemmas of that kind, which I subsequently want to use in this tactic.
Lemma fancy3 := …. Proof. … Qed.
Ltac important_step3 := apply fancy3;[some|specific|stuff].
Now I could simply re-define Ltac solveFancy ::= …
and add important_step3
to the list, but that quickly gets old.
Is there a more elegant way of now extending the list of important_step
-tactics in solveFancy
? I am imagining something like:
Add Hint SolveFancy important_step3.