aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/context.ml
diff options
context:
space:
mode:
authorGravatar Matej Kosik <m4tej.kosik@gmail.com>2016-08-11 14:37:45 +0200
committerGravatar Matej Kosik <m4tej.kosik@gmail.com>2016-08-11 15:01:31 +0200
commit8e38b0e46f9628bcface1e5dad39c876f1f3f318 (patch)
treec53f745aa1d4a1eaeec081baaec649cd815d2dfa /kernel/context.ml
parentbf7515a299d894762e10cf0f116e156073071879 (diff)
Adding "Context.Named.Declaraton.of_rel" function
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.