Debian Codegraph @

plugins/ltac/tacintern.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 Tacexpr
13 open Genarg
14 open Constrexpr
15 open Genintern
16 open Tactypes
17
18 (** Globalization of tactic expressions :
19 Conversion from [raw_tactic_expr] to [glob_tactic_expr] *)
20
21 type glob_sign = Genintern.glob_sign = {
22 ltacvars : Id.Set.t;
23 genv : Environ.env;
24 extra : Genintern.Store.t;
25 intern_sign : Genintern.intern_variable_status;
26 strict_check : bool;
27 }
28
29 val make_empty_glob_sign : strict:bool -> glob_sign
30 (** build an empty [glob_sign] using [Global.env()] as
31 environment; strict_check if true *)
32
33 (** Main globalization functions *)
34
35 val glob_tactic : raw_tactic_expr -> glob_tactic_expr
36
37 val glob_tactic_env :
38 Id.t list -> Environ.env -> raw_tactic_expr -> glob_tactic_expr
39
40 (** Low-level variants *)
41
42 val intern_pure_tactic : glob_sign -> raw_tactic_expr -> glob_tactic_expr
43
44 val intern_tactic_or_tacarg :
45 glob_sign -> raw_tactic_expr -> Tacexpr.glob_tactic_expr
46
47 val intern_constr : glob_sign -> constr_expr -> glob_constr_and_expr
48
49 val intern_constr_with_bindings :
50 glob_sign -> constr_expr * constr_expr bindings ->
51 glob_constr_and_expr * glob_constr_and_expr bindings
52
53 val intern_hyp : glob_sign -> lident -> lident
54
55 (** Adds a globalization function for extra generic arguments *)
56
57 val intern_genarg : glob_sign -> raw_generic_argument -> glob_generic_argument
58
59 (** Reduction expressions *)
60
61 val intern_red_expr : glob_sign -> Redexpr.raw_red_expr -> Redexpr.glob_red_expr
62
63 val intern_strategy : glob_sign -> raw_strategy -> glob_strategy