]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/tactics/negationTactics.ml
s/List.find.../CicUtil.lookup_meta/
[helm.git] / helm / ocaml / tactics / negationTactics.ml
index 25c29918fc157097b7cd1bf526dd77ff95073889..12848ad26eb728e63fba02787e6b330888510031 100644 (file)
@@ -29,7 +29,7 @@ let absurd_tac ~term ~status:((proof,goal) as status) =
   let module U = UriManager in
   let module P = PrimitiveTactics in
    let _,metasenv,_,_ = proof in
-    let _,context,ty = List.find (function (m,_,_) -> m=goal) metasenv in
+    let _,context,ty = CicUtil.lookup_meta goal metasenv in
      if ((CicTypeChecker.type_of_aux' metasenv context term) = (C.Sort C.Prop)) (* ma questo controllo serve?? *)
       then P.apply_tac 
               ~term:(C.Appl [(C.Const ((U.uri_of_string "cic:/Coq/Init/Logic/absurd.con") , [] )) ; term ; ty]) ~status