diff options
author | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2016-06-17 18:25:02 +0200 |
---|---|---|
committer | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2016-06-18 18:54:43 +0200 |
commit | 53ced0735f7e24735d78a02fc74588b8d9186eab (patch) | |
tree | 93661920f42d9be934e59f5f972d165ea24785b7 /kernel/environ.ml | |
parent | 806e3bc0ecfbf0a6bfd20e80caa8250e60d39152 (diff) |
Moving the typing_flags to the environment.
Diffstat (limited to 'kernel/environ.ml')
-rw-r--r-- | kernel/environ.ml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/kernel/environ.ml b/kernel/environ.ml index 032e71359..65aaa3f7b 100644 --- a/kernel/environ.ml +++ b/kernel/environ.ml @@ -45,16 +45,14 @@ let empty_named_context_val = empty_named_context_val let empty_env = empty_env let engagement env = env.env_stratification.env_engagement +let typing_flags env = env.env_typing_flags let is_impredicative_set env = - match fst (engagement env) with + match engagement env with | ImpredicativeSet -> true | _ -> false -let type_in_type env = - match snd (engagement env) with - | TypeInType -> true - | _ -> false +let type_in_type env = not (typing_flags env).check_universes let universes env = env.env_stratification.env_universes let named_context env = env.env_named_context @@ -211,6 +209,9 @@ let set_engagement c env = (* Unsafe *) { env with env_stratification = { env.env_stratification with env_engagement = c } } +let set_typing_flags c env = (* Unsafe *) + { env with env_typing_flags = c } + (* Global constants *) let lookup_constant = lookup_constant |