Debian Codegraph @

plugins/cc/g_congruence.mlg

raw
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 {
12
13 open Ltac_plugin
14 open Cctac
15 open Stdarg
16
17 }
18
19 DECLARE PLUGIN "rocq-runtime.plugins.cc"
20
21 (* Tactic registration *)
22
23 TACTIC EXTEND cc
24 | [ "congruence" natural_opt(n) ] ->
25 { congruence_tac n [] }
26 | [ "congruence" natural_opt(n) "with" ne_constr_list(l) ] ->
27 { congruence_tac n l }
28 | [ "simple" "congruence" natural_opt(n) ] ->
29 { simple_congruence_tac n [] }
30 | [ "simple" "congruence" natural_opt(n) "with" ne_constr_list(l) ] ->
31 { simple_congruence_tac n l }
32 END
33
34 TACTIC EXTEND f_equal
35 | [ "f_equal" ] -> { f_equal }
36 END