Skip to content
Snippets Groups Projects
Commit 97ddb1f1 authored by Ralf Jung's avatar Ralf Jung
Browse files

Change order of eassumption and reflexivity in fast_done

This has bothered me repeatedly in proofs, now I finally got around to fix it at the source
parent bd6ca353
No related branches found
No related tags found
No related merge requests found
...@@ -35,9 +35,12 @@ declarations as the ones above. *) ...@@ -35,9 +35,12 @@ declarations as the ones above. *)
Tactic Notation "intuition" := intuition auto. Tactic Notation "intuition" := intuition auto.
(* [done] can get slow as it calls "trivial". [fast_done] can solve way less (* [done] can get slow as it calls "trivial". [fast_done] can solve way less
goals, but it will also always finish quickly. *) goals, but it will also always finish quickly.
We do 'reflexivity' last because for goals of the form ?x = y, if
we have x = y in the context, we will typically want to use the
assumption and not reflexivity *)
Ltac fast_done := Ltac fast_done :=
solve [ reflexivity | eassumption | symmetry; eassumption ]. solve [ eassumption | symmetry; eassumption | reflexivity ].
Tactic Notation "fast_by" tactic(tac) := Tactic Notation "fast_by" tactic(tac) :=
tac; fast_done. tac; fast_done.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment