src/Pure/Isar/isar_output.ML
changeset 11524 197f2e14a714
parent 11240 e9d5dc758f5e
child 11714 bc0a84063a9c
--- a/src/Pure/Isar/isar_output.ML	Fri Aug 31 16:17:52 2001 +0200
+++ b/src/Pure/Isar/isar_output.ML	Fri Aug 31 16:20:19 2001 +0200
@@ -296,6 +296,9 @@
 fun pretty_thm ctxt thms =
   Pretty.chunks (map (pretty_term ctxt o #prop o Thm.rep_thm) thms);
 
+fun pretty_prf full ctxt thms =
+  Pretty.chunks (map (ProofSyntax.pretty_proof_of full) thms);
+
 fun output_with pretty src ctxt x =
   let
     val prt = pretty ctxt x;      (*always pretty!*)
@@ -311,6 +314,8 @@
 val _ = add_commands
  [("text", args (Scan.lift Args.name) (output_with (K pretty_text))),
   ("thm", args Attrib.local_thmss (output_with pretty_thm)),
+  ("prf", args Attrib.local_thmss (output_with (pretty_prf false))),
+  ("full_prf", args Attrib.local_thmss (output_with (pretty_prf true))),
   ("prop", args Args.local_prop (output_with pretty_term)),
   ("term", args Args.local_term (output_with pretty_term)),
   ("typ", args Args.local_typ_no_norm (output_with pretty_typ)),