src/Pure/context.ML
changeset 28617 c9c1c8b28a62
parent 28375 c879d88d038a
child 29001 b97a3f808133
equal deleted inserted replaced
28616:ac1da69fbc5a 28617:c9c1c8b28a62
   354      (check_thy thy1; check_thy thy2;
   354      (check_thy thy1; check_thy thy2;
   355       create_thy draftN NONE (serial (), draftN) ids iids data ancestry history))
   355       create_thy draftN NONE (serial (), draftN) ids iids data ancestry history))
   356   in thy' end;
   356   in thy' end;
   357 
   357 
   358 fun maximal_thys thys =
   358 fun maximal_thys thys =
   359   thys |> filter (fn thy => not (exists (fn thy' => proper_subthy (thy, thy')) thys));
   359   thys |> filter_out (fn thy => exists (fn thy' => proper_subthy (thy, thy')) thys);
   360 
   360 
   361 fun begin_thy pp name imports =
   361 fun begin_thy pp name imports =
   362   if name = draftN then error ("Illegal theory name: " ^ quote draftN)
   362   if name = draftN then error ("Illegal theory name: " ^ quote draftN)
   363   else
   363   else
   364     let
   364     let