X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaEngine.mli;h=a06c5117005489ee02c7fc0ff2404501081c8146;hb=5022202a659044d981833ba8665424a52684b07f;hp=c94f9748ef927c998a95e2185ac81e66160fe1f3;hpb=6ec0a251ac681afb3a305323097d72ab80d7da6b;p=helm.git diff --git a/helm/matita/matitaEngine.mli b/helm/matita/matitaEngine.mli index c94f9748e..a06c51170 100644 --- a/helm/matita/matitaEngine.mli +++ b/helm/matita/matitaEngine.mli @@ -24,32 +24,41 @@ *) exception Drop +exception UnableToInclude of string -val eval_string: (string -> unit) -> MatitaTypes.status ref -> string -> unit +type statement = + (CicNotationPt.term, GrafiteAst.obj, string) GrafiteAst.statement + +(* heavy checks slow down the compilation process but give you some interesting + * infos like if the theorem is a duplicate *) +val eval_string: + ?do_heavy_checks:bool -> + ?include_paths:string list -> + ?clean_baseuri:bool -> + MatitaTypes.status ref -> string -> unit val eval_from_stream: - (string -> unit) -> + ?do_heavy_checks:bool -> + ?include_paths:string list -> + ?clean_baseuri:bool -> MatitaTypes.status ref -> char Stream.t -> - (MatitaTypes.status -> - (CicAst.term,TacticAst.obj,string) TacticAst.statement -> unit) -> + (MatitaTypes.status -> statement -> unit) -> unit val eval_from_stream_greedy: - (string -> unit) -> + ?do_heavy_checks:bool -> + ?include_paths:string list -> + ?clean_baseuri:bool -> MatitaTypes.status ref-> char Stream.t -> - (MatitaTypes.status -> - (CicAst.term,TacticAst.obj,string) TacticAst.statement -> unit) -> + (MatitaTypes.status -> statement -> unit) -> unit val eval_ast: - (string -> unit) -> + ?do_heavy_checks:bool -> + ?include_paths:string list -> + ?clean_baseuri:bool -> MatitaTypes.status -> - (CicAst.term,TacticAst.obj,string) TacticAst.statement -> - MatitaTypes.status - -val eval: - (string -> unit) -> - MatitaTypes.status -> (Cic.term,Cic.obj,string) TacticAst.statement -> + statement -> MatitaTypes.status val initial_status: MatitaTypes.status lazy_t