aboutsummaryrefslogtreecommitdiff
path: root/kernel/declarations.ml
diff options
context:
space:
mode:
authorMaxime Dénès2017-12-11 09:33:28 +0100
committerMaxime Dénès2017-12-11 09:33:28 +0100
commit5d52eb47227ed8bd6e67524fc1acc08a95a864fb (patch)
treeb3a42e7d6d6184f903afd49bb06e3400555ad725 /kernel/declarations.ml
parent42a1e2b6c4b8e4c290ca234211782333b82319bb (diff)
parent4f0607dc76d3981fa67ab6231f2817cd1e6134a5 (diff)
Merge PR #6369: [api] Remove kernel dependency on intf (Decl_kind)
Diffstat (limited to 'kernel/declarations.ml')
-rw-r--r--kernel/declarations.ml7
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/declarations.ml b/kernel/declarations.ml
index d5312c5006..7f4b85fd05 100644
--- a/kernel/declarations.ml
+++ b/kernel/declarations.ml
@@ -172,13 +172,18 @@ type abstract_inductive_universes =
| Polymorphic_ind of Univ.AUContext.t
| Cumulative_ind of Univ.ACumulativityInfo.t
+type recursivity_kind =
+ | Finite (** = inductive *)
+ | CoFinite (** = coinductive *)
+ | BiFinite (** = non-recursive, like in "Record" definitions *)
+
type mutual_inductive_body = {
mind_packets : one_inductive_body array; (** The component of the mutual inductive block *)
mind_record : record_body option; (** The record information *)
- mind_finite : Decl_kinds.recursivity_kind; (** Whether the type is inductive or coinductive *)
+ mind_finite : recursivity_kind; (** Whether the type is inductive or coinductive *)
mind_ntypes : int; (** Number of types in the block *)