compress: proper check_thy;
authorwenzelm
Fri, 17 Aug 2007 23:10:45 +0200
changeset 24313 5a6342236a32
parent 24312 bb5ec06f7c7a
child 24314 665b3ab2dabe
compress: proper check_thy;
src/Pure/thm.ML
--- a/src/Pure/thm.ML	Fri Aug 17 23:10:43 2007 +0200
+++ b/src/Pure/thm.ML	Fri Aug 17 23:10:45 2007 +0200
@@ -581,15 +581,20 @@
 (*Compression of theorems -- a separate rule, not integrated with the others,
   as it could be slow.*)
 fun compress (Thm {thy_ref, der, tags, maxidx, shyps, hyps, tpairs, prop}) =
-  let val thy = Theory.deref thy_ref in
-    Thm {thy_ref = thy_ref,
+  let
+    val thy = Theory.deref thy_ref;
+    val hyps' = map (Compress.term thy) hyps;
+    val tpairs' = map (pairself (Compress.term thy)) tpairs;
+    val prop' = Compress.term thy prop;
+  in
+    Thm {thy_ref = Theory.check_thy thy,
       der = der,
       tags = tags,
       maxidx = maxidx,
       shyps = shyps,
-      hyps = map (Compress.term thy) hyps,
-      tpairs = map (pairself (Compress.term thy)) tpairs,
-      prop = Compress.term thy prop}
+      hyps = hyps',
+      tpairs = tpairs',
+      prop = prop'}
   end;
 
 fun norm_proof (Thm {thy_ref, der, tags, maxidx, shyps, hyps, tpairs, prop}) =