# HG changeset patch # User paulson # Date 961494144 -7200 # Node ID 453996655ac2fe7f0ba82dd2e40826fbb8f720dc # Parent 12db178a78df739d937429922704df25127b8646 replaced the useless [p]subset_insertD by [p]subset_insert_iff diff -r 12db178a78df -r 453996655ac2 src/HOL/Set.ML --- a/src/HOL/Set.ML Tue Jun 20 11:41:25 2000 +0200 +++ b/src/HOL/Set.ML Tue Jun 20 11:42:24 2000 +0200 @@ -473,13 +473,9 @@ AddSIs [insertCI]; AddSEs [insertE]; -Goal "A <= insert x B ==> A <= B & x ~: A | (EX B'. A = insert x B' & B' <= B)"; -by (case_tac "x:A" 1); -by (Fast_tac 2); -by (rtac disjI2 1); -by (res_inst_tac [("x","A-{x}")] exI 1); -by (Fast_tac 1); -qed "subset_insertD"; +Goal "(A <= insert x B) = (if x:A then A-{x} <= B else A<=B)"; +by Auto_tac; +qed "subset_insert_iff"; section "Singletons, using insert"; @@ -755,9 +751,11 @@ qed "psubsetI"; AddSIs [psubsetI]; -Goalw [psubset_def] "A < insert x B ==> (x ~: A) & A<=B | x:A & A-{x}