diff options
author | 2004-01-13 15:22:04 +0000 | |
---|---|---|
committer | 2004-01-13 15:22:04 +0000 | |
commit | 0ea28e6a440e39f9f9645aa55afbfa38a0560b27 (patch) | |
tree | 0c211363f17f8b61de400d1cf65ffd88e33cbaea /toplevel/command.ml | |
parent | 04d270a46e8c481e0b1f21904c6b25f0b7359fa0 (diff) |
Reflet dans l'arbre de syntaxe de la difference syntaxique entre 'Variables a b:A' et 'Variables (a:A) (b:A)'
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@5198 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel/command.ml')
-rw-r--r-- | toplevel/command.ml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/toplevel/command.ml b/toplevel/command.ml index 44d1bfa1e..ea38340ce 100644 --- a/toplevel/command.ml +++ b/toplevel/command.ml @@ -147,9 +147,7 @@ let syntax_definition ident c = let assumption_message id = if_verbose message ((string_of_id id) ^ " is assumed") -let declare_assumption ident is_coe (local,kind) bl c = - let c = prod_rawconstr c bl in - let c = interp_type Evd.empty (Global.env()) c in +let declare_one_assumption is_coe (local,kind) c (_,ident) = let r = match local with | Local when Lib.sections_are_opened () -> let r = @@ -170,6 +168,11 @@ let declare_assumption ident is_coe (local,kind) bl c = ConstRef kn in if is_coe then Class.try_add_new_coercion r local +let declare_assumption idl is_coe k bl c = + let c = prod_rawconstr c bl in + let c = interp_type Evd.empty (Global.env()) c in + List.iter (declare_one_assumption is_coe k c) idl + (* 3a| Elimination schemes for mutual inductive definitions *) open Indrec |