diff options
| author | Matthieu Sozeau | 2017-07-20 15:45:17 +0200 |
|---|---|---|
| committer | Matthieu Sozeau | 2018-07-25 17:56:21 +0200 |
| commit | cba9f3fe48817e8e524483fd984ea4938b3dc14f (patch) | |
| tree | 5ccc7b8297975c777e48d69c9918b0cb91fb9d19 /kernel/uGraph.mli | |
| parent | 9b6ce4f1848c546d0d361aa1089fa2907ca4c9ad (diff) | |
kernel: missing check that all universes are declared.
Keep the universe_levels_of_constr function inside typeops, not
exported.
Diffstat (limited to 'kernel/uGraph.mli')
| -rw-r--r-- | kernel/uGraph.mli | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/uGraph.mli b/kernel/uGraph.mli index 8c2d877b0b..752bf76270 100644 --- a/kernel/uGraph.mli +++ b/kernel/uGraph.mli @@ -55,6 +55,12 @@ val add_universe : Level.t -> bool -> t -> t (** Add a universe without (Prop,Set) <= u *) val add_universe_unconstrained : Level.t -> t -> t +(** Check that the universe levels are declared. Otherwise + @raise UndeclaredLevel l for the first undeclared level found. *) +exception UndeclaredLevel of Univ.Level.t + +val check_declared_universes : t -> Univ.LSet.t -> unit + (** {6 Pretty-printing of universes. } *) val pr_universes : (Level.t -> Pp.t) -> t -> Pp.t |
