TFL/thry.ML
changeset 17203 29b2563f5c11
parent 16935 4d7f19d340e8
child 17227 398a7353ca69
--- a/TFL/thry.ML	Wed Aug 31 15:46:39 2005 +0200
+++ b/TFL/thry.ML	Wed Aug 31 15:46:40 2005 +0200
@@ -34,8 +34,7 @@
 
 fun match_term thry pat ob =
   let
-    val tsig = Sign.tsig_of (Theory.sign_of thry)
-    val (ty_theta, tm_theta) = Pattern.match tsig (pat,ob)
+    val (ty_theta, tm_theta) = Pattern.match thry (pat,ob)
     fun tmbind (ixn, (T, t)) = (Var (ixn, Envir.typ_subst_TVars ty_theta T), t)
   in (map tmbind (Vartab.dest tm_theta), map tybind (Vartab.dest ty_theta))
   end;
@@ -51,7 +50,7 @@
  *---------------------------------------------------------------------------*)
 
 fun typecheck thry t =
-  Thm.cterm_of (Theory.sign_of thry) t
+  Thm.cterm_of thry t
     handle TYPE (msg, _, _) => raise THRY_ERR "typecheck" msg
       | TERM (msg, _) => raise THRY_ERR "typecheck" msg;