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