author | blanchet |
Fri, 27 May 2011 10:30:07 +0200 | |
changeset 43007 | b48aa3492f0b |
parent 35762 | af3ff2ba4c54 |
child 47025 | b2b8ae61d6ad |
permissions | -rw-r--r-- |
17248 | 1 |
header {* Example 3.8 *} |
4905 | 2 |
|
17248 | 3 |
theory Ex2 |
4 |
imports LCF |
|
5 |
begin |
|
4905 | 6 |
|
7 |
consts |
|
17248 | 8 |
P :: "'a => tr" |
9 |
F :: "'a => 'a" |
|
10 |
G :: "'a => 'a" |
|
11 |
H :: "'a => 'b => 'b" |
|
12 |
K :: "('a => 'b => 'b) => ('a => 'b => 'b)" |
|
4905 | 13 |
|
17248 | 14 |
axioms |
15 |
F_strict: "F(UU) = UU" |
|
16 |
K: "K = (%h x y. P(x) => y | F(h(G(x),y)))" |
|
17 |
H: "H = FIX(K)" |
|
18 |
||
19755 | 19 |
declare F_strict [simp] K [simp] |
20 |
||
21 |
lemma example: "ALL x. F(H(x::'a,y::'b)) = H(x,F(y))" |
|
22 |
apply (simplesubst H) |
|
27208
5fe899199f85
proper context for tactics derived from res_inst_tac;
wenzelm
parents:
19755
diff
changeset
|
23 |
apply (tactic {* induct_tac @{context} "K:: ('a=>'b=>'b) => ('a=>'b=>'b)" 1 *}) |
19755 | 24 |
apply (simp (no_asm)) |
25 |
apply (simp (no_asm_simp) split: COND_cases_iff) |
|
26 |
done |
|
4905 | 27 |
|
28 |
end |