aboutsummaryrefslogtreecommitdiff
path: root/src/Util/Tactics.v
diff options
context:
space:
mode:
authorGravatar Andres Erbsen <andreser@mit.edu>2017-02-11 21:59:58 -0500
committerGravatar Andres Erbsen <andreser@mit.edu>2017-03-02 13:37:14 -0500
commite8fab6b839e19da231333ca8173bbb2a3d8a4033 (patch)
treeb8128c428ed4b4e58211071b207859ec37999db1 /src/Util/Tactics.v
parentc56ca7b46711128f9287b5105a5b457ca09d4723 (diff)
split the algebra library; use fsatz more
Diffstat (limited to 'src/Util/Tactics.v')
-rw-r--r--src/Util/Tactics.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Util/Tactics.v b/src/Util/Tactics.v
index c83790acc..5f7ad65cc 100644
--- a/src/Util/Tactics.v
+++ b/src/Util/Tactics.v
@@ -28,6 +28,16 @@ Ltac contains search_for in_term :=
| appcontext[search_for] => idtac
end.
+Ltac debuglevel := constr:(0%nat).
+
+Ltac solve_debugfail tac :=
+ solve [tac] ||
+ let dbg := debuglevel in
+ match dbg with
+ | O => idtac
+ | _ => match goal with |- ?G => idtac "couldn't prove" G end
+ end.
+
Ltac set_evars :=
repeat match goal with
| [ |- appcontext[?E] ] => is_evar E; let e := fresh "e" in set (e := E)