X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Ftactics%2FproofEngineStructuralRules.ml;h=20b0f21c9f307f0c8f9f05042f3f6aa4147f3f8d;hb=bb236c2ac110124de92fa2d0fb2882d273a7f7eb;hp=07ddf3a9ea4c77c430f3fe5c00d163e6abda76ee;hpb=265cf771fbfe217b5f274b999fc3ad887683a09a;p=helm.git diff --git a/helm/ocaml/tactics/proofEngineStructuralRules.ml b/helm/ocaml/tactics/proofEngineStructuralRules.ml index 07ddf3a9e..20b0f21c9 100644 --- a/helm/ocaml/tactics/proofEngineStructuralRules.ml +++ b/helm/ocaml/tactics/proofEngineStructuralRules.ml @@ -25,7 +25,7 @@ open ProofEngineTypes -let clearbody ~hyp ~status:(proof, goal) = +let clearbody ~hyp (proof, goal) = let module C = Cic in match hyp with None -> assert false @@ -33,7 +33,7 @@ let clearbody ~hyp ~status:(proof, goal) = | Some (_, C.Decl _) -> raise (Fail "No Body To Clear") | Some (n_to_clear_body, C.Def (term,None)) as hyp_to_clear_body -> let curi,metasenv,pbo,pty = proof in - let metano,_,_ = List.find (function (m,_,_) -> m=goal) metasenv in + let metano,_,_ = CicUtil.lookup_meta goal metasenv in let string_of_name = function C.Name n -> n @@ -91,14 +91,14 @@ let clearbody ~hyp ~status:(proof, goal) = in (curi,metasenv',pbo,pty), [goal] -let clear ~hyp:hyp_to_clear ~status:(proof, goal) = +let clear ~hyp:hyp_to_clear (proof, goal) = let module C = Cic in match hyp_to_clear with None -> assert false | Some (n_to_clear, _) -> let curi,metasenv,pbo,pty = proof in let metano,context,ty = - List.find (function (m,_,_) -> m=goal) metasenv + CicUtil.lookup_meta goal metasenv in let string_of_name = function