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