src/Pure/Proof/extraction.ML
changeset 22796 34c316d7b630
parent 22750 bff5d59de79b
child 22846 fb79144af9a3
--- a/src/Pure/Proof/extraction.ML	Thu Apr 26 12:00:01 2007 +0200
+++ b/src/Pure/Proof/extraction.ML	Thu Apr 26 12:00:05 2007 +0200
@@ -38,8 +38,8 @@
   thy
   |> Theory.copy
   |> Theory.root_path
-  |> Theory.add_types [("Type", 0, NoSyn), ("Null", 0, NoSyn)]
-  |> Theory.add_consts
+  |> Sign.add_types [("Type", 0, NoSyn), ("Null", 0, NoSyn)]
+  |> Sign.add_consts
       [("typeof", "'b::{} => Type", NoSyn),
        ("Type", "'a::{} itself => Type", NoSyn),
        ("Null", "Null", NoSyn),
@@ -735,7 +735,7 @@
              val fu = Type.freeze u;
              val (def_thms, thy') = if t = nullt then ([], thy) else
                thy
-               |> Theory.add_consts_i [(extr_name s vs, fastype_of ft, NoSyn)]
+               |> Sign.add_consts_i [(extr_name s vs, fastype_of ft, NoSyn)]
                |> PureThy.add_defs_i false [((extr_name s vs ^ "_def",
                     Logic.mk_equals (head_of (strip_abs_body fu), ft)), [])]
            in
@@ -752,9 +752,9 @@
 
   in
     thy
-    |> Theory.absolute_path
+    |> Sign.absolute_path
     |> fold_rev add_def defs
-    |> Theory.restore_naming thy
+    |> Sign.restore_naming thy
   end;