aboutsummaryrefslogtreecommitdiffhomepage
path: root/pretyping/evd.ml
diff options
context:
space:
mode:
authorGravatar Matthieu Sozeau <mattam@mattam.org>2015-10-07 13:11:52 +0200
committerGravatar Matthieu Sozeau <mattam@mattam.org>2015-10-07 13:17:11 +0200
commitd37aab528dca587127b9f9944e1521e4fc3d9cc7 (patch)
tree3d8db828b3e6644c924a75592dded2a168fbeb59 /pretyping/evd.ml
parent840155eafd9607c7656c80770de1e2819fe56a13 (diff)
Univs: add Strict Universe Declaration option (on by default)
This option disallows "declare at first use" semantics for universe variables (in @{}), forcing the declaration of _all_ universes appearing in a definition when introducing it with syntax Definition/Inductive foo@{i j k} .. The bound universes at the end of a definition/inductive must be exactly those ones, no extras allowed currently. Test-suite files using the old semantics just disable the option.
Diffstat (limited to 'pretyping/evd.ml')
-rw-r--r--pretyping/evd.ml6
1 files changed, 0 insertions, 6 deletions
diff --git a/pretyping/evd.ml b/pretyping/evd.ml
index 4e0b6f75e..4372668fc 100644
--- a/pretyping/evd.ml
+++ b/pretyping/evd.ml
@@ -1074,12 +1074,6 @@ let uctx_new_univ_variable rigid name predicative
uctx_univ_algebraic = Univ.LSet.add u avars}, false
else {uctx with uctx_univ_variables = uvars'}, false
in
- (* let ctx' = *)
- (* if pred then *)
- (* Univ.ContextSet.add_constraints *)
- (* (Univ.Constraint.singleton (Univ.Level.set, Univ.Le, u)) ctx' *)
- (* else ctx' *)
- (* in *)
let names =
match name with
| Some n -> add_uctx_names n u uctx.uctx_names