diff options
| author | letouzey | 2011-10-11 09:06:05 +0000 |
|---|---|---|
| committer | letouzey | 2011-10-11 09:06:05 +0000 |
| commit | e79b800bec660dc2724fa70c33f4e435ddbf885c (patch) | |
| tree | 79e24c31e9c2319649b7872b1bcb0ad6867afe09 /toplevel/command.ml | |
| parent | 2484db1991dac3b41d70130cf4c8697cb8c4af9a (diff) | |
Various simplifications about constant_of_delta and mind_of_delta
Most of the time, a constant name is built from:
- a kernel_name for its user part
- a delta_resolver applied to this kernel_name for its canonical part
With this patch we avoid building unnecessary constants for immediately
amending them (cf in particular the awkward code removed in safe_typing).
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14545 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel/command.ml')
| -rw-r--r-- | toplevel/command.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toplevel/command.ml b/toplevel/command.ml index 90376a4311..e85c4299b7 100644 --- a/toplevel/command.ml +++ b/toplevel/command.ml @@ -332,7 +332,7 @@ let extract_mutual_inductive_declaration_components indl = let declare_mutual_inductive_with_eliminations isrecord mie impls = let names = List.map (fun e -> e.mind_entry_typename) mie.mind_entry_inds in let (_,kn) = declare_mind isrecord mie in - let mind = Global.mind_of_delta (mind_of_kn kn) in + let mind = Global.mind_of_delta_kn kn in list_iter_i (fun i (indimpls, constrimpls) -> let ind = (mind,i) in Autoinstance.search_declaration (IndRef ind); |
