aboutsummaryrefslogtreecommitdiff
path: root/engine/eConstr.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2018-10-10 13:37:46 +0200
committerGaëtan Gilbert2018-10-16 15:52:52 +0200
commit5bf063c15468bb81f0f48b583f600250cd829aee (patch)
tree69e33cf3dd53ab18b8a359d0c2ab6f0041dc9abd /engine/eConstr.ml
parent404291584e861cc0f41a5585280143d2df78bd26 (diff)
UnivGen.constr_of_glob_univ -> Constr.mkRef
Diffstat (limited to 'engine/eConstr.ml')
-rw-r--r--engine/eConstr.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/eConstr.ml b/engine/eConstr.ml
index cefffb315e..3385b78958 100644
--- a/engine/eConstr.ml
+++ b/engine/eConstr.ml
@@ -74,6 +74,12 @@ let mkCoFix f = of_kind (CoFix f)
let mkProj (p, c) = of_kind (Proj (p, c))
let mkArrow t1 t2 = of_kind (Prod (Anonymous, t1, t2))
+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
+
let applist (f, arg) = mkApp (f, Array.of_list arg)
let isRel sigma c = match kind sigma c with Rel _ -> true | _ -> false