From 678868fa553790aed94e68f77f340f407a48b3fd Mon Sep 17 00:00:00 2001 From: herbelin Date: Thu, 24 Jan 2002 14:11:56 +0000 Subject: Bug dépendances en les corps des let-in oubliées git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2427 85f007b7-540e-0410-9357-904b9bb8a0f7 --- tactics/inv.ml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tactics/inv.ml b/tactics/inv.ml index d639fcf5e7..d5f42aa8d9 100644 --- a/tactics/inv.ml +++ b/tactics/inv.ml @@ -207,11 +207,13 @@ let generalizeRewriteIntros tac depids id gls = let var_occurs_in_pf gl id = let env = pf_env gl in occur_var env id (pf_concl gl) or - List.exists (fun (_,t) -> occur_var env id t) (pf_hyps_types gl) + List.exists (occur_var_in_decl env id) (pf_hyps gl) let split_dep_and_nodep idl gl = - (List.filter (var_occurs_in_pf gl) idl, - List.filter (fun x -> not(var_occurs_in_pf gl x)) idl) + List.fold_right + (fun id (l1,l2) -> + if var_occurs_in_pf gl id then (id::l1,l2) else (l1,id::l2)) + idl ([],[]) (* invariant: ProjectAndApply is responsible for erasing the clause which it is given as input -- cgit v1.2.3