| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 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 |
|
| 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 |