diff options
| author | barras | 2002-10-09 15:42:49 +0000 |
|---|---|---|
| committer | barras | 2002-10-09 15:42:49 +0000 |
| commit | 15da5979d322c5da5f251dfd92da26407df5e45f (patch) | |
| tree | e523eaad6988c9731fc8868bb20f234ce7934120 /tactics | |
| parent | d63861313993ed3d0a0108d659e0b08a215442c1 (diff) | |
retour en arriere concernant la recherche d'occurence modulo expansion des letins, ce qui conduisait a des comportement peu intuitifs. On priviligiera l'utilisation de la tactique Subst.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3110 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics')
| -rw-r--r-- | tactics/tactics.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml index 62c95b53fe..572933eef8 100644 --- a/tactics/tactics.ml +++ b/tactics/tactics.ml @@ -671,7 +671,7 @@ let letin_abstract id c occs gl = match occurrences_of_hyp hyp occs with | None -> raise Not_found | Some occ -> - let newdecl = subst_term_occ_decl env occ c d in + let newdecl = subst_term_occ_decl occ c d in if d = newdecl then if not (everywhere occs) then raise (RefinerError (DoesNotOccurIn (c,hyp))) @@ -690,7 +690,7 @@ let letin_abstract id c occs gl = let (depdecls,marks),_ = List.fold_left compute_marks (([],[]),None) ctxt' in let ccl = match occurrences_of_goal occs with | None -> pf_concl gl - | Some occ -> subst1 (mkVar id) (subst_term_occ env occ c (pf_concl gl)) + | Some occ -> subst1 (mkVar id) (subst_term_occ occ c (pf_concl gl)) in (depdecls,marks,ccl) |
