aboutsummaryrefslogtreecommitdiff
path: root/kernel/constr.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2018-10-10 13:15:06 +0200
committerGaëtan Gilbert2018-10-16 15:51:49 +0200
commit72de7e057505c45cdbf75234a9ea90465d0e19ec (patch)
tree42c0a83da6b9225f177e873d7040e10e2284e35d /kernel/constr.ml
parent6a7bcfc6d22ab3bf38847fa3fd05ec194187ff50 (diff)
Simplify fresh_foo_instance functions and pretyping of univ instance
Diffstat (limited to 'kernel/constr.ml')
-rw-r--r--kernel/constr.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/constr.ml b/kernel/constr.ml
index c97969c0e0..7ffde3107b 100644
--- a/kernel/constr.ml
+++ b/kernel/constr.ml
@@ -227,6 +227,12 @@ let mkMeta n = Meta n
(* Constructs a Variable named id *)
let mkVar id = Var id
+let mkRef (gr,u) = let open GlobRef in match gr with
+ | ConstRef c -> mkConstU (c,u)
+ | IndRef ind -> mkIndU (ind,u)
+ | ConstructRef c -> mkConstructU (c,u)
+ | VarRef x -> mkVar x
+
(************************************************************************)
(* kind_of_term = constructions as seen by the user *)
(************************************************************************)