src/HOL/Relation.ML
changeset 1694 3452958f85a8
parent 1642 21db0cf9a1a4
child 1754 852093aeb0ab
--- a/src/HOL/Relation.ML	Sat Apr 27 12:05:58 1996 +0200
+++ b/src/HOL/Relation.ML	Sat Apr 27 12:07:31 1996 +0200
@@ -29,6 +29,7 @@
 goalw Relation.thy [id_def] "(a,b):id = (a=b)";
 by (fast_tac prod_cs 1);
 qed "pair_in_id_conv";
+Addsimps [pair_in_id_conv];
 
 
 (** Composition of two relations **)
@@ -172,4 +173,12 @@
 
 val rel_eq_cs = rel_cs addSIs [equalityI];
 
-Addsimps [pair_in_id_conv];
+goal Relation.thy "R O id = R";
+by(fast_tac (rel_cs addIs [set_ext] addbefore (split_all_tac 1)) 1);
+qed "R_O_id";
+
+goal Relation.thy "id O R = R";
+by(fast_tac (rel_cs addIs [set_ext] addbefore (split_all_tac 1)) 1);
+qed "id_O_R";
+
+Addsimps [R_O_id,id_O_R];