| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
type raw = bool |
| 16 |
type verbose = bool |
| 17 |
|
| 18 |
|
| 19 |
type goal = { |
| 20 |
goal_id : string; |
| 21 |
|
| 22 |
goal_hyp : Pp.t list; |
| 23 |
|
| 24 |
goal_ccl : Pp.t; |
| 25 |
|
| 26 |
goal_name : string option; |
| 27 |
|
| 28 |
} |
| 29 |
|
| 30 |
type evar = { |
| 31 |
evar_info : string; |
| 32 |
|
| 33 |
} |
| 34 |
|
| 35 |
type status = { |
| 36 |
status_path : string list; |
| 37 |
|
| 38 |
status_proofname : string option; |
| 39 |
|
| 40 |
status_allproofs : string list; |
| 41 |
|
| 42 |
status_proofnum : int; |
| 43 |
|
| 44 |
} |
| 45 |
|
| 46 |
type 'a pre_goals = { |
| 47 |
fg_goals : 'a list; |
| 48 |
|
| 49 |
bg_goals : ('a list * 'a list) list; |
| 50 |
|
| 51 |
shelved_goals : 'a list; |
| 52 |
|
| 53 |
given_up_goals : 'a list; |
| 54 |
|
| 55 |
} |
| 56 |
|
| 57 |
type goals = goal pre_goals |
| 58 |
|
| 59 |
type hint = (string * string) list |
| 60 |
|
| 61 |
|
| 62 |
type option_name = string list |
| 63 |
|
| 64 |
type option_value = |
| 65 |
| BoolValue of bool |
| 66 |
| IntValue of int option |
| 67 |
| StringValue of string |
| 68 |
| StringOptValue of string option |
| 69 |
|
| 70 |
|
| 71 |
type option_state = { |
| 72 |
opt_sync : bool; |
| 73 |
|
| 74 |
opt_depr : bool; |
| 75 |
|
| 76 |
opt_value : option_value; |
| 77 |
|
| 78 |
} |
| 79 |
|
| 80 |
type search_constraint = |
| 81 |
| Name_Pattern of string |
| 82 |
|
| 83 |
|
| 84 |
| Type_Pattern of string |
| 85 |
|
| 86 |
|
| 87 |
| SubType_Pattern of string |
| 88 |
|
| 89 |
|
| 90 |
| In_Module of string list |
| 91 |
|
| 92 |
|
| 93 |
| Include_Blacklist |
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
type search_flags = (search_constraint * bool) list |
| 99 |
|
| 100 |
|
| 101 |
type goal_flags = { |
| 102 |
gf_mode : string; |
| 103 |
gf_fg : bool; |
| 104 |
gf_bg : bool; |
| 105 |
gf_shelved : bool; |
| 106 |
gf_given_up : bool; |
| 107 |
} |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
type 'a coq_object = { |
| 114 |
coq_object_prefix : string list; |
| 115 |
coq_object_qualid : string list; |
| 116 |
coq_object_object : 'a; |
| 117 |
} |
| 118 |
|
| 119 |
type coq_info = { |
| 120 |
coqtop_version : string; |
| 121 |
protocol_version : string; |
| 122 |
release_date : string; |
| 123 |
compile_date : string; |
| 124 |
} |
| 125 |
|
| 126 |
|
| 127 |
type db_continue_opt = |
| 128 |
| StepIn |
| 129 |
| StepOver |
| 130 |
| StepOut |
| 131 |
| Continue |
| 132 |
| Interrupt |
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
type location = Loc.t option |
| 137 |
type state_id = Stateid.t |
| 138 |
type route_id = Feedback.route_id |
| 139 |
|
| 140 |
|
| 141 |
type edit_id = int |
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
type 'a value = |
| 146 |
| Good of 'a |
| 147 |
| Fail of (state_id * location * Pp.t) |
| 148 |
|
| 149 |
type ('a, 'b) union = ('a, 'b) Util.union |
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
type add_sty = (((string * edit_id) * (state_id * verbose)) * int) * (int * int) |
| 162 |
type add_rty = state_id * (unit, state_id) union |
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
type edit_at_sty = state_id |
| 171 |
type edit_at_rty = (unit, state_id * (state_id * state_id)) union |
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
type query_sty = route_id * (string * state_id) |
| 180 |
type query_rty = unit |
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
type goals_sty = unit |
| 185 |
type goals_rty = goals option |
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
type subgoals_sty = goal_flags |
| 190 |
type subgoals_rty = goals option |
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
type evars_sty = unit |
| 195 |
type evars_rty = evar list option |
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
type hints_sty = unit |
| 200 |
type hints_rty = (hint list * hint) option |
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
type status_sty = bool |
| 206 |
type status_rty = status |
| 207 |
|
| 208 |
|
| 209 |
type search_sty = search_flags |
| 210 |
type search_rty = string coq_object list |
| 211 |
|
| 212 |
|
| 213 |
type proof_diff_sty = string * Stateid.t |
| 214 |
type proof_diff_rty = Pp.t |
| 215 |
|
| 216 |
|
| 217 |
type db_cmd_sty = string |
| 218 |
type db_cmd_rty = unit |
| 219 |
|
| 220 |
|
| 221 |
type db_upd_bpts_sty = ((string * int) * bool) list |
| 222 |
type db_upd_bpts_rty = unit |
| 223 |
|
| 224 |
|
| 225 |
type db_continue_sty = db_continue_opt |
| 226 |
type db_continue_rty = unit |
| 227 |
|
| 228 |
|
| 229 |
type db_stack_sty = unit |
| 230 |
type db_stack_rty = (string * (string * int list) option) list |
| 231 |
|
| 232 |
|
| 233 |
type db_vars_sty = int |
| 234 |
type db_vars_rty = (string * Pp.t) list |
| 235 |
|
| 236 |
|
| 237 |
type db_configd_sty = unit |
| 238 |
type db_configd_rty = unit |
| 239 |
|
| 240 |
|
| 241 |
type get_options_sty = unit |
| 242 |
type get_options_rty = (option_name * option_state) list |
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
|
| 247 |
type set_options_sty = (option_name * option_value) list |
| 248 |
type set_options_rty = unit |
| 249 |
|
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
type mkcases_sty = string |
| 254 |
type mkcases_rty = string list list |
| 255 |
|
| 256 |
|
| 257 |
type quit_sty = unit |
| 258 |
type quit_rty = unit |
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
|
| 263 |
type init_sty = string option |
| 264 |
type init_rty = state_id |
| 265 |
|
| 266 |
type about_sty = unit |
| 267 |
type about_rty = coq_info |
| 268 |
|
| 269 |
type handle_exn_sty = Exninfo.iexn |
| 270 |
type handle_exn_rty = state_id * location * Pp.t |
| 271 |
|
| 272 |
|
| 273 |
type interp_sty = (raw * verbose) * string |
| 274 |
|
| 275 |
type interp_rty = state_id * (string,string) Util.union |
| 276 |
|
| 277 |
type stop_worker_sty = string |
| 278 |
type stop_worker_rty = unit |
| 279 |
|
| 280 |
type print_ast_sty = state_id |
| 281 |
type print_ast_rty = Xml_datatype.xml |
| 282 |
|
| 283 |
type annotate_sty = string |
| 284 |
type annotate_rty = Xml_datatype.xml |
| 285 |
|
| 286 |
type wait_sty = unit |
| 287 |
type wait_rty = unit |
| 288 |
|
| 289 |
type handler = { |
| 290 |
add : add_sty -> add_rty; |
| 291 |
edit_at : edit_at_sty -> edit_at_rty; |
| 292 |
query : query_sty -> query_rty; |
| 293 |
goals : goals_sty -> goals_rty; |
| 294 |
evars : evars_sty -> evars_rty; |
| 295 |
hints : hints_sty -> hints_rty; |
| 296 |
status : status_sty -> status_rty; |
| 297 |
search : search_sty -> search_rty; |
| 298 |
get_options : get_options_sty -> get_options_rty; |
| 299 |
set_options : set_options_sty -> set_options_rty; |
| 300 |
mkcases : mkcases_sty -> mkcases_rty; |
| 301 |
about : about_sty -> about_rty; |
| 302 |
stop_worker : stop_worker_sty -> stop_worker_rty; |
| 303 |
print_ast : print_ast_sty -> print_ast_rty; |
| 304 |
annotate : annotate_sty -> annotate_rty; |
| 305 |
proof_diff : proof_diff_sty -> proof_diff_rty; |
| 306 |
db_cmd : db_cmd_sty -> db_cmd_rty; |
| 307 |
db_upd_bpts : db_upd_bpts_sty -> db_upd_bpts_rty; |
| 308 |
db_continue : db_continue_sty -> db_continue_rty; |
| 309 |
db_stack : db_stack_sty -> db_stack_rty; |
| 310 |
db_vars : db_vars_sty -> db_vars_rty; |
| 311 |
db_configd : db_configd_sty -> db_configd_rty; |
| 312 |
handle_exn : handle_exn_sty -> handle_exn_rty; |
| 313 |
init : init_sty -> init_rty; |
| 314 |
quit : quit_sty -> quit_rty; |
| 315 |
|
| 316 |
wait : wait_sty -> wait_rty; |
| 317 |
|
| 318 |
interp : interp_sty -> interp_rty; |
| 319 |
subgoals : subgoals_sty -> subgoals_rty; |
| 320 |
} |