Debian Codegraph @

vernac/indschemes.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 open Names
12
13 type resolved_scheme = Names.Id.t CAst.t * Indrec.dep_flag * Names.inductive * UnivGen.QualityOrSet.t
14
15 (** See also Auto_ind_decl, Indrec, Eqscheme, Ind_tables, ... *)
16
17 (** Build and register the boolean equalities associated to an inductive type *)
18
19 val declare_beq_scheme : ?locmap:Ind_tables.Locmap.t -> MutInd.t -> unit
20
21 val declare_eq_decidability : ?locmap:Ind_tables.Locmap.t -> MutInd.t -> unit
22
23 (** Build and register rewriting schemes for an equality-like inductive type *)
24
25 val declare_rewriting_schemes : ?loc:Loc.t -> inductive -> unit
26
27 (** Mutual Minimality/Induction scheme.
28 [force_mutual] forces the construction of eliminators having the same predicates and
29 methods even if some of the inductives are not recursive.
30 By default it is [false] and some of the eliminators are defined as simple case analysis.
31 By default [isrec] is [true].
32 *)
33
34 val do_mutual_induction_scheme : register:bool -> ?force_mutual:bool
35 -> Environ.env -> ?isrec:bool -> resolved_scheme list -> unit
36
37 (** Main calls to interpret the Scheme command *)
38
39 val do_scheme : register:bool -> Environ.env -> (Id.t CAst.t option * Vernacexpr.scheme) list -> unit
40
41 (** Main call to Scheme Equality command *)
42
43 val do_scheme_equality : ?locmap:Ind_tables.Locmap.t -> Vernacexpr.equality_scheme_type -> Libnames.qualid Constrexpr.or_by_notation -> unit
44
45 (** Combine a list of schemes into a conjunction of them *)
46
47 val do_combined_scheme : lident -> Constant.t list -> unit
48
49 type declare_mind_function = ?all_depth:int ->
50 Entries.mutual_inductive_entry ->
51 UState.named_universes_entry ->
52 MutInd.t
53
54 (** Hook called at each inductive type definition *)
55
56 val declare_default_schemes : ?locmap:Ind_tables.Locmap.t ->
57 ?all_depth:int ->
58 declare_mind:declare_mind_function ->
59 MutInd.t -> unit
60
61 module Internal : sig
62 (** Create the All predicate with its theorem all_forall.
63
64 Use the reexported function in DeclareInd instead to avoid
65 needing to pass [declare_mind]. *)
66 val do_scheme_all : user_call_scheme:bool -> declare_mind:declare_mind_function ->
67 Libnames.qualid Constrexpr.or_by_notation -> Id.t list option -> unit
68 end