etc/isar-keywords.el
author wenzelm
Sat, 18 Jan 2014 19:15:12 +0100
changeset 56375 8e8243975860
parent 56238 f6f455df1034
child 56451 ecff9e26360c
permissions -rw-r--r--
support for nested text cartouches;
clarified Symbol.is_symbolic: exclude \<open> and \<close>;
     1 ;;
     2 ;; Keyword classification tables for Isabelle/Isar.
     3 ;; Generated from HOL + HOL-Auth + HOL-BNF + HOL-BNF-FP + HOL-Bali + HOL-Decision_Procs + HOL-IMP + HOL-Imperative_HOL + HOL-Import + HOL-Library + HOL-Mutabelle + HOL-Nominal + HOL-Proofs + HOL-Proofs-Extraction + HOL-SPARK + HOL-Statespace + HOL-TPTP + HOL-Word-SMT_Examples + HOL-ex + HOLCF + Pure.
     4 ;; *** DO NOT EDIT *** DO NOT EDIT *** DO NOT EDIT ***
     5 ;;
     6 
     7 (defconst isar-keywords-major
     8   '("\\."
     9     "\\.\\."
    10     "Isabelle\\.command"
    11     "ML"
    12     "ML_command"
    13     "ML_file"
    14     "ML_prf"
    15     "ML_val"
    16     "ProofGeneral\\.inform_file_processed"
    17     "ProofGeneral\\.inform_file_retracted"
    18     "ProofGeneral\\.kill_proof"
    19     "ProofGeneral\\.pr"
    20     "ProofGeneral\\.process_pgip"
    21     "ProofGeneral\\.restart"
    22     "ProofGeneral\\.undo"
    23     "abbreviation"
    24     "adhoc_overloading"
    25     "also"
    26     "apply"
    27     "apply_end"
    28     "arities"
    29     "assume"
    30     "atom_decl"
    31     "attribute_setup"
    32     "ax_specification"
    33     "axiomatization"
    34     "back"
    35     "bnf"
    36     "bnf_decl"
    37     "boogie_file"
    38     "bundle"
    39     "by"
    40     "cannot_undo"
    41     "cartouche"
    42     "case"
    43     "case_of_simps"
    44     "cd"
    45     "chapter"
    46     "class"
    47     "class_deps"
    48     "classes"
    49     "classrel"
    50     "codatatype"
    51     "code_class"
    52     "code_const"
    53     "code_datatype"
    54     "code_deps"
    55     "code_identifier"
    56     "code_include"
    57     "code_instance"
    58     "code_modulename"
    59     "code_monad"
    60     "code_pred"
    61     "code_printing"
    62     "code_reflect"
    63     "code_reserved"
    64     "code_thms"
    65     "code_type"
    66     "coinductive"
    67     "coinductive_set"
    68     "commit"
    69     "consts"
    70     "context"
    71     "corollary"
    72     "cpodef"
    73     "datatype"
    74     "datatype_new"
    75     "datatype_new_compat"
    76     "declaration"
    77     "declare"
    78     "def"
    79     "default_sort"
    80     "defer"
    81     "defer_recdef"
    82     "definition"
    83     "defs"
    84     "disable_pr"
    85     "display_drafts"
    86     "domain"
    87     "domain_isomorphism"
    88     "domaindef"
    89     "done"
    90     "enable_pr"
    91     "end"
    92     "enriched_type"
    93     "equivariance"
    94     "exit"
    95     "export_code"
    96     "extract"
    97     "extract_type"
    98     "finally"
    99     "find_consts"
   100     "find_theorems"
   101     "find_unused_assms"
   102     "fix"
   103     "fixrec"
   104     "from"
   105     "full_prf"
   106     "fun"
   107     "fun_cases"
   108     "function"
   109     "guess"
   110     "have"
   111     "header"
   112     "help"
   113     "hence"
   114     "hide_class"
   115     "hide_const"
   116     "hide_fact"
   117     "hide_type"
   118     "import_const_map"
   119     "import_file"
   120     "import_tptp"
   121     "import_type_map"
   122     "include"
   123     "including"
   124     "inductive"
   125     "inductive_cases"
   126     "inductive_set"
   127     "inductive_simps"
   128     "init_toplevel"
   129     "instance"
   130     "instantiation"
   131     "interpret"
   132     "interpretation"
   133     "judgment"
   134     "kill"
   135     "kill_thy"
   136     "lemma"
   137     "lemmas"
   138     "let"
   139     "lift_definition"
   140     "lifting_forget"
   141     "lifting_update"
   142     "linear_undo"
   143     "local_setup"
   144     "locale"
   145     "locale_deps"
   146     "method_setup"
   147     "moreover"
   148     "next"
   149     "nitpick"
   150     "nitpick_params"
   151     "no_adhoc_overloading"
   152     "no_notation"
   153     "no_syntax"
   154     "no_translations"
   155     "no_type_notation"
   156     "nominal_datatype"
   157     "nominal_inductive"
   158     "nominal_inductive2"
   159     "nominal_primrec"
   160     "nonterminal"
   161     "notation"
   162     "note"
   163     "notepad"
   164     "obtain"
   165     "oops"
   166     "oracle"
   167     "overloading"
   168     "parse_ast_translation"
   169     "parse_translation"
   170     "partial_function"
   171     "pcpodef"
   172     "pr"
   173     "prefer"
   174     "presume"
   175     "pretty_setmargin"
   176     "prf"
   177     "primcorec"
   178     "primcorecursive"
   179     "primrec"
   180     "primrec_new"
   181     "print_abbrevs"
   182     "print_antiquotations"
   183     "print_ast_translation"
   184     "print_attributes"
   185     "print_binds"
   186     "print_bnfs"
   187     "print_bundles"
   188     "print_case_translations"
   189     "print_cases"
   190     "print_claset"
   191     "print_classes"
   192     "print_codeproc"
   193     "print_codesetup"
   194     "print_coercions"
   195     "print_commands"
   196     "print_context"
   197     "print_defn_rules"
   198     "print_dependencies"
   199     "print_facts"
   200     "print_induct_rules"
   201     "print_inductives"
   202     "print_interps"
   203     "print_locale"
   204     "print_locales"
   205     "print_methods"
   206     "print_options"
   207     "print_orders"
   208     "print_quot_maps"
   209     "print_quotconsts"
   210     "print_quotients"
   211     "print_quotientsQ3"
   212     "print_quotmapsQ3"
   213     "print_rules"
   214     "print_simpset"
   215     "print_state"
   216     "print_statement"
   217     "print_syntax"
   218     "print_theorems"
   219     "print_theory"
   220     "print_trans_rules"
   221     "print_translation"
   222     "proof"
   223     "prop"
   224     "pwd"
   225     "qed"
   226     "quickcheck"
   227     "quickcheck_generator"
   228     "quickcheck_params"
   229     "quit"
   230     "quotient_definition"
   231     "quotient_type"
   232     "realizability"
   233     "realizers"
   234     "recdef"
   235     "recdef_tc"
   236     "record"
   237     "refute"
   238     "refute_params"
   239     "remove_thy"
   240     "rep_datatype"
   241     "schematic_corollary"
   242     "schematic_lemma"
   243     "schematic_theorem"
   244     "sect"
   245     "section"
   246     "setup"
   247     "setup_lifting"
   248     "show"
   249     "simproc_setup"
   250     "simps_of_case"
   251     "sledgehammer"
   252     "sledgehammer_params"
   253     "smt_status"
   254     "solve_direct"
   255     "sorry"
   256     "spark_end"
   257     "spark_open"
   258     "spark_open_siv"
   259     "spark_open_vcg"
   260     "spark_proof_functions"
   261     "spark_status"
   262     "spark_types"
   263     "spark_vc"
   264     "specification"
   265     "statespace"
   266     "subclass"
   267     "sublocale"
   268     "subsect"
   269     "subsection"
   270     "subsubsect"
   271     "subsubsection"
   272     "syntax"
   273     "syntax_declaration"
   274     "term"
   275     "termination"
   276     "text"
   277     "text_raw"
   278     "then"
   279     "theorem"
   280     "theorems"
   281     "theory"
   282     "thm"
   283     "thm_deps"
   284     "thus"
   285     "thy_deps"
   286     "translations"
   287     "try"
   288     "try0"
   289     "txt"
   290     "txt_raw"
   291     "typ"
   292     "type_notation"
   293     "type_synonym"
   294     "typed_print_translation"
   295     "typedecl"
   296     "typedef"
   297     "ultimately"
   298     "undo"
   299     "undos_proof"
   300     "unfolding"
   301     "unused_thms"
   302     "use_thy"
   303     "using"
   304     "value"
   305     "values"
   306     "welcome"
   307     "with"
   308     "wrap_free_constructors"
   309     "write"
   310     "{"
   311     "}"))
   312 
   313 (defconst isar-keywords-minor
   314   '("and"
   315     "assumes"
   316     "attach"
   317     "avoids"
   318     "begin"
   319     "binder"
   320     "checking"
   321     "class_instance"
   322     "class_relation"
   323     "code_module"
   324     "congs"
   325     "constant"
   326     "constrains"
   327     "datatypes"
   328     "defines"
   329     "file"
   330     "fixes"
   331     "for"
   332     "functions"
   333     "hints"
   334     "identifier"
   335     "if"
   336     "imports"
   337     "in"
   338     "includes"
   339     "infix"
   340     "infixl"
   341     "infixr"
   342     "is"
   343     "keywords"
   344     "lazy"
   345     "module_name"
   346     "monos"
   347     "morphisms"
   348     "notes"
   349     "obtains"
   350     "open"
   351     "output"
   352     "overloaded"
   353     "parametric"
   354     "permissive"
   355     "pervasive"
   356     "shows"
   357     "structure"
   358     "type_class"
   359     "type_constructor"
   360     "unchecked"
   361     "unsafe"
   362     "where"))
   363 
   364 (defconst isar-keywords-control
   365   '("Isabelle\\.command"
   366     "ProofGeneral\\.inform_file_processed"
   367     "ProofGeneral\\.inform_file_retracted"
   368     "ProofGeneral\\.kill_proof"
   369     "ProofGeneral\\.pr"
   370     "ProofGeneral\\.process_pgip"
   371     "ProofGeneral\\.restart"
   372     "ProofGeneral\\.undo"
   373     "cannot_undo"
   374     "cd"
   375     "commit"
   376     "disable_pr"
   377     "enable_pr"
   378     "exit"
   379     "init_toplevel"
   380     "kill"
   381     "kill_thy"
   382     "linear_undo"
   383     "pretty_setmargin"
   384     "quit"
   385     "remove_thy"
   386     "undo"
   387     "undos_proof"
   388     "use_thy"))
   389 
   390 (defconst isar-keywords-diag
   391   '("ML_command"
   392     "ML_val"
   393     "cartouche"
   394     "class_deps"
   395     "code_deps"
   396     "code_thms"
   397     "display_drafts"
   398     "find_consts"
   399     "find_theorems"
   400     "find_unused_assms"
   401     "full_prf"
   402     "header"
   403     "help"
   404     "locale_deps"
   405     "nitpick"
   406     "pr"
   407     "prf"
   408     "print_abbrevs"
   409     "print_antiquotations"
   410     "print_attributes"
   411     "print_binds"
   412     "print_bnfs"
   413     "print_bundles"
   414     "print_case_translations"
   415     "print_cases"
   416     "print_claset"
   417     "print_classes"
   418     "print_codeproc"
   419     "print_codesetup"
   420     "print_coercions"
   421     "print_commands"
   422     "print_context"
   423     "print_defn_rules"
   424     "print_dependencies"
   425     "print_facts"
   426     "print_induct_rules"
   427     "print_inductives"
   428     "print_interps"
   429     "print_locale"
   430     "print_locales"
   431     "print_methods"
   432     "print_options"
   433     "print_orders"
   434     "print_quot_maps"
   435     "print_quotconsts"
   436     "print_quotients"
   437     "print_quotientsQ3"
   438     "print_quotmapsQ3"
   439     "print_rules"
   440     "print_simpset"
   441     "print_state"
   442     "print_statement"
   443     "print_syntax"
   444     "print_theorems"
   445     "print_theory"
   446     "print_trans_rules"
   447     "prop"
   448     "pwd"
   449     "quickcheck"
   450     "refute"
   451     "sledgehammer"
   452     "smt_status"
   453     "solve_direct"
   454     "spark_status"
   455     "term"
   456     "thm"
   457     "thm_deps"
   458     "thy_deps"
   459     "try"
   460     "try0"
   461     "typ"
   462     "unused_thms"
   463     "value"
   464     "values"
   465     "welcome"))
   466 
   467 (defconst isar-keywords-theory-begin
   468   '("theory"))
   469 
   470 (defconst isar-keywords-theory-switch
   471   '())
   472 
   473 (defconst isar-keywords-theory-end
   474   '("end"))
   475 
   476 (defconst isar-keywords-theory-heading
   477   '("chapter"
   478     "section"
   479     "subsection"
   480     "subsubsection"))
   481 
   482 (defconst isar-keywords-theory-decl
   483   '("ML"
   484     "ML_file"
   485     "abbreviation"
   486     "adhoc_overloading"
   487     "arities"
   488     "atom_decl"
   489     "attribute_setup"
   490     "axiomatization"
   491     "bnf_decl"
   492     "boogie_file"
   493     "bundle"
   494     "case_of_simps"
   495     "class"
   496     "classes"
   497     "classrel"
   498     "codatatype"
   499     "code_class"
   500     "code_const"
   501     "code_datatype"
   502     "code_identifier"
   503     "code_include"
   504     "code_instance"
   505     "code_modulename"
   506     "code_monad"
   507     "code_printing"
   508     "code_reflect"
   509     "code_reserved"
   510     "code_type"
   511     "coinductive"
   512     "coinductive_set"
   513     "consts"
   514     "context"
   515     "datatype"
   516     "datatype_new"
   517     "datatype_new_compat"
   518     "declaration"
   519     "declare"
   520     "default_sort"
   521     "defer_recdef"
   522     "definition"
   523     "defs"
   524     "domain"
   525     "domain_isomorphism"
   526     "domaindef"
   527     "equivariance"
   528     "export_code"
   529     "extract"
   530     "extract_type"
   531     "fixrec"
   532     "fun"
   533     "fun_cases"
   534     "hide_class"
   535     "hide_const"
   536     "hide_fact"
   537     "hide_type"
   538     "import_const_map"
   539     "import_file"
   540     "import_tptp"
   541     "import_type_map"
   542     "inductive"
   543     "inductive_set"
   544     "instantiation"
   545     "judgment"
   546     "lemmas"
   547     "lifting_forget"
   548     "lifting_update"
   549     "local_setup"
   550     "locale"
   551     "method_setup"
   552     "nitpick_params"
   553     "no_adhoc_overloading"
   554     "no_notation"
   555     "no_syntax"
   556     "no_translations"
   557     "no_type_notation"
   558     "nominal_datatype"
   559     "nonterminal"
   560     "notation"
   561     "notepad"
   562     "oracle"
   563     "overloading"
   564     "parse_ast_translation"
   565     "parse_translation"
   566     "partial_function"
   567     "primcorec"
   568     "primrec"
   569     "primrec_new"
   570     "print_ast_translation"
   571     "print_translation"
   572     "quickcheck_generator"
   573     "quickcheck_params"
   574     "realizability"
   575     "realizers"
   576     "recdef"
   577     "record"
   578     "refute_params"
   579     "setup"
   580     "setup_lifting"
   581     "simproc_setup"
   582     "simps_of_case"
   583     "sledgehammer_params"
   584     "spark_end"
   585     "spark_open"
   586     "spark_open_siv"
   587     "spark_open_vcg"
   588     "spark_proof_functions"
   589     "spark_types"
   590     "statespace"
   591     "syntax"
   592     "syntax_declaration"
   593     "text"
   594     "text_raw"
   595     "theorems"
   596     "translations"
   597     "type_notation"
   598     "type_synonym"
   599     "typed_print_translation"
   600     "typedecl"))
   601 
   602 (defconst isar-keywords-theory-script
   603   '("inductive_cases"
   604     "inductive_simps"))
   605 
   606 (defconst isar-keywords-theory-goal
   607   '("ax_specification"
   608     "bnf"
   609     "code_pred"
   610     "corollary"
   611     "cpodef"
   612     "enriched_type"
   613     "function"
   614     "instance"
   615     "interpretation"
   616     "lemma"
   617     "lift_definition"
   618     "nominal_inductive"
   619     "nominal_inductive2"
   620     "nominal_primrec"
   621     "pcpodef"
   622     "primcorecursive"
   623     "quotient_definition"
   624     "quotient_type"
   625     "recdef_tc"
   626     "rep_datatype"
   627     "schematic_corollary"
   628     "schematic_lemma"
   629     "schematic_theorem"
   630     "spark_vc"
   631     "specification"
   632     "subclass"
   633     "sublocale"
   634     "termination"
   635     "theorem"
   636     "typedef"
   637     "wrap_free_constructors"))
   638 
   639 (defconst isar-keywords-qed
   640   '("\\."
   641     "\\.\\."
   642     "by"
   643     "done"
   644     "sorry"))
   645 
   646 (defconst isar-keywords-qed-block
   647   '("qed"))
   648 
   649 (defconst isar-keywords-qed-global
   650   '("oops"))
   651 
   652 (defconst isar-keywords-proof-heading
   653   '("sect"
   654     "subsect"
   655     "subsubsect"))
   656 
   657 (defconst isar-keywords-proof-goal
   658   '("have"
   659     "hence"
   660     "interpret"))
   661 
   662 (defconst isar-keywords-proof-block
   663   '("next"
   664     "proof"))
   665 
   666 (defconst isar-keywords-proof-open
   667   '("{"))
   668 
   669 (defconst isar-keywords-proof-close
   670   '("}"))
   671 
   672 (defconst isar-keywords-proof-chain
   673   '("finally"
   674     "from"
   675     "then"
   676     "ultimately"
   677     "with"))
   678 
   679 (defconst isar-keywords-proof-decl
   680   '("ML_prf"
   681     "also"
   682     "include"
   683     "including"
   684     "let"
   685     "moreover"
   686     "note"
   687     "txt"
   688     "txt_raw"
   689     "unfolding"
   690     "using"
   691     "write"))
   692 
   693 (defconst isar-keywords-proof-asm
   694   '("assume"
   695     "case"
   696     "def"
   697     "fix"
   698     "presume"))
   699 
   700 (defconst isar-keywords-proof-asm-goal
   701   '("guess"
   702     "obtain"
   703     "show"
   704     "thus"))
   705 
   706 (defconst isar-keywords-proof-script
   707   '("apply"
   708     "apply_end"
   709     "back"
   710     "defer"
   711     "prefer"))
   712 
   713 (provide 'isar-keywords)