diff options
author | Samuel Mimram <samuel.mimram@ens-lyon.org> | 2004-07-28 21:54:47 +0000 |
---|---|---|
committer | Samuel Mimram <samuel.mimram@ens-lyon.org> | 2004-07-28 21:54:47 +0000 |
commit | 6b649aba925b6f7462da07599fe67ebb12a3460e (patch) | |
tree | 43656bcaa51164548f3fa14e5b10de5ef1088574 /contrib7/cc/CCSolve.v |
Imported Upstream version 8.0pl1upstream/8.0pl1
Diffstat (limited to 'contrib7/cc/CCSolve.v')
-rw-r--r-- | contrib7/cc/CCSolve.v | 20 |
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)])). + |