aboutsummaryrefslogtreecommitdiff
path: root/kernel/sorts.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-05-10 11:49:50 +0200
committerGaëtan Gilbert2019-05-27 13:52:45 +0200
commitbe8db31abc6839921e91540ab4b3300da9b64933 (patch)
tree3389fa5241102322b8f6eb45c3c2436b14938558 /kernel/sorts.ml
parentc371b6f0bc6aa75fb3fe138d2bd52bdd189550b1 (diff)
mind_kelim is the highest allowed sort instead of a list
Diffstat (limited to 'kernel/sorts.ml')
-rw-r--r--kernel/sorts.ml7
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/sorts.ml b/kernel/sorts.ml
index 09c98ca1bc..b5a929697e 100644
--- a/kernel/sorts.ml
+++ b/kernel/sorts.ml
@@ -91,6 +91,8 @@ let family_compare a b = match a,b with
let family_equal = (==)
+let family_leq a b = family_compare a b <= 0
+
open Hashset.Combine
let hash = function
@@ -101,11 +103,6 @@ let hash = function
let h = Univ.Universe.hash u in
combinesmall 2 h
-module List = struct
- let mem = List.memq
- let intersect l l' = CList.intersect family_equal l l'
-end
-
module Hsorts =
Hashcons.Make(
struct