aboutsummaryrefslogtreecommitdiff
path: root/kernel/sorts.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2017-10-12 13:55:08 +0200
committerGaëtan Gilbert2019-03-14 13:27:38 +0100
commita0e16c9e5c3f88a8b72935dd4877f13388640f69 (patch)
treeb177cc86b2742893adf0b181e53c03b8897b48cc /kernel/sorts.ml
parent6c447d7a7190857b03bb2992f443f1b818618a94 (diff)
Make Sorts.t private
Diffstat (limited to 'kernel/sorts.ml')
-rw-r--r--kernel/sorts.ml14
1 files changed, 7 insertions, 7 deletions
diff --git a/kernel/sorts.ml b/kernel/sorts.ml
index 566dce04c6..e281751be1 100644
--- a/kernel/sorts.ml
+++ b/kernel/sorts.ml
@@ -44,25 +44,25 @@ let compare s1 s2 =
let equal s1 s2 = Int.equal (compare s1 s2) 0
+let super = function
+ | Prop | Set -> Type (Universe.type1)
+ | Type u -> Type (Universe.super u)
+
let is_prop = function
| Prop -> true
- | Type u when Universe.equal Universe.type0m u -> true
- | _ -> false
+ | Set | Type _ -> false
let is_set = function
| Set -> true
- | Type u when Universe.equal Universe.type0 u -> true
- | _ -> false
+ | Prop | Type _ -> false
let is_small = function
| Prop | Set -> true
- | Type u -> is_small_univ u
+ | Type _ -> false
let family = function
| Prop -> InProp
| Set -> InSet
- | Type u when is_type0m_univ u -> InProp
- | Type u when is_type0_univ u -> InSet
| Type _ -> InType
let family_equal = (==)