. top
. tags
(@@{command "."} | @@{command ".."} | @@{command sorry})
- origin
- corrected by hand (relaxed in prose)based on: src/Doc/Isar_Ref/Proof.thy:702, “Initial and terminal proof steps”, isar-ref.pdf §6.4.2
- used by
The outer syntax of Isabelle/Isar for HOL’s Main (Isabelle2025-2): 411 rules, extracted from the railroad diagrams of the Isabelle/Isar Reference Manual and corrected by hand. Each rule shows the grammar the parser uses (| ordered choice, ? optional, * repeated), below it the diagram’s source in the manual.
| undocumented | 31 | Isabelle accepts syntax the manual doesn't describe. |
| wrong diagram | 5 | The diagram describes syntax Isabelle rejects or reads differently. |
| relaxed in prose | 2 | The diagram is stricter than the text next to it. |
| incomplete | 4 | A rule is used but not defined, or defined only in the text. |
| for our parser | 4 | Not an error in the manual: our parser needs it. |
| check | open | reviewed | |
|---|---|---|---|
| alternative always succeeds | 0 | 0 | An alternative succeeds without consuming input, so later ones are never tried. |
| alternative starts with an earlier one | 0 | 0 | An alternative starts with an earlier one, so it is never tried. |
| repetition may swallow what follows | 0 | 28 | A repetition or optional part may take tokens that should belong to what follows. |
| command | kind | accepts | leads to | effect | from |
|---|---|---|---|---|---|
| . | qed | proof(prove) | theory | local_theory | proof(state) | Qed | src/Doc/Isar_Ref/Proof.thy:658 |
| .. | qed | proof(prove) | theory | local_theory | proof(state) | Qed | src/Doc/Isar_Ref/Proof.thy:657 |
| ML | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1142 |
| ML_command | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:1146 | |
| ML_export | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1143 |
| ML_file | thy_load | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1139 |
| ML_file_debug | thy_load | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1140 |
| ML_file_no_debug | thy_load | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1141 |
| ML_prf | prf_decl | proof(prove) | proof(state) | proof(chain) | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:1144 |
| ML_val | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:1145 | |
| ROOTS_file | thy_load | theory | local_theory | Step | its kind | |
| SML_export | thy_decl | theory | local_theory | Step | its kind | |
| SML_file | thy_load | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1136 |
| SML_file_debug | thy_load | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1137 |
| SML_file_no_debug | thy_load | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1138 |
| SML_import | thy_decl | theory | local_theory | Step | its kind | |
| \<proof> | qed | proof(prove) | theory | local_theory | proof(state) | Qed | its kind |
| abbreviation | thy_defn | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:325 |
| adhoc_overloading | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1101 |
| alias | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1566 |
| also | prf_decl | proof(state) | proof(chain) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof.thy:496 corrected by hand (undocumented) |
| apply | prf_script | proof(prove) | proof(prove) | Step | src/Doc/Isar_Ref/Proof_Script.thy:31 |
| apply_end | prf_script | proof(state) | proof(state) | Step | src/Doc/Isar_Ref/Proof_Script.thy:32 |
| assume | prf_asm | proof(state) | proof(state) | Step | src/Doc/Isar_Ref/Proof.thy:128 |
| attribute_setup | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1149 |
| axiomatization | thy_stmt | theory | theory | Step | src/Doc/Isar_Ref/Spec.thy:387 |
| back | prf_script | proof(prove) | proof(state) | proof(chain) | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof_Script.thy:36 |
| bibtex_file | thy_load | theory | local_theory | Step | its kind | |
| bnf | thy_goal_defn | local_theory | proof(prove) | Goal | src/Doc/Datatypes/Datatypes.thy:3086 |
| bundle | thy_decl_block | theory | local_theory | local_theory | Block | src/Doc/Isar_Ref/Spec.thy:212 src/Doc/Isar_Ref/Spec.thy:213 |
| by | qed | proof(prove) | theory | local_theory | proof(state) | Qed | src/Doc/Isar_Ref/Proof.thy:656 |
| case | prf_asm | proof(state) | proof(state) | Step | src/Doc/Isar_Ref/Proof.thy:957 |
| chapter | document_heading | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Document_Preparation.thy:29 |
| class | thy_decl_block | theory | local_theory | Block | src/Doc/Isar_Ref/Spec.thy:847 |
| class_deps | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:853 | |
| codatatype | thy_defn | local_theory | local_theory | Step | src/Doc/Datatypes/Datatypes.thy:1898 |
| code_datatype | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:2227 |
| code_deps | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:2234 | |
| code_identifier | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:2237 |
| code_monad | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:2238 |
| code_pred | thy_goal | theory | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/HOL_Specific.thy:2240 corrected by hand (undocumented) |
| code_printing | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:2236 |
| code_reflect | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:2239 |
| code_reserved | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:2235 |
| code_thms | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:2233 | |
| coinductive | thy_defn | local_theory | local_theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:72 |
| coinductive_set | thy_defn | local_theory | local_theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:73 |
| compile_generated_files | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:1330 | |
| consider | prf_goal | proof(state) | proof(chain) | proof(prove) | Goal | src/Doc/Isar_Ref/Proof.thy:1321 |
| consts | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/Spec.thy:1043 |
| context | thy_decl_block | theory | local_theory | local_theory | Block | src/Doc/Isar_Ref/Spec.thy:121 corrected by hand (undocumented) |
| copy_bnf | thy_defn | local_theory | local_theory | Step | src/Doc/Datatypes/Datatypes.thy:3158 |
| corollary | thy_goal_stmt | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/Proof.thy:362 |
| datatype | thy_defn | local_theory | local_theory | Step | src/Doc/Datatypes/Datatypes.thy:472 |
| datatype_compat | thy_defn | local_theory | local_theory | Step | src/Doc/Datatypes/Datatypes.thy:583 |
| declaration | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:421 |
| declare | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:423 |
| default_sort | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1429 |
| defer | prf_script | proof(prove) | proof(state) | proof(chain) | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof_Script.thy:34 |
| define | prf_asm | proof(state) | proof(state) | Step | src/Doc/Isar_Ref/Proof.thy:130 |
| definition | thy_defn | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:322 |
| done | qed_script | proof(prove) | theory | local_theory | proof(state) | Qed | src/Doc/Isar_Ref/Proof_Script.thy:33 |
| end | thy_end | theory | local_theory | proof(state) | toplevel | theory | local_theory | End | src/Doc/Isar_Ref/Spec.thy:29 src/Doc/Isar_Ref/Spec.thy:122 corrected by hand (undocumented) |
| experiment | thy_decl_block | theory | local_theory | Block | src/Doc/Isar_Ref/Spec.thy:538 |
| export_code | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:2225 |
| export_generated_files | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:1329 | |
| external_file | thy_load | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:1331 |
| extract | thy_decl | theory | local_theory | Step | its kind | |
| extract_type | thy_decl | theory | local_theory | Step | its kind | |
| finally | prf_chain | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof.thy:497 |
| find_consts | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Outer_Syntax.thy:510 | |
| find_theorems | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Outer_Syntax.thy:509 | |
| find_unused_assms | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1706 | |
| fix | prf_asm | proof(state) | proof(state) | Step | src/Doc/Isar_Ref/Proof.thy:127 |
| free_constructors | thy_goal | local_theory | proof(prove) | Goal | src/Doc/Datatypes/Datatypes.thy:3268 |
| from | prf_chain | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof.thy:273 |
| full_prf | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:42 | |
| fun | thy_defn | local_theory | local_theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:251 |
| fun_cases | thy_defn | local_theory | local_theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:254 |
| function | thy_goal_defn | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/HOL_Specific.thy:252 |
| functor | thy_goal_defn | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/HOL_Specific.thy:1125 |
| generate_file | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1328 |
| global_interpretation | thy_goal | theory | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/Spec.thy:668 |
| have | prf_goal | proof(state) | proof(chain) | proof(prove) | Goal | src/Doc/Isar_Ref/Proof.thy:365 |
| help | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Outer_Syntax.thy:40 | |
| hence | prf_goal | proof(state) | proof(prove) | Goal | src/Doc/Isar_Ref/Proof.thy:367 |
| hide_class | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/Spec.thy:1568 |
| hide_const | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/Spec.thy:1570 |
| hide_fact | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/Spec.thy:1571 |
| hide_type | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/Spec.thy:1569 |
| include | prf_decl | proof(state) | proof(state) | Step | src/Doc/Isar_Ref/Spec.thy:216 |
| including | prf_decl | proof(prove) | proof(prove) | Step | src/Doc/Isar_Ref/Spec.thy:217 |
| inductive | thy_defn | local_theory | local_theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:70 |
| inductive_cases | thy_defn | local_theory | local_theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:2142 |
| inductive_set | thy_defn | local_theory | local_theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:71 |
| inductive_simps | thy_defn | theory | local_theory | Step | its kind | |
| instance | thy_goal | theory | local_theory | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/Spec.thy:849 src/Doc/Isar_Ref/Spec.thy:850 |
| instantiation | thy_decl_block | theory | local_theory | Block | src/Doc/Isar_Ref/Spec.thy:848 |
| interpret | prf_goal | proof(state) | proof(chain) | proof(prove) | Goal | src/Doc/Isar_Ref/Spec.thy:667 |
| interpretation | thy_goal | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/Spec.thy:666 |
| judgment | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/Generic.thy:1764 |
| lemma | thy_goal_stmt | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/Proof.thy:360 |
| lemmas | thy_defn | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1492 |
| let | prf_decl | proof(state) | proof(state) | Step | src/Doc/Isar_Ref/Proof.thy:211 |
| lift_bnf | thy_goal_defn | local_theory | proof(prove) | Goal | src/Doc/Datatypes/Datatypes.thy:3119 |
| lift_definition | thy_goal_defn | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/HOL_Specific.thy:1225 |
| lifting_forget | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1226 |
| lifting_update | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1227 |
| local_setup | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1148 |
| locale | thy_decl_block | theory | local_theory | Block | src/Doc/Isar_Ref/Spec.thy:537 |
| locale_deps | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:541 | |
| method_setup | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Proof.thy:918 |
| moreover | prf_decl | proof(state) | proof(chain) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof.thy:498 corrected by hand (undocumented) |
| named_theorems | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1493 |
| next | next_block | proof(state) | proof(state) | Step | src/Doc/Isar_Ref/Proof.thy:65 |
| nitpick | diag | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1702 | |
| nitpick_params | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1704 |
| no_adhoc_overloading | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1102 |
| no_notation | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:528 |
| no_syntax | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:1115 |
| no_translations | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:1119 |
| no_type_notation | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:526 |
| nonterminal | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:1113 |
| notation | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:527 |
| note | prf_decl | proof(state) | proof(state) | Step | src/Doc/Isar_Ref/Proof.thy:271 |
| notepad | thy_decl_block | local_theory | proof(state) | Block | src/Doc/Isar_Ref/Proof.thy:46 |
| nunchaku | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | its kind | |
| nunchaku_params | thy_decl | theory | local_theory | Step | its kind | |
| obtain | prf_asm_goal | proof(state) | proof(chain) | proof(prove) | Goal | src/Doc/Isar_Ref/Proof.thy:1322 |
| old_rep_datatype | thy_goal | theory | proof(prove) | Goal | src/Doc/Isar_Ref/HOL_Specific.thy:681 |
| oops | qed_global | proof(prove) | proof(state) | proof(chain) | theory | local_theory | QedGlobal | src/Doc/Isar_Ref/Proof.thy:101 |
| open_bundle | thy_decl_block | theory | local_theory | local_theory | Block | its kind |
| oracle | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/Spec.thy:1519 |
| overloading | thy_decl_block | theory | local_theory | Block | src/Doc/Isar_Ref/Spec.thy:1044 |
| paragraph | document_heading | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Document_Preparation.thy:33 |
| parse_ast_translation | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:1347 |
| parse_translation | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:1348 |
| partial_function | thy_defn | local_theory | local_theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:553 |
| prefer | prf_script | proof(prove) | proof(state) | proof(chain) | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof_Script.thy:35 |
| presume | prf_asm | proof(state) | proof(state) | Step | src/Doc/Isar_Ref/Proof.thy:129 |
| prf | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:41 | |
| primcorec | thy_defn | local_theory | local_theory | Step | src/Doc/Datatypes/Datatypes.thy:2603 |
| primcorecursive | thy_goal_defn | local_theory | proof(prove) | Goal | src/Doc/Datatypes/Datatypes.thy:2604 |
| primrec | thy_defn | local_theory | local_theory | Step | src/Doc/Datatypes/Datatypes.thy:1597 src/Doc/Isar_Ref/HOL_Specific.thy:250 |
| print_ML_antiquotations | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | its kind | |
| print_abbrevs | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:326 | |
| print_antiquotations | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Document_Preparation.thy:135 | |
| print_ast_translation | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:1351 |
| print_attributes | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Outer_Syntax.thy:507 | |
| print_bnfs | diag | local_theory | Step | src/Doc/Datatypes/Datatypes.thy:3228 | |
| print_bundles | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:215 | |
| print_case_translations | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | its kind | |
| print_cases | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof.thy:958 | |
| print_claset | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Generic.thy:1374 | |
| print_classes | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:852 | |
| print_codeproc | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:2232 | |
| print_codesetup | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:2228 | |
| print_coercions | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | its kind | |
| print_commands | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Outer_Syntax.thy:39 | |
| print_context | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | its kind | |
| print_context_tracing | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | its kind | |
| print_definitions | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Outer_Syntax.thy:505 | |
| print_defn_rules | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:324 | |
| print_facts | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Outer_Syntax.thy:513 | |
| print_induct_rules | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof.thy:1278 | |
| print_inductives | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:74 | |
| print_interps | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | its kind | |
| print_locale | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:539 | |
| print_locales | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:540 | |
| print_methods | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Outer_Syntax.thy:506 | |
| print_options | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Generic.thy:32 | |
| print_orders | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | its kind | |
| print_quot_maps | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1228 | |
| print_quotconsts | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1544 | |
| print_quotients | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1229 | |
| print_quotientsQ3 | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1543 | |
| print_quotmapsQ3 | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1542 | |
| print_record | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:817 | |
| print_rules | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof.thy:765 | |
| print_simpset | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Generic.thy:482 | |
| print_state | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:43 | |
| print_statement | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof.thy:369 | |
| print_syntax | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:878 | |
| print_term_bindings | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Outer_Syntax.thy:514 | |
| print_theorems | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Outer_Syntax.thy:508 | |
| print_theory | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Outer_Syntax.thy:504 | |
| print_trans_rules | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof.thy:500 | |
| print_translation | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:1349 |
| proof | prf_block | proof(prove) | proof(state) | Step | src/Doc/Isar_Ref/Proof.thy:654 |
| prop | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:39 | |
| proposition | thy_goal_stmt | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/Proof.thy:363 |
| qed | qed_block | proof(state) | theory | local_theory | proof(state) | Qed | src/Doc/Isar_Ref/Proof.thy:655 |
| quickcheck | diag | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1701 | |
| quickcheck_generator | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1705 |
| quickcheck_params | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1703 |
| quotient_definition | thy_goal_defn | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/HOL_Specific.thy:1541 |
| quotient_type | thy_goal_defn | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/HOL_Specific.thy:1170 |
| realizability | thy_decl | theory | local_theory | Step | its kind | |
| realizers | thy_decl | theory | local_theory | Step | its kind | |
| record | thy_defn | theory | theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:816 |
| scala_build_generated_files | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | its kind | |
| schematic_goal | thy_goal_stmt | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/Proof.thy:364 |
| section | document_heading | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Document_Preparation.thy:30 |
| setup | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/Spec.thy:1147 |
| setup_lifting | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1224 |
| show | prf_asm_goal | proof(state) | proof(chain) | proof(prove) | Goal | src/Doc/Isar_Ref/Proof.thy:366 |
| simproc_setup | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Generic.thy:800 |
| sledgehammer | diag | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1647 | |
| sledgehammer_params | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1648 |
| smt_status | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | its kind | |
| solve_direct | diag | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1644 | |
| sorry | qed | proof(prove) | theory | local_theory | proof(state) | Qed | src/Doc/Isar_Ref/Proof.thy:659 |
| specification | thy_goal_defn | theory | proof(prove) | Goal | src/Doc/Isar_Ref/HOL_Specific.thy:654 |
| subclass | thy_goal | local_theory | local_theory | Goal | src/Doc/Isar_Ref/Spec.thy:851 |
| subgoal | prf_script_goal | proof(prove) | proof(state) | proof(chain) | proof(prove) | proof(state) | proof(chain) | Goal | src/Doc/Isar_Ref/Proof_Script.thy:92 |
| sublocale | thy_goal | theory | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/Spec.thy:669 |
| subparagraph | document_heading | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Document_Preparation.thy:34 |
| subsection | document_heading | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Document_Preparation.thy:31 |
| subsubsection | document_heading | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Document_Preparation.thy:32 |
| supply | prf_script | proof(prove) | proof(prove) | Step | src/Doc/Isar_Ref/Proof_Script.thy:30 |
| syntax | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:1114 |
| syntax_consts | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:1117 |
| syntax_declaration | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:422 |
| syntax_types | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:1116 |
| term | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:38 | |
| termination | thy_goal_defn | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/HOL_Specific.thy:253 |
| text | document_body | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Document_Preparation.thy:35 |
| text_raw | document_raw | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Document_Preparation.thy:37 |
| then | prf_chain | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof.thy:272 |
| theorem | thy_goal_stmt | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/Proof.thy:361 |
| theory | thy_begin | toplevel | theory | Begin | src/Doc/Isar_Ref/Spec.thy:28 |
| thm | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:40 | |
| thm_deps | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Outer_Syntax.thy:511 | |
| thm_oracles | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Spec.thy:1520 | |
| thus | prf_asm_goal | proof(state) | proof(prove) | Goal | src/Doc/Isar_Ref/Proof.thy:368 |
| thy_deps | diag | theory | Step | src/Doc/Isar_Ref/Spec.thy:30 | |
| translations | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:1118 |
| try | diag | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1645 | |
| try0 | diag | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1646 | |
| txt | document_body | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Document_Preparation.thy:36 |
| typ | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:37 | |
| type_alias | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1567 |
| type_notation | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:525 |
| type_synonym | thy_defn | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1454 |
| typed_print_translation | thy_decl | theory | theory | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:1350 |
| typedecl | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:1455 |
| typedef | thy_goal_defn | local_theory | proof(prove) | Goal | src/Doc/Isar_Ref/HOL_Specific.thy:983 |
| ultimately | prf_chain | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof.thy:499 |
| unbundle | thy_decl | local_theory | local_theory | Step | src/Doc/Isar_Ref/Spec.thy:214 |
| unfolding | prf_decl | proof(prove) | proof(prove) | Step | src/Doc/Isar_Ref/Proof.thy:276 |
| unused_thms | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Outer_Syntax.thy:512 | |
| using | prf_decl | proof(prove) | proof(prove) | Step | src/Doc/Isar_Ref/Proof.thy:275 |
| value | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1699 | |
| values | diag | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/HOL_Specific.thy:1700 | |
| welcome | diag | toplevel | theory | local_theory | proof(prove) | proof(state) | proof(chain) | Step | its kind | |
| with | prf_chain | proof(state) | proof(chain) | Step | src/Doc/Isar_Ref/Proof.thy:274 |
| write | prf_decl | proof(state) | proof(state) | Step | src/Doc/Isar_Ref/Inner_Syntax.thy:529 |
| { | prf_open | proof(state) | proof(state) | Open | src/Doc/Isar_Ref/Proof.thy:66 |
| } | prf_close | proof(state) | proof(state) | Close | src/Doc/Isar_Ref/Proof.thy:67 |
| method | documented in |
|---|---|
- | src/Doc/Isar_Ref/Proof.thy:766 “Fundamental methods and attributes” |
algebra | src/Doc/Isar_Ref/HOL_Specific.thy:2040 “Algebraic reasoning via Gröbner bases” |
argo | – |
arith | src/Doc/Isar_Ref/HOL_Specific.thy:1961 “Arithmetic proof support” |
assumption | src/Doc/Isar_Ref/Proof.thy:770 “Fundamental methods and attributes” |
atomize | src/Doc/Isar_Ref/Generic.thy:1765 “Object-logic setup” |
atomize_elim | – |
auto | src/Doc/Isar_Ref/Generic.thy:1475 “Fully automated methods” |
best | src/Doc/Isar_Ref/Generic.thy:1479 “Fully automated methods” |
bestsimp | src/Doc/Isar_Ref/Generic.thy:1482 “Fully automated methods” |
blast | src/Doc/Isar_Ref/Generic.thy:1474 “Fully automated methods” |
case_tac | src/Doc/Isar_Ref/HOL_Specific.thy:2139 “Unstructured case analysis and induction” |
cases | src/Doc/Isar_Ref/Proof.thy:1082 “Proof methods” |
clarify | src/Doc/Isar_Ref/Generic.thy:1608 “Partially automated methods” |
clarify_step | src/Doc/Isar_Ref/Generic.thy:1638 “Single-step tactics” |
clarsimp | src/Doc/Isar_Ref/Generic.thy:1609 “Partially automated methods” |
cleaning | src/Doc/Isar_Ref/HOL_Specific.thy:1553 “Old-style definitions for quotient types” |
code_simp | src/Doc/Codegen/Evaluation.thy:162 “Schematic overview” |
coherent | src/Doc/Isar_Ref/HOL_Specific.thy:2118 “Coherent Logic” |
coinduct | src/Doc/Isar_Ref/Proof.thy:1085 “Proof methods” |
coinduction | – |
contradiction | src/Doc/Isar_Ref/Generic.thy:1446 “Structured methods” |
cut_tac | src/Doc/Isar_Ref/Proof_Script.thy:213 “Tactics: improper proof methods” |
deepen | src/Doc/Isar_Ref/Generic.thy:1483 “Fully automated methods” |
descending | src/Doc/Isar_Ref/HOL_Specific.thy:1547 “Old-style definitions for quotient types” |
descending_setup | src/Doc/Isar_Ref/HOL_Specific.thy:1548 “Old-style definitions for quotient types” |
drule | src/Doc/Isar_Ref/Generic.thy:62 “Miscellaneous methods and attributes” |
drule_tac | src/Doc/Isar_Ref/Proof_Script.thy:211 “Tactics: improper proof methods” |
elim | src/Doc/Isar_Ref/Generic.thy:65 “Miscellaneous methods and attributes” |
erule | src/Doc/Isar_Ref/Generic.thy:61 “Miscellaneous methods and attributes” |
erule_tac | src/Doc/Isar_Ref/Proof_Script.thy:210 “Tactics: improper proof methods” |
eval | src/Doc/Codegen/Evaluation.thy:162 “Schematic overview” |
eventually_elim | – |
fact | src/Doc/Isar_Ref/Proof.thy:769 “Fundamental methods and attributes” |
fail | src/Doc/Isar_Ref/Generic.thy:66 “Miscellaneous methods and attributes” |
fast | src/Doc/Isar_Ref/Generic.thy:1477 “Fully automated methods” |
fastforce | src/Doc/Isar_Ref/Generic.thy:1480 “Fully automated methods” |
fold | src/Doc/Isar_Ref/Generic.thy:59 “Miscellaneous methods and attributes” |
force | src/Doc/Isar_Ref/Generic.thy:1476 “Fully automated methods” |
frule | src/Doc/Isar_Ref/Generic.thy:63 “Miscellaneous methods and attributes” |
frule_tac | src/Doc/Isar_Ref/Proof_Script.thy:212 “Tactics: improper proof methods” |
goal_cases | src/Doc/Isar_Ref/Proof.thy:767 “Fundamental methods and attributes” |
hypsubst | src/Doc/Isar_Ref/Generic.thy:184 “Low-level equational reasoning” |
hypsubst_thin | – |
ind_cases | src/Doc/Isar_Ref/HOL_Specific.thy:2141 “Unstructured case analysis and induction” |
induct | src/Doc/Isar_Ref/Proof.thy:1083 “Proof methods” |
induct_tac | src/Doc/Isar_Ref/HOL_Specific.thy:2140 “Unstructured case analysis and induction” |
induction | src/Doc/Isar_Ref/Proof.thy:1084 “Proof methods” |
induction_schema | src/Doc/Isar_Ref/HOL_Specific.thy:491 “Proof methods related to recursive definitions” |
injection | src/Doc/Isar_Ref/HOL_Specific.thy:1552 “Old-style definitions for quotient types” |
insert | src/Doc/Isar_Ref/Generic.thy:60 “Miscellaneous methods and attributes” |
inst_step | src/Doc/Isar_Ref/Generic.thy:1635 “Single-step tactics” |
intro | src/Doc/Isar_Ref/Generic.thy:64 “Miscellaneous methods and attributes” |
intro_classes | src/Doc/Isar_Ref/Spec.thy:854 “Classes” |
intro_locales | src/Doc/Isar_Ref/Spec.thy:671 “Locale interpretation” |
iprover | src/Doc/Isar_Ref/HOL_Specific.thy:1986 “Intuitionistic proof search” |
lexicographic_order | src/Doc/Isar_Ref/HOL_Specific.thy:488 “Proof methods related to recursive definitions” |
lifting | src/Doc/Isar_Ref/HOL_Specific.thy:1545 “Old-style definitions for quotient types” |
lifting_setup | src/Doc/Isar_Ref/HOL_Specific.thy:1546 “Old-style definitions for quotient types” |
linarith | – |
meson | src/Doc/Isar_Ref/HOL_Specific.thy:2012 “Model Elimination and Resolution” |
metis | src/Doc/Isar_Ref/HOL_Specific.thy:2013 “Model Elimination and Resolution” |
moura | – |
normalization | src/Doc/Codegen/Evaluation.thy:162 “Schematic overview” |
order | – |
partiality_descending | src/Doc/Isar_Ref/HOL_Specific.thy:1549 “Old-style definitions for quotient types” |
partiality_descending_setup | src/Doc/Isar_Ref/HOL_Specific.thy:1550 “Old-style definitions for quotient types” |
pat_completeness | src/Doc/Isar_Ref/HOL_Specific.thy:486 “Proof methods related to recursive definitions” |
presburger | – |
raw_tactic | src/Doc/Isar_Ref/Proof_Script.thy:219 “Tactics: improper proof methods” |
regularize | src/Doc/Isar_Ref/HOL_Specific.thy:1551 “Old-style definitions for quotient types” |
relation | src/Doc/Isar_Ref/HOL_Specific.thy:487 “Proof methods related to recursive definitions” |
rename_tac | src/Doc/Isar_Ref/Proof_Script.thy:216 “Tactics: improper proof methods” |
rotate_tac | src/Doc/Isar_Ref/Proof_Script.thy:217 “Tactics: improper proof methods” |
rtrancl | – |
rtranclp | – |
rule | src/Doc/Isar_Ref/Generic.thy:1445 “Structured methods” |
rule_tac | src/Doc/Isar_Ref/Proof_Script.thy:209 “Tactics: improper proof methods” |
safe | src/Doc/Isar_Ref/Generic.thy:1607 “Partially automated methods” |
safe_step | src/Doc/Isar_Ref/Generic.thy:1634 “Single-step tactics” |
sat | – |
satx | – |
simp | src/Doc/Isar_Ref/Generic.thy:262 “Simplification methods” |
simp_all | src/Doc/Isar_Ref/Generic.thy:263 “Simplification methods” |
simplesubst | – |
size_change | src/Doc/Isar_Ref/HOL_Specific.thy:489 “Proof methods related to recursive definitions” |
sleep | src/Doc/Isar_Ref/Generic.thy:68 “Miscellaneous methods and attributes” |
slow | src/Doc/Isar_Ref/Generic.thy:1478 “Fully automated methods” |
slow_step | src/Doc/Isar_Ref/Generic.thy:1637 “Single-step tactics” |
slowsimp | src/Doc/Isar_Ref/Generic.thy:1481 “Fully automated methods” |
smt | – |
split | src/Doc/Isar_Ref/Generic.thy:185 “Low-level equational reasoning” |
standard | src/Doc/Isar_Ref/Proof.thy:660 “Initial and terminal proof steps” |
step | src/Doc/Isar_Ref/Generic.thy:1636 “Single-step tactics” |
subgoal_tac | src/Doc/Isar_Ref/Proof_Script.thy:215 “Tactics: improper proof methods” |
subproofs | src/Doc/Isar_Ref/Proof.thy:768 “Fundamental methods and attributes” |
subst | src/Doc/Isar_Ref/Generic.thy:183 “Low-level equational reasoning” |
succeed | src/Doc/Isar_Ref/Generic.thy:67 “Miscellaneous methods and attributes” |
tactic | src/Doc/Isar_Ref/Proof_Script.thy:218 “Tactics: improper proof methods” |
thin_tac | src/Doc/Isar_Ref/Proof_Script.thy:214 “Tactics: improper proof methods” |
this | src/Doc/Isar_Ref/Proof.thy:771 “Fundamental methods and attributes” |
trancl | – |
tranclp | – |
transfer | src/Doc/Isar_Ref/HOL_Specific.thy:1438 “Transfer package” |
transfer' | src/Doc/Isar_Ref/HOL_Specific.thy:1439 “Transfer package” |
transfer_end | src/Doc/Isar_Ref/HOL_Specific.thy:1446 “Transfer package” |
transfer_prover | src/Doc/Isar_Ref/HOL_Specific.thy:1440 “Transfer package” |
transfer_prover_end | src/Doc/Isar_Ref/HOL_Specific.thy:1447 “Transfer package” |
transfer_prover_start | src/Doc/Isar_Ref/HOL_Specific.thy:1444 “Transfer package” |
transfer_start | src/Doc/Isar_Ref/HOL_Specific.thy:1443 “Transfer package” |
transfer_start' | – |
transfer_step | src/Doc/Isar_Ref/HOL_Specific.thy:1445 “Transfer package” |
unfold | src/Doc/Isar_Ref/Generic.thy:58 “Miscellaneous methods and attributes” |
unfold_locales | src/Doc/Isar_Ref/Spec.thy:672 “Locale interpretation” |
use | src/Doc/Isar_Ref/Proof.thy:277 “Facts and forward chaining” |
. tags
(@@{command "."} | @@{command ".."} | @@{command sorry})
.. tags
(@@{command "."} | @@{command ".."} | @@{command sorry})
(@@{command ML} | @@{command ML_export} | @@{command ML_prf} |
@@{command ML_val} | @@{command ML_command} | @@{command setup} |
@@{command local_setup}) @{syntax text}
(@@{command ML} | @@{command ML_export} | @@{command ML_prf} |
@@{command ML_val} | @@{command ML_command} | @@{command setup} |
@@{command local_setup}) @{syntax text}
(@@{command ML} | @@{command ML_export} | @@{command ML_prf} |
@@{command ML_val} | @@{command ML_command} | @@{command setup} |
@@{command local_setup}) @{syntax text}
ML_file tags target? embedded ;?
(@@{command SML_file} |
@@{command SML_file_debug} |
@@{command SML_file_no_debug} |
@@{command ML_file} |
@@{command ML_file_debug} |
@@{command ML_file_no_debug}) @{syntax name} ';'?
ML_file_debug tags target? embedded ;?
(@@{command SML_file} |
@@{command SML_file_debug} |
@@{command SML_file_no_debug} |
@@{command ML_file} |
@@{command ML_file_debug} |
@@{command ML_file_no_debug}) @{syntax name} ';'?
ML_file_no_debug tags target? embedded ;?
(@@{command SML_file} |
@@{command SML_file_debug} |
@@{command SML_file_no_debug} |
@@{command ML_file} |
@@{command ML_file_debug} |
@@{command ML_file_no_debug}) @{syntax name} ';'?
(@@{command ML} | @@{command ML_export} | @@{command ML_prf} |
@@{command ML_val} | @@{command ML_command} | @@{command setup} |
@@{command local_setup}) @{syntax text}
(@@{command ML} | @@{command ML_export} | @@{command ML_prf} |
@@{command ML_val} | @@{command ML_command} | @@{command setup} |
@@{command local_setup}) @{syntax text}
(@@{command ML} | @@{command ML_export} | @@{command ML_prf} |
@@{command ML_val} | @@{command ML_command} | @@{command setup} |
@@{command local_setup}) @{syntax text}
SML_file tags target? embedded ;?
(@@{command SML_file} |
@@{command SML_file_debug} |
@@{command SML_file_no_debug} |
@@{command ML_file} |
@@{command ML_file_debug} |
@@{command ML_file_no_debug}) @{syntax name} ';'?
SML_file_debug tags target? embedded ;?
(@@{command SML_file} |
@@{command SML_file_debug} |
@@{command SML_file_no_debug} |
@@{command ML_file} |
@@{command ML_file_debug} |
@@{command ML_file_no_debug}) @{syntax name} ';'?
SML_file_no_debug tags target? embedded ;?
(@@{command SML_file} |
@@{command SML_file_debug} |
@@{command SML_file_no_debug} |
@@{command ML_file} |
@@{command ML_file_debug} |
@@{command ML_file_no_debug}) @{syntax name} ';'?
(@@{command ML} | @@{command ML_export} | @@{command ML_prf} |
@@{command ML_val} | @@{command ML_command} | @@{command setup} |
@@{command local_setup}) @{syntax text}
\<proof> tags
abbreviation tags target? mode? decl? abbreviation
@@{command abbreviation} @{syntax mode}? decl? abbreviation
adhoc_overloading tags target? name (== | \<rightleftharpoons>) term term* (and name (== | \<rightleftharpoons>) term term*)*
(@@{command adhoc_overloading} | @@{command no_adhoc_overloading}) \<newline>
(@{syntax name} ('==' | '\<rightleftharpoons>') (@{syntax term} + ) + @'and')
alias tags target? name = name
(@{command alias} | @{command type_alias}) @{syntax name} '=' @{syntax name}
(@@{command also} | @@{command finally}) ('(' @{syntax thms} ')')?
( @@{command apply} | @@{command apply_end} ) @{syntax method}
( @@{command apply} | @@{command apply_end} ) @{syntax method}
assume tags concl prems for_fixes
(@@{command assume} | @@{command presume}) concl prems @{syntax for_fixes}
attribute_setup tags target? name = text text?
@@{command attribute_setup} @{syntax name} '=' @{syntax text} @{syntax text}?
axiomatization tags vars? (where axiomatization)?
@@{command axiomatization} @{syntax vars}? (@'where' axiomatization)?
back tags
bnf tags target? (name :)? type map : term (sets : !bd term (!bd term)*)? bd : term (wits : !(rel | plugins) term (!(rel | plugins) term)*)? (rel : term)? (pred : term)? plugins?
@@{command bnf} target? (name ':')? type \<newline>
'map:' term ('sets:' (term +))? 'bd:' term \<newline>
('wits:' (term +))? ('rel:' term)? \<newline>
('pred:' term)? @{syntax plugins}?
bundle tags target? name (= thms for_fixes | begin)
(@@{command bundle} | @@{command open_bundle}) @{syntax name} \<newline>
( '=' @{syntax thms} @{syntax for_fixes} | @'begin')
@@{command "by"} method method?
case tags thmdecl? (name | ( name (_ | name)* ))
@@{command case} @{syntax thmdecl}? (name | '(' name (('_' | @{syntax name}) *) ')')
(@@{command chapter} | @@{command section} | @@{command subsection} |
@@{command subsubsection} | @@{command paragraph} | @@{command subparagraph})
@{syntax text} ';'? |
(@@{command text} | @@{command txt} | @@{command text_raw}) @{syntax text}
class tags name (= (name (+ name)* opening? (+ context_elem context_elem*)? | opening (+ context_elem context_elem*)? | context_elem context_elem*))? begin?
@@{command class} class_spec @'begin'?
class_deps tags (class_bounds class_bounds?)?
@@{command class_deps} (class_bounds class_bounds?)?
codatatype tags target? dt_options? dt_spec
@@{command codatatype} target? @{syntax dt_options}? @{syntax dt_spec}
code_datatype tags const const*
@@{command (HOL) code_datatype} (const+)
code_deps tags const_expr const_expr*
@@{command (HOL) code_deps} (const_expr+)
code_identifier tags (symbol_const | symbol_type_constructor | symbol_class | symbol_class_relation | symbol_class_instance | symbol_module) (\<rightharpoonup> | =>) ( target ) name? (and ( target ) name?)* (| (symbol_const | symbol_type_constructor | symbol_class | symbol_class_relation | symbol_class_instance | symbol_module) (\<rightharpoonup> | =>) ( target ) name? (and ( target ) name?)*)*
@@{command (HOL) code_identifier} ((symbol_const | symbol_type_constructor
| symbol_class | symbol_class_relation | symbol_class_instance
| symbol_module ) ('\<rightharpoonup>' | '=>') \<newline>
('(' target ')' @{syntax string} ? + @'and') + '|')
@@{command (HOL) code_monad} const const target
code_pred tags (( expected_modes : (predicate_mode (, predicate_mode)*)? ))? (( modes : (name : predicate_mode (as name)? (, predicate_mode (as name)?)* (and name : predicate_mode (as name)? (, predicate_mode (as name)?)*)* | predicate_mode (as name)? (, predicate_mode (as name)?)*) ))? predicate_options? term
@@{command (HOL) code_pred} \<newline> ('(' @'modes' ':' modedecl ')')? \<newline> const
code_printing tags (printing_const | printing_type_constructor | printing_class | printing_class_relation | printing_class_instance | printing_module) (| (printing_const | printing_type_constructor | printing_class | printing_class_relation | printing_class_instance | printing_module))*
@@{command (HOL) code_printing} ((printing_const | printing_type_constructor
| printing_class | printing_class_relation | printing_class_instance
| printing_module) + '|')
code_reflect tags name (datatypes name (= (_ | term (| term)*))? (and name (= (_ | term (| term)*))?)*)? (functions name name*)? (file_prefix embedded)?
@@{command (HOL) code_reflect} @{syntax string} \<newline>
(@'datatypes' (@{syntax string} '=' ('_' | (@{syntax string} + '|') + @'and')))? \<newline>
(@'functions' (@{syntax string} +))? (@'file_prefix' @{syntax path})?
code_reserved tags ( name ) name name* (and ( name ) name name*)*
@@{command (HOL) code_reserved} ('(' target ')' (@{syntax string}+) + @'and')
code_thms tags const_expr const_expr*
@@{command (HOL) code_thms} (const_expr+)
coinductive tags target? vars for_fixes (where multi_specs)? (monos thms)?
(@@{command (HOL) inductive} | @@{command (HOL) inductive_set} |
@@{command (HOL) coinductive} | @@{command (HOL) coinductive_set})
@{syntax vars} @{syntax for_fixes} \<newline>
(@'where' @{syntax multi_specs})? (@'monos' @{syntax thms})?
coinductive_set tags target? vars for_fixes (where multi_specs)? (monos thms)?
(@@{command (HOL) inductive} | @@{command (HOL) inductive_set} |
@@{command (HOL) coinductive} | @@{command (HOL) coinductive_set})
@{syntax vars} @{syntax for_fixes} \<newline>
(@'where' @{syntax multi_specs})? (@'monos' @{syntax thms})?
compile_generated_files tags files_in_theory (and files_in_theory)* (external_files external_files (and external_files)*)? (export_files export_files (and export_files)*)? (export_prefix path)? where embedded
@@{command compile_generated_files} (files_in_theory + @'and') \<newline>
(@'external_files' (external_files + @'and'))? \<newline>
(@'export_files' (export_files + @'and'))? \<newline>
(@'export_prefix' path)?
consider tags obtain_clauses
@@{command consider} @{syntax obtain_clauses}
consts tags name :: type mixfix? (name :: type mixfix?)*
@@{command consts} ((@{syntax name} '::' @{syntax type} @{syntax mixfix}?) +)
context tags (name opening? begin | includes? context_elem* begin)
@@{command context} @{syntax name} @{syntax_ref "opening"}? @'begin'
copy_bnf tags target? cb_options? tyargs name (via thm)? map_rel_pred?
@@{command copy_bnf} target? cb_options? \<newline>
@{syntax tyargs} name ('via' thm)? @{syntax map_rel_pred}?
corollary tags target? (long_statement | short_statement)
(@@{command lemma} | @@{command theorem} | @@{command corollary} |
@@{command proposition} | @@{command schematic_goal})
(long_statement | short_statement)
datatype tags target? dt_options? dt_spec
@@{command datatype} target? @{syntax dt_options}? @{syntax dt_spec}
datatype_compat tags target? name name*
@@{command datatype_compat} (name +)
declaration tags target? (( pervasive ))? text
(@@{command declaration} | @@{command syntax_declaration})
('(' @'pervasive' ')')? \<newline> @{syntax text}
declare tags target? thms (and thms)* (for vars)?
@@{command declare} (@{syntax thms} + @'and')
default_sort tags target? sort
@@{command default_sort} @{syntax sort}
defer tags nat?
@@{command defer} @{syntax nat}?
define tags vars where props (and props)* for_fixes
@@{command define} @{syntax vars} @'where'
(@{syntax props} + @'and') @{syntax for_fixes}
definition tags target? decl? definition
@@{command definition} decl? definition
done tags
@@{command end}
experiment tags context_elem* begin
@@{command experiment} (@{syntax context_elem}*) @'begin'
export_code tags target? open? const_expr const_expr* export_target*
@@{command (HOL) export_code} @'open'? \<newline> (const_expr+) (export_target*)
export_generated_files tags files_in_theory (and files_in_theory)*
@@{command export_generated_files} (files_in_theory + @'and')
external_file tags embedded ;?
@@{command external_file} @{syntax name} ';'?
extract tags name (( name (, name)* ))? (name (( name (, name)* ))?)*
extract_type tags string string*
(@@{command also} | @@{command finally}) ('(' @{syntax thms} ')')?
find_consts tags const_criterion*
@@{command find_consts} (const_criterion*)
find_theorems tags (( nat? with_dups? ))? thm_criterion*
@@{command find_theorems} ('(' @{syntax nat}? 'with_dups'? ')')? \<newline> (thm_criterion*)
@@{command (HOL) find_unused_assms} @{syntax name}?
@@{command fix} @{syntax vars}
free_constructors tags target? dt_options? name for fc_ctor (| fc_ctor)* (where prop (| prop)*)?
@@{command free_constructors} target? @{syntax dt_options} \<newline>
name 'for' (@{syntax fc_ctor} + '|') \<newline>
(@'where' (prop + '|'))?
(@@{command from} | @@{command with} | @@{command using} | @@{command unfolding})
(@{syntax thms} + @'and')
( @@{command prf} | @@{command full_prf} ) @{syntax modes}? @{syntax thms}?
fun tags target? opts? specification
(@@{command (HOL) fun} | @@{command (HOL) function}) opts? @{syntax specification}
fun_cases tags target? thmdecl? prop (and thmdecl? prop)*
@@{command (HOL) fun_cases} (@{syntax thmdecl}? @{syntax prop} + @'and')
function tags target? opts? specification
(@@{command (HOL) fun} | @@{command (HOL) function}) opts? @{syntax specification}
functor tags target? (name :)? term
@@{command (HOL) functor} (@{syntax name} ':')? @{syntax term}
generate_file tags target? path = content
@@{command generate_file} path '=' content
global_interpretation tags target? locale_expr definitions?
@@{command global_interpretation} @{syntax locale_expr} definitions?
have tags stmt cond_stmt for_fixes
(@@{command have} | @@{command show} | @@{command hence} | @@{command thus})
stmt cond_stmt @{syntax for_fixes}
@@{command help} (@{syntax name} * )
hence tags stmt cond_stmt for_fixes
(@@{command have} | @@{command show} | @@{command hence} | @@{command thus})
stmt cond_stmt @{syntax for_fixes}
hide_class tags (( open ))? name name*
(@{command hide_class} | @{command hide_type} |
@{command hide_const} | @{command hide_fact}) ('(' @'open' ')')? (@{syntax name} + )
hide_const tags (( open ))? name name*
(@{command hide_class} | @{command hide_type} |
@{command hide_const} | @{command hide_fact}) ('(' @'open' ')')? (@{syntax name} + )
hide_fact tags (( open ))? name name*
(@{command hide_class} | @{command hide_type} |
@{command hide_const} | @{command hide_fact}) ('(' @'open' ')')? (@{syntax name} + )
hide_type tags (( open ))? name name*
(@{command hide_class} | @{command hide_type} |
@{command hide_const} | @{command hide_fact}) ('(' @'open' ')')? (@{syntax name} + )
(@@{command include} | @@{command including}) @{syntax bundles}
(@@{command include} | @@{command including}) @{syntax bundles}
inductive tags target? vars for_fixes (where multi_specs)? (monos thms)?
(@@{command (HOL) inductive} | @@{command (HOL) inductive_set} |
@@{command (HOL) coinductive} | @@{command (HOL) coinductive_set})
@{syntax vars} @{syntax for_fixes} \<newline>
(@'where' @{syntax multi_specs})? (@'monos' @{syntax thms})?
inductive_cases tags target? thmdecl? prop prop* (and thmdecl? prop prop*)*
@@{command (HOL) inductive_cases} (@{syntax thmdecl}? (@{syntax prop}+) + @'and')
inductive_set tags target? vars for_fixes (where multi_specs)? (monos thms)?
(@@{command (HOL) inductive} | @@{command (HOL) inductive_set} |
@@{command (HOL) coinductive} | @@{command (HOL) coinductive_set})
@{syntax vars} @{syntax for_fixes} \<newline>
(@'where' @{syntax multi_specs})? (@'monos' @{syntax thms})?
inductive_simps tags target? thmdecl? prop prop* (and thmdecl? prop prop*)*
@@{command (HOL) inductive_cases} (@{syntax thmdecl}? (@{syntax prop}+) + @'and')
instance tags target? (embedded (and embedded)* :: arity | embedded (< | \<subseteq>) embedded)?
@@{command instance} (() | (@{syntax name} + @'and') '::' @{syntax arity} |
@{syntax name} ('<' | '\<subseteq>') @{syntax name} )
instantiation tags embedded (and embedded)* :: arity begin
@@{command instantiation} (@{syntax name} + @'and') '::' @{syntax arity} @'begin'
interpret tags locale_expr
@@{command interpret} @{syntax locale_expr}
interpretation tags target? locale_expr
@@{command interpretation} @{syntax locale_expr}
judgment tags name :: type mixfix?
@@{command judgment} @{syntax name} '::' @{syntax type} @{syntax mixfix}?
lemma tags target? (long_statement | short_statement)
(@@{command lemma} | @@{command theorem} | @@{command corollary} |
@@{command proposition} | @@{command schematic_goal})
(long_statement | short_statement)
lemmas tags target? thmdef? thms (and thmdef? thms)* for_fixes
@@{command lemmas} (@{syntax thmdef}? @{syntax thms} + @'and')
@{syntax for_fixes}
let tags term (and term)* = term (and term (and term)* = term)*
@@{command let} ((@{syntax term} + @'and') '=' @{syntax term} + @'and')
lift_bnf tags target? lb_options? tyargs name wit_terms? (via thm thm?)? map_rel_pred?
@@{command lift_bnf} target? lb_options? \<newline>
@{syntax tyargs} name wit_terms? \<newline>
('via' thm thm?)? @{syntax map_rel_pred}?
lift_definition tags target? (( code_dt ))? name :: type mixfix? is term (parametric thm thm*)?
@@{command (HOL) lift_definition} ('(' 'code_dt' ')')? \<newline>
@{syntax name} '::' @{syntax type} @{syntax mixfix}? 'is' @{syntax term} \<newline>
(@'parametric' (@{syntax thm}+))?
lifting_forget tags target? name
@@{command (HOL) lifting_forget} @{syntax name}
lifting_update tags target? name
@@{command (HOL) lifting_update} @{syntax name}
(@@{command ML} | @@{command ML_export} | @@{command ML_prf} |
@@{command ML_val} | @@{command ML_command} | @@{command setup} |
@@{command local_setup}) @{syntax text}
locale tags name (= locale)? begin?
@@{command locale} @{syntax name} ('=' @{syntax locale})? @'begin'?
locale_deps tags
method_setup tags target? name = text text?
@@{command method_setup} @{syntax name} '=' @{syntax text} @{syntax text}?
moreover tags
named_theorems tags target? name text? (and name text?)*
@@{command named_theorems} (@{syntax name} @{syntax text}? + @'and')
next tags
(@@{command (HOL) quickcheck} | @@{command (HOL) nitpick})
( '[' args ']' )? @{syntax nat}?
nitpick_params tags ([ args ])?
(@@{command (HOL) quickcheck_params} |
@@{command (HOL) nitpick_params}) ( '[' args ']' )?
no_adhoc_overloading tags target? name (== | \<rightleftharpoons>) term term* (and name (== | \<rightleftharpoons>) term term*)*
(@@{command adhoc_overloading} | @@{command no_adhoc_overloading}) \<newline>
(@{syntax name} ('==' | '\<rightleftharpoons>') (@{syntax term} + ) + @'and')
no_notation tags target? mode? name mixfix (and name mixfix)*
(@@{command notation} | @@{command no_notation}) @{syntax mode}? \<newline>
(@{syntax name} @{syntax mixfix} + @'and')
no_syntax tags target? mode? constdecl constdecl*
(@@{command syntax} | @@{command no_syntax}) @{syntax mode}? (constdecl +)
no_translations tags target? transpat (== | => | <= | \<rightleftharpoons> | \<rightharpoonup> | \<leftharpoondown>) transpat (transpat (== | => | <= | \<rightleftharpoons> | \<rightharpoonup> | \<leftharpoondown>) transpat)*
(@@{command translations} | @@{command no_translations})
(transpat ('==' | '=>' | '<=' | '\<rightleftharpoons>' | '\<rightharpoonup>' | '\<leftharpoondown>') transpat +)
no_type_notation tags target? mode? name mixfix (and name mixfix)*
(@@{command type_notation} | @@{command no_type_notation}) @{syntax mode}? \<newline>
(@{syntax name} @{syntax mixfix} + @'and')
nonterminal tags name (and name)*
@@{command nonterminal} (@{syntax name} + @'and')
notation tags target? mode? name mixfix (and name mixfix)*
(@@{command notation} | @@{command no_notation}) @{syntax mode}? \<newline>
(@{syntax name} @{syntax mixfix} + @'and')
note tags thmdef? thms (and thmdef? thms)*
@@{command note} (@{syntax thmdef}? @{syntax thms} + @'and')
@@{command notepad} @'begin'
nunchaku tags ([ (embedded | ? | ! | !!) (embedded | ? | ! | !!)* (= (name | float | - | ? | ! | !! | [ name (, name)* ]) (name | float | - | ? | ! | !! | [ name (, name)* ])*)? (, (embedded | ? | ! | !!) (embedded | ? | ! | !!)* (= (name | float | - | ? | ! | !! | [ name (, name)* ]) (name | float | - | ? | ! | !! | [ name (, name)* ])*)?)* ])? nat?
nunchaku_params tags ([ (embedded | ? | ! | !!) (embedded | ? | ! | !!)* (= (name | float | - | ? | ! | !! | [ name (, name)* ]) (name | float | - | ? | ! | !! | [ name (, name)* ])*)? (, (embedded | ? | ! | !!) (embedded | ? | ! | !!)* (= (name | float | - | ? | ! | !! | [ name (, name)* ]) (name | float | - | ? | ! | !! | [ name (, name)* ])*)?)* ])?
obtain tags par_name? (vars where)? concl prems for_fixes
@@{command obtain} @{syntax par_name}? \<newline>
(@{syntax vars} @'where')? concl prems @{syntax for_fixes}
old_rep_datatype tags (( name name* ))? term term*
@@{command (HOL) old_rep_datatype} ('(' (@{syntax name} +) ')')? (@{syntax term} +)
oops tags
open_bundle tags name (= thms for_fixes | begin)
(@@{command bundle} | @@{command open_bundle}) @{syntax name} \<newline>
( '=' @{syntax thms} @{syntax for_fixes} | @'begin')
@@{command oracle} @{syntax name} '=' @{syntax text}
overloading tags spec spec* begin
@@{command overloading} ( spec + ) @'begin'
paragraph tags target? text ;?
(@@{command chapter} | @@{command section} | @@{command subsection} |
@@{command subsubsection} | @@{command paragraph} | @@{command subparagraph})
@{syntax text} ';'? |
(@@{command text} | @@{command txt} | @@{command text_raw}) @{syntax text}
parse_ast_translation tags text
( @@{command parse_ast_translation} | @@{command parse_translation} |
@@{command print_translation} | @@{command typed_print_translation} |
@@{command print_ast_translation}) @{syntax text}
( @@{command parse_ast_translation} | @@{command parse_translation} |
@@{command print_translation} | @@{command typed_print_translation} |
@@{command print_ast_translation}) @{syntax text}
partial_function tags target? ( name ) specification
@@{command (HOL) partial_function} '(' @{syntax name} ')'
@{syntax specification}
prefer tags nat
@@{command prefer} @{syntax nat}
presume tags concl prems for_fixes
(@@{command assume} | @@{command presume}) concl prems @{syntax for_fixes}
( @@{command prf} | @@{command full_prf} ) @{syntax modes}? @{syntax thms}?
primcorec tags target? pcr_options? vars where pcr_formula (| pcr_formula)*
(@@{command primcorec} | @@{command primcorecursive}) target? \<newline>
@{syntax pcr_options}? fixes @'where' (@{syntax pcr_formula} + '|')
primcorecursive tags target? pcr_options? vars where pcr_formula (| pcr_formula)*
(@@{command primcorec} | @@{command primcorecursive}) target? \<newline>
@{syntax pcr_options}? fixes @'where' (@{syntax pcr_formula} + '|')
primrec tags target? pr_options? specification
@@{command primrec} target? @{syntax pr_options}? fixes \<newline>
@'where' (@{syntax pr_equation} + '|')
print_ML_antiquotations tags !?
@@{command print_antiquotations} ('!'?)
print_abbrevs tags !?
@@{command print_abbrevs} ('!'?)
print_antiquotations tags !?
@@{command print_antiquotations} ('!'?)
print_ast_translation tags text
( @@{command parse_ast_translation} | @@{command parse_translation} |
@@{command print_translation} | @@{command typed_print_translation} |
@@{command print_ast_translation}) @{syntax text}
print_attributes tags !?
(@@{command print_theory} |
@@{command print_definitions} |
@@{command print_methods} |
@@{command print_attributes} |
@@{command print_theorems} |
@@{command print_facts}) ('!'?)
@@{command print_bnfs}
print_bundles tags !?
@@{command print_bundles} ('!'?)
print_case_translations tags
print_cases tags
print_claset tags
print_classes tags
print_codeproc tags
print_codesetup tags
print_coercions tags
print_commands tags
print_context tags
print_context_tracing tags name*
print_definitions tags !?
(@@{command print_theory} |
@@{command print_definitions} |
@@{command print_methods} |
@@{command print_attributes} |
@@{command print_theorems} |
@@{command print_facts}) ('!'?)
print_defn_rules tags
print_facts tags !?
(@@{command print_theory} |
@@{command print_definitions} |
@@{command print_methods} |
@@{command print_attributes} |
@@{command print_theorems} |
@@{command print_facts}) ('!'?)
print_induct_rules tags
print_inductives tags !?
@@{command print_inductives} ('!'?)
@@{command print_interps} @{syntax name}
@@{command print_locale} '!'? @{syntax name}
print_locales tags !?
@@{command print_locales} ('!'?)
print_methods tags !?
(@@{command print_theory} |
@@{command print_definitions} |
@@{command print_methods} |
@@{command print_attributes} |
@@{command print_theorems} |
@@{command print_facts}) ('!'?)
print_options tags !?
@@{command print_options} ('!'?)
print_orders tags
print_quot_maps tags
print_quotconsts tags
print_quotients tags
print_quotientsQ3 tags
print_quotmapsQ3 tags
print_record tags modes? typespec_sorts
@@{command (HOL) print_record} modes? @{syntax typespec_sorts}
print_rules tags
print_simpset tags !?
@@{command print_simpset} ('!'?)
@@{command print_state} @{syntax modes}?
print_statement tags modes? thms
@@{command print_statement} @{syntax modes}? @{syntax thms}
print_syntax tags
print_term_bindings tags
print_theorems tags !?
(@@{command print_theory} |
@@{command print_definitions} |
@@{command print_methods} |
@@{command print_attributes} |
@@{command print_theorems} |
@@{command print_facts}) ('!'?)
print_theory tags !?
(@@{command print_theory} |
@@{command print_definitions} |
@@{command print_methods} |
@@{command print_attributes} |
@@{command print_theorems} |
@@{command print_facts}) ('!'?)
print_trans_rules tags
( @@{command parse_ast_translation} | @@{command parse_translation} |
@@{command print_translation} | @@{command typed_print_translation} |
@@{command print_ast_translation}) @{syntax text}
@@{command proof} method?
@@{command prop} @{syntax modes}? @{syntax prop}
proposition tags target? (long_statement | short_statement)
(@@{command lemma} | @@{command theorem} | @@{command corollary} |
@@{command proposition} | @@{command schematic_goal})
(long_statement | short_statement)
@@{command qed} method?
quickcheck tags ([ args ])? nat?
(@@{command (HOL) quickcheck} | @@{command (HOL) nitpick})
( '[' args ']' )? @{syntax nat}?
quickcheck_generator tags name (predicate : term)? constructors : term (, term)*
@@{command (HOL) quickcheck_generator} @{syntax name} \<newline>
'operations:' ( @{syntax term} +)
quickcheck_params tags ([ args ])?
(@@{command (HOL) quickcheck_params} |
@@{command (HOL) nitpick_params}) ( '[' args ']' )?
quotient_definition tags target? (name (where | :: type mixfix? where | mixfix where))? thmdecl? term is term
@@{command (HOL) quotient_definition} constdecl? @{syntax thmdecl}? \<newline>
@{syntax term} 'is' @{syntax term}
quotient_type tags target? overloaded? typespec mixfix? = quot_type quot_morphisms? quot_parametric?
@@{command (HOL) quotient_type} @{syntax "overloaded"}? \<newline>
@{syntax typespec} @{syntax mixfix}? '=' quot_type \<newline>
quot_morphisms? quot_parametric?
realizability tags string string*
realizers tags name (( name (, name)* ))? : string string (name (( name (, name)* ))? : string string)*
record tags overloaded? typespec_sorts = (type +)? constdecl constdecl*
@@{command (HOL) record} @{syntax "overloaded"}? @{syntax typespec_sorts} '=' \<newline>
(@{syntax type} '+')? (constdecl +)
scala_build_generated_files tags (files_in_theory (and files_in_theory)*)? (external_files external_files (and external_files)*)?
@@{command compile_generated_files} (files_in_theory + @'and') \<newline>
(@'external_files' (external_files + @'and'))? \<newline>
(@'export_files' (export_files + @'and'))? \<newline>
(@'export_prefix' path)?
schematic_goal tags target? (long_statement | short_statement)
(@@{command lemma} | @@{command theorem} | @@{command corollary} |
@@{command proposition} | @@{command schematic_goal})
(long_statement | short_statement)
(@@{command chapter} | @@{command section} | @@{command subsection} |
@@{command subsubsection} | @@{command paragraph} | @@{command subparagraph})
@{syntax text} ';'? |
(@@{command text} | @@{command txt} | @@{command text_raw}) @{syntax text}
(@@{command ML} | @@{command ML_export} | @@{command ML_prf} |
@@{command ML_val} | @@{command ML_command} | @@{command setup} |
@@{command local_setup}) @{syntax text}
setup_lifting tags target? thm thm? (parametric thm)?
@@{command (HOL) setup_lifting} @{syntax thm} @{syntax thm}? \<newline>
(@'parametric' @{syntax thm})?
show tags stmt cond_stmt for_fixes
(@@{command have} | @@{command show} | @@{command hence} | @@{command thus})
stmt cond_stmt @{syntax for_fixes}
simproc_setup tags target? simproc_setup
@@{command simproc_setup} @{syntax simproc_setup}
sledgehammer tags ([ args ])? facts? nat?
@@{command (HOL) sledgehammer} ( '[' args ']' )? facts? @{syntax nat}?
sledgehammer_params tags ([ args ])?
@@{command (HOL) sledgehammer_params} ( ( '[' args ']' ) ? )
smt_status tags
solve_direct tags
sorry tags
(@@{command "."} | @@{command ".."} | @@{command sorry})
specification tags ( decl decl* ) thmdecl? prop (thmdecl? prop)*
@@{command (HOL) specification} '(' (decl +) ')' \<newline>
(@{syntax thmdecl}? @{syntax prop} +)
@@{command subclass} @{syntax name}
subgoal tags thmbind? prems? params?
@@{command subgoal} @{syntax thmbind}? prems? params?
sublocale tags target? (name (< | \<subseteq>))? locale_expr definitions?
@@{command sublocale} (@{syntax name} ('<' | '\<subseteq>'))? @{syntax locale_expr} \<newline>
definitions?
subparagraph tags target? text ;?
(@@{command chapter} | @@{command section} | @@{command subsection} |
@@{command subsubsection} | @@{command paragraph} | @@{command subparagraph})
@{syntax text} ';'? |
(@@{command text} | @@{command txt} | @@{command text_raw}) @{syntax text}
subsection tags target? text ;?
(@@{command chapter} | @@{command section} | @@{command subsection} |
@@{command subsubsection} | @@{command paragraph} | @@{command subparagraph})
@{syntax text} ';'? |
(@@{command text} | @@{command txt} | @@{command text_raw}) @{syntax text}
subsubsection tags target? text ;?
(@@{command chapter} | @@{command section} | @@{command subsection} |
@@{command subsubsection} | @@{command paragraph} | @@{command subparagraph})
@{syntax text} ';'? |
(@@{command text} | @@{command txt} | @@{command text_raw}) @{syntax text}
supply tags thmdef? thms (and thmdef? thms)*
@@{command supply} (@{syntax thmdef}? @{syntax thms} + @'and')
syntax tags target? mode? constdecl constdecl*
(@@{command syntax} | @@{command no_syntax}) @{syntax mode}? (constdecl +)
syntax_consts tags target? syntaxdeps (and syntaxdeps)*
(@@{command syntax_types} | @@{command syntax_consts}) (syntaxdeps + @'and')
syntax_declaration tags target? (( pervasive ))? text
(@@{command declaration} | @@{command syntax_declaration})
('(' @'pervasive' ')')? \<newline> @{syntax text}
syntax_types tags target? syntaxdeps (and syntaxdeps)*
(@@{command syntax_types} | @@{command syntax_consts}) (syntaxdeps + @'and')
@@{command term} @{syntax modes}? @{syntax term}
termination tags target? term?
@@{command (HOL) termination} @{syntax term}?
(@@{command chapter} | @@{command section} | @@{command subsection} |
@@{command subsubsection} | @@{command paragraph} | @@{command subparagraph})
@{syntax text} ';'? |
(@@{command text} | @@{command txt} | @@{command text_raw}) @{syntax text}
(@@{command chapter} | @@{command section} | @@{command subsection} |
@@{command subsubsection} | @@{command paragraph} | @@{command subparagraph})
@{syntax text} ';'? |
(@@{command text} | @@{command txt} | @@{command text_raw}) @{syntax text}
then tags
theorem tags target? (long_statement | short_statement)
(@@{command lemma} | @@{command theorem} | @@{command corollary} |
@@{command proposition} | @@{command schematic_goal})
(long_statement | short_statement)
theory tags (Pure | system_name imports system_name system_name*) keywords? abbrevs? begin
@@{command theory} @{syntax system_name}
@'imports' (@{syntax system_name} +) \<newline>
keywords? abbrevs? @'begin'
@@{command thm} @{syntax modes}? @{syntax thms}
@@{command thm_deps} @{syntax thmrefs}
@@{command thm_oracles} @{syntax thms}
thus tags stmt cond_stmt for_fixes
(@@{command have} | @@{command show} | @@{command hence} | @@{command thus})
stmt cond_stmt @{syntax for_fixes}
thy_deps tags (thy_bounds thy_bounds?)?
@@{command thy_deps} (thy_bounds thy_bounds?)?
translations tags target? transpat (== | => | <= | \<rightleftharpoons> | \<rightharpoonup> | \<leftharpoondown>) transpat (transpat (== | => | <= | \<rightleftharpoons> | \<rightharpoonup> | \<leftharpoondown>) transpat)*
(@@{command translations} | @@{command no_translations})
(transpat ('==' | '=>' | '<=' | '\<rightleftharpoons>' | '\<rightharpoonup>' | '\<leftharpoondown>') transpat +)
try tags
@@{command (HOL) try}
try0 tags ((simp | intro | elim | dest) : thms ((simp | intro | elim | dest) : thms)*)?
@@{command (HOL) try0} ( ( ( 'simp' | 'intro' | 'elim' | 'dest' ) ':' @{syntax thms} ) + ) ?
(@@{command chapter} | @@{command section} | @@{command subsection} |
@@{command subsubsection} | @@{command paragraph} | @@{command subparagraph})
@{syntax text} ';'? |
(@@{command text} | @@{command txt} | @@{command text_raw}) @{syntax text}
typ tags modes? type (:: sort)?
@@{command typ} @{syntax modes}? @{syntax type} ('::' @{syntax sort})?
type_alias tags target? name = name
(@{command alias} | @{command type_alias}) @{syntax name} '=' @{syntax name}
type_notation tags target? mode? name mixfix (and name mixfix)*
(@@{command type_notation} | @@{command no_type_notation}) @{syntax mode}? \<newline>
(@{syntax name} @{syntax mixfix} + @'and')
type_synonym tags target? typespec = type mixfix?
@@{command type_synonym} (@{syntax typespec} '=' @{syntax type} @{syntax mixfix}?)
typed_print_translation tags text
( @@{command parse_ast_translation} | @@{command parse_translation} |
@@{command print_translation} | @@{command typed_print_translation} |
@@{command print_ast_translation}) @{syntax text}
typedecl tags target? typespec mixfix?
@@{command typedecl} @{syntax typespec} @{syntax mixfix}?
typedef tags target? overloaded? abs_type = rep_set
@@{command (HOL) typedef} @{syntax "overloaded"}? abs_type '=' rep_set
ultimately tags
@@{command unbundle} @{syntax bundles}
unfolding tags thms (and thms)*
(@@{command from} | @@{command with} | @@{command using} | @@{command unfolding})
(@{syntax thms} + @'and')
unused_thms tags (!- name (!- name)* - (!- name)*)?
@@{command unused_thms} ((@{syntax name} +) '-' (@{syntax name} * ))?
(@@{command from} | @@{command with} | @@{command using} | @@{command unfolding})
(@{syntax thms} + @'and')
value tags ([ name ])? modes? term
@@{command (HOL) value} ( '[' @{syntax name} ']' )? modes? @{syntax term}
values tags (( name name* ))? ([ mode : ((_ | predicate_mode) (, (_ | predicate_mode))*)? ])? ([ (expected term)? stats? (name (nat (, nat)*)?)? ])? nat? term
@@{command (HOL) values} modes? @{syntax nat}? @{syntax term}
welcome tags
(@@{command from} | @@{command with} | @@{command using} | @@{command unfolding})
(@{syntax thms} + @'and')
write tags mode? name mixfix (and name mixfix)*
@@{command write} @{syntax mode}? (@{syntax name} @{syntax mixfix} + @'and')
{ tags
} tags
(atom | ( args_in_brackets ) | [ args_in_brackets ])*
@{syntax_def args}: arg *
(atom | , | ( args_in_brackets ) | [ args_in_brackets ])*
@{syntax_def args}: arg *
@{syntax_def arity}: ('(' (@{syntax sort} + ',') ')')? @{syntax sort}
name
| type_ident
| type_var
| term_var
| nat
| float
| keyword
| cartouche
| altstring
@{syntax_def atom}: @{syntax name} | @{syntax type_ident} |
@{syntax type_var} | @{syntax term_var} | @{syntax nat} | @{syntax float} |
@{syntax keyword} | @{syntax cartouche}
[ ((name | keyword) args (, (name | keyword) args)*)? ]
@{syntax_def attributes}: '[' (@{syntax name} @{syntax args} * ',') ']'
@{syntax bundles}: ('no')? @{syntax name} + @'and'
( (plugins | no_warn_transfer) (, (plugins | no_warn_transfer))* )
@{syntax_def cb_options}: '(' ((@{syntax plugins} | 'no_warn_transfer') + ',') ')'
fixes vars
| constrains name :: type (and name :: type)*
| assumes props (and props)*
| defines thmdecl? prop prop_pat? (and thmdecl? prop prop_pat?)*
| notes thmdef? thms (and thmdef? thms)*
@{syntax_def context_elem}:
@'fixes' @{syntax vars} |
@'constrains' (@{syntax name} '::' @{syntax type} + @'and') |
@'assumes' (@{syntax props} + @'and') |
@'defines' (@{syntax thmdecl}? @{syntax prop} @{syntax prop_pat}? + @'and') |
@'notes' (@{syntax thmdef}? @{syntax thms} + @'and')
(name :)? name dt_ctor_arg* mixfix?
@{syntax_def dt_ctor}: (name ':')? name (@{syntax dt_ctor_arg} * ) mixfix?
@{syntax_def dt_ctor_arg}: type | '(' name ':' type ')'
@{syntax_def dt_name}: @{syntax tyargs}? name mixfix?
( (plugins | discs_sels) (, (plugins | discs_sels))* )
@{syntax_def dt_options}: '(' ((@{syntax plugins} | 'discs_sels') + ',') ')'
dt_name = dt_ctor (| dt_ctor)* map_rel_pred? (where prop (| prop)*)? (and dt_name = dt_ctor (| dt_ctor)* map_rel_pred? (where prop (| prop)*)?)*
@{syntax_def dt_spec}: (@{syntax dt_name} '=' (@{syntax dt_ctor} + '|') \<newline>
@{syntax map_rel_pred}? (@'where' (prop + '|'))? + @'and')
cartouche
| string
| short_ident
| long_ident
| sym_ident
| term_var
| type_ident
| type_var
| nat
@{syntax_def embedded}: @{syntax cartouche} | @{syntax string} |
@{syntax short_ident} | @{syntax long_ident} | @{syntax sym_ident} |
@{syntax term_var} | @{syntax type_ident} | @{syntax type_var} | @{syntax nat}
@{syntax_def fc_ctor}: (name ':')? term (name * )
(for vars)?
@{syntax_def for_fixes}: (@'for' @{syntax vars})?
includes bundles
@{syntax_def "includes"}: @'includes' @{syntax bundles}
( (plugins | no_warn_wits | no_warn_transfer) (, (plugins | no_warn_wits | no_warn_transfer))* )
@{syntax_def lb_options}: '(' ((@{syntax plugins} | 'no_warn_wits' | 'no_warn_transfer') + ',') ')'
context_elem context_elem*
| opening (+ context_elem context_elem*)?
| locale_expr opening? (+ context_elem context_elem*)?
@{syntax_def locale}: @{syntax context_elem}+ |
@{syntax_ref "opening"} ('+' (@{syntax context_elem}+))? |
@{syntax locale_expr} @{syntax_ref "opening"}? ('+' (@{syntax context_elem}+))?
instance (+ instance)* for_fixes
@{syntax_def locale_expr}: (instance + '+') @{syntax for_fixes}
for (map | rel | pred) : name ((map | rel | pred) : name)*
@{syntax_def map_rel_pred}: @'for' ((('map' | 'rel' | 'pred') ':' name) +)
(method_name | ( methods )) (? | + | [ nat? ])?
| cartouche (? | + | [ nat? ])?
@{syntax_def method}:
(@{syntax name} | '(' methods ')') (() | '?' | '+' | '[' @{syntax nat}? ']')
(!(? | +) atom | ( method_args_in_brackets ) | [ method_args_in_brackets ]) (!(? | +) atom | ( method_args_in_brackets ) | [ method_args_in_brackets ])*
@{syntax_def args}: arg *
(!(? | +) atom | , | ( method_args_in_brackets ) | [ method_args_in_brackets ])*
@{syntax_def args}: arg *
@{syntax_def name}: @{syntax short_ident} | @{syntax long_ident} |
@{syntax sym_ident} | @{syntax nat} | @{syntax string}
( (template prios? nat? | (infix | infixl | infixr) template nat | binder template prio? nat | structure) )
@{syntax_def mixfix}: '('
(@{syntax template} prios? @{syntax nat}? |
(@'infix' | @'infixl' | @'infixr') @{syntax template} @{syntax nat} |
@'binder' @{syntax template} prio? @{syntax nat} |
@'structure') ')'
( (name output | name | output) )
mode: ('(' ( @{syntax name} | @'output' | @{syntax name} @'output' ) ')')
@{syntax_def modes}: '(' (@{syntax name} + ) ')'
structured_spec (| structured_spec)*
@{syntax_def multi_specs}: (@{syntax structured_spec} + '|')
short_ident
| long_ident
| sym_ident
| nat
| string
@{syntax_def name}: @{syntax short_ident} | @{syntax long_ident} |
@{syntax sym_ident} | @{syntax nat} | @{syntax string}
(vars where)? thmdecl? prop prop* (and thmdecl? prop prop*)*
@{syntax_def obtain_case}: (@{syntax vars} @'where')?
(@{syntax thmdecl}? (@{syntax prop}+) + @'and')
par_name? obtain_case (| par_name? obtain_case)*
@{syntax_def obtain_clauses}: (@{syntax par_name}? obtain_case + '|')
opening bundles
@{syntax_def "opening"}: @'opening' @{syntax bundles}
( overloaded )
@{syntax_def "overloaded"}: ('(' @'overloaded' ')')
( name )
@{syntax_def par_name}: '(' @{syntax name} ')'
path: @{syntax embedded}
@{syntax_def pcr_formula}: thmdecl? prop (@'of' (term * ))?
( (plugins | sequential | exhaustive | transfer) (, (plugins | sequential | exhaustive | transfer))* )
@{syntax_def pcr_options}: '(' ((@{syntax plugins} | 'sequential' | 'exhaustive' | 'transfer') + ',') ')'
plugins (only | del) : name name*
@{syntax_def plugins}: 'plugins' ('only' | 'del') ':' (name +)
( (plugins | nonexhaustive | transfer) (, (plugins | nonexhaustive | transfer))* )
@{syntax_def pr_options}: '(' ((@{syntax plugins} | 'nonexhaustive' | 'transfer') + ',') ')'
(name | ( predicate_mode )) ((* | \<times> | => | \<Rightarrow>) (name | ( predicate_mode )))*
[ (pred | random | depth_limited | depth_limited_random | dseq | random_dseq | new_random_dseq | generator_dseq | generator_cps)? ((show_steps | show_intermediate_results | show_proof_trace | show_modes | show_mode_inference | show_compilation | show_invalid_clauses | skip_proof | inductify | no_function_flattening | detect_switches | specialise | no_topmost_reordering | smart_depth_limiting) (, (show_steps | show_intermediate_results | show_proof_trace | show_modes | show_mode_inference | show_compilation | show_invalid_clauses | skip_proof | inductify | no_function_flattening | detect_switches | specialise | no_topmost_reordering | smart_depth_limiting))*)? ]
@{syntax_def prop}: @{syntax embedded}
@{syntax_def prop_pat}: '(' (@'is' @{syntax prop} +) ')'
thmdecl? prop prop_pat? (prop prop_pat?)*
@{syntax_def props}: @{syntax thmdecl}? (@{syntax prop} @{syntax prop_pat}? +)
prop prop_pat? (prop prop_pat?)*
@{syntax_def props'}: (@{syntax prop} @{syntax prop_pat}? +)
passive? proc_kind? name patterns = embedded
@{syntax_def simproc_setup}: (@'passive')? proc_kind? @{syntax name}
patterns '=' @{syntax embedded}
@{syntax_def sort}: @{syntax embedded}
(if prop prop* (and prop prop*)*)?
@{syntax_def spec_prems}: (@'if' ((@{syntax prop}+) + @'and'))?
vars where multi_specs
@{syntax_def specification}: @{syntax vars} @'where' @{syntax multi_specs}
thmdecl? prop spec_prems for_fixes
@{syntax_def structured_spec}:
@{syntax thmdecl}? @{syntax prop} @{syntax spec_prems} @{syntax for_fixes}
short_ident
| long_ident
| sym_ident
| nat
| string
@{syntax_def name}: @{syntax short_ident} | @{syntax long_ident} |
@{syntax sym_ident} | @{syntax nat} | @{syntax string}
tag*
@{syntax_def tags}: tag*
( in name )
@{syntax_def target}: '(' @'in' @{syntax name} ')'
string
| cartouche
@{syntax template}: (string | cartouche)
@{syntax_def term}: @{syntax embedded}
@{syntax_def text}: @{syntax embedded}
(name selection? | altstring | cartouche) attributes?
| [ attributes ]
@{syntax_def thm}:
(@{syntax name} selection? | @{syntax altstring} | @{syntax cartouche})
@{syntax attributes}? |
'[' @{syntax attributes} ']'
name attributes
| name
| attributes
@{syntax_def thmbind}:
@{syntax name} @{syntax attributes} | @{syntax name} | @{syntax attributes}
thmbind :
@{syntax_def thmdecl}: thmbind ':'
thmbind =
@{syntax_def thmdef}: thmbind '='
@{syntax_def thms}: @{syntax thm} +
type_ident (:: sort)?
| ( (dead | name :)? type_ident (:: sort)? (, (dead | name :)? type_ident (:: sort)?)* )
@{syntax_def tyargs}: typefree | '(' (('dead' | name ':')? typefree + ',') ')'
@{syntax_def type}: @{syntax embedded}
(type_ident | ( type_ident (, type_ident)* ))?
@{syntax_def typeargs}:
(() | @{syntax type_ident} | '(' ( @{syntax type_ident} + ',' ) ')')
(type_ident (:: sort)? | ( type_ident (:: sort)? (, type_ident (:: sort)?)* ))?
@{syntax_def typeargs_sorts}:
(() | (@{syntax type_ident} ('::' @{syntax sort})?) |
'(' ( (@{syntax type_ident} ('::' @{syntax sort})?) + ',' ) ')')
@{syntax_def typespec}: @{syntax typeargs} @{syntax name}
@{syntax_def typespec_sorts}: @{syntax typeargs_sorts} @{syntax name}
(name (:: type)? mixfix | name name* (:: type)?) (and (name (:: type)? mixfix | name name* (:: type)?))*
@{syntax_def vars}:
(((@{syntax name} +) ('::' @{syntax type})? |
@{syntax name} ('::' @{syntax type})? @{syntax mixfix}) + @'and')
[ wits : terms ]
@{syntax_def wit_terms}: '[' 'wits' ':' terms ']'
abbreviation: @{syntax prop} @{syntax for_fixes}
abbrevs text text* = text text* (and text text* = text text*)*
abbrevs: @'abbrevs' (((text+) '=' (text+)) + @'and')
abs_type: @{syntax typespec_sorts} @{syntax mixfix}?
(embedded | ? | ! | !!) (embedded | ? | ! | !!)* (= (name | float | - | ? | ! | !! | [ name (, name)* ]) (name | float | - | ? | ! | !! | [ name (, name)* ])*)? (, (embedded | ? | ! | !!) (embedded | ? | ! | !!)* (= (name | float | - | ? | ! | !! | [ name (, name)* ]) (name | float | - | ? | ! | !! | [ name (, name)* ])*)?)*
args: ( @{syntax name} '=' value + ',' )
(embedded | ? | ! | !!) (embedded | ? | ! | !!)* (= (name | float | - | ? | ! | !! | [ name (, name)* ]) (name | float | - | ? | ! | !! | [ name (, name)* ])*)? (, (embedded | ? | ! | !!) (embedded | ? | ! | !!)* (= (name | float | - | ? | ! | !! | [ name (, name)* ]) (name | float | - | ? | ! | !! | [ name (, name)* ])*)?)*
args: ( @{syntax name} '=' value + ',' )
thmdecl prop (and thmdecl prop)* spec_prems for_fixes
axiomatization: (@{syntax thmdecl} @{syntax prop} + @'and')
@{syntax spec_prems} @{syntax for_fixes}
class: @{syntax name}
class_bounds: @{syntax sort} | '(' (@{syntax sort} + @'|') ')'
concl: (@{syntax props} + @'and')
concl: (@{syntax props} + @'and')
shows stmt
| obtains obtain_clauses
conclusion: @'shows' stmt | @'obtains' @{syntax obtain_clauses}
((if | when) stmt)?
cond_stmt: ((@'if' | @'when') stmt)?
const: @{syntax term}
-? (name : name | strict : type | type)
const_criterion: ('-'?)
('name' ':' @{syntax name} | 'strict' ':' @{syntax type} | @{syntax type})
const
| name . _
| _
const_expr: (const | 'name._' | '_')
constdecl: @{syntax name} '::' @{syntax type} @{syntax mixfix}?
constdecl: @{syntax name} '::' @{syntax type} @{syntax mixfix}?
content: @{syntax embedded}
context: (@{syntax_ref "includes"}?) (@{syntax context_elem} *)
decl: @{syntax name} ('::' @{syntax type})? @{syntax mixfix}? @'where'
(name :)? term (( overloaded ))?
decl: (@{syntax name} ':')? @{syntax term} ('(' @'overloaded' ')')?
thmdecl? prop spec_prems for_fixes
definition: @{syntax thmdecl}? @{syntax prop}
@{syntax spec_prems} @{syntax for_fixes}
defines thmdecl? name mixfix? = term (and thmdecl? name mixfix? = term)*
definitions: @'defines' (@{syntax thmdecl}? @{syntax name} \<newline>
@{syntax mixfix}? '=' @{syntax term} + @'and')
( (exe | executable) )
executable: '(' ('exe' | 'executable') ')'
export_files: (path+) (executable?)
in name (module_name name)? ((file_prefix | file) path)? (( args ))?
| checking (name ?? (( args ))?)*
export_target:
@'in' target (@'module_name' @{syntax name})? \<newline>
(@'file_prefix' @{syntax path})? ('(' args ')')?
external_files: (path+) (('(' @'in' path ')')?)
( (((add | del) :)? thms (((add | del) :)? thms)*)? )
facts: '(' ( ( ( ( 'add' | 'del' ) ':' ) ? @{syntax thms} ) + ) ? ')'
(_ | path path*) (( in name ))?
files_in_theory: (@'_' | (path+)) (('(' @'in' @{syntax name} ')')?)
for (constant term term* | type_constructor embedded embedded* | type_class embedded embedded* | class_relation embedded < embedded (embedded < embedded)* | class_instance name :: embedded (name :: embedded)*) (constant term term* | type_constructor embedded embedded* | type_class embedded embedded* | class_relation embedded < embedded (embedded < embedded)* | class_instance name :: embedded (name :: embedded)*)*
for_symbol:
@'for'
((symbol_const | symbol_typeconstructor |
symbol_class | symbol_class_relation | symbol_class_instance)+)
(qualifier :)? name (pos_insts | named_insts) rewrites?
instance: (qualifier ':')? @{syntax name} (pos_insts | named_insts) \<newline>
rewrites?
string string* (:: name (( name ))? tags)?
keyword_decls: (@{syntax string} +) ('::' @{syntax name} @{syntax tags})?
keywords keyword_decls (and keyword_decls)*
keywords: @'keywords' (keyword_decls + @'and')
long_statement: @{syntax thmdecl}? context conclusion
(method_name method_args | method) ((, | ; | |) (method_name method_args | method))*
methods: (@{syntax name} @{syntax args} | @{syntax method}) + (',' | ';' | '|')
modes: '(' (@{syntax name} +) ')'
modes: '(' (@{syntax name} +) ')'
where name = term (and name = term)*
named_insts: @'where' (@{syntax name} '=' @{syntax term} + @'and')
( (sequential | domintros) (, (sequential | domintros))* )
opts: '(' (('sequential' | 'domintros') + ',') ')'
for \<dots>? (_ | name) (_ | name)*
params: @'for' '\<dots>'? (('_' | @{syntax name})+)
path: @{syntax embedded}
path: @{syntax embedded}
patterns: '(' (@{syntax term} + '|') ')'
(_ | term)*
pos_insts: ('_' | @{syntax term})*
prems: (@'if' (@{syntax props'} + @'and'))?
premises thmbind?
prems: @'premises' @{syntax thmbind}?
prems: (@'if' (@{syntax props'} + @'and'))?
symbol_class (\<rightharpoonup> | =>) ( target ) target_syntax? (and ( target ) target_syntax?)*
printing_class: symbol_class ('\<rightharpoonup>' | '=>') \<newline>
('(' target ')' target_syntax ? + @'and')
symbol_class_instance (\<rightharpoonup> | =>) ( target ) -? (and ( target ) -?)*
printing_class_instance: symbol_class_instance ('\<rightharpoonup>'| '=>') \<newline>
('(' target ')' '-' ? + @'and')
symbol_class_relation (\<rightharpoonup> | =>) ( target ) target_syntax? (and ( target ) target_syntax?)*
printing_class_relation: symbol_class_relation ('\<rightharpoonup>' | '=>') \<newline>
('(' target ')' target_syntax ? + @'and')
symbol_const (\<rightharpoonup> | =>) ( target ) rich_syntax? (and ( target ) rich_syntax?)*
printing_const: symbol_const ('\<rightharpoonup>' | '=>') \<newline>
('(' target ')' rich_syntax ? + @'and')
symbol_module (\<rightharpoonup> | =>) ( target ) ((target_syntax | file path) for_symbol?)? (and ( target ) ((target_syntax | file path) for_symbol?)?)*
printing_module: symbol_module ('\<rightharpoonup>' | '=>') \<newline>
('(' target ')' \<newline>
((target_syntax | @'file' path) for_symbol?)? + @'and')
symbol_type_constructor (\<rightharpoonup> | =>) ( target ) rich_syntax? (and ( target ) rich_syntax?)*
printing_type_constructor: symbol_type_constructor ('\<rightharpoonup>' | '=>') \<newline>
('(' target ')' rich_syntax ? + @'and')
[ nat ]
prio: '[' @{syntax nat} ']'
[ (nat (, nat)*)? ]
prios: '[' (@{syntax nat} + ',') ']'
congproc
| weak_congproc
proc_kind: @'congproc' | @'weak_congproc'
name ??
qualifier: @{syntax name} ('?')?
quot_morphisms: @'morphisms' @{syntax name} @{syntax name}
parametric thm
quot_parametric: @'parametric' @{syntax thm}
quot_type: @{syntax type} '/' ('partial' ':')? @{syntax term}
rep_set: @{syntax term} (@'morphisms' @{syntax name} @{syntax name})?
rewrites thmdecl? prop (and thmdecl? prop)*
rewrites: @'rewrites' (@{syntax thmdecl}? @{syntax prop} + @'and')
target_syntax
| (infix | infixl | infixr) nat target_syntax
rich_syntax: target_syntax | (@'infix' | @'infixl' | @'infixr')
@{syntax nat} target_syntax
( (nat - nat? | nat) (, (nat - nat? | nat))* )
selection: '(' ((@{syntax nat} | @{syntax nat} '-' @{syntax nat}?) + ',') ')'
short_statement: stmt (@'if' stmt)? @{syntax for_fixes}
name (\<equiv> | ==) term (( unchecked ))?
spec: @{syntax name} ( '\<equiv>' | '==' ) @{syntax term} ( '(' @'unchecked' ')' )?
stmt: (@{syntax props} + @'and')
type_class class
symbol_class: @'type_class' class
class_instance type_constructor :: class
symbol_class_instance: @'class_instance' type_constructor @'::' class
class_relation class (< | \<subseteq>) class
symbol_class_relation: @'class_relation' class ('<' | '\<subseteq>') class
constant const
symbol_const: @'constant' const
code_module name
symbol_module: @'code_module' name
type_constructor type_constructor
symbol_type_constructor: @'type_constructor' type_constructor
name name* (== | \<rightleftharpoons>) name name*
syntaxdeps: (@{syntax name}+) ('==' | '\<rightleftharpoons>') (@{syntax name}+)
% (short_ident | string)
tag: '%' (@{syntax short_ident} | @{syntax string})
target: 'SML' | 'OCaml' | 'Haskell' | 'Scala' | 'Eval'
target_syntax: @{syntax embedded}
-? (name : name | intro | elim | dest | solves | simp : term | term)
thm_criterion: ('-'?) ('name' ':' @{syntax name} | 'intro' | 'elim' | 'dest' |
'solves' | 'simp' ':' @{syntax term} | @{syntax term})
thy_bounds: @{syntax name} | '(' (@{syntax name} + @'|') ')'
(( name ))? string
transpat: ('(' @{syntax name} ')')? @{syntax string}
type_constructor: @{syntax name}
replaced by `command primrec`, see there
primrec specification
@@{command (HOL) primrec} @{syntax specification}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
match kind in pattern \<Rightarrow> text (\<bar> pattern \<Rightarrow> text)*
@@{method match} kind @'in' (pattern '\<Rightarrow>' @{syntax text} + '\<bar>')
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
attributes attributes
@@{ML_antiquotation attributes} attributes
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
class embedded
@@{ML_antiquotation class} embedded
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
sort sort
@@{ML_antiquotation sort} sort
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(type_name | type_abbrev | nonterminal) embedded
(@@{ML_antiquotation type_name} |
@@{ML_antiquotation type_abbrev} |
@@{ML_antiquotation nonterminal}) embedded
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
typ type
@@{ML_antiquotation typ} type
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(Type | Type_fn) embedded
(@@{ML_antiquotation Type} | @@{ML_antiquotation Type_fn}) embedded
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(const_name | const_abbrev) embedded
(@@{ML_antiquotation const_name} |
@@{ML_antiquotation const_abbrev}) embedded
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
@@{ML_antiquotation const} ('(' (type + ',') ')')?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
term term
@@{ML_antiquotation term} term
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
prop prop
@@{ML_antiquotation prop} prop
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(Const | Const_ | Const_fn) embedded
(@@{ML_antiquotation Const} | @@{ML_antiquotation Const_} | @@{ML_antiquotation Const_fn})
embedded
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
ctyp typ
@@{ML_antiquotation ctyp} typ
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
cterm term
@@{ML_antiquotation cterm} term
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
cprop prop
@@{ML_antiquotation cprop} prop
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
thm thm
@@{ML_antiquotation thm} thm
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
thms thms
@@{ML_antiquotation thms} thms
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
lemma embedded_lemma
@@{ML_antiquotation lemma} @{syntax embedded_lemma}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
embedded_lemma (( open ))? prop prop* (and prop prop*)* for_fixes by method method?
@{syntax_def embedded_lemma} ('(' @'open' ')')? ((prop +) + @'and') \<newline>
@{syntax for_fixes} @'by' method method?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
oracle_name embedded
@@{ML_antiquotation oracle_name} embedded
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
instantiate embedded
@@{ML_antiquotation instantiate} embedded
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
make_string
@@{ML_antiquotation make_string}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
print embedded?
@@{ML_antiquotation print} embedded?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(try | can) embedded
(@@{ML_antiquotation try} | @@{ML_antiquotation can}) embedded
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
if_none embedded
@@{ML_antiquotation if_none} embedded
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
theory embedded?
@@{ML_antiquotation theory} embedded?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
theory_context embedded
@@{ML_antiquotation theory_context} embedded
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
binding embedded
@@{ML_antiquotation binding} embedded
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(title | creator | contributor | date | license | description) embedded
(@@{document_marker_def title} |
@@{document_marker_def creator} |
@@{document_marker_def contributor} |
@@{document_marker_def date} |
@@{document_marker_def license} |
@@{document_marker_def description}) @{syntax embedded}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
tag scope? name
@@{document_marker_def tag} (scope?) @{syntax name}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
rail text
'rail' @{syntax text}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
rule? (; rule?)*
rule? + ';'
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
ε
()
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
A
A
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
@{syntax method}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
xyz
'xyz'
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
xyz
@'xyz'
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
rule
@@{method rule}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
A B C
A B C
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
A B C D E F
A B C \<newline> D E F
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
A
| B
| C
A | B | C
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
A?
A ?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
A*
A *
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(A (sep A)*)?
A * sep
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
A A*
A +
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
A (sep A)*
A + sep
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
name (= (true | false | int | float | name))?
@{syntax name} ('=' ('true' | 'false' | @{syntax int} | @{syntax float} | @{syntax name}))?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(fold | unfold | insert) thms
(@@{method fold} | @@{method unfold} | @@{method insert}) @{syntax thms}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(erule | drule | frule) (( nat ))? thms
(@@{method erule} | @@{method drule} | @@{method frule})
('(' @{syntax nat} ')')? @{syntax thms}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(intro | elim) thms?
(@@{method intro} | @@{method elim}) @{syntax thms}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
sleep real
@@{method sleep} @{syntax real}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
@@{attribute tagged} @{syntax name} @{syntax name}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
untagged name
@@{attribute untagged} @{syntax name}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
THEN ([ nat ])? thm
@@{attribute THEN} ('[' @{syntax nat} ']')? @{syntax thm}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(unfolded | folded) thms
(@@{attribute unfolded} | @@{attribute folded}) @{syntax thms}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
rotated int?
@@{attribute rotated} @{syntax int}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
subst (( asm ))? (( nat nat* ))? thm
@@{method subst} ('(' 'asm' ')')? \<newline> ('(' (@{syntax nat}+) ')')? @{syntax thm}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
split thms
@@{method split} @{syntax thms}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(simp | simp_all) opt? simpmod*
(@@{method simp} | @@{method simp_all}) opt? (@{syntax simpmod} * )
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(simp | cong) (add | del)?
| split (! | del)?
(@@{attribute simp} | @@{attribute cong}) (() | 'add' | 'del') |
@@{attribute split} (() | '!' | 'del')
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
simp_trace_new interactive? (mode = (full | normal))? (depth = nat)?
@@{attribute simp_trace_new} ('interactive')? \<newline>
('mode' '=' ('full' | 'normal'))? \<newline>
('depth' '=' @{syntax nat})?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
simp_break term*
@@{attribute simp_break} (@{syntax term}*)
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
simproc (add : | del :)? name name*
@@{attribute simproc} (('add' ':')? | 'del' ':') (@{syntax name}+)
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
simplified opt? thms?
@@{attribute simplified} opt? @{syntax thms}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(intro | elim | dest) (! | ?)? nat?
(@@{attribute intro} | @@{attribute elim} | @@{attribute dest}) ('!' | () | '?') @{syntax nat}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
rule del
@@{attribute rule} 'del'
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
iff (add? ?? | del)
@@{attribute iff} (((() | 'add') '?'?) | 'del')
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
rule thms?
@@{method rule} @{syntax thms}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
blast nat? clamod*
@@{method blast} @{syntax nat}? (@{syntax clamod} * )
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
auto (nat nat)? clasimpmod*
@@{method auto} (@{syntax nat} @{syntax nat})? (@{syntax clasimpmod} * )
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
force clasimpmod*
@@{method force} (@{syntax clasimpmod} * )
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(fast | slow | best) clamod*
(@@{method fast} | @@{method slow} | @@{method best}) (@{syntax clamod} * )
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(fastforce | slowsimp | bestsimp) clasimpmod*
(@@{method fastforce} | @@{method slowsimp} | @@{method bestsimp})
(@{syntax clasimpmod} * )
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
deepen nat? clamod*
@@{method deepen} (@{syntax nat} ?) (@{syntax clamod} * )
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(safe | clarify) clamod*
(@@{method safe} | @@{method clarify}) (@{syntax clamod} * )
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
clarsimp clasimpmod*
@@{method clarsimp} (@{syntax clasimpmod} * )
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
atomize (( full ))?
@@{attribute atomize} ('(' 'full' ')')?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
rule_format (( noasm ))?
@@{attribute rule_format} ('(' 'noasm' ')')?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
mono (HOL) (add | del)?
@@{attribute (HOL) mono} (() | 'add' | 'del')
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
relation (HOL) term
@@{method (HOL) relation} @{syntax term}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
lexicographic_order (HOL) clasimpmod*
@@{method (HOL) lexicographic_order} (@{syntax clasimpmod} * )
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
size_change (HOL) orders clasimpmod*
@@{method (HOL) size_change} ( orders (@{syntax clasimpmod} * ) )
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
induction_schema (HOL)
@@{method (HOL) induction_schema}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(recdef_simp (HOL) | recdef_cong (HOL) | recdef_wf (HOL)) (add | del)?
(@@{attribute (HOL) recdef_simp} | @@{attribute (HOL) recdef_cong} |
@@{attribute (HOL) recdef_wf}) (() | 'add' | 'del')
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
lifting_restore (HOL) thm (thm thm)?
@@{attribute (HOL) lifting_restore}
@{syntax thm} (@{syntax thm} @{syntax thm})?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
lifting (HOL) thms?
@@{method (HOL) lifting} @{syntax thms}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
lifting_setup (HOL) thms?
@@{method (HOL) lifting_setup} @{syntax thms}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
coercion (HOL) term
@@{attribute (HOL) coercion} (@{syntax term})
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
coercion_delete (HOL) term
@@{attribute (HOL) coercion_delete} (@{syntax term})
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
coercion_map (HOL) term
@@{attribute (HOL) coercion_map} (@{syntax term})
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
coercion_args (HOL) const (+ | 0 | -) (+ | 0 | -)*
@@{attribute (HOL) coercion_args} (@{syntax const}) (('+' | '0' | '-')+)
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
iprover (HOL) rulemod*
@@{method (HOL) iprover} (@{syntax rulemod} *)
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
meson (HOL) thms?
@@{method (HOL) meson} @{syntax thms}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
metis (HOL) (( (partial_types | full_types | no_types | name) ))? thms?
@@{method (HOL) metis}
('(' ('partial_types' | 'full_types' | 'no_types' | @{syntax name}) ')')?
@{syntax thms}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
algebra (HOL) (add : thms)? (del : thms)?
@@{method (HOL) algebra}
('add' ':' @{syntax thms})?
('del' ':' @{syntax thms})?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
algebra (HOL) (add | del)?
@@{attribute (HOL) algebra} (() | 'add' | 'del')
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
coherent (HOL) thms?
@@{method (HOL) coherent} @{syntax thms}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
case_tac (HOL) goal_spec? term rule?
@@{method (HOL) case_tac} @{syntax goal_spec}? @{syntax term} rule?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
induct_tac (HOL) goal_spec? (insts (and insts)*)? rule?
@@{method (HOL) induct_tac} @{syntax goal_spec}? (@{syntax insts} * @'and') rule?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
ind_cases (HOL) prop prop* for_fixes
@@{method (HOL) ind_cases} (@{syntax prop}+) @{syntax for_fixes}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
split_format (HOL) (( complete ))?
@@{attribute (HOL) split_format} ('(' 'complete' ')')?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
code (HOL) (equation | nbe | abstype | abstract | drop : const const* | drop | abort : const const* | abort)?
@@{attribute (HOL) code} ('equation' | 'nbe' | 'abstype' | 'abstract'
| 'drop:' (const+) | 'drop' | 'abort:' (const+) | 'abort')?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
code_unfold (HOL) del?
@@{attribute (HOL) code_unfold} 'del'?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
code_post (HOL) del?
@@{attribute (HOL) code_post} 'del'?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
code_abbrev (HOL) del?
@@{attribute (HOL) code_abbrev} 'del'?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(class_syntax | type_syntax | const_syntax | syntax_const) embedded
(@@{ML_antiquotation class_syntax} |
@@{ML_antiquotation type_syntax} |
@@{ML_antiquotation const_syntax} |
@@{ML_antiquotation syntax_const}) embedded
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
@{method use} @{syntax thms} @'in' @{syntax method}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
trans (add | del)?
@@{attribute trans} (() | 'add' | 'del')
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
goal_cases name*
@@{method goal_cases} (@{syntax name}*)
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
subproofs method
@@{method subproofs} @{syntax method}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
fact thms?
@@{method fact} @{syntax thms}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
rule (Pure) thms?
@@{method (Pure) rule} @{syntax thms}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(intro | elim | dest) (! | ?)? nat?
(@@{attribute intro} | @@{attribute elim} | @@{attribute dest})
('!' | () | '?') @{syntax nat}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
rule (Pure) del
@@{attribute (Pure) rule} 'del'
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
OF thms
@@{attribute OF} @{syntax thms}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
of insts (concl : insts)? for_fixes
@@{attribute of} @{syntax insts} ('concl' ':' @{syntax insts})? @{syntax for_fixes}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
where named_insts for_fixes
@@{attribute "where"} @{syntax named_insts} @{syntax for_fixes}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
case_names name ([ (_ | name)* ])? (name ([ (_ | name)* ])?)*
@@{attribute case_names} ((@{syntax name} ( '[' (('_' | @{syntax name}) *) ']' ) ? ) +)
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
@@{attribute case_conclusion} @{syntax name} (@{syntax name} * )
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
@@{attribute params} ((@{syntax name} * ) + @'and')
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
consumes int?
@@{attribute consumes} @{syntax int}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
cases (( no_simp ))? (insts (and insts)*)? rule?
@@{method cases} ('(' 'no_simp' ')')? \<newline>
(@{syntax insts} * @'and') rule?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(induct | induction) (( no_simp ))? (definsts (and definsts)*)? arbitrary? taking? rule?
(@@{method induct} | @@{method induction})
('(' 'no_simp' ')')? (definsts * @'and') \<newline> arbitrary? taking? rule?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
coinduct insts taking rule?
@@{method coinduct} @{syntax insts} taking rule?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
cases spec
@@{attribute cases} spec
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
induct spec
@@{attribute induct} spec
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
coinduct spec
@@{attribute coinduct} spec
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(rule_tac | erule_tac | drule_tac | frule_tac | cut_tac) goal_spec? (named_insts for_fixes in thm | thms)
(@@{method rule_tac} | @@{method erule_tac} | @@{method drule_tac} |
@@{method frule_tac} | @@{method cut_tac}) @{syntax goal_spec}? \<newline>
(@{syntax named_insts} @{syntax for_fixes} @'in' @{syntax thm} | @{syntax thms} )
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
thin_tac goal_spec? prop for_fixes
@@{method thin_tac} @{syntax goal_spec}? @{syntax prop} @{syntax for_fixes}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
subgoal_tac goal_spec? prop prop* for_fixes
@@{method subgoal_tac} @{syntax goal_spec}? (@{syntax prop} +) @{syntax for_fixes}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
rename_tac goal_spec? name name*
@@{method rename_tac} @{syntax goal_spec}? (@{syntax name} +)
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
rotate_tac goal_spec? int?
@@{method rotate_tac} @{syntax goal_spec}? @{syntax int}?
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
(tactic | raw_tactic) text
(@@{method tactic} | @@{method raw_tactic}) @{syntax text}
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
-? (name : name | intro | elim | dest | solves | simp : term | term)
('-'?) ('name' ':' @{syntax name} | 'intro' | 'elim' | 'dest' |
'solves' | 'simp' ':' @{syntax term} | @{syntax term})
unnamed rule that doesn't start with commands (e.g. a method, attribute or example)
-? (name : name | strict : type | type)
('-'?)
('name' ':' @{syntax name} | 'strict' ':' @{syntax type} | @{syntax type})
not a command in Main
bnf_axiomatization target? (( plugins ))? tyargs? name wit_types? mixfix? map_rel_pred?
@@{command bnf_axiomatization} target? ('(' @{syntax plugins} ')')? \<newline>
@{syntax tyargs}? name @{syntax wit_types}? \<newline>
mixfix? @{syntax map_rel_pred}?
not a command in Main
case_of_simps target? (name :)? thm thm*
@@{command case_of_simps} target? (name ':')? \<newline>
(thm + )
not a command in Main
coinduction_upto target? name : type
@@{command coinduction_upto} target? name ':' type
not a command in Main
corec target? cr_options? fix where prop
(@@{command corec} | @@{command corecursive}) target? \<newline>
@{syntax cr_options}? fix @'where' prop
not a command in Main
corecursive target? cr_options? fix where prop
(@@{command corec} | @@{command corecursive}) target? \<newline>
@{syntax cr_options}? fix @'where' prop
not a command in Main
friend_of_corec target? foc_options? fix where prop
@@{command friend_of_corec} target? \<newline>
@{syntax foc_options}? fix @'where' prop
not a command in Main
method name args description = method
@@{command method} name args description @'=' method
not a command in Main
simps_of_case target? (name :)? thm thm* (splits : thm thm*)?
@@{command simps_of_case} target? (name ':')? \<newline>
(thm + ) (@'splits' ':' (thm + ))?
not a command in Main
recdef (( permissive ))? name term prop prop* hints?
@@{command (HOL) recdef} ('(' @'permissive' ')')? \<newline>
@{syntax name} @{syntax term} (@{syntax prop} +) hints?
uses antiquotation_ML, which isn't in the grammar
@ { antiquotation_body }
| \<controlstart> name > cartouche
| cartouche
| goals options
| subgoals options
| prf options thms
| full_prf options thms
| ML_text options text
| ML options text
| ML_infix options text
| ML_type options typeargs text
| ML_structure options text
| ML_functor options text
| emph options text
| bold options text
| verbatim options text
| bash_function options embedded
| system_option options embedded
| session options embedded
| path options embedded
| file options name
| dir options name
| url options embedded
| (cite | nocite | citet | citep) embedded
@{syntax_def antiquotation}:
'@{' antiquotation_body '}' |
'\<controlstart>' @{syntax_ref name} '>' @{syntax_ref cartouche} |
@{syntax_ref cartouche}
uses antiquotation_abbrev, which isn't in the grammar
(text | cartouche | theory_text) options text
| theory options embedded
| thm options styles thms
| lemma options prop by method method?
| prop options styles prop
| term options styles term
| value (HOL) options styles term
| term_type options styles term
| typeof options styles term
| const options term
| abbrev options term
| typ options type
| type options embedded
| class options embedded
| locale options embedded
| bundle options embedded
| (command | method | attribute) options name
@{syntax_def antiquotation_body}:
(@@{antiquotation text} | @@{antiquotation cartouche} | @@{antiquotation theory_text})
options @{syntax text} |
@@{antiquotation theory} options @{syntax embedded} |
@@{antiquotation thm} options styles @{syntax thms} |
@@{antiquotation lemma} options @{syntax prop} @'by' @{syntax method} @{syntax method}? |
@@{antiquotation prop} options styles @{syntax prop} |
@@{antiquotation term} options styles @{syntax term} |
@@{antiquotation (HOL) value} options styles @{syntax term} |
@@{antiquotation term_type} options styles @{syntax term} |
@@{antiquotation typeof} options styles @{syntax term} |
@@{antiquotation const} options @{syntax term} |
@@{antiquotation abbrev} options @{syntax term} |
@@{antiquotation typ} options @{syntax type} |
@@{antiquotation type} options @{syntax embedded} |
@@{antiquotation class} options @{syntax embedded} |
@@{antiquotation locale} options @{syntax embedded} |
@@{antiquotation bundle} options @{syntax embedded} |
(@@{antiquotation command} | @@{antiquotation method} | @@{antiquotation attribute})
options @{syntax name}
uses syntax_expr, which isn't in the grammar
expr
@{syntax_def can}: @{syntax expr}
uses syntax_body, which isn't in the grammar
no_beta? inst (and inst)* in body
@{syntax_def instantiation}: no_beta? (inst + @'and') @'in' @{syntax body}
uses syntax_expr, which isn't in the grammar
expr
@{syntax_def try}: @{syntax expr}
uses syntax_expr, which isn't in the grammar
expr catch handler
@{syntax_def try_catch}: @{syntax expr} @'catch' @{syntax handler}
uses syntax_cleanup, which isn't in the grammar
expr finally cleanup
@{syntax_def try_finally}: @{syntax expr} @'finally' @{syntax cleanup}
uses syntax_embedded_lemma, which isn't in the grammar
lemma schematic? embedded_lemma
body_lemma: 'lemma' schematic? @{syntax embedded_lemma}
uses syntax_identifier, which isn't in the grammar
( body? )
| identifier
| @? (string | antiquotation)
| \<newline>
atom: '(' body? ')' | identifier |
'@'? (string | @{syntax antiquotation}) |
'\<newline>'
uses syntax_identifier, which isn't in the grammar
((identifier | antiquotation) :)? body
rule: ((identifier | @{syntax antiquotation}) ':')? body
uses c288efd152dcb78e_body_lemma, which isn't in the grammar
body_type
| body_term
| body_prop
| body_lemma
body: body_type | body_term | body_prop | body_lemma
uses fd4f4946f2b3af42_atom, which isn't in the grammar
atom ?? (atom ??)* ((* | +) atom?)?
concatenation: ((atom '?'?) +) (('*' | '+') atom?)?
uses fd4f4946f2b3af42_concatenation, which isn't in the grammar
concatenation (| concatenation)*
body: concatenation + '|'
no command reaches it
@{syntax_def antiquote}: '@{' name args '}'
no command reaches it
name attributes? :
@{syntax_def axmdecl}: @{syntax name} @{syntax attributes}? ':'
no command reaches it
((intro | elim | dest) (! | ?)? | del) : thms
@{syntax_def clamod}:
(('intro' | 'elim' | 'dest') ('!' | () | '?') | 'del') ':' @{syntax thms}
no command reaches it
(simp (add | del | only)? | cong (add | del)? | split (! | del)? | iff (add? ?? | del) | (intro | elim | dest) (! | ?)? | del) : thms
@{syntax_def clasimpmod}: ('simp' (() | 'add' | 'del' | 'only') |
'cong' (() | 'add' | 'del') |
'split' (() | '!' | 'del') |
'iff' (((() | 'add') '?'?) | 'del') |
(('intro' | 'elim' | 'dest') ('!' | () | '?') | 'del')) ':' @{syntax thms}
no command reaches it
name ((< | \<subseteq>) name (, name)*)?
@{syntax_def classdecl}: @{syntax name} (('<' | '\<subseteq>') (@{syntax name} + ','))?
no command reaches it
( (plugins | friend | transfer) (, (plugins | friend | transfer))* )
@{syntax_def cr_options}: '(' ((@{syntax plugins} | 'friend' | 'transfer') + ',') ')'
no command reaches it
_
| embedded
| control_symbol embedded
@{syntax_def embedded_ml}:
@'_' | @{syntax embedded} | @{syntax control_symbol} @{syntax embedded}
no command reaches it
no command reaches it
( (plugins | transfer) (, (plugins | transfer))* )
@{syntax_def foc_options}: '(' ((@{syntax plugins} | 'transfer') + ',') ')'
no command reaches it
for embedded_ml embedded_ml*
@{syntax_def for_args}: @'for' (@{syntax embedded_ml}+)
no command reaches it
[ (nat - nat | nat - | nat | !) ]
@{syntax_def goal_spec}:
'[' (@{syntax nat} '-' @{syntax nat} | @{syntax nat} '-' | @{syntax nat} | '!' ) ']'
no command reaches it
_
| term
@{syntax_def inst}: '_' | @{syntax term}
no command reaches it
inst*
@{syntax_def insts}: (@{syntax inst} *)
no command reaches it
nat
| - nat
@{syntax_def int}: @{syntax nat} | '-' @{syntax nat}
no command reaches it
\<^marker> cartouche
@{syntax_def marker}: '\<^marker>' @{syntax cartouche}
no command reaches it
@{syntax_def marker_body}: (@{syntax name} @{syntax args} * ',')
no command reaches it
entry*
@{syntax_def "mixfix_properties"}: (entry *)
no command reaches it
@{syntax_def named_inst}: variable '=' (type | term)
no command reaches it
named_inst and (named_inst and)*
@{syntax_def named_insts}: (named_inst @'and' +)
no command reaches it
[ (option (, option)*)? ]
options: '[' (option * ',') ']'
no command reaches it
@{syntax_def pr_equation}: thmdecl? prop
no command reaches it
float
| int
@{syntax_def real}: @{syntax float} | @{syntax int}
no command reaches it
(add | del | flip | only | split (! | del)? | cong (add | del)?) : thms
@{syntax_def simpmod}: ('add' | 'del' | 'flip' | 'only' |
'split' (() | '!' | 'del') | 'cong' (() | 'add' | 'del'))
':' @{syntax thms}
no command reaches it
simproc_setup (identifier thms)?
@{syntax_def simproc_setup_id}:
@{syntax simproc_setup} (@'identifier' @{syntax thms})?
no command reaches it
name embedded_ml* for_args?
@{syntax_def term_const}:
@{syntax name} (@{syntax embedded_ml}*) (@{syntax for_args})?
no command reaches it
term_const => embedded_ml
@{syntax_def term_const_fn}:
@{syntax term_const} @'=>' @{syntax embedded_ml}
no command reaches it
@{syntax_def term_pat}: '(' (@'is' @{syntax term} +) ')'
no command reaches it
name embedded_ml*
@{syntax_def type_const}: @{syntax name} (@{syntax embedded_ml}*)
no command reaches it
type_const => embedded_ml
@{syntax_def type_const_fn}: @{syntax type_const} @'=>' @{syntax embedded_ml}
no command reaches it
no command reaches it
[ wits : types ]
@{syntax_def wit_types}: '[' 'wits' ':' types ']'
no command reaches it
(max | min | ms)*
orders: ( 'max' | 'min' | 'ms' ) *
no command reaches it
arg: @{syntax atom} | '(' @{syntax args} ')' | '[' @{syntax args} ']'
no command reaches it
( (proof | command) )
scope: '(' ('proof' | 'command') ')'
no command reaches it
option: @{syntax name} | @{syntax name} '=' @{syntax name}
no command reaches it
[ (option (, option)*)? ]
options: '[' (option * ',') ']'
no command reaches it
cons: @{syntax name} (@{syntax type} * ) @{syntax mixfix}?
no command reaches it
typespec_sorts mixfix? = cons (| cons)*
spec: @{syntax typespec_sorts} @{syntax mixfix}? '=' (cons + '|')
no command reaches it
( hints recdefmod* )
hints: '(' @'hints' ( recdefmod * ) ')'
no command reaches it
(recdef_simp | recdef_cong | recdef_wf) (add | del)? : thms
| clasimpmod
recdefmod: (('recdef_simp' | 'recdef_cong' | 'recdef_wf')
(() | 'add' | 'del') ':' @{syntax thms}) | @{syntax clasimpmod}
no command reaches it
short_ident
| int
| float
| cartouche
atom: @{syntax short_ident} | @{syntax int} | @{syntax float} | @{syntax cartouche}
no command reaches it
atom (= atom)?
entry: atom ('=' atom)?
no command reaches it
constdecl: @{syntax name} ('::' @{syntax type})? @{syntax mixfix}?
no command reaches it
(type | pred | set) : name
| del
spec: (('type' | 'pred' | 'set') ':' @{syntax name}) | 'del'
no command reaches it
( (multi | cut nat?) (, (multi | cut nat?))* )
args: '(' (('multi' | 'cut' nat?) + ',') ')'
no command reaches it
name attributes? :
fact_name: @{syntax name} @{syntax attributes}? ':'
no command reaches it
conclusion
| premises (( local ))?
| ( term )
| thms
kind:
(@'conclusion' | @'premises' ('(' 'local' ')')? |
'(' term ')' | @{syntax thms})
no command reaches it
fact_name? term args? (for vars)?
pattern: fact_name? term args? \<newline> (@'for' fixes)?
no command reaches it
name = (name opening? + context_elem context_elem* | name opening? | opening? + context_elem context_elem*)
class_spec: @{syntax name} '='
((@{syntax name} @{syntax_ref "opening"}? '+' (@{syntax context_elem}+)) |
@{syntax name} @{syntax_ref "opening"}? |
@{syntax_ref "opening"}? '+' (@{syntax context_elem}+))
no command reaches it
modes
| const : modes (and const : modes and (const : modes and)*)?
modedecl: (modes | ((const ':' modes) \<newline>
(@'and' ((const ':' modes @'and')+))?))
no command reaches it
modes: mode @'as' const
no command reaches it
arbitrary : term* and (term* and)*
arbitrary: 'arbitrary' ':' ((@{syntax term} * ) @'and' +)
no command reaches it
name (== | \<equiv>) term
| ( term )
| inst
definst: @{syntax name} ('==' | '\<equiv>') @{syntax term} | '(' @{syntax term} ')' | @{syntax inst}
no command reaches it
definst*
definsts: ( definst * )
no command reaches it
(type | pred | set) : name name*
| rule : thm thm*
rule: ('type' | 'pred' | 'set') ':' (@{syntax name} +) | 'rule' ':' (@{syntax thm} +)
no command reaches it
taking : insts
taking: 'taking' ':' @{syntax insts}
no command reaches it
term_args? method_args? fact_args? decl_args?
args: term_args? method_args? \<newline> fact_args? decl_args?
no command reaches it
decl_args: @'declares' (name+)
no command reaches it
text?
description: @{syntax text}?
no command reaches it
fact_args: @'uses' (name+)
no command reaches it
method_args: @'methods' (name+)
no command reaches it
for vars
term_args: @'for' @{syntax "fixes"}
no command reaches it
( (no_asm | no_asm_simp | no_asm_use | asm_lr) )
opt: '(' ('no_asm' | 'no_asm_simp' | 'no_asm_use' | 'asm_lr' ) ')'
no command reaches it
(prop | cprop) schematic? embedded
body_prop: ('prop' | 'cprop') schematic? embedded
no command reaches it
(term | cterm) schematic? embedded
body_term: ('term' | 'cterm') schematic? embedded
no command reaches it
(typ | ctyp) schematic? embedded
body_type: ('typ' | 'ctyp') schematic? embedded
no command reaches it
(type_ident | name) (= embedded_ml)?
inst: ((type_ident | name) ((@'=' @{syntax embedded_ml}))?)
no command reaches it
( no_beta )
no_beta: '(' 'no_beta' ')'
no command reaches it
( schematic )
schematic: '(' 'schematic' ')'
no command reaches it
( (no_asm | no_asm_simp | no_asm_use) )
opt: '(' ('no_asm' | 'no_asm_simp' | 'no_asm_use') ')'
no command reaches it
name
| term_var
| type_ident
| type_var
variable: @{syntax name} | @{syntax term_var} | @{syntax type_ident} | @{syntax type_var}
no command reaches it
(intro | elim | dest) ((! | ?)? nat? | del) : thms
rulemod: ('intro' | 'elim' | 'dest')
((('!' | () | '?') @{syntax nat}?) | 'del') ':' @{syntax thms}
no command reaches it
style: (@{syntax name} +)
no command reaches it
( style (, style)* )
styles: '(' (style + ',') ')'
no command reaches it
( (name output | name | output) )
mode: ('(' ( @{syntax name} | @'output' | @{syntax name} @'output' ) ')')
no command reaches it
(embedded in)? name (and name)* (using name)?
arg: (embedded @'in')? (name + @'and') \<newline> (@'using' name)?
no command reaches it
rule : thm
rule: 'rule' ':' @{syntax thm}