aboutsummaryrefslogtreecommitdiff
path: root/kernel/inductive.mli
diff options
context:
space:
mode:
authorMaxime Dénès2020-02-03 18:19:42 +0100
committerMaxime Dénès2020-07-06 11:22:43 +0200
commit0ea2d0ff4ed84e1cc544c958b8f6e98f6ba2e9b6 (patch)
treefbad060c3c2e29e81751dea414c898b5cb0fa22d /kernel/inductive.mli
parentcf388fdb679adb88a7e8b3122f65377552d2fb94 (diff)
Primitive persistent arrays
Persistent arrays expose a functional interface but are implemented using an imperative data structure. The OCaml implementation is based on Jean-Christophe Filliâtre's. Co-authored-by: Benjamin Grégoire <Benjamin.Gregoire@inria.fr> Co-authored-by: Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net>
Diffstat (limited to 'kernel/inductive.mli')
-rw-r--r--kernel/inductive.mli7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/inductive.mli b/kernel/inductive.mli
index 9f865f8f01..78658dc4de 100644
--- a/kernel/inductive.mli
+++ b/kernel/inductive.mli
@@ -105,6 +105,13 @@ val check_case_info : env -> pinductive -> Sorts.relevance -> case_info -> unit
(** {6 Guard conditions for fix and cofix-points. } *)
+(** [is_primitive_positive_container env c] tells if the constant [c] is
+ registered as a primitive type that can be seen as a container where the
+ occurrences of its parameters are positive, in which case the positivity and
+ guard conditions are extended to allow inductive types to nest their subterms
+ in these containers. *)
+val is_primitive_positive_container : env -> Constant.t -> bool
+
(** When [chk] is false, the guard condition is not actually
checked. *)
val check_fix : env -> fixpoint -> unit