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