diff options
author | coq <coq@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2002-08-02 17:17:42 +0000 |
---|---|---|
committer | coq <coq@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2002-08-02 17:17:42 +0000 |
commit | 12965209478bd99dfbe57f07d5b525e51b903f22 (patch) | |
tree | 36a7f5e4802cd321caf02fed0be8349100be09fb /kernel/cooking.ml | |
parent | 8b26fd6ba739d4f49fae99ed764b086022e44b50 (diff) |
Modules dans COQ\!\!\!\!
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2957 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/cooking.ml')
-rw-r--r-- | kernel/cooking.ml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/cooking.ml b/kernel/cooking.ml index 0313d4d46..616be45f1 100644 --- a/kernel/cooking.ml +++ b/kernel/cooking.ml @@ -81,13 +81,13 @@ let modify_opers replfun (constl,indl,cstrl) = with | Not_found -> c') - | Const sp -> + | Const kn -> (try - (match List.assoc sp constl with + (match List.assoc kn constl with | NOT_OCCUR -> failure () | DO_ABSTRACT (oper',abs_vars) -> mkApp (mkConst oper', abs_vars) - | DO_REPLACE cb -> substrec (replfun (sp,cb))) + | DO_REPLACE cb -> substrec (replfun (kn,cb))) with | Not_found -> c') @@ -98,11 +98,11 @@ let modify_opers replfun (constl,indl,cstrl) = let expmod_constr modlist c = let simpfun = if modlist = ([],[],[]) then fun x -> x else nf_betaiota in - let expfun (sp,cb) = + let expfun (kn,cb) = if cb.const_opaque then errorlabstrm "expmod_constr" (str"Cannot unfold the value of " ++ - str(string_of_path sp) ++ spc () ++ + str(string_of_kn kn) ++ spc () ++ str"You cannot declare local lemmas as being opaque" ++ spc () ++ str"and then require that theorems which use them" ++ spc () ++ str"be transparent"); |