src/Pure/Tools/find_theorems.ML
changeset 56912 293cd4dcfebc
parent 56908 734f7e6151c9
child 56914 f371418b9641
equal deleted inserted replaced
56911:dc3ba749d3b8 56912:293cd4dcfebc
   480       | SOME found =>
   480       | SOME found =>
   481           "found " ^ string_of_int found ^ " theorem(s)" ^
   481           "found " ^ string_of_int found ^ " theorem(s)" ^
   482             (if returned < found
   482             (if returned < found
   483              then " (" ^ string_of_int returned ^ " displayed)"
   483              then " (" ^ string_of_int returned ^ " displayed)"
   484              else ""));
   484              else ""));
       
   485     val position_markup = Position.markup (Position.thread_data ()) Markup.position;
   485   in
   486   in
   486     Pretty.block
   487     Pretty.block
   487       (Pretty.fbreaks (Pretty.keyword1 "find_theorems" :: map (pretty_criterion ctxt) criteria)) ::
   488       (Pretty.fbreaks
       
   489         (Pretty.mark position_markup (Pretty.keyword1 "find_theorems") ::
       
   490           map (pretty_criterion ctxt) criteria)) ::
   488     Pretty.str "" ::
   491     Pretty.str "" ::
   489     (if null theorems then [Pretty.str "found nothing"]
   492     (if null theorems then [Pretty.str "found nothing"]
   490      else
   493      else
   491        Pretty.str (tally_msg ^ ":") ::
   494        Pretty.str (tally_msg ^ ":") ::
   492        grouped 10 Par_List.map (Pretty.item o single o pretty_thm ctxt) (rev theorems))
   495        grouped 10 Par_List.map (Pretty.item o single o pretty_thm ctxt) (rev theorems))