Skip to content
Snippets Groups Projects
Commit 8fc099dc authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Add conditional `done` tactic.

parent 046dfe31
No related branches found
No related tags found
No related merge requests found
...@@ -72,6 +72,12 @@ Ltac done := ...@@ -72,6 +72,12 @@ Ltac done :=
Tactic Notation "by" tactic(tac) := Tactic Notation "by" tactic(tac) :=
tac; done. tac; done.
Ltac done_if b :=
match b with
| true => done
| false => idtac
end.
(** Aliases for trans and etrans that are easier to type *) (** Aliases for trans and etrans that are easier to type *)
Tactic Notation "trans" constr(A) := transitivity A. Tactic Notation "trans" constr(A) := transitivity A.
Tactic Notation "etrans" := etransitivity. Tactic Notation "etrans" := etransitivity.
......
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