| 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 Environ |
| 13 | |
| 14 | exception InductiveMismatch of MutInd.t * string |
| 15 | (** Some field of the inductive is different from what the kernel infers. *) |
| 16 | |
| 17 | (*s The following function does checks on inductive declarations. *) |
| 18 | |
| 19 | val check_inductive : env -> MutInd.t -> Declarations.mutual_inductive_body -> env |