author | traytel |
Sat, 17 Dec 2011 15:53:58 +0100 | |
changeset 45935 | 32f769f94ea4 |
parent 45134 | 9b02f6665fc8 |
child 46938 | cda018294515 |
permissions | -rw-r--r-- |
12176 | 1 |
;; |
2 |
;; Keyword classification tables for Isabelle/Isar. |
|
38837
b47ee8df7ab4
discontinued separate Pure-ProofGeneral keywords session -- protocol commands are already defined in Pure;
wenzelm
parents:
38708
diff
changeset
|
3 |
;; Generated from Pure + FOL + ZF. |
24904 | 4 |
;; *** DO NOT EDIT *** DO NOT EDIT *** DO NOT EDIT *** |
12176 | 5 |
;; |
6 |
||
7 |
(defconst isar-keywords-major |
|
8 |
'("\\." |
|
9 |
"\\.\\." |
|
25577 | 10 |
"Isabelle\\.command" |
12176 | 11 |
"ML" |
12 |
"ML_command" |
|
28261 | 13 |
"ML_prf" |
26394 | 14 |
"ML_val" |
12176 | 15 |
"ProofGeneral\\.inform_file_processed" |
16 |
"ProofGeneral\\.inform_file_retracted" |
|
17 |
"ProofGeneral\\.kill_proof" |
|
33874 | 18 |
"ProofGeneral\\.pr" |
14937 | 19 |
"ProofGeneral\\.process_pgip" |
12176 | 20 |
"ProofGeneral\\.restart" |
21 |
"ProofGeneral\\.undo" |
|
19069 | 22 |
"abbreviation" |
12176 | 23 |
"also" |
24 |
"apply" |
|
25 |
"apply_end" |
|
26 |
"arities" |
|
27 |
"assume" |
|
30527 | 28 |
"attribute_setup" |
18702 | 29 |
"axiomatization" |
12176 | 30 |
"axioms" |
31 |
"back" |
|
32 |
"by" |
|
33 |
"cannot_undo" |
|
34 |
"case" |
|
35 |
"cd" |
|
36 |
"chapter" |
|
18552 | 37 |
"class" |
20568 | 38 |
"class_deps" |
12176 | 39 |
"classes" |
40 |
"classrel" |
|
31107 | 41 |
"codatatype" |
22486 | 42 |
"code_datatype" |
31107 | 43 |
"coinductive" |
12176 | 44 |
"commit" |
45 |
"consts" |
|
46 |
"context" |
|
47 |
"corollary" |
|
31107 | 48 |
"datatype" |
22084 | 49 |
"declaration" |
12176 | 50 |
"declare" |
51 |
"def" |
|
36455 | 52 |
"default_sort" |
12176 | 53 |
"defer" |
18775 | 54 |
"definition" |
12176 | 55 |
"defs" |
56 |
"disable_pr" |
|
14937 | 57 |
"display_drafts" |
12176 | 58 |
"done" |
59 |
"enable_pr" |
|
60 |
"end" |
|
61 |
"exit" |
|
13407 | 62 |
"extract" |
63 |
"extract_type" |
|
14508
859b11514537
Experimental command for instantiation of locales in proof contexts:
ballarin
parents:
14109
diff
changeset
|
64 |
"finalconsts" |
12176 | 65 |
"finally" |
29882
29154e67731d
New command find_consts searching for constants by type (by Timothy Bourke).
kleing
parents:
29607
diff
changeset
|
66 |
"find_consts" |
17220 | 67 |
"find_theorems" |
12176 | 68 |
"fix" |
69 |
"from" |
|
70 |
"full_prf" |
|
17850 | 71 |
"guess" |
12176 | 72 |
"have" |
73 |
"header" |
|
21732 | 74 |
"help" |
12176 | 75 |
"hence" |
36180 | 76 |
"hide_class" |
77 |
"hide_const" |
|
78 |
"hide_fact" |
|
79 |
"hide_type" |
|
31107 | 80 |
"inductive" |
81 |
"inductive_cases" |
|
12176 | 82 |
"init_toplevel" |
83 |
"instance" |
|
24866 | 84 |
"instantiation" |
15624
484178635bd8
Further work on interpretation commands. New command `interpret' for
ballarin
parents:
15598
diff
changeset
|
85 |
"interpret" |
15598
4ab52355bb53
Registrations of global locale interpretations: improved, better naming.
ballarin
parents:
15596
diff
changeset
|
86 |
"interpretation" |
12176 | 87 |
"judgment" |
88 |
"kill" |
|
89 |
"kill_thy" |
|
90 |
"lemma" |
|
91 |
"lemmas" |
|
92 |
"let" |
|
27538 | 93 |
"linear_undo" |
30463 | 94 |
"local_setup" |
12176 | 95 |
"locale" |
96 |
"method_setup" |
|
97 |
"moreover" |
|
98 |
"next" |
|
24945 | 99 |
"no_notation" |
15762 | 100 |
"no_syntax" |
19255 | 101 |
"no_translations" |
35414 | 102 |
"no_type_notation" |
41229
d797baa3d57c
replaced command 'nonterminals' by slightly modernized version 'nonterminal';
wenzelm
parents:
40965
diff
changeset
|
103 |
"nonterminal" |
21203 | 104 |
"notation" |
12176 | 105 |
"note" |
40960 | 106 |
"notepad" |
12176 | 107 |
"obtain" |
108 |
"oops" |
|
109 |
"oracle" |
|
25516 | 110 |
"overloading" |
12176 | 111 |
"parse_ast_translation" |
112 |
"parse_translation" |
|
113 |
"pr" |
|
114 |
"prefer" |
|
115 |
"presume" |
|
116 |
"pretty_setmargin" |
|
117 |
"prf" |
|
31107 | 118 |
"primrec" |
21732 | 119 |
"print_abbrevs" |
12176 | 120 |
"print_antiquotations" |
121 |
"print_ast_translation" |
|
122 |
"print_attributes" |
|
123 |
"print_binds" |
|
124 |
"print_cases" |
|
125 |
"print_claset" |
|
20378 | 126 |
"print_classes" |
22288 | 127 |
"print_codesetup" |
12176 | 128 |
"print_commands" |
24111 | 129 |
"print_configs" |
12176 | 130 |
"print_context" |
41435 | 131 |
"print_dependencies" |
14937 | 132 |
"print_drafts" |
12176 | 133 |
"print_facts" |
134 |
"print_induct_rules" |
|
32804
ca430e6aee1c
Propagation of mixins for interpretation; reactivated diagnostic command print_interps.
ballarin
parents:
31130
diff
changeset
|
135 |
"print_interps" |
12176 | 136 |
"print_locale" |
137 |
"print_locales" |
|
138 |
"print_methods" |
|
12365 | 139 |
"print_rules" |
12176 | 140 |
"print_simpset" |
19272 | 141 |
"print_statement" |
12176 | 142 |
"print_syntax" |
31107 | 143 |
"print_tcset" |
12176 | 144 |
"print_theorems" |
145 |
"print_theory" |
|
146 |
"print_trans_rules" |
|
147 |
"print_translation" |
|
148 |
"proof" |
|
149 |
"prop" |
|
150 |
"pwd" |
|
151 |
"qed" |
|
152 |
"quit" |
|
13407 | 153 |
"realizability" |
154 |
"realizers" |
|
12176 | 155 |
"remove_thy" |
31107 | 156 |
"rep_datatype" |
36321 | 157 |
"schematic_corollary" |
158 |
"schematic_lemma" |
|
159 |
"schematic_theorem" |
|
12176 | 160 |
"sect" |
161 |
"section" |
|
162 |
"setup" |
|
163 |
"show" |
|
22200 | 164 |
"simproc_setup" |
12176 | 165 |
"sorry" |
24919 | 166 |
"subclass" |
28895 | 167 |
"sublocale" |
12176 | 168 |
"subsect" |
169 |
"subsection" |
|
170 |
"subsubsect" |
|
171 |
"subsubsection" |
|
172 |
"syntax" |
|
40784 | 173 |
"syntax_declaration" |
12176 | 174 |
"term" |
175 |
"text" |
|
176 |
"text_raw" |
|
177 |
"then" |
|
178 |
"theorem" |
|
179 |
"theorems" |
|
180 |
"theory" |
|
181 |
"thm" |
|
182 |
"thm_deps" |
|
183 |
"thus" |
|
22486 | 184 |
"thy_deps" |
12176 | 185 |
"translations" |
186 |
"txt" |
|
187 |
"txt_raw" |
|
188 |
"typ" |
|
35414 | 189 |
"type_notation" |
41249
26f12f98f50a
Command 'type_synonym' (with single argument) supersedes 'types' (legacy feature);
wenzelm
parents:
41229
diff
changeset
|
190 |
"type_synonym" |
12176 | 191 |
"typed_print_translation" |
192 |
"typedecl" |
|
193 |
"ultimately" |
|
194 |
"undo" |
|
195 |
"undos_proof" |
|
18541 | 196 |
"unfolding" |
26184 | 197 |
"unused_thms" |
12176 | 198 |
"use" |
199 |
"use_thy" |
|
12926 | 200 |
"using" |
12176 | 201 |
"welcome" |
202 |
"with" |
|
36505
79c1d2bbe5a9
ProofContext.read_const: allow for type constraint (for fixed variable);
wenzelm
parents:
36455
diff
changeset
|
203 |
"write" |
12176 | 204 |
"{" |
205 |
"}")) |
|
206 |
||
207 |
(defconst isar-keywords-minor |
|
14660 | 208 |
'("advanced" |
209 |
"and" |
|
12176 | 210 |
"assumes" |
17147 | 211 |
"attach" |
15135 | 212 |
"begin" |
12176 | 213 |
"binder" |
31107 | 214 |
"case_eqns" |
215 |
"con_defs" |
|
16168
adb83939177f
Locales: new element constrains, parameter renaming with syntax,
ballarin
parents:
16034
diff
changeset
|
216 |
"constrains" |
12176 | 217 |
"defines" |
31107 | 218 |
"domains" |
219 |
"elimination" |
|
12176 | 220 |
"fixes" |
19797 | 221 |
"for" |
22288 | 222 |
"identifier" |
19797 | 223 |
"if" |
15141 | 224 |
"imports" |
12176 | 225 |
"in" |
31107 | 226 |
"induction" |
12176 | 227 |
"infix" |
228 |
"infixl" |
|
229 |
"infixr" |
|
31107 | 230 |
"intros" |
12176 | 231 |
"is" |
31107 | 232 |
"monos" |
12176 | 233 |
"notes" |
18888 | 234 |
"obtains" |
13364 | 235 |
"open" |
12176 | 236 |
"output" |
237 |
"overloaded" |
|
33685 | 238 |
"pervasive" |
31107 | 239 |
"recursor_eqns" |
12935 | 240 |
"shows" |
12176 | 241 |
"structure" |
31107 | 242 |
"type_elims" |
243 |
"type_intros" |
|
19633 | 244 |
"unchecked" |
16419 | 245 |
"uses" |
12176 | 246 |
"where")) |
247 |
||
248 |
(defconst isar-keywords-control |
|
25577 | 249 |
'("Isabelle\\.command" |
250 |
"ProofGeneral\\.inform_file_processed" |
|
12176 | 251 |
"ProofGeneral\\.inform_file_retracted" |
252 |
"ProofGeneral\\.kill_proof" |
|
14937 | 253 |
"ProofGeneral\\.process_pgip" |
12176 | 254 |
"ProofGeneral\\.restart" |
255 |
"ProofGeneral\\.undo" |
|
256 |
"cannot_undo" |
|
40396 | 257 |
"cd" |
258 |
"commit" |
|
37987
aac4eb1fa1d8
explicit Keyword.control markup for various control commands -- to prevent them from occurring in proof documents;
wenzelm
parents:
37983
diff
changeset
|
259 |
"disable_pr" |
aac4eb1fa1d8
explicit Keyword.control markup for various control commands -- to prevent them from occurring in proof documents;
wenzelm
parents:
37983
diff
changeset
|
260 |
"enable_pr" |
12176 | 261 |
"exit" |
262 |
"init_toplevel" |
|
263 |
"kill" |
|
37987
aac4eb1fa1d8
explicit Keyword.control markup for various control commands -- to prevent them from occurring in proof documents;
wenzelm
parents:
37983
diff
changeset
|
264 |
"kill_thy" |
27538 | 265 |
"linear_undo" |
12176 | 266 |
"quit" |
37987
aac4eb1fa1d8
explicit Keyword.control markup for various control commands -- to prevent them from occurring in proof documents;
wenzelm
parents:
37983
diff
changeset
|
267 |
"remove_thy" |
12176 | 268 |
"undo" |
37987
aac4eb1fa1d8
explicit Keyword.control markup for various control commands -- to prevent them from occurring in proof documents;
wenzelm
parents:
37983
diff
changeset
|
269 |
"undos_proof" |
aac4eb1fa1d8
explicit Keyword.control markup for various control commands -- to prevent them from occurring in proof documents;
wenzelm
parents:
37983
diff
changeset
|
270 |
"use_thy")) |
12176 | 271 |
|
272 |
(defconst isar-keywords-diag |
|
26482 | 273 |
'("ML_command" |
26394 | 274 |
"ML_val" |
33874 | 275 |
"ProofGeneral\\.pr" |
20568 | 276 |
"class_deps" |
14937 | 277 |
"display_drafts" |
29882
29154e67731d
New command find_consts searching for constants by type (by Timothy Bourke).
kleing
parents:
29607
diff
changeset
|
278 |
"find_consts" |
17220 | 279 |
"find_theorems" |
12176 | 280 |
"full_prf" |
281 |
"header" |
|
21732 | 282 |
"help" |
12176 | 283 |
"pr" |
284 |
"pretty_setmargin" |
|
285 |
"prf" |
|
21732 | 286 |
"print_abbrevs" |
12176 | 287 |
"print_antiquotations" |
288 |
"print_attributes" |
|
289 |
"print_binds" |
|
290 |
"print_cases" |
|
291 |
"print_claset" |
|
20378 | 292 |
"print_classes" |
22288 | 293 |
"print_codesetup" |
12176 | 294 |
"print_commands" |
24111 | 295 |
"print_configs" |
12176 | 296 |
"print_context" |
41435 | 297 |
"print_dependencies" |
14937 | 298 |
"print_drafts" |
12176 | 299 |
"print_facts" |
300 |
"print_induct_rules" |
|
32804
ca430e6aee1c
Propagation of mixins for interpretation; reactivated diagnostic command print_interps.
ballarin
parents:
31130
diff
changeset
|
301 |
"print_interps" |
12176 | 302 |
"print_locale" |
303 |
"print_locales" |
|
304 |
"print_methods" |
|
12365 | 305 |
"print_rules" |
12176 | 306 |
"print_simpset" |
19272 | 307 |
"print_statement" |
12176 | 308 |
"print_syntax" |
31107 | 309 |
"print_tcset" |
12176 | 310 |
"print_theorems" |
311 |
"print_theory" |
|
312 |
"print_trans_rules" |
|
313 |
"prop" |
|
314 |
"pwd" |
|
315 |
"term" |
|
316 |
"thm" |
|
317 |
"thm_deps" |
|
22486 | 318 |
"thy_deps" |
12176 | 319 |
"typ" |
26184 | 320 |
"unused_thms" |
12176 | 321 |
"welcome")) |
322 |
||
323 |
(defconst isar-keywords-theory-begin |
|
324 |
'("theory")) |
|
325 |
||
326 |
(defconst isar-keywords-theory-switch |
|
21302 | 327 |
'()) |
12176 | 328 |
|
329 |
(defconst isar-keywords-theory-end |
|
330 |
'("end")) |
|
331 |
||
332 |
(defconst isar-keywords-theory-heading |
|
333 |
'("chapter" |
|
334 |
"section" |
|
335 |
"subsection" |
|
336 |
"subsubsection")) |
|
337 |
||
338 |
(defconst isar-keywords-theory-decl |
|
26482 | 339 |
'("ML" |
19069 | 340 |
"abbreviation" |
12176 | 341 |
"arities" |
30527 | 342 |
"attribute_setup" |
18702 | 343 |
"axiomatization" |
12176 | 344 |
"axioms" |
18552 | 345 |
"class" |
12176 | 346 |
"classes" |
347 |
"classrel" |
|
31107 | 348 |
"codatatype" |
22486 | 349 |
"code_datatype" |
31107 | 350 |
"coinductive" |
12176 | 351 |
"consts" |
21302 | 352 |
"context" |
31107 | 353 |
"datatype" |
22084 | 354 |
"declaration" |
23804 | 355 |
"declare" |
36455 | 356 |
"default_sort" |
18775 | 357 |
"definition" |
12176 | 358 |
"defs" |
13407 | 359 |
"extract" |
360 |
"extract_type" |
|
14508
859b11514537
Experimental command for instantiation of locales in proof contexts:
ballarin
parents:
14109
diff
changeset
|
361 |
"finalconsts" |
36180 | 362 |
"hide_class" |
363 |
"hide_const" |
|
364 |
"hide_fact" |
|
365 |
"hide_type" |
|
31107 | 366 |
"inductive" |
24866 | 367 |
"instantiation" |
12176 | 368 |
"judgment" |
369 |
"lemmas" |
|
30463 | 370 |
"local_setup" |
12176 | 371 |
"locale" |
372 |
"method_setup" |
|
24945 | 373 |
"no_notation" |
15762 | 374 |
"no_syntax" |
19255 | 375 |
"no_translations" |
35414 | 376 |
"no_type_notation" |
41229
d797baa3d57c
replaced command 'nonterminals' by slightly modernized version 'nonterminal';
wenzelm
parents:
40965
diff
changeset
|
377 |
"nonterminal" |
21203 | 378 |
"notation" |
40960 | 379 |
"notepad" |
12176 | 380 |
"oracle" |
25516 | 381 |
"overloading" |
12176 | 382 |
"parse_ast_translation" |
383 |
"parse_translation" |
|
31107 | 384 |
"primrec" |
12176 | 385 |
"print_ast_translation" |
386 |
"print_translation" |
|
13407 | 387 |
"realizability" |
388 |
"realizers" |
|
31107 | 389 |
"rep_datatype" |
12176 | 390 |
"setup" |
22200 | 391 |
"simproc_setup" |
12176 | 392 |
"syntax" |
40784 | 393 |
"syntax_declaration" |
12176 | 394 |
"text" |
395 |
"text_raw" |
|
396 |
"theorems" |
|
397 |
"translations" |
|
35414 | 398 |
"type_notation" |
41249
26f12f98f50a
Command 'type_synonym' (with single argument) supersedes 'types' (legacy feature);
wenzelm
parents:
41229
diff
changeset
|
399 |
"type_synonym" |
12176 | 400 |
"typed_print_translation" |
401 |
"typedecl" |
|
26482 | 402 |
"use")) |
12176 | 403 |
|
404 |
(defconst isar-keywords-theory-script |
|
31107 | 405 |
'("inductive_cases")) |
12176 | 406 |
|
407 |
(defconst isar-keywords-theory-goal |
|
36114 | 408 |
'("corollary" |
12176 | 409 |
"instance" |
15598
4ab52355bb53
Registrations of global locale interpretations: improved, better naming.
ballarin
parents:
15596
diff
changeset
|
410 |
"interpretation" |
12176 | 411 |
"lemma" |
36321 | 412 |
"schematic_corollary" |
413 |
"schematic_lemma" |
|
414 |
"schematic_theorem" |
|
24919 | 415 |
"subclass" |
28895 | 416 |
"sublocale" |
12176 | 417 |
"theorem")) |
418 |
||
419 |
(defconst isar-keywords-qed |
|
420 |
'("\\." |
|
421 |
"\\.\\." |
|
422 |
"by" |
|
423 |
"done" |
|
424 |
"sorry")) |
|
425 |
||
426 |
(defconst isar-keywords-qed-block |
|
427 |
'("qed")) |
|
428 |
||
429 |
(defconst isar-keywords-qed-global |
|
430 |
'("oops")) |
|
431 |
||
432 |
(defconst isar-keywords-proof-heading |
|
433 |
'("sect" |
|
434 |
"subsect" |
|
435 |
"subsubsect")) |
|
436 |
||
437 |
(defconst isar-keywords-proof-goal |
|
438 |
'("have" |
|
439 |
"hence" |
|
29607 | 440 |
"interpret")) |
12176 | 441 |
|
442 |
(defconst isar-keywords-proof-block |
|
443 |
'("next" |
|
444 |
"proof")) |
|
445 |
||
446 |
(defconst isar-keywords-proof-open |
|
447 |
'("{")) |
|
448 |
||
449 |
(defconst isar-keywords-proof-close |
|
450 |
'("}")) |
|
451 |
||
452 |
(defconst isar-keywords-proof-chain |
|
453 |
'("finally" |
|
454 |
"from" |
|
455 |
"then" |
|
456 |
"ultimately" |
|
457 |
"with")) |
|
458 |
||
459 |
(defconst isar-keywords-proof-decl |
|
28261 | 460 |
'("ML_prf" |
461 |
"also" |
|
12176 | 462 |
"let" |
463 |
"moreover" |
|
464 |
"note" |
|
465 |
"txt" |
|
12926 | 466 |
"txt_raw" |
18541 | 467 |
"unfolding" |
36505
79c1d2bbe5a9
ProofContext.read_const: allow for type constraint (for fixed variable);
wenzelm
parents:
36455
diff
changeset
|
468 |
"using" |
79c1d2bbe5a9
ProofContext.read_const: allow for type constraint (for fixed variable);
wenzelm
parents:
36455
diff
changeset
|
469 |
"write")) |
12176 | 470 |
|
471 |
(defconst isar-keywords-proof-asm |
|
472 |
'("assume" |
|
473 |
"case" |
|
474 |
"def" |
|
475 |
"fix" |
|
476 |
"presume")) |
|
477 |
||
478 |
(defconst isar-keywords-proof-asm-goal |
|
17850 | 479 |
'("guess" |
21806 | 480 |
"obtain" |
481 |
"show" |
|
482 |
"thus")) |
|
12176 | 483 |
|
484 |
(defconst isar-keywords-proof-script |
|
485 |
'("apply" |
|
486 |
"apply_end" |
|
487 |
"back" |
|
488 |
"defer" |
|
489 |
"prefer")) |
|
490 |
||
491 |
(provide 'isar-keywords) |