]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/tactics/tacticals.ml
split into two major parts:
[helm.git] / helm / ocaml / tactics / tacticals.ml
index d499acb9ad2cb8a1ed70119d05a6c629f659edc0..8414698e783f25c0a4da517720caa5602a52e0f9 100644 (file)
@@ -68,8 +68,8 @@ let rec try_tactics ~(tactics: (string * tactic) list) ~status =
         e ->
          match e with
             (Fail _)
-          | (CicTypeChecker.TypeCheckerFailure (CicTypeChecker.NotWellTyped _))
-          | (CicUnification.UnificationFailed) ->
+          | (CicTypeChecker.TypeCheckerFailure _)
+          | (CicUnification.UnificationFailure _) ->
               warn (
                 "Tacticals.try_tactics failed with exn: " ^
                 Printexc.to_string e);
@@ -222,7 +222,7 @@ let thens' ~start ~continuations ~status =
 let prova_tac =
  let apply_T_tac ~status:((proof,goal) as status) =
   let curi,metasenv,pbo,pty = proof in
-  let metano,context,gty = List.find (function (m,_,_) -> m=goal) metasenv in
+  let metano,context,gty = CicUtil.lookup_meta goal metasenv in
    let rel =
     let rec find n =
      function