equal
deleted
inserted
replaced
357 |
357 |
358 in |
358 in |
359 |
359 |
360 val update_thy = change_thy false; |
360 val update_thy = change_thy false; |
361 val extend_thy = update_thy I; |
361 val extend_thy = update_thy I; |
362 val finish_thy = change_thy true I; |
362 val finish_thy = change_thy true I #> tap extend_thy; |
363 |
363 |
364 end; |
364 end; |
365 |
365 |
366 |
366 |
367 (* named theory nodes *) |
367 (* named theory nodes *) |
397 | thy :: thys => Library.foldl merge_thys (thy, thys)); |
397 | thy :: thys => Library.foldl merge_thys (thy, thys)); |
398 val Theory_Id ({ids, ...}, _) = theory_id thy0; |
398 val Theory_Id ({ids, ...}, _) = theory_id thy0; |
399 |
399 |
400 val history = make_history name 0; |
400 val history = make_history name 0; |
401 val ancestry = make_ancestry parents ancestors; |
401 val ancestry = make_ancestry parents ancestors; |
402 in create_thy ids history ancestry (data_of thy0) end; |
402 in create_thy ids history ancestry (data_of thy0) |> tap finish_thy end; |
403 |
403 |
404 end; |
404 end; |
405 |
405 |
406 |
406 |
407 (* theory data *) |
407 (* theory data *) |