diff options
| author | herbelin | 2007-11-08 22:22:16 +0000 |
|---|---|---|
| committer | herbelin | 2007-11-08 22:22:16 +0000 |
| commit | c54142e48402d36f0b69239612bf04c1e5bd9ee4 (patch) | |
| tree | d5c4a6d787f2fe6f8af7bbcfde2ec5ea533bb107 /contrib/subtac/subtac_command.ml | |
| parent | 8a51418e76da874843d6b58b6615dc12a82e2c0a (diff) | |
Prise en compte des notations "alias" dans la globalisation des coercions.
Au passage, un peu plus de standardisation des noms de fonctions de
globalisation
Principe de base :
locate_foo : qualid -> foo (échoue avec Not_found)
global : reference -> global_reference (échoue avec UserError)
global_of_foo : foo -> global_reference (échoue avec UserError)
f_with_alias : se comporte comme f mais prenant aussi en compte les
notations de la forme "Notation id:=ref"
Principale exception :
locate, au lieu de locate_global
locate_global_with_alias, qui prend en entrée un "qualid located"
Restent beaucoup de fonctions qui pourraient utiliser
global_with_alias au lieu de global, notamment dans contribs.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10305 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/subtac/subtac_command.ml')
| -rw-r--r-- | contrib/subtac/subtac_command.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/subtac/subtac_command.ml b/contrib/subtac/subtac_command.ml index 9cbfb02464..d7d304279a 100644 --- a/contrib/subtac/subtac_command.ml +++ b/contrib/subtac/subtac_command.ml @@ -287,7 +287,7 @@ let build_wellfounded (recname, n, bl,arityc,body) r measure notation boxed = let fix_def = match measure_fn with None -> - mkApp (constr_of_reference (Lazy.force fix_sub_ref), + mkApp (constr_of_global (Lazy.force fix_sub_ref), [| argtyp ; wf_rel ; make_existential dummy_loc ~opaque:false env isevars wf_proof ; @@ -295,7 +295,7 @@ let build_wellfounded (recname, n, bl,arityc,body) r measure notation boxed = lift lift_cst intern_body_lam |]) | Some f -> lift (succ after_length) - (mkApp (constr_of_reference (Lazy.force fix_measure_sub_ref), + (mkApp (constr_of_global (Lazy.force fix_measure_sub_ref), [| argtyp ; f ; lift lift_cst prop ; |
