aboutsummaryrefslogtreecommitdiff
path: root/kernel/indtypes.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2018-11-13 16:02:03 +0100
committerGaëtan Gilbert2018-11-26 13:21:56 +0100
commitec209ea02cb8fa86f09aff88d0464c865ed7b8a5 (patch)
treed9e28d57d4127fe08acaff4f730b2ec5cbc4cb17 /kernel/indtypes.ml
parentb400fa987dec3c2dabfd69ce305d3ab8f1dc8952 (diff)
Put -indices-matter in typing_flags
Diffstat (limited to 'kernel/indtypes.ml')
-rw-r--r--kernel/indtypes.ml10
1 files changed, 1 insertions, 9 deletions
diff --git a/kernel/indtypes.ml b/kernel/indtypes.ml
index 20c90bc05a..a4a02791b4 100644
--- a/kernel/indtypes.ml
+++ b/kernel/indtypes.ml
@@ -35,14 +35,6 @@ env_ar_par = env_ar + declaration of parameters
nmr = ongoing computation of recursive parameters
*)
-(* Tell if indices (aka real arguments) contribute to size of inductive type *)
-(* If yes, this is compatible with the univalent model *)
-
-let indices_matter = ref false
-
-let enforce_indices_matter () = indices_matter := true
-let is_indices_matter () = !indices_matter
-
(* [weaker_noccur_between env n nvars t] (defined above), checks that
no de Bruijn indices between [n] and [n+nvars] occur in [t]. If
some such occurrences are found, then reduction is performed
@@ -303,7 +295,7 @@ let typecheck_inductive env mie =
let inflev =
(* The level of the inductive includes levels of indices if
in indices_matter mode *)
- if !indices_matter
+ if indices_matter env
then Some (cumulate_arity_large_levels env_params sign)
else None
in