5741
|
1 |
|
5753
|
2 |
(*Note: any of these goals may be solved by a single stroke of
|
|
3 |
auto(); or force 1;*)
|
|
4 |
|
|
5 |
|
|
6 |
(* some basic simplifications *)
|
5741
|
7 |
|
|
8 |
Goal "!!m n p. x (| x = m, y = n, ... = p |) = m";
|
|
9 |
by (Simp_tac 1);
|
5753
|
10 |
result();
|
5741
|
11 |
|
|
12 |
Goal "!!m n p. (| x = m, y = n, ... = p |) (| x:= 0 |) = (| x = 0, y = n, ... = p |)";
|
|
13 |
by (Simp_tac 1);
|
5753
|
14 |
result();
|
5741
|
15 |
|
|
16 |
|
5753
|
17 |
(* splitting quantifiers *)
|
5741
|
18 |
|
|
19 |
Goal "!!r m n. r (| x := n |) (| y := m |) = r (| y := m |) (| x := n |)";
|
|
20 |
by (record_split_tac 1);
|
|
21 |
by (Simp_tac 1);
|
5753
|
22 |
result();
|
5741
|
23 |
|
|
24 |
Goal "!!r m n. r (| x := n |) (| x := m |) = r (| x := m |)";
|
|
25 |
by (record_split_tac 1);
|
|
26 |
by (Simp_tac 1);
|
5753
|
27 |
result();
|
5741
|
28 |
|
|
29 |
|
5753
|
30 |
(* record equality *)
|
5741
|
31 |
|
|
32 |
Goal "!!r. (| x = n, y = p |) = (| x = n', y = p' |) & n = 0 ==> n' = 0";
|
|
33 |
by (Asm_full_simp_tac 1);
|
5753
|
34 |
by (Blast_tac 1);
|
|
35 |
result();
|
5741
|
36 |
|
|
37 |
Goalw [getX_def, setX_def, incX_def] "!!r n. incX r = setX r (Suc (getX r))";
|
|
38 |
by (record_split_tac 1);
|
5753
|
39 |
by (Simp_tac 1);
|
|
40 |
result();
|