--- a/src/HOL/IMP/ACom.thy Wed Sep 05 00:58:54 2012 +0200
+++ b/src/HOL/IMP/ACom.thy Wed Sep 05 08:32:59 2012 +0200
@@ -16,7 +16,7 @@
If bexp 'a "('a acom)" 'a "('a acom)" 'a
("(IF _/ THEN ({_}/ _)/ ELSE ({_}/ _)//{_})" [0, 0, 0, 61, 0, 0] 61) |
While 'a bexp 'a "('a acom)" 'a
- ("({_}//WHILE _/ DO ({_}/ _)//{_})" [0, 0, 0, 61, 0] 61)
+ ("({_}//WHILE _//DO ({_}//_)//{_})" [0, 0, 0, 61, 0] 61)
fun post :: "'a acom \<Rightarrow>'a" where
"post (SKIP {P}) = P" |
--- a/src/HOL/IMP/Collecting_Examples.thy Wed Sep 05 00:58:54 2012 +0200
+++ b/src/HOL/IMP/Collecting_Examples.thy Wed Sep 05 08:32:59 2012 +0200
@@ -21,20 +21,25 @@
definition "show_acom xs = map_acom (\<lambda>S. show_state xs ` S)"
text{* Collecting semantics: *}
-value "show_acom [''x''] (((step {%x. 0}) ^^ 1) c0)"
-value "show_acom [''x''] (((step {%x. 0}) ^^ 2) c0)"
-value "show_acom [''x''] (((step {%x. 0}) ^^ 3) c0)"
-value "show_acom [''x''] (((step {%x. 0}) ^^ 4) c0)"
-value "show_acom [''x''] (((step {%x. 0}) ^^ 5) c0)"
-value "show_acom [''x''] (((step {%x. 0}) ^^ 6) c0)"
+value "show_acom [''x''] (((step {\<lambda>x. 0}) ^^ 1) c0)"
+value "show_acom [''x''] (((step {\<lambda>x. 0}) ^^ 2) c0)"
+value "show_acom [''x''] (((step {\<lambda>x. 0}) ^^ 3) c0)"
+value "show_acom [''x''] (((step {\<lambda>x. 0}) ^^ 4) c0)"
+value "show_acom [''x''] (((step {\<lambda>x. 0}) ^^ 5) c0)"
+value "show_acom [''x''] (((step {\<lambda>x. 0}) ^^ 6) c0)"
+value "show_acom [''x''] (((step {\<lambda>x. 0}) ^^ 7) c0)"
+value "show_acom [''x''] (((step {\<lambda>x. 0}) ^^ 8) c0)"
text{* Small-step semantics: *}
-value "show_acom [''x''] (((step {}) ^^ 0) (step {%x. 0} c0))"
-value "show_acom [''x''] (((step {}) ^^ 1) (step {%x. 0} c0))"
-value "show_acom [''x''] (((step {}) ^^ 2) (step {%x. 0} c0))"
-value "show_acom [''x''] (((step {}) ^^ 3) (step {%x. 0} c0))"
-value "show_acom [''x''] (((step {}) ^^ 4) (step {%x. 0} c0))"
-value "show_acom [''x''] (((step {}) ^^ 5) (step {%x. 0} c0))"
+value "show_acom [''x''] (((step {}) ^^ 0) (step {\<lambda>x. 0} c0))"
+value "show_acom [''x''] (((step {}) ^^ 1) (step {\<lambda>x. 0} c0))"
+value "show_acom [''x''] (((step {}) ^^ 2) (step {\<lambda>x. 0} c0))"
+value "show_acom [''x''] (((step {}) ^^ 3) (step {\<lambda>x. 0} c0))"
+value "show_acom [''x''] (((step {}) ^^ 4) (step {\<lambda>x. 0} c0))"
+value "show_acom [''x''] (((step {}) ^^ 5) (step {\<lambda>x. 0} c0))"
+value "show_acom [''x''] (((step {}) ^^ 6) (step {\<lambda>x. 0} c0))"
+value "show_acom [''x''] (((step {}) ^^ 7) (step {\<lambda>x. 0} c0))"
+value "show_acom [''x''] (((step {}) ^^ 8) (step {\<lambda>x. 0} c0))"
end