src/Pure/Isar/isar_output.ML
changeset 15988 181bbcee76f5
parent 15960 9bd6550dc004
child 16002 e0557c452138
equal deleted inserted replaced
15987:35ec4802c66c 15988:181bbcee76f5
   295 
   295 
   296 val _ = add_options
   296 val _ = add_options
   297  [("show_types", Library.setmp Syntax.show_types o boolean),
   297  [("show_types", Library.setmp Syntax.show_types o boolean),
   298   ("show_sorts", Library.setmp Syntax.show_sorts o boolean),
   298   ("show_sorts", Library.setmp Syntax.show_sorts o boolean),
   299   ("show_structs", Library.setmp show_structs o boolean),
   299   ("show_structs", Library.setmp show_structs o boolean),
   300   ("show_var_qmarks", Library.setmp show_var_qmarks o boolean),
   300   ("show_question_marks", Library.setmp show_question_marks o boolean),
   301   ("long_names", Library.setmp NameSpace.long_names o boolean),
   301   ("long_names", Library.setmp NameSpace.long_names o boolean),
   302   ("eta_contract", Library.setmp Syntax.eta_contract o boolean),
   302   ("eta_contract", Library.setmp Syntax.eta_contract o boolean),
   303   ("locale", Library.setmp locale),
   303   ("locale", Library.setmp locale),
   304   ("display", Library.setmp display o boolean),
   304   ("display", Library.setmp display o boolean),
   305   ("break", Library.setmp break o boolean),
   305   ("break", Library.setmp break o boolean),
   366 fun pretty_thm ctxt = pretty_term ctxt o Thm.prop_of;
   366 fun pretty_thm ctxt = pretty_term ctxt o Thm.prop_of;
   367 
   367 
   368 fun pretty_term_style ctxt (name, term) =
   368 fun pretty_term_style ctxt (name, term) =
   369   let
   369   let
   370     val thy = ProofContext.theory_of ctxt
   370     val thy = ProofContext.theory_of ctxt
   371   in pretty_term ctxt (TermStyle.lookup_style thy name ctxt term) end;
   371   in pretty_term ctxt (TermStyle.the_style thy name ctxt term) end;
   372 
   372 
   373 fun pretty_thm_style ctxt (name, thm) = pretty_term_style ctxt (name, Thm.prop_of thm);
   373 fun pretty_thm_style ctxt (name, thm) = pretty_term_style ctxt (name, Thm.prop_of thm);
   374 
   374 
   375 fun pretty_prf full ctxt thms =    (* FIXME context syntax!? *)
   375 fun pretty_prf full ctxt thms =    (* FIXME context syntax!? *)
   376   Pretty.chunks (map (ProofSyntax.pretty_proof_of full) thms);
   376   Pretty.chunks (map (ProofSyntax.pretty_proof_of full) thms);
   406   ("subgoals", output_goals false),
   406   ("subgoals", output_goals false),
   407   ("prf", args Attrib.local_thmss (output_with (pretty_prf false))),
   407   ("prf", args Attrib.local_thmss (output_with (pretty_prf false))),
   408   ("full_prf", args Attrib.local_thmss (output_with (pretty_prf true)))];
   408   ("full_prf", args Attrib.local_thmss (output_with (pretty_prf true)))];
   409 
   409 
   410 end;
   410 end;
   411