legacy_infer_term: ProofContext.mode_schematic;
authorwenzelm
Fri, 31 Aug 2007 23:17:20 +0200
changeset 24503 2439587f516b
parent 24502 8d5326f0098b
child 24504 0edc609e36fd
legacy_infer_term: ProofContext.mode_schematic;
src/HOLCF/Tools/domain/domain_theorems.ML
--- a/src/HOLCF/Tools/domain/domain_theorems.ML	Fri Aug 31 18:46:37 2007 +0200
+++ b/src/HOLCF/Tools/domain/domain_theorems.ML	Fri Aug 31 23:17:20 2007 +0200
@@ -54,9 +54,13 @@
 
 (* ----- general proof facilities ------------------------------------------- *)
 
+fun legacy_infer_term thy t =
+  let val ctxt = ProofContext.set_mode ProofContext.mode_schematic (ProofContext.init thy)
+  in singleton (Syntax.check_terms ctxt) (Sign.intern_term thy t) end;
+
 fun pg'' thy defs t tacs =
   let
-    val t' = FixrecPackage.legacy_infer_term thy t;
+    val t' = legacy_infer_term thy t;
     val asms = Logic.strip_imp_prems t';
     val prop = Logic.strip_imp_concl t';
     fun tac prems =