hash "_";;
let problem_file = ref "no-file-given";;
-let tptppath = ref "./";;
+let tptppath = ref "/";;
let seconds = ref 300;;
let fail_msg () =
("[path] TPTP lib root, default " ^ !tptppath);
"--timeout", Arg.Int (fun p -> seconds := p),
("[seconds] timeout, default " ^ string_of_int !seconds);
- ] (fun x -> problem_file := x) "matitaprover [problemfile]";
+ ] (fun x -> problem_file := x) "
+Matitaprover is the first order automatic prover that equips the
+Matita interactive theorem prover (http://matita.cs.unibo.it).
+
+Developed by A.Asperti, M.Denes and E.Tassi, released under GPL-2.1
+
+usage: matitaprover [options] problemfile";
let hypotheses, goals = Tptp_cnf.parse ~tptppath:!tptppath !problem_file in
let goal = match goals with [x] -> x | _ -> assert false in
- let module B : Terms.Blob with type t = leaf and type input = Ast.term = struct
+ let module B : Terms.Blob
+ with type t = leaf and type input = Ast.term = struct
type t = leaf
let eq a b = a == b
let compare (a,_) (b,_) = Pervasives.compare a b
(* HELPERS *)
let resolve ~tptppath s =
let resolved_name =
- if Filename.check_suffix s ".p" then
- (assert (String.length s > 5);
- let prefix = String.sub s 0 3 in
- tptppath ^ "/Problems/" ^ prefix ^ "/" ^ s)
- else
- tptppath ^ "/" ^ s
+ if tptppath = "/" then s else
+ if Filename.check_suffix s ".p" then
+ (assert (String.length s > 5);
+ let prefix = String.sub s 0 3 in
+ tptppath ^ "/Problems/" ^ prefix ^ "/" ^ s)
+ else
+ tptppath ^ "/" ^ s
in
if HExtlib.is_regular resolved_name then
resolved_name
+(*
+ ||M|| This file is part of HELM, an Hypertextual, Electronic
+ ||A|| Library of Mathematics, developed at the Computer Science
+ ||T|| Department, University of Bologna, Italy.
+ ||I||
+ ||T|| HELM is free software; you can redistribute it and/or
+ ||A|| modify it under the terms of the GNU General Public License
+ \ / version 2 or (at your option) any later version.
+ \ / This software is distributed as is, NO WARRANTY.
+ V_______________________________________________________________ *)
+
+(* $Id: orderings.ml 9869 2009-06-11 22:52:38Z denes $ *)
+
val parse:
tptppath:string -> string ->
(Ast.term * Ast.term) list * (Ast.term * Ast.term) list