Debian Codegraph @

kernel/pConstraints.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 open Sorts
13
14 type t = ElimConstraints.t * UnivConstraints.t
15
16 type pconstraints = t
17 (** Stands for prenex sort poly constraints *)
18
19 val make : ElimConstraints.t -> UnivConstraints.t -> t
20
21 val empty : t
22 val is_empty : t -> bool
23
24 val equal : t -> t -> bool
25
26 val qualities : t -> ElimConstraints.t
27
28 val univs : t -> UnivConstraints.t
29
30 val of_qualities : ElimConstraints.t -> t
31
32 val of_univs : UnivConstraints.t -> t
33
34 val set_qualities : ElimConstraints.t -> t -> t
35
36 val set_univs : UnivConstraints.t -> t -> t
37
38 val add_quality : ElimConstraint.t -> t -> t
39
40 val add_univ : UnivConstraint.t -> t -> t
41
42 val union : t -> t -> t
43
44 val diff : t -> t -> t
45
46 val elements : t -> ElimConstraint.t list * UnivConstraint.t list
47
48 val filter_qualities : (ElimConstraints.elt -> bool) -> t -> t
49 val filter_univs : (UnivConstraints.elt -> bool) -> t -> t
50
51 val pr : (QVar.t -> Pp.t) -> (Level.t -> Pp.t) -> t -> Pp.t
52
53 val hcons : t Hashcons.f
54
55 type 'a constrained = 'a * t
56
57 val constraints_of : 'a constrained -> t
58
59 type 'a constraint_function = 'a -> 'a -> t -> t
60
61 val enforce_eq_univ : Level.t constraint_function
62
63 val enforce_leq_univ : Level.t constraint_function
64
65 val enforce_elim_to : Quality.t constraint_function
66
67 val fold : (ElimConstraint.t -> 'a -> 'a) * (UnivConstraint.t -> 'b -> 'b) -> t
68 -> ('a * 'b) -> ('a * 'b)