Open radeusgd opened 4 years ago
Another possible extension is adding some Lemmas as hints, so that when the goal looks like the result of some lemma it could be applied.
For now I haven't figured out how to do that reliably (Hint Immediate
doesn't seem to work, but maybe I used it wrong).
On another hand sometimes writing the used Lemma explicitly makes the proof clearer, so maybe overusing this is not the best idea either.
I have learnt I can also do auto using LemmaName
which adds temporarily a lemma to the hints database. Looks like a good intermediate solution - I explicitly state what lemma I use, but if possible, auto can do the manipulation automatically.
It seems useful to add constructors as 'hints' to the prover, so that the
auto
and other tactics can use them.For example:
When I have a goal
is_free_in x (Var x)
, normally I'd have to writeapply fv_var
, but after invoking theHint
command, I can just call auto. This is useful as I can call for example:induction something; auto
and have all the trivial branches dealt with in one line instead of looking for each rule separately.