equal
deleted
inserted
replaced
312 |
312 |
313 (* primitives *) |
313 (* primitives *) |
314 |
314 |
315 fun create_thy name self id ids iids data ancestry history = |
315 fun create_thy name self id ids iids data ancestry history = |
316 let |
316 let |
317 val intermediate = #version history > 0; |
317 val {version, name = _, intermediates = _} = history; |
|
318 val intermediate = version > 0; |
318 val (ids', iids') = check_insert intermediate id (ids, iids); |
319 val (ids', iids') = check_insert intermediate id (ids, iids); |
319 val id' = (serial (), name); |
320 val id' = (serial (), name); |
320 val _ = check_insert intermediate id' (ids', iids'); |
321 val _ = check_insert intermediate id' (ids', iids'); |
321 val identity' = make_identity self id' ids' iids'; |
322 val identity' = make_identity self id' ids' iids'; |
322 in vitalize (Theory (identity', data, ancestry, history)) end; |
323 in vitalize (Theory (identity', data, ancestry, history)) end; |