aboutsummaryrefslogtreecommitdiffhomepage
path: root/engine
diff options
context:
space:
mode:
authorGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2015-10-09 10:31:13 +0200
committerGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2015-10-09 10:31:13 +0200
commiteb7da0d0a02a406c196214ec9d08384385541788 (patch)
treeefe031d7df32573abd7b39afa0f009a6d61f18d5 /engine
parent84add29c036735ceacde73ea98a9a5a454a5e3a0 (diff)
parent73daf37ccc7a44cd29c9b67405111756c75cb26a (diff)
Merge branch 'v8.5'
Diffstat (limited to 'engine')
-rw-r--r--engine/evd.ml13
-rw-r--r--engine/evd.mli2
2 files changed, 4 insertions, 11 deletions
diff --git a/engine/evd.ml b/engine/evd.ml
index 3f4bfe7af..64aad8082 100644
--- a/engine/evd.ml
+++ b/engine/evd.ml
@@ -1021,8 +1021,8 @@ let merge_uctx sideff rigid uctx ctx' =
let uctx_universes = UGraph.merge_constraints (ContextSet.constraints ctx') univs in
{ uctx with uctx_local; uctx_universes; uctx_initial_universes = initial }
-let merge_context_set rigid evd ctx' =
- {evd with universes = merge_uctx false rigid evd.universes ctx'}
+let merge_context_set ?(sideff=false) rigid evd ctx' =
+ {evd with universes = merge_uctx sideff rigid evd.universes ctx'}
let merge_uctx_subst uctx s =
{ uctx with uctx_univ_variables = Univ.LMap.subst_union uctx.uctx_univ_variables s }
@@ -1067,12 +1067,6 @@ let uctx_new_univ_variable rigid name predicative
uctx_univ_algebraic = Univ.LSet.add u avars}, false
else {uctx with uctx_univ_variables = uvars'}, false
in
- (* let ctx' = *)
- (* if pred then *)
- (* Univ.ContextSet.add_constraints *)
- (* (Univ.Constraint.singleton (Univ.Level.set, Univ.Le, u)) ctx' *)
- (* else ctx' *)
- (* in *)
let names =
match name with
| Some n -> add_uctx_names n u uctx.uctx_names
@@ -1323,8 +1317,7 @@ let normalize_evar_universe_context uctx =
Universes.normalize_context_set uctx.uctx_local uctx.uctx_univ_variables
uctx.uctx_univ_algebraic
in
- if Univ.LSet.equal (fst us') (fst uctx.uctx_local) then
- uctx
+ if Univ.ContextSet.equal us' uctx.uctx_local then uctx
else
let us', universes = Universes.refresh_constraints uctx.uctx_initial_universes us' in
let uctx' =
diff --git a/engine/evd.mli b/engine/evd.mli
index 22d017497..d659b8826 100644
--- a/engine/evd.mli
+++ b/engine/evd.mli
@@ -538,7 +538,7 @@ val universes : evar_map -> UGraph.t
val merge_universe_context : evar_map -> evar_universe_context -> evar_map
val set_universe_context : evar_map -> evar_universe_context -> evar_map
-val merge_context_set : rigid -> evar_map -> Univ.universe_context_set -> evar_map
+val merge_context_set : ?sideff:bool -> rigid -> evar_map -> Univ.universe_context_set -> evar_map
val merge_universe_subst : evar_map -> Universes.universe_opt_subst -> evar_map
val with_context_set : rigid -> evar_map -> 'a Univ.in_universe_context_set -> evar_map * 'a