Debian Codegraph @

kernel/conv_oracle.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 open Names
12
13 (** Evaluable references (whose transparency can be controlled). *)
14 type evaluable =
15 | EvalVarRef of Id.t
16 | EvalConstRef of Constant.t
17 | EvalProjectionRef of Projection.Repr.t
18
19 type oracle
20
21 val empty : oracle
22
23 (** Order on section paths for unfolding.
24 If [oracle_order kn1 kn2] is true, then unfold kn1 first.
25 Note: the oracle does not introduce incompleteness, it only
26 tries to postpone unfolding of "opaque" constants. *)
27 val oracle_order :
28 oracle -> bool -> evaluable option -> evaluable option -> bool
29
30 (** Priority for the expansion of constant in the conversion test.
31 * Higher levels means that the expansion is less prioritary.
32 * (And Expand stands for -oo, and Opaque +oo.)
33 * The default value (transparent constants) is [Level 0].
34 *)
35 type level = Expand | Level of int | Opaque
36 val pr_level : level -> Pp.t
37 val transparent : level
38
39 (** Check whether a level is transparent *)
40 val is_transparent : level -> bool
41
42 val get_strategy : oracle -> evaluable -> level
43
44 (** Sets the level of a constant.
45 * Level of RelKey constant cannot be set. *)
46 val set_strategy : oracle -> evaluable -> level -> oracle
47
48 (** Fold over the non-transparent levels of the oracle. Order unspecified. *)
49 val fold_strategy : (evaluable -> level -> 'a -> 'a) -> oracle -> 'a -> 'a
50
51 val get_transp_state : oracle -> TransparentState.t