simplified read_axm;
authorwenzelm
Sat, 14 Apr 2007 23:56:36 +0200
changeset 22689 b800228434a8
parent 22688 bbf8835c9f87
child 22690 0b08f218f260
simplified read_axm;
src/Pure/theory.ML
--- a/src/Pure/theory.ML	Sat Apr 14 17:38:30 2007 +0200
+++ b/src/Pure/theory.ML	Sat Apr 14 23:56:36 2007 +0200
@@ -177,13 +177,8 @@
   end;
 
 fun read_axm thy (name, str) =
-  let
-    val ts = Syntax.read (ProofContext.init thy) (Sign.is_logtype thy) (Sign.syn_of thy) propT str;
-    val (t, _) =
-      Sign.infer_types (Sign.pp thy) thy (Sign.consts_of thy)
-        (K NONE) (K NONE) Name.context true (ts, propT);
-  in cert_axm thy (name, t) end
-  handle ERROR msg => err_in_axm msg name;
+  cert_axm thy (name, Sign.read_prop thy str)
+    handle ERROR msg => err_in_axm msg name;
 
 fun inferT_axm thy (name, pre_tm) =
   let