aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/context.ml
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/context.ml')
-rw-r--r--kernel/context.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/context.ml b/kernel/context.ml
index 2f4997055..ca084b682 100644
--- a/kernel/context.ml
+++ b/kernel/context.ml
@@ -340,6 +340,12 @@ struct
let of_tuple = function
| id, None, ty -> LocalAssum (id, ty)
| id, Some v, ty -> LocalDef (id, v, ty)
+
+ let of_rel f = function
+ | Rel.Declaration.LocalAssum (na,t) ->
+ LocalAssum (f na, t)
+ | Rel.Declaration.LocalDef (na,v,t) ->
+ LocalDef (f na, v, t)
end
(** Named-context is represented as a list of declarations.