merged
authornipkow
Fri, 27 Sep 2013 17:57:45 +0200
changeset 53959 024fadbd03f0
parent 53957 ce12e547e6bb (current diff)
parent 53958 50673b362324 (diff)
child 53960 949cef2095e2
merged
--- a/src/HOL/IMP/Compiler.thy	Fri Sep 27 17:39:34 2013 +0200
+++ b/src/HOL/IMP/Compiler.thy	Fri Sep 27 17:57:45 2013 +0200
@@ -32,6 +32,14 @@
   (xs @ ys) !! i = (if i < size xs then xs !! i else ys !! (i - size xs))"
 by (induction xs arbitrary: i) (auto simp: algebra_simps)
 
+text{* We hide coercion @{const int} applied to @{const length}: *}
+
+abbreviation (output)
+  "isize xs == int (length xs)"
+
+notation isize ("size")
+
+
 subsection "Instructions and Stack Machine"
 
 text_raw{*\snip{instrdef}{0}{1}{% *}