summaryrefslogtreecommitdiff
path: root/contrib/cc/g_congruence.ml4
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cc/g_congruence.ml4')
-rw-r--r--contrib/cc/g_congruence.ml429
1 files changed, 29 insertions, 0 deletions
diff --git a/contrib/cc/g_congruence.ml4 b/contrib/cc/g_congruence.ml4
new file mode 100644
index 00000000..0bdf7608
--- /dev/null
+++ b/contrib/cc/g_congruence.ml4
@@ -0,0 +1,29 @@
+(************************************************************************)
+(* v * The Coq Proof Assistant / The Coq Development Team *)
+(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
+(* \VV/ **************************************************************)
+(* // * This file is distributed under the terms of the *)
+(* * GNU Lesser General Public License Version 2.1 *)
+(************************************************************************)
+
+(*i camlp4deps: "parsing/grammar.cma" i*)
+
+(* $Id: g_congruence.ml4 7734 2005-12-26 14:06:51Z herbelin $ *)
+
+open Cctac
+open Tactics
+open Tacticals
+
+(* Tactic registration *)
+
+TACTIC EXTEND cc
+ [ "congruence" ] -> [ tclORELSE
+ (tclTHEN (tclREPEAT introf) (cc_tactic []))
+ cc_fail ]
+END
+
+TACTIC EXTEND cc_with
+ [ "congruence" "with" ne_constr_list(l) ] -> [ tclORELSE
+ (tclTHEN (tclREPEAT introf) (cc_tactic l))
+ cc_fail]
+END