From 7002b3daca6da29eadf80019847630b8583c3daf Mon Sep 17 00:00:00 2001 From: Matthieu Sozeau Date: Sun, 3 Aug 2014 20:02:49 +0200 Subject: Move to a representation of universe polymorphic constants using indices for variables. Simplifies instantiation of constants/inductives, requiring less allocation and Map.find's. Abstraction by variables is handled mostly inside the kernel but could be moved outside. --- library/global.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'library/global.ml') diff --git a/library/global.ml b/library/global.ml index c3c309c39..65e895dfd 100644 --- a/library/global.ml +++ b/library/global.ml @@ -198,10 +198,10 @@ let universes_of_global env r = Declareops.universes_of_constant cb | IndRef ind -> let (mib, oib) = Inductive.lookup_mind_specif env ind in - mib.mind_universes + Univ.instantiate_univ_context mib.mind_universes | ConstructRef cstr -> let (mib,oib) = Inductive.lookup_mind_specif env (inductive_of_constructor cstr) in - mib.mind_universes + Univ.instantiate_univ_context mib.mind_universes let universes_of_global gr = universes_of_global (env ()) gr -- cgit v1.2.3