Debian Codegraph @

kernel/indTyping.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 Environ
12 open Entries
13 open Declarations
14
15
16 module NotPrimRecordReason : sig
17
18 type t =
19 | MustNotBeSquashed
20 | MustHaveRelevantProj
21 | MustHaveProj
22 | MustNotHaveAnonProj
23
24 end
25
26 type inductive_arity = { user_arity : Constr.types; sort : Sorts.t }
27
28 (** Type checking for some inductive entry.
29 Returns:
30 - environment with inductives + parameters in rel context
31 - abstracted universes
32 - checked variance info
33 (variance for section universes is at the beginning of the array)
34 - record entry (checked to be OK)
35 - if primitive record was requested, either: (1) if it's not ok, then why, or (2) whether it has eta
36 - parameters
37 - for each inductive,
38 (arity * constructors) (with params)
39 * (indices * splayed constructor types) (both without params)
40 * top allowed elimination
41 *)
42 val typecheck_inductive : env -> sec_univs:UVars.Instance.t option
43 -> mutual_inductive_entry
44 -> env
45 * universes
46 * template_universes option
47 * UVars.Variance.t array option
48 * Names.Id.t array option option
49 * (Declarations.has_eta, NotPrimRecordReason.t) result option
50 * Constr.rel_context
51 * ((inductive_arity * Constr.types array) *
52 (Constr.rel_context * (Constr.rel_context * Constr.types) array) *
53 squash_info option)
54 array