From cd9acfec55378cfe1651b910b93387724efe251d Mon Sep 17 00:00:00 2001 From: filliatr Date: Thu, 5 Jul 2001 14:41:37 +0000 Subject: correction bug Omega git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1826 85f007b7-540e-0410-9357-904b9bb8a0f7 --- contrib/omega/coq_omega.ml | 7 ++++--- library/declare.ml | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/contrib/omega/coq_omega.ml b/contrib/omega/coq_omega.ml index e17336a71a..7307075bea 100644 --- a/contrib/omega/coq_omega.ml +++ b/contrib/omega/coq_omega.ml @@ -1368,9 +1368,10 @@ let normalize_equation id flag theorem pos t t1 t2 (tactic,defs) = (clear [id]) in if tac <> [] then - ((id,((tclTHEN ((tclTHEN (shift_left) (mk_then tac))) - (intros_using [id])))) :: tactic, - compile id flag t' :: defs) + let id' = new_identifier () in + ((id',((tclTHEN ((tclTHEN (shift_left) (mk_then tac))) + (intros_using [id'])))) :: tactic, + compile id' flag t' :: defs) else (tactic,defs) diff --git a/library/declare.ml b/library/declare.ml index 5cdc2daa21..81021d1be5 100644 --- a/library/declare.ml +++ b/library/declare.ml @@ -426,9 +426,15 @@ let dirpath_of_global = function | IndRef (sp,_) -> dirpath sp | ConstructRef ((sp,_),_) -> dirpath sp +let is_section_variable = function + | VarRef _ -> true + | _ -> false + let is_global id = try let osp = Nametab.locate (make_qualid [] id) in + (* Compatibilité V6.3: Les variables de section de sont pas globales + not (is_section_variable osp) && *) list_prefix_of (dirpath_of_global osp) (Lib.cwd()) with Not_found -> false -- cgit v1.2.3