summaryrefslogtreecommitdiff
path: root/plugins/cc/g_congruence.mlg
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/cc/g_congruence.mlg')
-rw-r--r--plugins/cc/g_congruence.mlg33
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/cc/g_congruence.mlg b/plugins/cc/g_congruence.mlg
new file mode 100644
index 00000000..68505929
--- /dev/null
+++ b/plugins/cc/g_congruence.mlg
@@ -0,0 +1,33 @@
+(************************************************************************)
+(* * 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) *)
+(************************************************************************)
+
+{
+
+open Ltac_plugin
+open Cctac
+open Stdarg
+
+}
+
+DECLARE PLUGIN "cc_plugin"
+
+(* Tactic registration *)
+
+TACTIC EXTEND cc
+| [ "congruence" ] -> { congruence_tac 1000 [] }
+| [ "congruence" integer(n) ] -> { congruence_tac n [] }
+| [ "congruence" "with" ne_constr_list(l) ] -> { congruence_tac 1000 l }
+ |[ "congruence" integer(n) "with" ne_constr_list(l) ] ->
+ { congruence_tac n l }
+END
+
+TACTIC EXTEND f_equal
+| [ "f_equal" ] -> { f_equal }
+END