aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/mod_subst.ml4
-rw-r--r--kernel/mod_subst.mli3
2 files changed, 7 insertions, 0 deletions
diff --git a/kernel/mod_subst.ml b/kernel/mod_subst.ml
index ba186d06e9..48bb9933ce 100644
--- a/kernel/mod_subst.ml
+++ b/kernel/mod_subst.ml
@@ -123,6 +123,10 @@ let subst_con sub con =
let mp' = subst_mp sub mp in
if mp==mp' then con else make_con mp' dir l
+let subst_evaluable_reference subst = function
+ | EvalVarRef id -> EvalVarRef id
+ | EvalConstRef kn -> EvalConstRef (subst_con subst kn)
+
(*
map_kn : (kernel_name -> kernel_name) -> constr -> constr
diff --git a/kernel/mod_subst.mli b/kernel/mod_subst.mli
index fa37c25092..f4003c7f95 100644
--- a/kernel/mod_subst.mli
+++ b/kernel/mod_subst.mli
@@ -55,6 +55,9 @@ val occur_mbid : mod_bound_id -> substitution -> bool
val subst_kn : substitution -> kernel_name -> kernel_name
val subst_con : substitution -> constant -> constant
+val subst_evaluable_reference :
+ substitution -> evaluable_global_reference -> evaluable_global_reference
+
(* [subst_mps sub c] performs the substitution [sub] on all kernel
names appearing in [c] *)