aboutsummaryrefslogtreecommitdiff
path: root/interp/declare.ml
diff options
context:
space:
mode:
authorMaxime Dénès2018-01-08 12:46:22 +0100
committerMaxime Dénès2018-01-08 12:46:22 +0100
commit47f47713e551f8de18cf2d847f47c1f55b016c8b (patch)
treefba8437d2bab7f202181c83a935ff24e865dcc69 /interp/declare.ml
parentc34744837dae427ac6cb12f5ada198862d8e1e4f (diff)
parent4131f060ac42f121685817fcc9546c3899c09ab7 (diff)
Merge PR #6425: Cleanup universes in the kernel
Diffstat (limited to 'interp/declare.ml')
-rw-r--r--interp/declare.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/interp/declare.ml b/interp/declare.ml
index d1b79ffcdd..55f825c251 100644
--- a/interp/declare.ml
+++ b/interp/declare.ml
@@ -104,7 +104,7 @@ let discharge_constant ((sp, kn), obj) =
let con = Constant.make1 kn in
let from = Global.lookup_constant con in
let modlist = replacement_context () in
- let hyps,subst,uctx = section_segment_of_constant con in
+ let { abstr_ctx = hyps; abstr_subst = subst; abstr_uctx = uctx } = section_segment_of_constant con in
let new_hyps = (discharged_hyps kn hyps) @ obj.cst_hyps in
let abstract = (named_of_variable_context hyps, subst, uctx) in
let new_decl = GlobalRecipe{ from; info = { Opaqueproof.modlist; abstract}} in
@@ -333,7 +333,8 @@ let discharge_inductive ((sp,kn),(dhyps,mie)) =
let mind = Global.mind_of_delta_kn kn in
let mie = Global.lookup_mind mind in
let repl = replacement_context () in
- let sechyps, _, _ as info = section_segment_of_mutual_inductive mind in
+ let info = section_segment_of_mutual_inductive mind in
+ let sechyps = info.Lib.abstr_ctx in
Some (discharged_hyps kn sechyps,
Discharge.process_inductive info repl mie)