Debian Codegraph @

kernel/redFlags.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 (** Delta implies all consts (both global (= by [kernel_name]) and local
12 (= by [Rel] or [Var])), all evars, and letin's. Rem: reduction of a
13 Rel/Var bound to a term is Delta, but reduction of a LetIn expression
14 is Letin reduction *)
15
16 (** Set of reduction kinds. *)
17 type reds
18
19 (** Reduction kind. *)
20 type red_kind
21
22 val fBETA : red_kind
23 val fDELTA : red_kind
24 val fMATCH : red_kind
25 val fFIX : red_kind
26 val fCOFIX : red_kind
27 val fZETA : red_kind
28 val fCONST : Names.Constant.t -> red_kind
29 val fPROJ : Names.Projection.Repr.t -> red_kind
30 val fVAR : Names.Id.t -> red_kind
31
32 (** No reduction at all *)
33 val no_red : reds
34
35 (** Adds a reduction kind to a set *)
36 val red_add : reds -> red_kind -> reds
37
38 (** Removes a reduction kind from a set *)
39 val red_sub : reds -> red_kind -> reds
40
41 (** Adds a list of reduction kind to a set *)
42 val red_add_list : reds -> red_kind list -> reds
43
44 (** Removes a list of reduction kind from a set *)
45 val red_sub_list : reds -> red_kind list -> reds
46
47 (** Adds a reduction kind to a set *)
48 val red_add_transparent : reds -> TransparentState.t -> reds
49
50 (** Retrieve the transparent state of the reduction flags *)
51 val red_transparent : reds -> TransparentState.t
52
53 (** Build a reduction set from scratch = iter [red_add] on [no_red] *)
54 val mkflags : red_kind list -> reds
55
56 (** Tests if a reduction kind is set *)
57 val red_set : reds -> red_kind -> bool
58
59 (** This tests if the projection is in unfolded state already or is unfodable
60 due to delta. *)
61 val red_projection : reds -> Names.Projection.t -> bool
62
63 (* These flags do not contain eta *)
64 val all : reds
65 val allnolet : reds
66 val beta : reds
67 val betadeltazeta : reds
68 val betaiota : reds
69 val betaiotazeta : reds
70 val betazeta : reds
71 val delta : reds
72 val zeta : reds
73 val nored : reds