aboutsummaryrefslogtreecommitdiff
path: root/kernel/section.mli
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-12-30 12:15:21 +0100
committerGaëtan Gilbert2020-01-15 13:43:24 +0100
commitf3a6d9dce4d1c291dbaa03bd0e4ed5f33646bff0 (patch)
tree5253356704c6db77afc0af218815bbf5b38ffad2 /kernel/section.mli
parente4ebe14337743eba09b93c6f5bff1e1d78083741 (diff)
generate variance data for section universes (not yet used)
preparation for direct discharge
Diffstat (limited to 'kernel/section.mli')
-rw-r--r--kernel/section.mli8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/section.mli b/kernel/section.mli
index fbd3d8254e..37d0dab317 100644
--- a/kernel/section.mli
+++ b/kernel/section.mli
@@ -57,6 +57,14 @@ val push_inductive : poly:bool -> MutInd.t -> 'a t -> 'a t
(** {6 Retrieving section data} *)
+val all_poly_univs : 'a t -> Univ.Level.t array
+(** Returns all polymorphic universes, including those from previous
+ sections. Earlier sections are earlier in the array.
+
+ NB: even if the array is empty there may be polymorphic
+ constraints about monomorphic universes, which prevent declaring
+ monomorphic globals. *)
+
type abstr_info = private {
abstr_ctx : Constr.named_context;
(** Section variables of this prefix *)