diff -r 0075a8d26a80 -r c7a869229091 src/HOL/IMP/VC.thy
--- a/src/HOL/IMP/VC.thy Fri Aug 02 12:25:26 1996 +0200
+++ b/src/HOL/IMP/VC.thy Thu Aug 08 11:34:29 1996 +0200
@@ -22,43 +22,38 @@
astrip :: acom => com
primrec wp acom
- wp_Askip "wp Askip Q = Q"
- wp_Aass "wp (Aass x a) Q = (%s.Q(s[a s/x]))"
- wp_Asemi "wp (Asemi c d) Q = wp c (wp d Q)"
- wp_Aif "wp (Aif b c d) Q = (%s. (b s-->wp c Q s) & (~b s-->wp d Q s))"
- wp_Awhile "wp (Awhile b I c) Q = I"
+ "wp Askip Q = Q"
+ "wp (Aass x a) Q = (%s.Q(s[a s/x]))"
+ "wp (Asemi c d) Q = wp c (wp d Q)"
+ "wp (Aif b c d) Q = (%s. (b s-->wp c Q s) & (~b s-->wp d Q s))"
+ "wp (Awhile b I c) Q = I"
primrec vc acom
- vc_Askip "vc Askip Q = (%s.True)"
- vc_Aass "vc (Aass x a) Q = (%s.True)"
- vc_Asemi "vc (Asemi c d) Q = (%s. vc c (wp d Q) s & vc d Q s)"
- vc_Aif "vc (Aif b c d) Q = (%s. vc c Q s & vc d Q s)"
- vc_Awhile "vc (Awhile b I c) Q = (%s. (I s & ~b s --> Q s) &
+ "vc Askip Q = (%s.True)"
+ "vc (Aass x a) Q = (%s.True)"
+ "vc (Asemi c d) Q = (%s. vc c (wp d Q) s & vc d Q s)"
+ "vc (Aif b c d) Q = (%s. vc c Q s & vc d Q s)"
+ "vc (Awhile b I c) Q = (%s. (I s & ~b s --> Q s) &
(I s & b s --> wp c I s) & vc c I s)"
primrec astrip acom
- astrip_Askip "astrip Askip = SKIP"
- astrip_Aass "astrip (Aass x a) = (x:=a)"
- astrip_Asemi "astrip (Asemi c d) = (astrip c;astrip d)"
- astrip_Aif "astrip (Aif b c d) = (IF b THEN astrip c ELSE astrip d)"
- astrip_Awhile "astrip (Awhile b I c) = (WHILE b DO astrip c)"
+ "astrip Askip = SKIP"
+ "astrip (Aass x a) = (x:=a)"
+ "astrip (Asemi c d) = (astrip c;astrip d)"
+ "astrip (Aif b c d) = (IF b THEN astrip c ELSE astrip d)"
+ "astrip (Awhile b I c) = (WHILE b DO astrip c)"
(* simultaneous computation of vc and wp: *)
primrec vcwp acom
- vcwp_Askip
"vcwp Askip Q = (%s.True, Q)"
- vcwp_Aass
"vcwp (Aass x a) Q = (%s.True, %s.Q(s[a s/x]))"
- vcwp_Asemi
"vcwp (Asemi c d) Q = (let (vcd,wpd) = vcwp d Q;
(vcc,wpc) = vcwp c wpd
in (%s. vcc s & vcd s, wpc))"
- vcwp_Aif
"vcwp (Aif b c d) Q = (let (vcd,wpd) = vcwp d Q;
(vcc,wpc) = vcwp c Q
in (%s. vcc s & vcd s,
%s.(b s-->wpc s) & (~b s-->wpd s)))"
- vcwp_Awhile
"vcwp (Awhile b I c) Q = (let (vcc,wpc) = vcwp c I
in (%s. (I s & ~b s --> Q s) &
(I s & b s --> wpc s) & vcc s, I))"