diff options
author | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2001-09-20 23:13:13 +0000 |
---|---|---|
committer | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2001-09-20 23:13:13 +0000 |
commit | e7466e052473f1996f5ec1aa4036dbe94146b9bd (patch) | |
tree | 87facbacde87d37308f2d5aafd2e5ed754c7d859 | |
parent | 9e1855ccee6e39a4b73fead883be5c92f301412a (diff) |
Correction (double) bug de Generalize Dependent
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2037 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r-- | tactics/tactics.ml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml index 11c82f518..11c37aa3b 100644 --- a/tactics/tactics.ml +++ b/tactics/tactics.ml @@ -677,12 +677,11 @@ let generalize_dep c gl = -> id::tothin | _ -> tothin in - let cl' = - List.fold_left - (fun c d -> mkNamedProd_or_LetIn d c) (pf_concl gl) to_quantify in + let cl' = List.fold_right mkNamedProd_or_LetIn to_quantify (pf_concl gl) in let cl'' = generalize_goal gl c cl' in + let args = instance_from_named_context to_quantify in tclTHEN - (apply_type cl'' (c::(List.map mkVar qhyps))) + (apply_type cl'' (c::args)) (thin (List.rev tothin')) gl |