blob: 388763ed7a497a93ba5bdf92f760893139ad90cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)])).
|