src/HOL/Tools/BNF/bnf_fp_n2m.ML
changeset 72450 24bd1316eaae
parent 72154 2b41b710f6ef
--- a/src/HOL/Tools/BNF/bnf_fp_n2m.ML	Mon Oct 12 07:25:38 2020 +0000
+++ b/src/HOL/Tools/BNF/bnf_fp_n2m.ML	Mon Oct 12 07:25:38 2020 +0000
@@ -393,10 +393,10 @@
         |>> pair ss
       end;
     val ((ss, (un_folds, un_fold_defs0)), (cache, (lthy, raw_lthy))) = lthy
-      |> Local_Theory.open_target
+      |> (snd o Local_Theory.begin_nested)
       |> Variable.add_fixes (mk_names n "s")
       |> mk_un_folds
-      ||> apsnd (`(Local_Theory.close_target));
+      ||> apsnd (`(Local_Theory.end_nested));
 
     val un_fold_defs = map (unfold_thms raw_lthy @{thms Let_const}) un_fold_defs0;