Nominal/nominal_function.ML
branchNominal2-Isabelle2016
changeset 3243 c4f31f1564b7
parent 3239 67370521c09c
child 3245 017e33849f4d
--- a/Nominal/nominal_function.ML	Mon Jul 20 11:21:59 2015 +0100
+++ b/Nominal/nominal_function.ML	Sat Mar 19 21:06:48 2016 +0000
@@ -151,7 +151,7 @@
       let
         val NominalFunctionResult {fs, R, psimps, simple_pinducts,
           termination, domintros, cases, eqvts, ...} =
-          cont (Thm.close_derivation proof)
+          cont lthy (Thm.close_derivation proof)
   
         val fnames = map (fst o fst) fixes
         fun qualify n = Binding.name n
@@ -214,7 +214,7 @@
   in
     lthy'
     |> Proof.theorem NONE (snd oo afterqed) [[(Logic.unprotect (Thm.concl_of goal_state), [])]]
-    |> Proof.refine (Method.primitive_text (K (K goal_state))) |> Seq.hd
+    |> Proof.refine_singleton (Method.primitive_text (K (K goal_state)))
   end
 
 val nominal_function =