Skip to content

Commit cd217a1

Browse files
committed
Hide fast_done tactic
1 parent b4d9a0e commit cd217a1

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

stdpp/stdpp_tactics.v

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ Require Import
22
MathClasses.misc.util.
33
From Coq Require Export RelationClasses Relation_Definitions Lia.
44

5+
Module FastDoneTactic.
6+
57
Ltac fast_done :=
68
solve
79
[ eassumption
@@ -11,18 +13,25 @@ Ltac fast_done :=
1113
Tactic 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.

0 commit comments

Comments
 (0)