New rule: image_subset
authorpaulson
Thu, 08 Jan 1998 11:24:46 +0100
changeset 4523 16f5efe9812d
parent 4522 0218c486cf07
child 4524 7399288f5dd3
New rule: image_subset
src/HOL/Set.ML
--- a/src/HOL/Set.ML	Thu Jan 08 11:23:18 1998 +0100
+++ b/src/HOL/Set.ML	Thu Jan 08 11:24:46 1998 +0100
@@ -612,6 +612,13 @@
 by (Blast_tac 1);
 qed "image_iff";
 
+(*This rewrite rule would confuse users if made default.*)
+goal thy "(f``A <= B) = (ALL x:A. f(x): B)";
+by (Blast_tac 1);
+qed "image_subset_iff";
+
+(*Replaces the three steps subsetI, imageE, hyp_subst_tac, but breaks too
+  many existing proofs.*)
 val prems = goal thy "(!!x. x:A ==> f(x) : B) ==> f``A <= B";
 by (blast_tac (claset() addIs prems) 1);
 qed "image_subsetI";