aboutsummaryrefslogtreecommitdiff
path: root/pretyping/inductiveops.ml
diff options
context:
space:
mode:
authorHugo Herbelin2014-08-01 15:16:42 +0200
committerHugo Herbelin2014-08-01 15:16:42 +0200
commit7e67bba64e1b59be2acf5997157bff10581d28f2 (patch)
treee3d783954f683ea25b10bebb4e19a1188f75db08 /pretyping/inductiveops.ml
parent128a297614d1e0fb32e2bbd465d181c5d5b1562c (diff)
Continuing (incomplete) cleaning of Inductiveops.
Diffstat (limited to 'pretyping/inductiveops.ml')
-rw-r--r--pretyping/inductiveops.ml10
1 files changed, 10 insertions, 0 deletions
diff --git a/pretyping/inductiveops.ml b/pretyping/inductiveops.ml
index ed243bebe6..dee22cb173 100644
--- a/pretyping/inductiveops.ml
+++ b/pretyping/inductiveops.ml
@@ -176,6 +176,16 @@ let constructor_nrealdecls_env env (ind,j) = (* TOCHANGE en decls *)
let (_,mip) = Inductive.lookup_mind_specif env ind in
mip.mind_consnrealdecls.(j-1)
+(* Length of arity, excluding params, excluding local defs *)
+
+let inductive_nrealargs ind =
+ let (_,mip) = Global.lookup_inductive ind in
+ mip.mind_nrealargs
+
+let inductive_nrealargs_env env ind =
+ let (_,mip) = Inductive.lookup_mind_specif env ind in
+ mip.mind_nrealargs
+
(* Length of arity, excluding params, including local defs *)
let inductive_nrealdecls ind =