diff options
| author | Pierre-Marie Pédrot | 2014-08-04 23:30:55 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2014-08-05 22:57:42 +0200 |
| commit | fd8357fad3f4d608f62afce848a4d4bf1bbb3d70 (patch) | |
| tree | 602b3de0176f68127cef981d7df8a4a462f58570 /pretyping | |
| parent | bc7bea8fd028e12b1d3199128c788af671176af7 (diff) | |
Small code simplification.
Diffstat (limited to 'pretyping')
| -rw-r--r-- | pretyping/evd.ml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pretyping/evd.ml b/pretyping/evd.ml index a003716f9b..cd02d7228a 100644 --- a/pretyping/evd.ml +++ b/pretyping/evd.ml @@ -959,12 +959,12 @@ let merge_uctx rigid uctx ctx' = match rigid with | UnivRigid -> uctx | UnivFlexible b -> - let uvars' = Univ.LMap.subst_union uctx.uctx_univ_variables - (Univ.LMap.bind (fun _ -> None) (Univ.ContextSet.levels ctx')) in + let levels = Univ.ContextSet.levels ctx' in + let uvars' = Univ.LMap.bind (fun _ -> None) levels in + let uvars' = Univ.LMap.fold Univ.LMap.add uctx.uctx_univ_variables uvars' in if b then { uctx with uctx_univ_variables = uvars'; - uctx_univ_algebraic = Univ.LSet.union uctx.uctx_univ_algebraic - (Univ.ContextSet.levels ctx') } + uctx_univ_algebraic = Univ.LSet.union uctx.uctx_univ_algebraic levels } else { uctx with uctx_univ_variables = uvars' } in { uctx with uctx_local = Univ.ContextSet.union uctx.uctx_local ctx'; |
