src/Pure/Isar/find_theorems.ML
changeset 24683 c62320337a4e
parent 22709 9ab51bac6287
child 24920 2a45e400fdad
--- a/src/Pure/Isar/find_theorems.ML	Sun Sep 23 22:23:33 2007 +0200
+++ b/src/Pure/Isar/find_theorems.ML	Sun Sep 23 22:23:34 2007 +0200
@@ -27,10 +27,8 @@
   | read_criterion _ Intro = Intro
   | read_criterion _ Elim = Elim
   | read_criterion _ Dest = Dest
-  | read_criterion ctxt (Simp str) =
-      Simp (hd (ProofContext.read_term_pats dummyT ctxt [str]))
-  | read_criterion ctxt (Pattern str) =
-      Pattern (hd (ProofContext.read_term_pats dummyT ctxt [str]));
+  | read_criterion ctxt (Simp str) = Simp (ProofContext.read_term_pattern ctxt str)
+  | read_criterion ctxt (Pattern str) = Pattern (ProofContext.read_term_pattern ctxt str);
 
 fun pretty_criterion ctxt (b, c) =
   let