src/Pure/Isar/proof_display.ML
changeset 56158 c2c6d560e7b2
parent 55763 4b3907cb5654
child 56868 b5fb264d53ba
equal deleted inserted replaced
56157:7cfe7b6d501a 56158:c2c6d560e7b2
    61 
    61 
    62 fun pretty_theorems_diff verbose prev_thys thy =
    62 fun pretty_theorems_diff verbose prev_thys thy =
    63   let
    63   let
    64     val pretty_fact = Proof_Context.pretty_fact (Proof_Context.init_global thy);
    64     val pretty_fact = Proof_Context.pretty_fact (Proof_Context.init_global thy);
    65     val facts = Global_Theory.facts_of thy;
    65     val facts = Global_Theory.facts_of thy;
    66     val thmss =
    66     val thmss = Facts.dest_static verbose (map Global_Theory.facts_of prev_thys) facts;
    67       Facts.dest_static (map Global_Theory.facts_of prev_thys) facts
       
    68       |> not verbose ? filter_out (Facts.is_concealed facts o #1);
       
    69   in Pretty.big_list "theorems:" (map #1 (sort_wrt (#1 o #2) (map (`pretty_fact) thmss))) end;
    67   in Pretty.big_list "theorems:" (map #1 (sort_wrt (#1 o #2) (map (`pretty_fact) thmss))) end;
    70 
    68 
    71 fun print_theorems_diff verbose prev_thy thy =
    69 fun print_theorems_diff verbose prev_thy thy =
    72   Pretty.writeln (pretty_theorems_diff verbose [prev_thy] thy);
    70   Pretty.writeln (pretty_theorems_diff verbose [prev_thy] thy);
    73 
    71