--- 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;