@@ -251,11 +251,11 @@ let abstract_env (env : Environ.env) (init : constr) =
251
251
252
252
let mkFreshInd env evd c =
253
253
let evd', res = Evd. fresh_inductive_instance env ! evd c in
254
- evd := evd'; of_constr @@ Constr . mkIndU res
254
+ evd := evd'; EConstr . mkIndU res
255
255
256
256
let mkFreshConstruct env evd c =
257
257
let evd', res = Evd. fresh_constructor_instance env ! evd c in
258
- evd := evd'; of_constr @@ Constr . mkConstructU res
258
+ evd := evd'; EConstr . mkConstructU res
259
259
260
260
(* prodn n [xn:Tn;..;x1:T1;Gamma] b = (x1:T1)..(xn:Tn)b *)
261
261
let prodn n env b =
@@ -453,7 +453,7 @@ and translate_constant order (evd : Evd.evar_map ref) env cst : constr =
453
453
let kn, names_k = cst in
454
454
let names = EInstance. kind ! evd names_k in
455
455
try
456
- let evd', constr = fresh_global ~rigid: Evd. univ_rigid ~names env ! evd (Relations. get_constant order kn) in
456
+ let evd', constr = fresh_global ~rigid: Evd. univ_rigid ~names: names_k env ! evd (Relations. get_constant order kn) in
457
457
evd := evd';
458
458
constr
459
459
with Not_found ->
@@ -520,15 +520,14 @@ and translate_rel_context order evd env rc =
520
520
521
521
and translate_variable order env evdr v : constr =
522
522
try
523
- let evd, (cst,u) = Evd. fresh_constant_instance ~rigid: Evd. univ_rigid env ! evdr (Relations. get_variable order v) in
523
+ let evd, pcst = Evd. fresh_constant_instance ~rigid: Evd. univ_rigid env ! evdr (Relations. get_variable order v) in
524
524
evdr := evd;
525
- mkConstU (cst, EInstance. make u)
525
+ mkConstU pcst
526
526
with Not_found ->
527
527
error
528
528
(Pp. str (Printf. sprintf " The variable '%s' has no registered translation, provide one with the Realizer command." (Names.Id. to_string v)))
529
529
and translate_inductive order env evdr (ind , names ) =
530
530
try
531
- let names = EInstance. kind ! evdr names in
532
531
let evd, constr = fresh_global ~rigid: Evd. univ_rigid ~names env ! evdr (Relations. get_inductive order ind) in
533
532
evdr := evd;
534
533
constr
0 commit comments