blob: c80ba16ec311eef46866d25620c84462061e21e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
(***********************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA-Rocquencourt & LRI-CNRS-Orsay *)
(* \VV/ *************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(***********************************************************************)
(* $Id$ *)
Ltac CCsolve :=
repeat
match goal with
| H:?X1 |- ?X2 =>
let Heq := fresh "Heq" in
(assert (Heq : X2 = X1); [ congruence | rewrite Heq; exact H ])
| H:?X1,G:(?X2 -> ?X3) |- _ =>
let Heq := fresh "Heq" in
(assert (Heq : X2 = X1);
[ congruence
| rewrite Heq in G; generalize (G H); clear G; intro G ])
end.
|