diff -r bdbd6ff5fd0b -r 2b41b710f6ef src/HOL/Tools/BNF/bnf_lfp.ML --- a/src/HOL/Tools/BNF/bnf_lfp.ML Fri Aug 14 14:25:08 2020 +0200 +++ b/src/HOL/Tools/BNF/bnf_lfp.ML Fri Aug 14 14:40:24 2020 +0200 @@ -236,7 +236,7 @@ val ((alg_free, (_, alg_def_free)), (lthy, lthy_old)) = lthy - |> Local_Theory.open_target |> snd + |> Local_Theory.open_target |> Local_Theory.define ((alg_bind, NoSyn), (alg_def_bind, alg_spec)) ||> `Local_Theory.close_target; @@ -328,7 +328,7 @@ val ((mor_free, (_, mor_def_free)), (lthy, lthy_old)) = lthy - |> Local_Theory.open_target |> snd + |> Local_Theory.open_target |> Local_Theory.define ((mor_bind, NoSyn), (mor_def_bind, mor_spec)) ||> `Local_Theory.close_target; @@ -471,7 +471,7 @@ val ((sbd_free, (_, sbd_def_free)), (lthy, lthy_old)) = lthy - |> Local_Theory.open_target |> snd + |> Local_Theory.open_target |> Local_Theory.define ((sbd_bind, NoSyn), (sbd_def_bind, sbd_spec)) ||> `Local_Theory.close_target; @@ -661,7 +661,7 @@ val ((min_alg_frees, (_, min_alg_def_frees)), (lthy, lthy_old)) = lthy - |> Local_Theory.open_target |> snd + |> Local_Theory.open_target |> fold_map (fn i => Local_Theory.define ((min_alg_bind i, NoSyn), (min_alg_def_bind i, min_alg_spec i))) ks |>> apsnd split_list o split_list @@ -794,7 +794,7 @@ val ((str_init_frees, (_, str_init_def_frees)), (lthy, lthy_old)) = lthy - |> Local_Theory.open_target |> snd + |> Local_Theory.open_target |> fold_map (fn i => Local_Theory.define ((str_init_bind i, NoSyn), (str_init_def_bind i, str_init_spec i))) ks |>> apsnd split_list o split_list @@ -952,7 +952,7 @@ val ((ctor_frees, (_, ctor_def_frees)), (lthy, lthy_old)) = lthy - |> Local_Theory.open_target |> snd + |> Local_Theory.open_target |> @{fold_map 4} (fn i => fn abs => fn str => fn mapx => Local_Theory.define ((ctor_bind i, NoSyn), (ctor_def_bind i, ctor_spec abs str mapx))) @@ -1005,7 +1005,7 @@ val ((fold_frees, (_, fold_def_frees)), (lthy, lthy_old)) = lthy - |> Local_Theory.open_target |> snd + |> Local_Theory.open_target |> fold_map (fn i => Local_Theory.define ((fold_bind i, NoSyn), (fold_def_bind i, fold_spec i))) ks |>> apsnd split_list o split_list @@ -1123,7 +1123,7 @@ val ((dtor_frees, (_, dtor_def_frees)), (lthy, lthy_old)) = lthy - |> Local_Theory.open_target |> snd + |> Local_Theory.open_target |> fold_map (fn i => Local_Theory.define ((dtor_bind i, NoSyn), (dtor_def_bind i, dtor_spec i))) ks |>> apsnd split_list o split_list @@ -1398,7 +1398,7 @@ val ((sbd0_free, (_, sbd0_def_free)), (lthy, lthy_old)) = lthy - |> Local_Theory.open_target |> snd + |> Local_Theory.open_target |> Local_Theory.define ((sbd0_bind, NoSyn), (sbd0_def_bind, sbd0_spec)) ||> `Local_Theory.close_target;