diff options
| author | herbelin | 2002-01-24 14:11:56 +0000 |
|---|---|---|
| committer | herbelin | 2002-01-24 14:11:56 +0000 |
| commit | 678868fa553790aed94e68f77f340f407a48b3fd (patch) | |
| tree | 2aadec599bf170ddff6e46705957668e9a887382 | |
| parent | 92c7046e5349e3d98863af148ca451b81f819e3c (diff) | |
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
| -rw-r--r-- | tactics/inv.ml | 8 |
1 files 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 |
