430 (K.tag_proof K.prf_asm_goal) |
430 (K.tag_proof K.prf_asm_goal) |
431 (Scan.optional |
431 (Scan.optional |
432 (P.and_list1 (Scan.repeat1 P.name -- Scan.option (P.$$$ "::" |-- P.typ)) |
432 (P.and_list1 (Scan.repeat1 P.name -- Scan.option (P.$$$ "::" |-- P.typ)) |
433 --| P.$$$ "where") [] -- statement |
433 --| P.$$$ "where") [] -- statement |
434 >> (Toplevel.print oo (Toplevel.proof' o (ProofHistory.apply oo uncurry Obtain.obtain)))); |
434 >> (Toplevel.print oo (Toplevel.proof' o (ProofHistory.apply oo uncurry Obtain.obtain)))); |
|
435 |
|
436 val guessP = |
|
437 OuterSyntax.command "guess" "wild guessing (unstructured)" |
|
438 (K.tag_proof K.prf_asm_goal) |
|
439 (P.and_list (Scan.repeat1 P.name -- Scan.option (P.$$$ "::" |-- P.typ)) |
|
440 >> (Toplevel.print oo (Toplevel.proof' o (ProofHistory.applys oo Obtain.guess)))); |
435 |
441 |
436 val letP = |
442 val letP = |
437 OuterSyntax.command "let" "bind text variables" |
443 OuterSyntax.command "let" "bind text variables" |
438 (K.tag_proof K.prf_decl) |
444 (K.tag_proof K.prf_decl) |
439 (P.and_list1 (P.enum1 "and" P.term -- (P.$$$ "=" |-- P.term)) |
445 (P.and_list1 (P.enum1 "and" P.term -- (P.$$$ "=" |-- P.term)) |
846 setupP, method_setupP, parse_ast_translationP, parse_translationP, |
852 setupP, method_setupP, parse_ast_translationP, parse_translationP, |
847 print_translationP, typed_print_translationP, |
853 print_translationP, typed_print_translationP, |
848 print_ast_translationP, token_translationP, oracleP, localeP, |
854 print_ast_translationP, token_translationP, oracleP, localeP, |
849 (*proof commands*) |
855 (*proof commands*) |
850 theoremP, lemmaP, corollaryP, haveP, henceP, showP, thusP, fixP, |
856 theoremP, lemmaP, corollaryP, haveP, henceP, showP, thusP, fixP, |
851 assumeP, presumeP, defP, obtainP, letP, caseP, thenP, fromP, withP, |
857 assumeP, presumeP, defP, obtainP, guessP, letP, caseP, thenP, fromP, |
852 noteP, usingP, beginP, endP, nextP, qedP, terminal_proofP, |
858 withP, noteP, usingP, beginP, endP, nextP, qedP, terminal_proofP, |
853 default_proofP, immediate_proofP, done_proofP, skip_proofP, |
859 default_proofP, immediate_proofP, done_proofP, skip_proofP, |
854 forget_proofP, deferP, preferP, applyP, apply_endP, proofP, alsoP, |
860 forget_proofP, deferP, preferP, applyP, apply_endP, proofP, alsoP, |
855 finallyP, moreoverP, ultimatelyP, backP, cannot_undoP, clear_undosP, |
861 finallyP, moreoverP, ultimatelyP, backP, cannot_undoP, clear_undosP, |
856 redoP, undos_proofP, undoP, killP, interpretationP, interpretP, |
862 redoP, undos_proofP, undoP, killP, interpretationP, interpretP, |
857 (*diagnostic commands*) |
863 (*diagnostic commands*) |