Debian Codegraph @

vernac/retrieveObl.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
4 (* <O___,, * (see CREDITS file for the list of authors) *)
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 val check_evars : Environ.env -> Evd.evar_map -> unit
12
13 type obligation_info =
14 ( Names.Id.t
15 * Constr.types
16 * Evar_kinds.t Loc.located
17 * (bool * Evar_kinds.obligation_definition_status)
18 * Int.Set.t
19 * unit Proofview.tactic option )
20 array
21 (** ident, type, location of the original evar, (opaque or
22 transparent, expand or define), dependencies as indexes into the
23 array, tactic to solve it *)
24
25 type obligation_name_lifter =
26 (Names.Id.t -> EConstr.t) -> EConstr.t -> Constr.t
27
28 val retrieve_obligations :
29 Environ.env
30 -> Names.Id.t
31 -> Evd.evar_map
32 -> int
33 -> ?deps:Evar.Set.t
34 -> ?status:Evar_kinds.obligation_definition_status
35 -> EConstr.t
36 -> EConstr.types
37 -> obligation_info
38 * ( (Evar.t * Names.Id.t) list * obligation_name_lifter )
39 * Constr.t
40 * Constr.t
41 (** [retrieve_obligations env id sigma fs ?status body type] returns
42 [obls, (evnames, evmap), nbody, ntype] a list of obligations built
43 from evars in [body, type].
44
45 [fs] is the number of function prototypes to try to clear from
46 evars contexts. [evnames, evmap] is the list of names /
47 substitution functions used to program with holes. This is not used
48 in Rocq, but in the equations plugin; [evnames] is actually
49 redundant with the information contained in [obls] *)