Debian Codegraph @

engine/univSubst.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 Constr
12 open Univ
13 open Sorts
14
15 type 'a universe_map = 'a Level.Map.t
16 type universe_subst = Universe.t universe_map
17 type universe_subst_fn = Level.t -> Universe.t option
18 type universe_level_subst_fn = Level.t -> Level.t
19
20 type quality_subst = Quality.t QVar.Map.t
21 type quality_subst_fn = QVar.t -> Quality.t
22
23 val level_subst_of : universe_subst_fn -> universe_level_subst_fn
24 (** The resulting function must never be called on a level which would produce an algebraic. *)
25
26 val subst_univs_constraints : universe_subst_fn -> UnivConstraints.t -> UnivConstraints.t
27
28 (** Full universes substitutions into terms *)
29
30 val map_universes_opt_subst_with_binders
31 : ('a -> 'a)
32 -> ('a -> constr -> constr)
33 -> (Sorts.relevance -> Sorts.relevance)
34 -> quality_subst_fn
35 -> universe_subst_fn
36 -> 'a -> constr -> constr
37
38 val nf_evars_and_universes_opt_subst
39 : (existential -> constr option)
40 -> (Sorts.relevance -> Sorts.relevance)
41 -> quality_subst_fn
42 -> universe_subst_fn
43 -> constr -> constr
44 [@@ocaml.deprecated "(8.20) Use [UnivSubst.map_universes_opt_subst_with_binders]"]
45
46 val subst_univs_universe : universe_subst_fn -> Universe.t -> Universe.t
47
48 val pr_universe_subst : (Level.t -> Pp.t) -> universe_subst -> Pp.t
49
50 val enforce_eq : Universe.t constraint_function
51 val enforce_leq : Universe.t constraint_function