X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FgTopLevel%2FinvokeTactics.ml;h=13dc83f1d02dbba6531d18db4e70d5f0fdbc3321;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=5f01eff9f489d967fc9526eb4add5c3b71be4e80;hpb=fe1e7e151af9690f312259a4c1c969a1388bee5f;p=helm.git diff --git a/helm/gTopLevel/invokeTactics.ml b/helm/gTopLevel/invokeTactics.ml index 5f01eff9f..13dc83f1d 100644 --- a/helm/gTopLevel/invokeTactics.ml +++ b/helm/gTopLevel/invokeTactics.ml @@ -61,6 +61,8 @@ module type Callbacks = (UriManager.uri * int * 'a) list -> (UriManager.uri * int * 'b list) list val mk_fresh_name_callback : ProofEngineTypes.mk_fresh_name_type + val mqi_handle : MQIConn.handle + val dbd:Mysql.dbd end ;; @@ -104,6 +106,7 @@ module type Tactics = val whd_in_scratch : unit -> unit val reduce_in_scratch : unit -> unit val simpl_in_scratch : unit -> unit + val auto : unit -> unit end module Make (C: Callbacks) : Tactics = @@ -166,7 +169,7 @@ module Make (C: Callbacks) : Tactics = in handle_refresh_exception (fun () -> - let metasenv',expr = + let metasenv',expr,ugraph = (*TASSI: FIX THIS*) (match term with | None -> () | Some t -> (C.term_editor ())#set_term t); @@ -232,7 +235,7 @@ module Make (C: Callbacks) : Tactics = List.find (function (m,_,_) -> m=metano) metasenv in canonical_context in - let (metasenv',expr) = + let (metasenv',expr,ugraph) =(* FIX THIS AND *) (C.term_editor ())#get_metasenv_and_term canonical_context metasenv in @@ -297,11 +300,13 @@ module Make (C: Callbacks) : Tactics = | _ -> HelmLogger.log (`Error (`T "Too many hypotheses selected")) + let intros = call_tactic (ProofEngine.intros ~mk_fresh_name_callback:C.mk_fresh_name_callback) let exact = call_tactic_with_input ProofEngine.exact let apply = call_tactic_with_input ProofEngine.apply + let auto = call_tactic (ProofEngine.auto ~dbd:C.dbd) let elimintrossimpl = call_tactic_with_input ProofEngine.elim_intros_simpl let elimtype = call_tactic_with_input ProofEngine.elim_type let whd = call_tactic_with_goal_inputs ProofEngine.whd