aboutsummaryrefslogtreecommitdiffhomepage
path: root/engine/uState.mli
diff options
context:
space:
mode:
authorGravatar Gaƫtan Gilbert <gaetan.gilbert@skyskimmer.net>2017-09-09 14:54:42 +0200
committerGravatar Matthieu Sozeau <mattam@mattam.org>2017-09-19 10:28:03 +0200
commit3c964a60d698134c21adc77cbb69ce1528350682 (patch)
tree61d9fff65aaf7d6d844eef0a6c251bdd8f90e53e /engine/uState.mli
parentcd29948855c2cbd3f4065170e41f8dbe625e1921 (diff)
Document UState.universe_context.
Diffstat (limited to 'engine/uState.mli')
-rw-r--r--engine/uState.mli13
1 files changed, 12 insertions, 1 deletions
diff --git a/engine/uState.mli b/engine/uState.mli
index 21145e7e6..c44f2c1d7 100644
--- a/engine/uState.mli
+++ b/engine/uState.mli
@@ -118,8 +118,17 @@ val refresh_undefined_univ_variables : t -> t * Univ.universe_level_subst
val normalize : t -> t
-(** {5 TODO: Document me} *)
+(** [universe_context names extensible ctx]
+
+ Return a universe context containing the local universes of [ctx]
+ and their constraints. The universes corresponding to [names] come
+ first in the order defined by that list.
+
+ If [extensible] is false, check that the universes of [names] are
+ the only local universes.
+ Also return the association list of universe names and universes
+ (including those not in [names]). *)
val universe_context : names:(Id.t Loc.located) list -> extensible:bool -> t ->
(Id.t * Univ.Level.t) list * Univ.universe_context
@@ -128,6 +137,8 @@ type universe_decl =
val check_univ_decl : t -> universe_decl -> Universes.universe_binders * Univ.universe_context
+(** {5 TODO: Document me} *)
+
val update_sigma_env : t -> Environ.env -> t
(** {5 Pretty-printing} *)