ProofContext.read_term_pattern;
authorwenzelm
Sun, 23 Sep 2007 22:23:34 +0200
changeset 24683 c62320337a4e
parent 24682 29306b20079b
child 24684 80da599dea37
ProofContext.read_term_pattern;
src/Pure/Isar/find_theorems.ML
--- 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