From 7208928de37565a9e38f9540f2bfb1e7a3b877e6 Mon Sep 17 00:00:00 2001 From: ppedrot Date: Mon, 17 Sep 2012 20:46:20 +0000 Subject: More cleaning on Utils and CList. Some parts of the code being peculiarly messy, I hope I did not introduce too many bugs. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15815 85f007b7-540e-0410-9357-904b9bb8a0f7 --- plugins/funind/indfun.ml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins/funind/indfun.ml') diff --git a/plugins/funind/indfun.ml b/plugins/funind/indfun.ml index 18b2bbe2f7..edc727a48f 100644 --- a/plugins/funind/indfun.ml +++ b/plugins/funind/indfun.ml @@ -97,11 +97,7 @@ let functional_induction with_clean c princl pat = if with_clean then let idl = - map_succeed - (fun id -> - if Idset.mem id old_idl then failwith "subst_and_reduce"; - id - ) + List.filter (fun id -> not (Idset.mem id old_idl)) (Tacmach.pf_ids_of_hyps g) in let flag = -- cgit v1.2.3