Added Part_Int and Part_Collect for inductive definitions
authorlcp
Tue, 25 Jul 1995 16:59:08 +0200
changeset 1188 0443e4dc8511
parent 1187 bc94f00e47ba
child 1189 c17a8fd0c95d
Added Part_Int and Part_Collect for inductive definitions
src/HOL/Sum.ML
--- a/src/HOL/Sum.ML	Tue Jul 25 16:58:06 1995 +0200
+++ b/src/HOL/Sum.ML	Tue Jul 25 16:59:08 1995 +0200
@@ -202,3 +202,11 @@
 by (fast_tac (set_cs addIs [PartI,equalityI] addSEs [PartE]) 1);
 qed "Part_id";
 
+goal Sum.thy "Part (A Int B) h = (Part A h) Int (Part B h)";
+by (fast_tac (set_cs addIs [PartI,equalityI] addSEs [PartE]) 1);
+qed "Part_Int";
+
+(*For inductive definitions*)
+goal Sum.thy "Part (A Int {x.P x}) h = (Part A h) Int {x.P x}";
+by (fast_tac (set_cs addIs [PartI,equalityI] addSEs [PartE]) 1);
+qed "Part_Collect";