| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
open Names |
| 14 |
open Ltac_plugin |
| 15 |
|
| 16 |
|
| 17 |
type ssrhyp = SsrHyp of Id.t Loc.located |
| 18 |
|
| 19 |
type ssrhyp_or_id = Hyp of ssrhyp | Id of ssrhyp |
| 20 |
|
| 21 |
|
| 22 |
type ssrhyps = ssrhyp list |
| 23 |
|
| 24 |
|
| 25 |
type ssrdir = Ssrmatching_plugin.Ssrmatching.ssrdir = L2R | R2L |
| 26 |
|
| 27 |
|
| 28 |
type ssrsimpl = Simpl of int | Cut of int | SimplCut of int * int | Nop |
| 29 |
|
| 30 |
|
| 31 |
type ssrmmod = May | Must | Once |
| 32 |
|
| 33 |
|
| 34 |
type ssrmult = int * ssrmmod |
| 35 |
|
| 36 |
|
| 37 |
type ssrocc = (bool * int list) option |
| 38 |
|
| 39 |
|
| 40 |
type ssrindex = int Locus.or_var |
| 41 |
|
| 42 |
|
| 43 |
type ssrclear = ssrhyps |
| 44 |
|
| 45 |
|
| 46 |
type ssrdocc = ssrclear option * ssrocc |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
type ssrtermkind = Ssrmatching_plugin.Ssrmatching.ssrtermkind |
| 54 |
type ssrterm = ssrtermkind * Genintern.glob_constr_and_expr |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
type ast_glob_env = { |
| 59 |
ast_ltacvars : Id.Set.t; |
| 60 |
ast_extra : Genintern.Store.t; |
| 61 |
ast_intern_sign : Genintern.intern_variable_status; |
| 62 |
} |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
type ast_closure_term = { |
| 69 |
body : Constrexpr.constr_expr; |
| 70 |
glob_env : ast_glob_env option; |
| 71 |
interp_env : Geninterp.interp_sign option; |
| 72 |
annotation : [ `None | `Parens | `DoubleParens | `At ]; |
| 73 |
} |
| 74 |
|
| 75 |
type ssrview = ast_closure_term list |
| 76 |
|
| 77 |
type id_block = Prefix of Id.t | SuffixId of Id.t | SuffixNum of int |
| 78 |
|
| 79 |
|
| 80 |
type anon_kind = |
| 81 |
| One of string option |
| 82 |
| Drop |
| 83 |
| All |
| 84 |
| Temporary |
| 85 |
|
| 86 |
type ssripat = |
| 87 |
| IPatNoop |
| 88 |
| IPatId of Id.t |
| 89 |
| IPatAnon of anon_kind |
| 90 |
| IPatDispatch of ssripatss_or_block |
| 91 |
| IPatCase of ssripatss_or_block |
| 92 |
| IPatInj of ssripatss |
| 93 |
| IPatRewrite of ssrocc * ssrdir |
| 94 |
| IPatView of ssrview |
| 95 |
| IPatClear of ssrclear |
| 96 |
| IPatSimpl of ssrsimpl |
| 97 |
| IPatAbstractVars of Id.t list |
| 98 |
| IPatFastNondep |
| 99 |
|
| 100 |
and ssripats = ssripat list |
| 101 |
and ssripatss = ssripats list |
| 102 |
and ssripatss_or_block = |
| 103 |
| Block of id_block |
| 104 |
| Regular of ssripats list |
| 105 |
type ssrhpats = ((ssrclear option * ssripats) * ssripats) * ssripats |
| 106 |
type ssrhpats_wtransp = bool * ssrhpats |
| 107 |
|
| 108 |
|
| 109 |
type ssrintrosarg = Tacexpr.raw_tactic_expr * ssripats |
| 110 |
|
| 111 |
|
| 112 |
type ssrfwdid = Id.t |
| 113 |
|
| 114 |
|
| 115 |
type 'term ssrbind = |
| 116 |
| Bvar of Name.t |
| 117 |
| Bdecl of Name.t list * 'term |
| 118 |
| Bdef of Name.t * 'term option * 'term |
| 119 |
| Bstruct of Name.t |
| 120 |
| Bcast of 'term |
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
type ssrbindfmt = |
| 126 |
| BFvar |
| 127 |
| BFdecl of int |
| 128 |
| BFcast |
| 129 |
| BFdef |
| 130 |
| BFrec of bool * bool |
| 131 |
type 'term ssrbindval = 'term ssrbind list * 'term |
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
type ssrfwdkind = FwdHint of string * bool | FwdHave | FwdPose |
| 139 |
type ssrfwdfmt = ssrfwdkind * ssrbindfmt list |
| 140 |
|
| 141 |
|
| 142 |
type ssrclseq = InGoal | InHyps |
| 143 |
| InHypsGoal | InHypsSeqGoal | InSeqGoal | InHypsSeq | InAll | InAllHyps |
| 144 |
|
| 145 |
type 'tac ssrhint = bool * 'tac option list |
| 146 |
|
| 147 |
type 'tac fwdbinders = |
| 148 |
bool * (ssrhpats * ((ssrfwdfmt * ast_closure_term) * 'tac ssrhint)) |
| 149 |
|
| 150 |
type 'tac ffwbinders = |
| 151 |
(ssrhpats * ((ssrfwdfmt * ast_closure_term) * 'tac ssrhint)) |
| 152 |
|
| 153 |
type clause = |
| 154 |
(ssrclear * ((ssrhyp_or_id * string) * |
| 155 |
Ssrmatching_plugin.Ssrmatching.cpattern option) option) |
| 156 |
type clauses = clause list * ssrclseq |
| 157 |
|
| 158 |
type wgen = |
| 159 |
(ssrclear * |
| 160 |
((ssrhyp_or_id * string) * |
| 161 |
Ssrmatching_plugin.Ssrmatching.cpattern option) |
| 162 |
option) |
| 163 |
|
| 164 |
type 'a ssrdoarg = ((ssrindex * ssrmmod) * 'a ssrhint) * clauses |
| 165 |
type 'a ssrseqarg = ssrindex * ('a ssrhint * 'a option) |
| 166 |
|
| 167 |
|
| 168 |
open Ssrmatching_plugin |
| 169 |
open Ssrmatching |
| 170 |
|
| 171 |
type 'a ssrcasearg = ssripat option * ('a * ssripats) |
| 172 |
type 'a ssrmovearg = ssrview * 'a ssrcasearg |
| 173 |
|
| 174 |
type ssrdgens = { dgens : (ssrdocc * cpattern) list; |
| 175 |
gens : (ssrdocc * cpattern) list; |
| 176 |
clr : ssrclear } |
| 177 |
type 'a ssragens = (ssrdocc * 'a) list list * ssrclear |
| 178 |
type ssrapplyarg = ssrterm list * (ssrterm ssragens * ssripats) |
| 179 |
|
| 180 |
|
| 181 |
type gist = Tacintern.glob_sign |
| 182 |
type ist = Tacinterp.interp_sign |
| 183 |
type goal = Evar.t |