src/Pure/Thy/thm_deps.ML
changeset 42473 aca720fb3936
parent 41565 9718c32f9c4e
child 44331 aa9c1e9ef2ce
equal deleted inserted replaced
42472:8a33a5596ba8 42473:aca720fb3936
    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 =>