aboutsummaryrefslogtreecommitdiff
path: root/vernac/declareInd.mli
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2019-10-24 03:50:28 +0200
committerEmilio Jesus Gallego Arias2019-10-24 21:33:58 +0200
commit4f82fb034f81fa762cfc47bfb3194c5f93a342eb (patch)
treea397bd31a47488c6630b1d55d2e6f4081695f5fb /vernac/declareInd.mli
parent43f037b5f3af7ab642bed4c6767bf7845156f92f (diff)
[declare] Split inductive declaration code to vernac/
The code is self-contained and only used by commands; this also highlights the several `Libobject.obj` registered for each declaration.
Diffstat (limited to 'vernac/declareInd.mli')
-rw-r--r--vernac/declareInd.mli14
1 files changed, 14 insertions, 0 deletions
diff --git a/vernac/declareInd.mli b/vernac/declareInd.mli
new file mode 100644
index 0000000000..6db09ad2bd
--- /dev/null
+++ b/vernac/declareInd.mli
@@ -0,0 +1,14 @@
+(************************************************************************)
+(* * The Coq Proof Assistant / The Coq Development Team *)
+(* v * INRIA, CNRS and contributors - Copyright 1999-2019 *)
+(* <O___,, * (see CREDITS file for the list of authors) *)
+(* \VV/ **************************************************************)
+(* // * This file is distributed under the terms of the *)
+(* * GNU Lesser General Public License Version 2.1 *)
+(* * (see LICENSE file for the text of the license) *)
+(************************************************************************)
+
+(** [declare_mind me] declares a block of inductive types with
+ their constructors in the current section; it returns the path of
+ the whole block and a boolean indicating if it is a primitive record. *)
+val declare_mind : Entries.mutual_inductive_entry -> Libobject.object_name * bool