src/Pure/context.ML
changeset 17756 d4a35f82fbb4
parent 17412 e26cb20ef0cc
child 18632 3149c6abe876
equal deleted inserted replaced
17755:b0cd55afead1 17756:d4a35f82fbb4
   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;