Debian Codegraph @

plugins/micromega/mutils.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 NumCompat
12
13 module ISet : sig
14 include CSet.S with type elt = int
15
16 val pp : out_channel -> t -> unit
17 end
18
19 module IMap : sig
20 include CMap.ExtS with type key = int and module Set := ISet
21
22 (** [from k m] returns the submap of [m] with keys greater or equal k *)
23 val from : key -> 'elt t -> 'elt t
24 end
25
26 module Cmp : sig
27 val compare_list : ('a -> 'b -> int) -> 'a list -> 'b list -> int
28 val compare_lexical : (unit -> int) list -> int
29 end
30
31 module Tag : sig
32 type t
33
34 val pp : out_channel -> t -> unit
35 val next : t -> t
36 val max : t -> t -> t
37 val from : int -> t
38 val to_int : t -> int
39 val compare : t -> t -> int
40 end
41
42 module TagSet : CSig.SetS with type elt = Tag.t
43
44 module McPrinter : sig
45 module Mc = Micromega
46 val pp_nat : out_channel -> Mc.nat -> unit
47 val pp_positive : out_channel -> Mc.positive -> unit
48 val pp_z : out_channel -> Mc.z -> unit
49 val pp_pol : (out_channel -> 'a -> unit) -> out_channel -> 'a Mc.pol -> unit
50 val pp_psatz : (out_channel -> 'a -> unit) -> out_channel -> 'a Mc.psatz -> unit
51 val pp_proof_term : out_channel -> Mc.zArithProof -> unit
52 end
53 val pp_list :
54 string -> (out_channel -> 'a -> unit) -> out_channel -> 'a list -> unit
55
56 module CamlToCoq : sig
57 val positive : int -> Micromega.positive
58 val bigint : Z.t -> Micromega.z
59 val n : int -> Micromega.n
60 val nat : int -> Micromega.nat
61 val q : Q.t -> Micromega.q
62 val index : int -> Micromega.positive
63 val z : int -> Micromega.z
64 val positive_big_int : Z.t -> Micromega.positive
65 end
66
67 module CoqToCaml : sig
68 val z_big_int : Micromega.z -> Z.t
69 val z : Micromega.z -> int
70 val q_to_num : Micromega.q -> Q.t
71 val positive : Micromega.positive -> int
72 val n : Micromega.n -> int
73 val nat : Micromega.nat -> int
74 val index : Micromega.positive -> int
75 end
76
77 module Hash : sig
78 val eq_op1 : Micromega.op1 -> Micromega.op1 -> bool
79 val eq_op2 : Micromega.op2 -> Micromega.op2 -> bool
80 val eq_positive : Micromega.positive -> Micromega.positive -> bool
81 val eq_z : Micromega.z -> Micromega.z -> bool
82 val eq_q : Micromega.q -> Micromega.q -> bool
83
84 val eq_pol :
85 ('a -> 'a -> bool) -> 'a Micromega.pol -> 'a Micromega.pol -> bool
86
87 val eq_pair :
88 ('a -> 'a -> bool) -> ('b -> 'b -> bool) -> 'a * 'b -> 'a * 'b -> bool
89
90 val hash_op1 : int -> Micromega.op1 -> int
91 val hash_pol : (int -> 'a -> int) -> int -> 'a Micromega.pol -> int
92
93 val hash_pair :
94 (int -> 'a -> int) -> (int -> 'b -> int) -> int -> 'a * 'b -> int
95
96 val hash_z : int -> Micromega.z -> int
97 val hash_q : int -> Micromega.q -> int
98 val hash_string : int -> string -> int
99 val hash_elt : ('a -> int) -> int -> 'a -> int
100 end
101
102 val all_pairs : ('a -> 'a -> 'b) -> 'a list -> 'b list
103 val is_sublist : ('a -> 'b -> bool) -> 'a list -> 'b list -> bool
104 val extract : ('a -> 'b option) -> 'a list -> ('b * 'a) option * 'a list
105 val extract_all : ('a -> 'b option) -> 'a list -> 'b list * 'a list
106
107 val iterate_until_stable : ('a -> 'a option) -> 'a -> 'a
108 val simplify : ('a -> 'a option) -> 'a list -> 'a list option
109
110 val saturate :
111 ('a -> 'b option) -> ('b * 'a -> 'a -> 'a option) -> 'a list -> 'a list
112
113 val app_funs : ('a -> 'b option) list -> 'a -> 'b option
114 val command : string -> string array -> 'a -> 'b