Debian Codegraph @

proofs/tactypes.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 (** Tactic-related types that are not totally Ltac specific and still used in
12 lower API. *)
13
14 open Names
15
16 (** {6 Introduction patterns. } *)
17
18 type 'constr intro_pattern_expr =
19 | IntroForthcoming of bool
20 | IntroNaming of Namegen.intro_pattern_naming_expr
21 | IntroAction of 'constr intro_pattern_action_expr
22 and 'constr intro_pattern_action_expr =
23 | IntroWildcard
24 | IntroOrAndPattern of 'constr or_and_intro_pattern_expr
25 | IntroInjection of ('constr intro_pattern_expr) CAst.t list
26 | IntroApplyOn of 'constr CAst.t * 'constr intro_pattern_expr CAst.t
27 | IntroRewrite of bool
28 and 'constr or_and_intro_pattern_expr =
29 | IntroOrPattern of ('constr intro_pattern_expr) CAst.t list list
30 | IntroAndPattern of ('constr intro_pattern_expr) CAst.t list
31
32 (** {6 Bindings. } *)
33
34 type quantified_hypothesis = AnonHyp of int | NamedHyp of lident
35
36 type 'a explicit_bindings = (quantified_hypothesis * 'a) CAst.t list
37
38 type 'a bindings =
39 | ImplicitBindings of 'a list
40 | ExplicitBindings of 'a explicit_bindings
41 | NoBindings
42
43 type 'a with_bindings = 'a * 'a bindings
44
45 type 'a delayed_open = Environ.env -> Evd.evar_map -> Evd.evar_map * 'a
46
47 type delayed_open_constr = EConstr.constr delayed_open
48 type delayed_open_constr_with_bindings = EConstr.constr with_bindings delayed_open
49
50 type intro_pattern = delayed_open_constr intro_pattern_expr CAst.t
51 type intro_patterns = delayed_open_constr intro_pattern_expr CAst.t list
52 type or_and_intro_pattern = delayed_open_constr or_and_intro_pattern_expr CAst.t
53 type intro_pattern_naming = Namegen.intro_pattern_naming_expr CAst.t