src/Pure/pure_thy.ML
changeset 6846 f2380295d4dd
parent 6769 4b1bd69dfe0b
child 6977 4781c0673e83
equal deleted inserted replaced
6845:598d2f32d452 6846:f2380295d4dd
    83       val prt_thm = Display.pretty_thm o Thm.transfer_sg sg;
    83       val prt_thm = Display.pretty_thm o Thm.transfer_sg sg;
    84       fun prt_thms (name, [th]) =
    84       fun prt_thms (name, [th]) =
    85             Pretty.block [Pretty.str (name ^ ":"), Pretty.brk 1, prt_thm th]
    85             Pretty.block [Pretty.str (name ^ ":"), Pretty.brk 1, prt_thm th]
    86         | prt_thms (name, ths) = Pretty.big_list (name ^ ":") (map prt_thm ths);
    86         | prt_thms (name, ths) = Pretty.big_list (name ^ ":") (map prt_thm ths);
    87 
    87 
    88       val thmss = sort_wrt fst (map (apfst (NameSpace.cond_extern space)) (Symtab.dest thms_tab));
    88       val thmss = NameSpace.cond_extern_table space thms_tab;
    89     in
    89     in
    90       Pretty.writeln (Display.pretty_name_space ("theorem name space", space));
    90       Pretty.writeln (Display.pretty_name_space ("theorem name space", space));
    91       Pretty.writeln (Pretty.big_list "theorems:" (map prt_thms thmss))
    91       Pretty.writeln (Pretty.big_list "theorems:" (map prt_thms thmss))
    92     end;
    92     end;
    93 end;
    93 end;