Debian Codegraph @

vernac/declareInd.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 (** Registering a mutual inductive definition together with its
12 associated schemes *)
13
14 type one_inductive_impls =
15 Impargs.manual_implicits (* for inds *) *
16 Impargs.manual_implicits list (* for constrs *)
17
18 type default_dep_elim = DefaultElim | PropButDepElim
19
20 type indlocs = (Loc.t option * Loc.t option list) list
21 (** Inductive type and constructor locs, for .glob and src loc info *)
22
23 type declare_schemes = None | Default
24
25 val schemes_attr : declare_schemes Attributes.attribute
26
27 val declare_mutual_inductive_with_eliminations
28 : ?typing_flags:Declarations.typing_flags
29 -> ?indlocs:indlocs
30 -> ?default_dep_elim:default_dep_elim list
31 -> ?schemes:declare_schemes
32 -> ?all_depth:int
33 -> Entries.mutual_inductive_entry (* Inductive types declaration *)
34 -> UState.named_universes_entry (* Global universes, including the template default instance *)
35 -> one_inductive_impls list (* Implicit arguments *)
36 -> Names.MutInd.t
37
38 (** Create the All predicate with its theorem all_forall. *)
39 val do_scheme_all : Libnames.qualid Constrexpr.or_by_notation -> Names.Id.t list option -> unit
40
41
42 (** {6 For legacy support, do not use} *)
43 module Internal :
44 sig
45
46 type inductive_obj
47 val objInductive : (Names.Id.t * inductive_obj) Libobject.Dyn.tag
48
49 end
50
51 val declare_primitive_projection :
52 Names.Projection.Repr.t -> Names.Constant.t -> unit