src/Pure/Isar/isar_syn.ML
changeset 9589 95a66548c883
parent 9552 e3981c1f769d
child 9731 3eb72671e5db
equal deleted inserted replaced
9588:96059cbcb0eb 9589:95a66548c883
   192     (name_facts >> (Toplevel.theory o IsarThy.have_theorems));
   192     (name_facts >> (Toplevel.theory o IsarThy.have_theorems));
   193 
   193 
   194 val lemmasP =
   194 val lemmasP =
   195   OuterSyntax.command "lemmas" "define lemmas" K.thy_decl
   195   OuterSyntax.command "lemmas" "define lemmas" K.thy_decl
   196     (name_facts >> (Toplevel.theory o IsarThy.have_lemmas));
   196     (name_facts >> (Toplevel.theory o IsarThy.have_lemmas));
       
   197 
       
   198 val declareP =
       
   199   OuterSyntax.improper_command "declare" "declare theorems (improper)" K.thy_script
       
   200     (P.xthms1 -- P.marg_comment >> (Toplevel.theory o IsarThy.declare_theorems));
   197 
   201 
   198 
   202 
   199 (* name space entry path *)
   203 (* name space entry path *)
   200 
   204 
   201 val globalP =
   205 val globalP =
   668   headerP, chapterP, sectionP, subsectionP, subsubsectionP, textP,
   672   headerP, chapterP, sectionP, subsectionP, subsubsectionP, textP,
   669   text_rawP, sectP, subsectP, subsubsectP, txtP, txt_rawP,
   673   text_rawP, sectP, subsectP, subsubsectP, txtP, txt_rawP,
   670   (*theory sections*)
   674   (*theory sections*)
   671   classesP, classrelP, defaultsortP, typedeclP, typeabbrP, nontermP,
   675   classesP, classrelP, defaultsortP, typedeclP, typeabbrP, nontermP,
   672   aritiesP, judgmentP, constsP, syntaxP, translationsP, axiomsP,
   676   aritiesP, judgmentP, constsP, syntaxP, translationsP, axiomsP,
   673   defsP, constdefsP, theoremsP, lemmasP, globalP, localP, hideP, useP,
   677   defsP, constdefsP, theoremsP, lemmasP, declareP, globalP, localP,
   674   mlP, ml_commandP, ml_setupP, setupP, method_setupP,
   678   hideP, useP, mlP, ml_commandP, ml_setupP, setupP, method_setupP,
   675   parse_ast_translationP, parse_translationP, print_translationP,
   679   parse_ast_translationP, parse_translationP, print_translationP,
   676   typed_print_translationP, print_ast_translationP,
   680   typed_print_translationP, print_ast_translationP,
   677   token_translationP, oracleP,
   681   token_translationP, oracleP,
   678   (*proof commands*)
   682   (*proof commands*)
   679   theoremP, lemmaP, showP, haveP, thusP, henceP, assumeP, presumeP,
   683   theoremP, lemmaP, showP, haveP, thusP, henceP, assumeP, presumeP,