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