Debian Codegraph @

plugins/micromega/numCompat.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 module type ZArith = sig
12 type t
13
14 val zero : t
15 val one : t
16 val two : t
17 val add : t -> t -> t
18 val sub : t -> t -> t
19 val mul : t -> t -> t
20 val div : t -> t -> t
21 val neg : t -> t
22 val sign : t -> int
23 val equal : t -> t -> bool
24 val compare : t -> t -> int
25 val power_int : t -> int -> t
26 val quomod : t -> t -> t * t
27 val ppcm : t -> t -> t
28
29 (** [gcd x y] Greatest Common Divisor. Must always return a
30 positive number *)
31 val gcd : t -> t -> t
32
33 (** [lcm x y] Least Common Multiplier. Must always return a
34 positive number *)
35 val lcm : t -> t -> t
36
37 val to_string : t -> string
38 end
39
40 module type QArith = sig
41 module Z : ZArith
42
43 type t
44
45 val of_int : int -> t
46 val zero : t
47 val one : t
48 val two : t
49 val ten : t
50
51 (** -1 constant *)
52 val minus_one : t
53
54 module Notations : sig
55 val ( // ) : t -> t -> t
56 val ( +/ ) : t -> t -> t
57 val ( -/ ) : t -> t -> t
58 val ( */ ) : t -> t -> t
59 val ( =/ ) : t -> t -> bool
60 val ( <>/ ) : t -> t -> bool
61 val ( >/ ) : t -> t -> bool
62 val ( >=/ ) : t -> t -> bool
63 val ( </ ) : t -> t -> bool
64 val ( <=/ ) : t -> t -> bool
65 end
66
67 val compare : t -> t -> int
68 val make : Z.t -> Z.t -> t
69 val den : t -> Z.t
70 val num : t -> Z.t
71 val of_bigint : Z.t -> t
72 val to_bigint : t -> Z.t
73 val neg : t -> t
74
75 (* val inv : t -> t *)
76
77 val max : t -> t -> t
78 val min : t -> t -> t
79 val sign : t -> int
80 val abs : t -> t
81 val mod_ : t -> t -> t
82 val floor : t -> t
83 val ceiling : t -> t
84 val round : t -> t
85 val pow2 : int -> t
86 val pow10 : int -> t
87 val power : int -> t -> t
88 val to_string : t -> string
89 val of_string : string -> t
90 val to_float : t -> float
91 end
92
93 module Z : ZArith
94 module Q : QArith with module Z = Z