aboutsummaryrefslogtreecommitdiff
path: root/kernel/reduction.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2018-06-21 18:02:40 +0200
committerGaëtan Gilbert2018-06-22 13:09:15 +0200
commitd236c7362053c4fc8f1c7f3b59248b412b029fb8 (patch)
treeb1f4186bb493a9b91a36b3a29d29b4dfef040404 /kernel/reduction.ml
parent0f12f2334e6c921a13e2e2186c44b7fb017714c1 (diff)
Define and use UGraph.enforce_leq_alg for subtyping inference
Not sure if worth using in other places.
Diffstat (limited to 'kernel/reduction.ml')
-rw-r--r--kernel/reduction.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/reduction.ml b/kernel/reduction.ml
index f4af313867..2c61b7a019 100644
--- a/kernel/reduction.ml
+++ b/kernel/reduction.ml
@@ -693,8 +693,8 @@ let infer_eq (univs, cstrs as cuniv) u u' =
let infer_leq (univs, cstrs as cuniv) u u' =
if UGraph.check_leq univs u u' then cuniv
else
- let cstrs' = Univ.enforce_leq u u' cstrs in
- univs, cstrs'
+ let cstrs', _ = UGraph.enforce_leq_alg u u' univs in
+ univs, Univ.Constraint.union cstrs cstrs'
let infer_cmp_universes env pb s0 s1 univs =
let open Sorts in