removed obsolete IOA/meta_theory/ioa_package.ML;
authorwenzelm
Wed, 19 Oct 2005 21:52:37 +0200
changeset 17925 80a528111a82
parent 17924 75b68d36b787
child 17926 8e12d3a4b890
removed obsolete IOA/meta_theory/ioa_package.ML;
src/HOLCF/IOA/ROOT.ML
src/HOLCF/IOA/meta_theory/ioa_package.ML
--- a/src/HOLCF/IOA/ROOT.ML	Wed Oct 19 21:52:36 2005 +0200
+++ b/src/HOLCF/IOA/ROOT.ML	Wed Oct 19 21:52:37 2005 +0200
@@ -10,4 +10,3 @@
 
 time_use_thy "meta_theory/Abstraction";
 time_use "meta_theory/ioa_package.ML";
-time_use "meta_theory/ioa_syn.ML";
--- a/src/HOLCF/IOA/meta_theory/ioa_package.ML	Wed Oct 19 21:52:36 2005 +0200
+++ b/src/HOLCF/IOA/meta_theory/ioa_package.ML	Wed Oct 19 21:52:37 2005 +0200
@@ -429,15 +429,9 @@
 end)
 
 fun ren_act_type_of thy funct =
-let
-(* going into a pseudo-proof-state to enable the use of function read *)
-val _ = goal thy (funct ^ " = t");
-fun arg_typ_of (Type("fun",[a,b])) = a |
-arg_typ_of _ = raise malformed;
-in
-arg_typ_of(#T(rep_cterm(cterm_of (sign_of thy) (read(funct)))))
-handle malformed => error ("could not extract argument type of renaming function term")
-end;
+  (case Term.fastype_of (Sign.read_term thy funct) of
+    Type ("fun", [a, b]) => a
+  | _ => error "could not extract argument type of renaming function term");
  
 fun add_rename automaton_name aut_source fun_name thy =
 (writeln("Constructing automaton " ^ automaton_name ^ " ...");