X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=ocaml%2Flambda4.mli;h=d6e42027db5c9545d6dcb1f7003933f897f13b2a;hb=aa3affff98814e20da10d5130b7dcefef9992f01;hp=c8a571ea825781a0e9db687b3c9c8e868cf54270;hpb=b609e8cfc37360748de4fcbc4e80bba556fadc87;p=fireball-separation.git diff --git a/ocaml/lambda4.mli b/ocaml/lambda4.mli index c8a571e..d6e4202 100644 --- a/ocaml/lambda4.mli +++ b/ocaml/lambda4.mli @@ -1,4 +1,23 @@ -type t -val magic: string list -> string list -> t -val magic_conv: div:(string option) -> conv:string list -> nums:string list -> string list -> t -val main: t list -> unit +type problem + +val label_of_problem : problem -> string + +type response = [ + | `CompleteSeparable of string + | `CompleteUnseparable of string + | `Uncomplete +] + +type result = [ + `Complete | `Uncomplete +] * [ + | `Separable of (int * Num.nf) list + | `Unseparable of string +] + +val problem_of: (string (* problem label *) +* Num.i_var option (* div *) +* Num.i_n_var list (* conv *) +* Num.i_n_var list (* ps *) +* string list (* names of free variables *)) -> problem * response +val solve: problem * response -> result