1
(************************************************************************)
2
(* v * The Coq Proof Assistant / The Coq Development Team *)
3
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
4
(* \VV/ **************************************************************)
5
(* // * This file is distributed under the terms of the *)
6
(* * GNU Lesser General Public License Version 2.1 *)
7
(************************************************************************)
9
(*i $Id: record.mli 11809 2009-01-20 11:39:55Z aspiwack $ i*)
21
(* [declare_projections ref name coers params fields] declare projections of
22
record [ref] (if allowed) using the given [name] as argument, and put them
23
as coercions accordingly to [coers]; it returns the absolute names of projections *)
25
val declare_projections :
26
inductive -> ?kind:Decl_kinds.definition_object_kind -> ?name:identifier ->
27
bool list -> manual_explicitation list list -> rel_context ->
28
(name * bool) list * constant option list
30
val declare_structure : Decl_kinds.recursivity_kind ->
31
identifier -> identifier ->
32
manual_explicitation list -> rel_context -> (* params *) constr -> (* arity *)
33
Impargs.manual_explicitation list list -> Sign.rel_context -> (* fields *)
34
?kind:Decl_kinds.definition_object_kind -> ?name:identifier ->
35
bool -> (* coercion? *)
36
bool list -> (* field coercions *)
39
val definition_structure :
40
inductive_kind*Decl_kinds.recursivity_kind *lident with_coercion * local_binder list *
41
(local_decl_expr with_coercion with_notation) list * identifier * sorts option -> global_reference