File tree Expand file tree Collapse file tree 1 file changed +24
-15
lines changed Expand file tree Collapse file tree 1 file changed +24
-15
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ Require Import
22 MathClasses.misc.util.
33From Coq Require Export RelationClasses Relation_Definitions Lia.
44
5+ Module FastDoneTactic.
6+
57Ltac fast_done :=
68 solve
79 [ eassumption
@@ -11,18 +13,25 @@ Ltac fast_done :=
1113Tactic Notation "fast_by" tactic(tac) :=
1214 tac; fast_done.
1315
14- Ltac done :=
15- solve
16- [ repeat first
17- [ fast_done
18- | solve [trivial]
19- (* All the tactics below will introduce themselves anyway, or make no sense
20- for goals of product type. So this is a good place for us to do it. *)
21- | progress intros
22- | solve [symmetry; trivial]
23- | solve [apply not_symmetry; trivial]
24- | discriminate
25- | contradiction
26- | split
27- | match goal with H : ~ _ |- _ => case H; clear H; fast_done end ]
28- ].
16+ End FastDoneTactic.
17+
18+ Section DoneSection.
19+ Import FastDoneTactic.
20+
21+ Ltac done :=
22+ solve
23+ [ repeat first
24+ [ fast_done
25+ | solve [trivial]
26+ (* All the tactics below will introduce themselves anyway, or make no sense
27+ for goals of product type. So this is a good place for us to do it. *)
28+ | progress intros
29+ | solve [symmetry; trivial]
30+ | solve [apply not_symmetry; trivial]
31+ | discriminate
32+ | contradiction
33+ | split
34+ | match goal with H : ~ _ |- _ => case H; clear H; fast_done end ]
35+ ].
36+
37+ End DoneSection.
You can’t perform that action at this time.
0 commit comments