clone of 0c51e0a6bc37;
authorwenzelm
Sat, 20 Apr 2024 16:07:00 +0200
changeset 80151 5972799988af
parent 80135 bc450c8754ef
child 80152 e9ea4d88490d
clone of 0c51e0a6bc37;
src/HOL/ex/Sketch_and_Explore.thy
--- a/src/HOL/ex/Sketch_and_Explore.thy	Thu Apr 18 15:20:24 2024 +0200
+++ b/src/HOL/ex/Sketch_and_Explore.thy	Sat Apr 20 16:07:00 2024 +0200
@@ -34,6 +34,8 @@
   let
     val fixes = map (fn (s, T) => (Binding.name s, SOME T, NoSyn)) params
     val ctxt' = ctxt |> Variable.set_body false |> Proof_Context.add_fixes fixes |> snd
+      handle ERROR _ =>
+      ctxt |> Variable.set_body true |> Proof_Context.add_fixes fixes |> snd
   in ((params, assms, concl), ctxt') end;
 
 fun print_isar_skeleton ctxt indent keyword stmt =