src/Pure/display.ML
changeset 10010 f6ccb6df9cb9
parent 9500 e21a76142269
child 10737 c130eb1e863f
equal deleted inserted replaced
10009:45c1eb3d8ad4 10010:f6ccb6df9cb9
    11   val show_hyps		: bool ref
    11   val show_hyps		: bool ref
    12   val show_tags		: bool ref
    12   val show_tags		: bool ref
    13   val pretty_thm_no_quote: thm -> Pretty.T
    13   val pretty_thm_no_quote: thm -> Pretty.T
    14   val pretty_thm	: thm -> Pretty.T
    14   val pretty_thm	: thm -> Pretty.T
    15   val pretty_thms	: thm list -> Pretty.T
    15   val pretty_thms	: thm list -> Pretty.T
       
    16   val pretty_thm_sg     : Sign.sg -> thm -> Pretty.T
       
    17   val pretty_thms_sg    : Sign.sg -> thm list -> Pretty.T
    16   val string_of_thm	: thm -> string
    18   val string_of_thm	: thm -> string
    17   val pprint_thm	: thm -> pprint_args -> unit
    19   val pprint_thm	: thm -> pprint_args -> unit
    18   val print_thm		: thm -> unit
    20   val print_thm		: thm -> unit
    19   val print_thms	: thm list -> unit
    21   val print_thms	: thm list -> unit
    20   val prth		: thm -> thm
    22   val prth		: thm -> thm
    82 val string_of_thm = Pretty.string_of o pretty_thm;
    84 val string_of_thm = Pretty.string_of o pretty_thm;
    83 val pprint_thm = Pretty.pprint o pretty_thm;
    85 val pprint_thm = Pretty.pprint o pretty_thm;
    84 
    86 
    85 fun pretty_thms [th] = pretty_thm th
    87 fun pretty_thms [th] = pretty_thm th
    86   | pretty_thms ths = Pretty.block (Pretty.fbreaks (map pretty_thm ths));
    88   | pretty_thms ths = Pretty.block (Pretty.fbreaks (map pretty_thm ths));
       
    89 
       
    90 val pretty_thm_sg = pretty_thm oo Thm.transfer_sg;
       
    91 val pretty_thms_sg = pretty_thms oo (map o Thm.transfer_sg);
    87 
    92 
    88 
    93 
    89 (* top-level commands for printing theorems *)
    94 (* top-level commands for printing theorems *)
    90 
    95 
    91 val print_thm = Pretty.writeln o pretty_thm;
    96 val print_thm = Pretty.writeln o pretty_thm;