| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
open NumCompat |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
type vname = string |
| 16 |
|
| 17 |
type term = |
| 18 |
| Zero |
| 19 |
| Const of Q.t |
| 20 |
| Var of vname |
| 21 |
| Opp of term |
| 22 |
| Add of (term * term) |
| 23 |
| Sub of (term * term) |
| 24 |
| Mul of (term * term) |
| 25 |
| Pow of (term * int) |
| 26 |
|
| 27 |
val output_term : out_channel -> term -> unit |
| 28 |
|
| 29 |
type positivstellensatz = |
| 30 |
| Axiom_eq of int |
| 31 |
| Axiom_le of int |
| 32 |
| Axiom_lt of int |
| 33 |
| Rational_eq of Q.t |
| 34 |
| Rational_le of Q.t |
| 35 |
| Rational_lt of Q.t |
| 36 |
| Square of term |
| 37 |
| Monoid of int list |
| 38 |
| Eqmul of term * positivstellensatz |
| 39 |
| Sum of positivstellensatz * positivstellensatz |
| 40 |
| Product of positivstellensatz * positivstellensatz |
| 41 |
|
| 42 |
val output_psatz : out_channel -> positivstellensatz -> unit |