Debian Codegraph @

tactics/genredexpr.mli

raw symbols SCIP
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 (** Reduction expressions *)
12
13 (** The parsing produces initially a list of [red_atom] *)
14
15 type 'a red_atom =
16 | FBeta
17 | FMatch
18 | FFix
19 | FCofix
20 | FZeta
21 | FConst of 'a list
22 | FDeltaBut of 'a list
23 | FHead
24
25 (** This list of atoms is immediately converted to a [glob_red_flag] *)
26
27 type strength = Norm | Head
28 (* someday we may add NotUnderBinders *)
29
30 type 'a glob_red_flag = {
31 rStrength : strength;
32 rBeta : bool;
33 rMatch : bool;
34 rFix : bool;
35 rCofix : bool;
36 rZeta : bool;
37 rDelta : bool; (** true = delta all but rConst; false = delta only on rConst*)
38 rConst : 'a list
39 }
40
41 (** Generic kinds of reductions *)
42
43 type ('b,'c,'occvar) red_context = ('occvar Locus.occurrences_gen * ('b,'c) Util.union) option
44
45 type ('a, 'b, 'c, 'occvar, 'flags, 'usr) red_expr_gen0 =
46 | Red
47 | Hnf
48 | Simpl of 'flags * ('b, 'c, 'occvar) red_context
49 | Cbv of 'flags
50 | Cbn of 'flags
51 | Lazy of 'flags
52 | Unfold of ('occvar Locus.occurrences_gen * 'b) list
53 | Fold of 'a list
54 | Pattern of ('occvar Locus.occurrences_gen * 'a) list
55 | ExtraRedExpr of string
56 | CbvVm of ('b, 'c, 'occvar) red_context
57 | CbvNative of ('b, 'c, 'occvar) red_context
58 | UserRed of 'usr
59
60 type ('a, 'b, 'c, 'occvar, 'usr) red_expr_gen =
61 ('a, 'b, 'c, 'occvar, 'b glob_red_flag, 'usr) red_expr_gen0
62
63 open Constrexpr
64
65 type r_trm = constr_expr
66 type r_pat = constr_pattern_expr
67 type r_cst = Libnames.qualid or_by_notation
68
69 type 'usr raw_red_expr = (r_trm, r_cst, r_pat, int Locus.or_var, 'usr) red_expr_gen
70
71 type 'a and_short_name = 'a * Names.lident option
72
73 type g_trm = Genintern.glob_constr_and_expr
74 type g_pat = Genintern.glob_constr_pattern_and_expr
75 type g_cst = Evaluable.t and_short_name Locus.or_var
76
77 type 'usr glob_red_expr = (g_trm, g_cst, g_trm, int Locus.or_var, 'usr) red_expr_gen