src/HOL/Tools/BNF/bnf_lfp_size.ML
changeset 72154 2b41b710f6ef
parent 71214 5727bcc3c47c
child 72450 24bd1316eaae
equal deleted inserted replaced
72153:bdbd6ff5fd0b 72154:2b41b710f6ef
   206 
   206 
   207       val nested_size_gen_o_maps_complete = forall (not o null) nested_size_gen_o_mapss;
   207       val nested_size_gen_o_maps_complete = forall (not o null) nested_size_gen_o_mapss;
   208       val nested_size_gen_o_maps = fold (union Thm.eq_thm_prop) nested_size_gen_o_mapss [];
   208       val nested_size_gen_o_maps = fold (union Thm.eq_thm_prop) nested_size_gen_o_mapss [];
   209 
   209 
   210       val ((raw_size_consts, raw_size_defs), (lthy1, lthy1_old)) = lthy0
   210       val ((raw_size_consts, raw_size_defs), (lthy1, lthy1_old)) = lthy0
   211         |> Local_Theory.open_target |> snd
   211         |> Local_Theory.open_target
   212         |> apfst split_list o @{fold_map 2} (fn b => fn rhs =>
   212         |> apfst split_list o @{fold_map 2} (fn b => fn rhs =>
   213             Local_Theory.define ((b, NoSyn), ((maybe_conceal_def_binding b, []), rhs))
   213             Local_Theory.define ((b, NoSyn), ((maybe_conceal_def_binding b, []), rhs))
   214             #>> apsnd snd)
   214             #>> apsnd snd)
   215           size_bs size_rhss
   215           size_bs size_rhss
   216         ||> `Local_Theory.close_target;
   216         ||> `Local_Theory.close_target;