X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=components%2Ftactics%2FproofEngineTypes.ml;h=56b4155ae041abeeaa5d3f7ea7ae781f0684d569;hb=2499f5fdcf4dbfecc6f4fafe925b24ae76f14be8;hp=68ea561f97988aa81c1cd614d66476971c227111;hpb=7f2444c2670cadafddd8785b687ef312158376b0;p=helm.git diff --git a/components/tactics/proofEngineTypes.ml b/components/tactics/proofEngineTypes.ml index 68ea561f9..56b4155ae 100644 --- a/components/tactics/proofEngineTypes.ml +++ b/components/tactics/proofEngineTypes.ml @@ -87,11 +87,18 @@ let conclusion_pattern t = exception Fail of string Lazy.t (** - calls the opaque tactic on the status, restoring the original - universe graph if the tactic Fails + calls the opaque tactic on the status *) let apply_tactic t status = - t status + let (uri,metasenv,bo,ty), gl = t status in + match + CicRefine.pack_coercion_obj + (Cic.CurrentProof ("",metasenv,Cic.Rel ~-1,ty,[],[])) + with + | Cic.CurrentProof (_,metasenv,_,ty,_,_) -> + (uri,metasenv,bo,ty), gl + | _ -> assert false +;; (** constraint: the returned value will always be constructed by Cic.Name **) type mk_fresh_name_type =