src/HOL/ex/Points.ML
changeset 5741 139a25a1e01e
child 5753 c90b5f7d0c61
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/HOL/ex/Points.ML	Fri Oct 23 16:07:54 1998 +0200
@@ -0,0 +1,32 @@
+
+(** some basic simplifiactions **)
+
+Goal "!!m n p. x (| x = m, y = n, ... = p |) = m";
+by (Simp_tac 1);
+
+Goal "!!m n p. (| x = m, y = n, ... = p |) (| x:= 0 |) = (| x = 0, y = n, ... = p |)";
+by (Simp_tac 1);
+
+
+
+(** splitting **)
+
+Goal "!!r m n. r (| x := n |) (| y := m |) = r (| y := m |) (| x := n |)";
+by (record_split_tac 1);
+by (Simp_tac 1);
+
+Goal "!!r m n. r (| x := n |) (| x := m |) = r (| x := m |)";
+by (record_split_tac 1);
+by (Simp_tac 1);
+
+
+
+(** Equality **)
+
+Goal "!!r. (| x = n, y = p |) = (| x = n', y = p' |) & n = 0 ==> n' = 0";
+by (Asm_full_simp_tac 1);
+by (Fast_tac 1);
+
+Goalw [getX_def, setX_def, incX_def] "!!r n. incX r = setX r (Suc (getX r))";
+by (record_split_tac 1);
+by (Simp_tac 1);
\ No newline at end of file