Debian Codegraph @

plugins/ltac2/tac2types.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 EConstr
13 open Proofview
14
15 (** Redefinition of Ltac1 data structures because of impedance mismatch *)
16
17 type evars_flag = bool
18 type advanced_flag = bool
19
20 type 'a thunk = (unit, 'a) Tac2ffi.fun1
21
22 type quantified_hypothesis = Tactypes.quantified_hypothesis =
23 | AnonHyp of int
24 | NamedHyp of lident
25
26 type explicit_bindings = (quantified_hypothesis * EConstr.t) list
27
28 type bindings =
29 | ImplicitBindings of EConstr.t list
30 | ExplicitBindings of explicit_bindings
31 | NoBindings
32
33 type constr_with_bindings = EConstr.constr * bindings
34
35 type core_destruction_arg =
36 | ElimOnConstr of constr_with_bindings tactic
37 | ElimOnIdent of Id.t
38 | ElimOnAnonHyp of int
39
40 type destruction_arg = core_destruction_arg
41
42 type intro_pattern =
43 | IntroForthcoming of bool
44 | IntroNaming of intro_pattern_naming
45 | IntroAction of intro_pattern_action
46 and intro_pattern_naming =
47 | IntroIdentifier of Id.t
48 | IntroFresh of Id.t
49 | IntroAnonymous
50 and intro_pattern_action =
51 | IntroWildcard
52 | IntroOrAndPattern of or_and_intro_pattern
53 | IntroInjection of intro_pattern list
54 | IntroApplyOn of EConstr.t thunk * intro_pattern
55 | IntroRewrite of bool
56 and or_and_intro_pattern =
57 | IntroOrPattern of intro_pattern list list
58 | IntroAndPattern of intro_pattern list
59
60 type occurrences =
61 | AllOccurrences
62 | AllOccurrencesBut of int list
63 | NoOccurrences
64 | OnlyOccurrences of int list
65
66 type hyp_location_flag = Locus.hyp_location_flag =
67 | InHyp | InHypTypeOnly | InHypValueOnly
68
69 type hyp_location = Id.t * occurrences * hyp_location_flag
70
71 type clause =
72 { onhyps : hyp_location list option;
73 concl_occs : occurrences }
74
75 type induction_clause =
76 destruction_arg *
77 intro_pattern_naming option *
78 or_and_intro_pattern option *
79 clause option
80
81 type multi = Equality.multi =
82 | Precisely of int
83 | UpTo of int
84 | RepeatStar
85 | RepeatPlus
86
87 type orientation = bool
88
89 type rewriting =
90 orientation option *
91 multi *
92 constr_with_bindings tactic
93
94 type assertion =
95 | AssertType of intro_pattern option * constr * unit thunk option
96 | AssertValue of Id.t * constr
97
98 type format =
99 | FmtString
100 | FmtInt
101 | FmtConstr
102 | FmtIdent
103 | FmtLiteral of string
104 | FmtAlpha
105 | FmtAlpha0
106 | FmtMessage
107
108 type red_flag = Names.GlobRef.t Genredexpr.glob_red_flag
109
110 type red_context = (Pattern.constr_pattern * occurrences) option