src/HOLCF/Tools/domain/domain_extender.ML
changeset 24712 64ed05609568
parent 24707 dfeb98f84e93
child 24867 e5b55d7be9bb
--- a/src/HOLCF/Tools/domain/domain_extender.ML	Tue Sep 25 15:34:35 2007 +0200
+++ b/src/HOLCF/Tools/domain/domain_extender.ML	Tue Sep 25 17:06:14 2007 +0200
@@ -105,7 +105,7 @@
     val cons''' = map snd eqs''';
     fun thy_type  (dname,tvars)  = (Sign.base_name dname, length tvars, NoSyn);
     fun thy_arity (dname,tvars)  = (dname, map (snd o dest_TFree) tvars, pcpoS);
-    val thy'' = thy''' |> Theory.add_types     (map thy_type  dtnvs)
+    val thy'' = thy''' |> Sign.add_types     (map thy_type  dtnvs)
 		       |> fold (AxClass.axiomatize_arity_i o thy_arity) dtnvs;
     val cons'' = map (map (upd_third (map (upd_third (prep_typ thy''))))) cons''';
     val eqs' = check_and_sort_domain (dtnvs,cons'') thy'';
@@ -133,9 +133,9 @@
       |>>> Domain_Theorems.comp_theorems (comp_dnam, eqs);
   in
     theorems_thy
-    |> Theory.add_path (Sign.base_name comp_dnam)
+    |> Sign.add_path (Sign.base_name comp_dnam)
     |> (snd o (PureThy.add_thmss [(("rews", List.concat rewss @ take_rews), [])]))
-    |> Theory.parent_path
+    |> Sign.parent_path
   end;
 
 val add_domain_i = gen_add_domain Sign.certify_typ;