diff options
Diffstat (limited to 'contrib/dp/fol.mli')
-rw-r--r-- | contrib/dp/fol.mli | 79 |
1 files changed, 45 insertions, 34 deletions
diff --git a/contrib/dp/fol.mli b/contrib/dp/fol.mli index e42d1f224..5299f8ad7 100644 --- a/contrib/dp/fol.mli +++ b/contrib/dp/fol.mli @@ -1,37 +1,48 @@ -type typ = Base of string - | Arrow of typ * typ - | Tuple of typ list - -type term = Cst of int - | Db of int - | Tvar of string - | Plus of term * term - | Moins of term * term - | Mult of term * term - | Div of term * term - | App of string * (term list) -and - atom = Eq of term * term - | Le of term * term - | Lt of term * term - | Ge of term * term - | Gt of term * term - | Pred of string * (term list) -and - form = Fatom of atom - | Fvar of string - | Imp of form * form - | And of form * form - | Or of form * form - | Not of form - | Forall of form - | Exists of form - -type decl = - | Assert of form -(* | ...*) - -type query = decl list * form +type typ = + | Base of string + | Arrow of typ * typ + | Tuple of typ list +type term = + | Cst of int + | Db of int + | Tvar of string + | Plus of term * term + | Moins of term * term + | Mult of term * term + | Div of term * term + | App of string * (term list) +and atom = + | Eq of term * term + | Le of term * term + | Lt of term * term + | Ge of term * term + | Gt of term * term + | Pred of string * (term list) + +and form = + | Fatom of atom + | Fvar of string + | Imp of form * form + | And of form * form + | Or of form * form + | Not of form + | Forall of form + | Exists of form + | True + | False + +type hyp = + | Assert of string * form + | DeclVar of string * typ + | DeclProp of string + | DeclType of string + +type query = hyp list * form + + +(* prover result *) + +type prover_answer = Valid | Invalid | DontKnow | Timeout |