Debian Codegraph @

engine/univMinim.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 Univ
12
13 (** Unordered pairs of universe levels (ie (u,v) = (v,u)) *)
14 module UPairSet : CSet.S with type elt = (Level.t * Level.t)
15
16 type extra = {
17 weak_constraints : UPairSet.t; (* weak equality constraints *)
18 above_prop : Level.Set.t;
19 }
20
21 val empty_extra : extra
22
23 val extra_union : extra -> extra -> extra
24
25 (** Simplification and pruning of constraints:
26 [normalize_context_set ctx us]
27
28 - Instantiate the variables in [us] with their most precise
29 universe levels respecting the constraints.
30
31 - Normalizes the context [ctx] w.r.t. equality constraints,
32 choosing a canonical universe in each equivalence class
33 (a global one if there is one) and transitively saturate
34 the constraints w.r.t to the equalities. *)
35
36 val normalize_context_set : UGraph.t -> Univ.ContextSet.t ->
37 UnivFlex.t (* The defined and undefined variables *) ->
38 extra ->
39 UnivFlex.t * Univ.ContextSet.t