Debian Codegraph @

plugins/micromega/sos_types.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 (* The type of positivstellensatz -- used to communicate with sos *)
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