aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/ltac/g_eqdecide.mlg
diff options
context:
space:
mode:
authorGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2018-07-05 11:58:25 +0200
committerGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2018-07-05 11:58:25 +0200
commit7413f8532879c64e05ee0e8ca16693d74fe84ab9 (patch)
treecbba113dc8270223e0c2762eb78b4bc737bb4f63 /plugins/ltac/g_eqdecide.mlg
parent90a4afc3742b31fc6ebbbbe4b5383663f65a5788 (diff)
parent1d6b4a6728066d0e684a4f996b6077018b79a620 (diff)
Merge PR #7979: TACTIC EXTEND in coqpp
Diffstat (limited to 'plugins/ltac/g_eqdecide.mlg')
-rw-r--r--plugins/ltac/g_eqdecide.mlg32
1 files changed, 32 insertions, 0 deletions
diff --git a/plugins/ltac/g_eqdecide.mlg b/plugins/ltac/g_eqdecide.mlg
new file mode 100644
index 000000000..e57afe3e3
--- /dev/null
+++ b/plugins/ltac/g_eqdecide.mlg
@@ -0,0 +1,32 @@
+(************************************************************************)
+(* * The Coq Proof Assistant / The Coq Development Team *)
+(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
+(* <O___,, * (see CREDITS file for the list of authors) *)
+(* \VV/ **************************************************************)
+(* // * This file is distributed under the terms of the *)
+(* * GNU Lesser General Public License Version 2.1 *)
+(* * (see LICENSE file for the text of the license) *)
+(************************************************************************)
+
+(************************************************************************)
+(* EqDecide *)
+(* A tactic for deciding propositional equality on inductive types *)
+(* by Eduardo Gimenez *)
+(************************************************************************)
+
+{
+
+open Eqdecide
+open Stdarg
+
+}
+
+DECLARE PLUGIN "ltac_plugin"
+
+TACTIC EXTEND decide_equality
+| [ "decide" "equality" ] -> { decideEqualityGoal }
+END
+
+TACTIC EXTEND compare
+| [ "compare" constr(c1) constr(c2) ] -> { compare c1 c2 }
+END