Debian Codegraph @

library/locality.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 (** * Managing locality *)
12
13 type import_status = ImportDefaultBehavior | ImportNeedQualified
14 type definition_scope = Discharge | Global of import_status
15
16 val default_scope : definition_scope
17 (** = [Global ImportDefaultBehavior] *)
18
19 (** * Positioning locality for commands supporting discharging and export
20 outside of modules *)
21
22 (** For commands whose default is to discharge and export:
23 Global is the default and is neutral;
24 Local in a section deactivates discharge,
25 Local not in a section deactivates export *)
26
27 val make_locality : bool option -> bool
28 val make_non_locality : bool option -> bool
29 val enforce_locality : bool option -> bool
30
31 (** For commands whose default is to not discharge but to export:
32 Global in sections forces discharge, Global not in section is the default;
33 Local in sections is the default, Local not in section forces non-export *)
34
35 val make_section_locality : bool option -> bool
36 val enforce_section_locality : bool option -> bool
37
38 (** * Positioning locality for commands supporting export but not discharge *)
39
40 (** For commands whose default is to export (if not in section):
41 Global in sections is forbidden, Global not in section is neutral;
42 Local in sections is the default, Local not in section forces non-export *)
43
44 val make_module_locality : bool option -> bool
45 val enforce_module_locality : bool option -> bool
46
47 (** Error if called with non-Local in sections. *)
48 val check_locality_nodischarge : Libobject.locality -> unit