Debian Codegraph @

vernac/comAssumption.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 Vernacexpr
13 open Constrexpr
14
15 (** {6 Parameters/Assumptions} *)
16
17 (** Declaration of a local assumption (Variable/Hypothesis) *)
18 val declare_variable
19 : coe:coercion_flag
20 -> kind:Decls.assumption_object_kind
21 -> univs:UState.named_universes_entry
22 -> impargs:Impargs.manual_implicits
23 -> impl:Glob_term.binding_kind
24 -> name:variable
25 -> Constr.types
26 -> GlobRef.t * UVars.Instance.t
27
28 (** Declaration of a local construction (Variable/Hypothesis/Let) *)
29 val declare_local
30 : coe:coercion_flag
31 -> try_assum_as_instance:bool (* true = declare a variable of type a class as an instance *)
32 -> kind:Decls.logical_kind
33 -> univs:UState.named_universes_entry
34 -> impargs:Impargs.manual_implicits
35 -> impl:Glob_term.binding_kind
36 -> name:variable
37 -> Constr.constr option
38 -> Constr.types
39 -> GlobRef.t * UVars.Instance.t
40
41 (** Declaration of a global assumption (Axiom/Parameter) *)
42 val declare_axiom
43 : coe:coercion_flag
44 -> local:Locality.import_status
45 -> kind:Decls.assumption_object_kind
46 -> ?user_warns:Globnames.extended_global_reference UserWarn.with_qf
47 -> univs:UState.named_universes_entry
48 -> impargs:Impargs.manual_implicits
49 -> inline:Declaremods.inline
50 -> name:lident
51 -> Constr.types
52 -> GlobRef.t * UVars.Instance.t
53
54 (** Declaration of a global construction (Axiom/Parameter/Definition) *)
55 val declare_global
56 : coe:coercion_flag
57 -> try_assum_as_instance:bool (* true = declare a parameter of type a class as an instance *)
58 -> local:Locality.import_status
59 -> kind:Decls.logical_kind
60 -> ?user_warns:Globnames.extended_global_reference UserWarn.with_qf
61 -> univs:UState.named_universes_entry
62 -> impargs:Impargs.manual_implicits
63 -> inline:Declaremods.inline
64 -> name:lident
65 -> Constr.constr option
66 -> Constr.types
67 -> GlobRef.t * UVars.Instance.t
68
69 (** Interpret the commands Variable/Hypothesis/Axiom/Parameter *)
70 val do_assumptions
71 : program_mode:bool
72 -> poly:PolyFlags.t
73 -> scope:Locality.definition_scope
74 -> kind:Decls.assumption_object_kind
75 -> ?user_warns:Globnames.extended_global_reference UserWarn.with_qf
76 -> inline:Declaremods.inline
77 -> (ident_decl list * constr_expr) with_coercion list
78 -> unit
79
80 (** Interpret the command Context *)
81 val do_context
82 : program_mode:bool
83 -> poly:PolyFlags.t
84 -> local_binder_expr list
85 -> unit
86
87 (** Interpret a declaration of the form [binders |- typ] as a type *)
88 val interp_assumption
89 : program_mode:bool
90 -> poly:PolyFlags.t
91 -> Environ.env
92 -> Evd.evar_map
93 -> Constrintern.internalization_env
94 -> Constrexpr.local_binder_expr list
95 -> constr_expr
96 -> Evd.evar_map * EConstr.types * Impargs.manual_implicits
97
98 (** The first half of the context command, returning the declarations
99 in the same order as [Context], using de Bruijn indices (used by Elpi) *)
100 val interp_context
101 : Environ.env
102 -> Evd.evar_map
103 -> local_binder_expr list
104 -> Evd.evar_map * (Id.t * Constr.t option * Constr.t * Glob_term.binding_kind) list