equal
deleted
inserted
replaced
78 NONE => I |
78 NONE => I |
79 | SOME grp => Inttab.update (grp, ()))) new_thms Inttab.empty; |
79 | SOME grp => Inttab.update (grp, ()))) new_thms Inttab.empty; |
80 |
80 |
81 val (thms', _) = fold (fn (a, (th, concealed, group)) => fn q as (thms, seen_groups) => |
81 val (thms', _) = fold (fn (a, (th, concealed, group)) => fn q as (thms, seen_groups) => |
82 if not concealed andalso |
82 if not concealed andalso |
83 member (op =) [Thm.theoremK, Thm.lemmaK, Thm.corollaryK] (Thm.get_kind th) andalso |
83 (* FIXME replace by robust treatment of thm groups *) |
|
84 member (op =) [Thm.theoremK, Thm.lemmaK, Thm.corollaryK] (Thm.legacy_get_kind th) andalso |
84 is_unused a |
85 is_unused a |
85 then |
86 then |
86 (case group of |
87 (case group of |
87 NONE => ((a, th) :: thms, seen_groups) |
88 NONE => ((a, th) :: thms, seen_groups) |
88 | SOME grp => |
89 | SOME grp => |