Debian Codegraph @

plugins/nsatz/ideal.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 type metadata = {
12 name_var : string list;
13 }
14
15 module Monomial :
16 sig
17 type t
18 val repr : t -> int array
19 val make : int array -> t
20 end
21
22 module Make (P : Polynom.S) :
23 sig
24 (* Polynomials *)
25
26 type deg = int
27 type coef = P.t
28 type poly
29
30 val repr : poly -> (coef * Monomial.t) list
31 val polconst : int -> coef -> poly
32 val zeroP : poly
33 val gen : int -> int -> poly
34
35 val equal : poly -> poly -> bool
36
37 val plusP : poly -> poly -> poly
38 val oppP : poly -> poly
39 val multP : poly -> poly -> poly
40 val puisP : poly -> int -> poly
41
42 type certificate =
43 { coef : coef; power : int;
44 gb_comb : poly list list; last_comb : poly list }
45
46 val in_ideal : metadata -> deg -> poly list -> poly -> certificate
47
48 module Hashpol : Hashtbl.S with type key = poly
49
50 end
51
52 exception NotInIdeal
53
54 val lexico : bool ref