# HG changeset patch # User wenzelm # Date 928518863 -7200 # Node ID 83c09a9684cf50e2c1ba5324c7a7f516821dfe11 # Parent 111845fce1b741c0afbd441a52e0c97b316013b1 added 'also', 'finally' commands; diff -r 111845fce1b7 -r 83c09a9684cf src/Pure/Isar/isar_syn.ML --- a/src/Pure/Isar/isar_syn.ML Fri Jun 04 19:53:57 1999 +0200 +++ b/src/Pure/Isar/isar_syn.ML Fri Jun 04 19:54:23 1999 +0200 @@ -280,7 +280,7 @@ OuterSyntax.command "from" "forward chaining from given facts" K.prf_chain (P.xthms1 -- P.marg_comment >> (Toplevel.print oo (Toplevel.proof o IsarThy.from_facts))); -val factsP = +val noteP = OuterSyntax.command "note" "define facts" K.prf_decl (facts -- P.marg_comment >> (Toplevel.print oo (Toplevel.proof o IsarThy.have_facts))); @@ -359,6 +359,17 @@ >> (Toplevel.print oo (Toplevel.proof o IsarThy.proof))); +(* calculational proof commands *) + +val alsoP = + OuterSyntax.command "also" "intermediate calculational proof step" K.prf_decl + (P.marg_comment >> IsarThy.also); + +val finallyP = + OuterSyntax.command "finally" "terminal calculational proof step" K.prf_chain + (P.marg_comment >> IsarThy.finally); + + (* proof navigation *) val backP = @@ -531,10 +542,10 @@ print_ast_translationP, token_translationP, oracleP, (*proof commands*) theoremP, lemmaP, showP, haveP, thusP, henceP, assumeP, fixP, letP, - thenP, fromP, factsP, beginP, endP, nextP, qed_withP, qedP, + thenP, fromP, noteP, beginP, endP, nextP, qed_withP, qedP, terminal_proofP, immediate_proofP, default_proofP, refineP, - then_refineP, proofP, backP, prevP, upP, topP, cannot_undoP, - clear_undoP, redoP, undos_proofP, kill_proofP, undoP, + then_refineP, proofP, alsoP, finallyP, backP, prevP, upP, topP, + cannot_undoP, clear_undoP, redoP, undos_proofP, kill_proofP, undoP, (*diagnostic commands*) print_commandsP, print_theoryP, print_syntaxP, print_attributesP, print_methodsP, print_theoremsP, print_bindsP, print_lthmsP,