From 15da5979d322c5da5f251dfd92da26407df5e45f Mon Sep 17 00:00:00 2001 From: barras Date: Wed, 9 Oct 2002 15:42:49 +0000 Subject: 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 --- tactics/tactics.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tactics') 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) -- cgit v1.2.3