adjusted to changes in code equation administration
authorhaftmann
Thu, 14 Jan 2010 09:18:08 +0100
changeset 34896 a22b09addd78
parent 34895 19fd499cddff
child 34897 cf9e3426c7b1
child 34904 9c4d5db7c7ad
adjusted to changes in code equation administration
doc-src/more_antiquote.ML
--- a/doc-src/more_antiquote.ML	Wed Jan 13 12:20:37 2010 +0100
+++ b/doc-src/more_antiquote.ML	Thu Jan 14 09:18:08 2010 +0100
@@ -88,10 +88,12 @@
   let
     val thy = ProofContext.theory_of ctxt;
     val const = Code.check_const thy raw_const;
-    val (_, funcgr) = Code_Preproc.obtain thy [const] [];
+    val (_, eqngr) = Code_Preproc.obtain thy [const] [];
     fun holize thm = @{thm meta_eq_to_obj_eq} OF [thm];
-    val thms = Code_Preproc.eqns funcgr const
-      |> map_filter (fn (thm, linear) => if linear then SOME thm else NONE)
+    val thms = Code_Preproc.cert eqngr const
+      |> Code.equations_thms_cert thy
+      |> snd
+      |> map_filter (fn (_, (thm, proper)) => if proper then SOME thm else NONE)
       |> map (holize o no_vars ctxt o AxClass.overload thy);
   in ThyOutput.output (ThyOutput.maybe_pretty_source (pretty_thm ctxt) src thms) end;