Debian Codegraph @

kernel/constant_typing.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 open Constr
13 open Environ
14 open Declarations
15 open Entries
16
17 (** Handlers are used to manage side-effects. The ['a] type stands for the type
18 of side-effects, and it is parametric because they are only defined later
19 on. Handlers inline the provided side-effects into the term, and return
20 the set of additional global constraints that need to be added for the term
21 to be well typed. *)
22 type 'a effect_handler =
23 env -> Constr.t -> 'a -> (Constr.t * Univ.ContextSet.t * int)
24
25 type typing_context
26
27 val infer_local_def : env -> Id.t -> section_def_entry ->
28 constr * Sorts.relevance * types
29
30 val infer_local_assum : env -> types -> types * Sorts.relevance
31
32 val infer_primitive : env -> primitive_entry -> ('a, unit) pconstant_body
33
34 val infer_symbol : env -> symbol_entry -> ('a, unit) pconstant_body
35
36 val infer_parameter :
37 sec_univs:UVars.Instance.t option -> env -> parameter_entry ->
38 ('a, unit) pconstant_body
39
40 val infer_definition :
41 sec_univs:UVars.Instance.t option -> env -> definition_entry ->
42 HConstr.t option * ('a, unit) pconstant_body
43
44 val infer_opaque :
45 sec_univs:UVars.Instance.t option -> env -> 'a opaque_entry ->
46 (unit, unit) pconstant_body * typing_context
47
48 val check_delayed : 'a effect_handler -> typing_context -> 'a proof_output ->
49 HConstr.t option * Constr.t * Univ.ContextSet.t Opaqueproof.delayed_universes