Debian Codegraph @

plugins/extraction/extraction.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 (*s Extraction from Rocq terms to Miniml. *)
12
13 open Names
14 open Declarations
15 open Environ
16 open Evd
17 open Miniml
18
19 val extract_constant : Common.State.t -> Global.indirect_accessor -> env -> Constant.t -> InfvInst.t -> constant_body -> ml_decl
20
21 val extract_constant_spec : Common.State.t -> env -> Constant.t -> InfvInst.t -> ('a, 'b) pconstant_body -> ml_spec
22
23 (** For extracting "module ... with ..." declaration *)
24
25 val extract_with_type :
26 Common.State.t -> env -> evar_map -> EConstr.t -> ( Id.t list * ml_type ) option
27
28 val extract_fixpoint :
29 Common.State.t -> env -> evar_map -> Constant.t array -> InfvInst.t -> EConstr.rec_declaration -> ml_decl
30
31 val extract_inductive : Common.State.t -> env -> MutInd.t -> InfvInst.t -> ml_ind
32
33 (** For Extraction Compute and Show Extraction *)
34
35 val extract_constr : Common.State.t -> env -> evar_map -> EConstr.t -> ml_ast * ml_type
36
37 (*s Is a [ml_decl] or a [ml_spec] logical ? *)
38
39 val logical_decl : ml_decl -> bool
40 val logical_spec : ml_spec -> bool