Debian Codegraph @

library/globnames.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 open Constr
13 open Mod_subst
14
15 val isVarRef : GlobRef.t -> bool
16 val isConstRef : GlobRef.t -> bool
17 val isIndRef : GlobRef.t -> bool
18 val isConstructRef : GlobRef.t -> bool
19
20 val canonical_gr : GlobRef.t -> GlobRef.t
21
22 val destVarRef : GlobRef.t -> variable
23 val destConstRef : GlobRef.t -> Constant.t
24 val destIndRef : GlobRef.t -> inductive
25 val destConstructRef : GlobRef.t -> constructor
26
27 val subst_global : substitution -> GlobRef.t -> GlobRef.t * constr UVars.univ_abstracted option
28 val subst_global_reference : substitution -> GlobRef.t -> GlobRef.t
29
30 (** {6 Extended global references } *)
31
32 type abbreviation = KerName.t
33
34 type extended_global_reference =
35 | TrueGlobal of GlobRef.t
36 | Abbrev of abbreviation
37
38 val abbreviation_eq : abbreviation -> abbreviation -> bool
39
40 module ExtRefOrdered : sig
41 type t = extended_global_reference
42 val compare : t -> t -> int
43 val equal : t -> t -> bool
44 val hash : t -> int
45 end
46
47 module ExtRefSet : CSig.USetS with type elt = extended_global_reference
48 module ExtRefMap : CMap.UExtS
49 with type key = extended_global_reference
50 and module Set := ExtRefSet
51
52 val subst_extended_reference : substitution -> extended_global_reference -> extended_global_reference
53
54 (** Names of custom entries *)
55 module CustomName = KerName