| 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 | open EConstr |
| 13 | open Environ |
| 14 | open Evd |
| 15 | |
| 16 | (** Eliminations *) |
| 17 | type dep_flag = bool |
| 18 | |
| 19 | (** Errors related to recursors building *) |
| 20 | type recursion_scheme_error = |
| 21 | | NotMutualInScheme of inductive * inductive |
| 22 | | DuplicateInductiveBlock of inductive |
| 23 | |
| 24 | exception RecursionSchemeError of env * recursion_scheme_error |
| 25 | |
| 26 | val build_case_analysis_scheme : env -> Evd.evar_map -> inductive puniverses -> |
| 27 | dep_flag -> ESorts.t -> evar_map * constr * constr |
| 28 | |
| 29 | (** Builds a recursive induction scheme (Peano-induction style) in the given sort. *) |
| 30 | val build_induction_scheme : env -> evar_map -> inductive puniverses -> |
| 31 | dep_flag -> ESorts.t -> evar_map * constr |
| 32 | |
| 33 | (** Builds mutual (recursive) induction schemes *) |
| 34 | val build_mutual_induction_scheme : |
| 35 | env -> evar_map -> ?force_mutual:bool -> |
| 36 | (inductive * dep_flag * EConstr.ESorts.t) list -> einstance -> evar_map * constr list |