aboutsummaryrefslogtreecommitdiff
path: root/kernel/uGraph.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-05-14 11:16:23 +0200
committerGaëtan Gilbert2020-05-14 11:16:23 +0200
commit6f2b88649ec0c1e27befe7bcd2cdbec0ccee95d6 (patch)
treee25e7dbdf2ba149f7ef06867448f557bb6cbcb4f /kernel/uGraph.ml
parent13bd7bef1f61072d62c3a0bf69148eeeac895d9f (diff)
parentf71ef93aa21cd2ed4135588db3a5a3e8b42ceb39 (diff)
Merge PR #12313: Make explicit that UGraph lower bounds are only of two kinds.
Reviewed-by: SkySkimmer
Diffstat (limited to 'kernel/uGraph.ml')
-rw-r--r--kernel/uGraph.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/uGraph.ml b/kernel/uGraph.ml
index 5f5f0ef8cd..927db9e9e6 100644
--- a/kernel/uGraph.ml
+++ b/kernel/uGraph.ml
@@ -148,8 +148,14 @@ let enforce_leq_alg u v g =
assert (check_leq g u v);
cg
+module Bound =
+struct
+ type t = Prop | Set
+end
+
exception AlreadyDeclared = G.AlreadyDeclared
let add_universe u ~lbound ~strict g =
+ let lbound = match lbound with Bound.Prop -> Level.prop | Bound.Set -> Level.set in
let graph = G.add u g.graph in
let d = if strict then Lt else Le in
enforce_constraint (lbound,d,u) {g with graph}