summaryrefslogtreecommitdiff
path: root/contrib/cc/g_congruence.ml4
blob: 0bdf76085d64396cf360f83ba6ea1e869a318efa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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