From 89f5d2503d68dae235b9c2153d34f0def30ff626 Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Thu, 12 Nov 2020 11:13:50 +0100 Subject: Make the universe of primitive arrays irrelevant Fix #13354 This change is very specific to array, but should not be a significant obstacle to generalization of the feature to eg axioms if we want to later. --- kernel/environ.ml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kernel/environ.ml') diff --git a/kernel/environ.ml b/kernel/environ.ml index 914c951eb6..716b098995 100644 --- a/kernel/environ.ml +++ b/kernel/environ.ml @@ -569,6 +569,11 @@ let is_primitive env c = | Declarations.Primitive _ -> true | _ -> false +let is_array_type env c = + match env.retroknowledge.Retroknowledge.retro_array with + | None -> false + | Some c' -> Constant.CanOrd.equal c c' + let polymorphic_constant cst env = Declareops.constant_is_polymorphic (lookup_constant cst env) -- cgit v1.2.3