equal
deleted
inserted
replaced
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 |