added split_sum_case_asm
authoroheimb
Tue, 02 Jun 1998 15:07:00 +0200
changeset 4988 8f4dc836a2ea
parent 4987 257aeccdefc3
child 4989 857dabe71d72
added split_sum_case_asm
src/HOL/Sum.ML
--- a/src/HOL/Sum.ML	Fri May 29 13:50:21 1998 +0200
+++ b/src/HOL/Sum.ML	Tue Jun 02 15:07:00 1998 +0200
@@ -152,6 +152,11 @@
 by Auto_tac;
 qed "split_sum_case";
 
+qed_goal "split_sum_case_asm" Sum.thy "P (sum_case f g s) = \
+\ (~((? x. s = Inl x & ~P (f x)) | (? y. s = Inr y & ~P (g y))))"
+    (K [stac split_sum_case 1,
+	Blast_tac 1]);
+
 (*Prevents simplification of f and g: much faster*)
 qed_goal "sum_case_weak_cong" Sum.thy
   "s=t ==> sum_case f g s = sum_case f g t"