summaryrefslogtreecommitdiff
path: root/contrib7/cc/CCSolve.v
diff options
context:
space:
mode:
Diffstat (limited to 'contrib7/cc/CCSolve.v')
-rw-r--r--contrib7/cc/CCSolve.v20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib7/cc/CCSolve.v b/contrib7/cc/CCSolve.v
new file mode 100644
index 00000000..388763ed
--- /dev/null
+++ b/contrib7/cc/CCSolve.v
@@ -0,0 +1,20 @@
+(************************************************************************)
+(* 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 *)
+(************************************************************************)
+
+(* $Id: CCSolve.v,v 1.1.2.1 2004/07/16 19:30:16 herbelin Exp $ *)
+
+Tactic Definition CCsolve :=
+ Repeat (Match Context With
+ [ H: ?1 |- ?2] ->
+ Let Heq = FreshId "Heq" In
+ (Assert Heq:(?2==?1);[Congruence|(Rewrite Heq;Exact H)])
+ |[ H: ?1; G: ?2 -> ?3 |- ?] ->
+ Let Heq = FreshId "Heq" In
+ (Assert Heq:(?2==?1) ;[Congruence|
+ (Rewrite Heq in G;Generalize (G H);Clear G;Intro G)])).
+