From e79b800bec660dc2724fa70c33f4e435ddbf885c Mon Sep 17 00:00:00 2001 From: letouzey Date: Tue, 11 Oct 2011 09:06:05 +0000 Subject: 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 --- kernel/mod_subst.mli | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kernel/mod_subst.mli') diff --git a/kernel/mod_subst.mli b/kernel/mod_subst.mli index dd240d7f3..e06cc816d 100644 --- a/kernel/mod_subst.mli +++ b/kernel/mod_subst.mli @@ -44,8 +44,10 @@ val subst_dom_codom_delta_resolver : substitution -> delta_resolver -> delta_resolver (** *_of_delta return the associated name of arg2 in arg1 *) +val constant_of_delta_kn : delta_resolver -> kernel_name -> constant val constant_of_delta : delta_resolver -> constant -> constant +val mind_of_delta_kn : delta_resolver -> kernel_name -> mutual_inductive val mind_of_delta : delta_resolver -> mutual_inductive -> mutual_inductive val delta_of_mp : delta_resolver -> module_path -> module_path -- cgit v1.2.3