aboutsummaryrefslogtreecommitdiff
path: root/kernel/indtypes.mli
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2018-11-07 11:42:38 +0100
committerPierre-Marie Pédrot2018-11-07 11:42:38 +0100
commit19b7ce2f39eaf37e48d1d12ef73defab3c9fbdb2 (patch)
treea55af313e25a17382c94a60805b95e82f02ef6c6 /kernel/indtypes.mli
parente857efb2e61c29a5b0b29702ca8d746ea2580ca6 (diff)
parent7f2946157797ba7da3ed8712c10f5a0302b36d49 (diff)
Merge PR #8773: [checker] Refactor by sharing code with the kernel
Diffstat (limited to 'kernel/indtypes.mli')
-rw-r--r--kernel/indtypes.mli13
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/indtypes.mli b/kernel/indtypes.mli
index cb09cfa827..a827c17683 100644
--- a/kernel/indtypes.mli
+++ b/kernel/indtypes.mli
@@ -34,6 +34,19 @@ type inductive_error =
exception InductiveError of inductive_error
+val infos_and_sort : env -> constr -> Univ.Universe.t
+
+val check_subtyping_arity_constructor : env -> (constr -> constr) -> types -> int -> bool -> unit
+
+val check_positivity : chkpos:bool ->
+ Names.MutInd.t ->
+ Environ.env ->
+ (Constr.constr, Constr.types) Context.Rel.pt ->
+ Declarations.recursivity_kind ->
+ ('a * Names.Id.t list * Constr.types array *
+ (('b, 'c) Context.Rel.pt * 'd))
+ array -> Int.t * Declarations.recarg Rtree.t array
+
(** The following function does checks on inductive declarations. *)
val check_inductive : env -> MutInd.t -> mutual_inductive_entry -> mutual_inductive_body