diff -r 8067efcb43da -r 17305a85493d PIPDefs.thy~ --- a/PIPDefs.thy~ Sun Jan 17 22:18:35 2016 +0800 +++ b/PIPDefs.thy~ Wed Jan 27 19:26:56 2016 +0800 @@ -626,6 +626,8 @@ definition cntV :: "state \ thread \ nat" where "cntV s th = count (\ e. \ cs. e = V th cs) s" +definition "pvD s th = (if (th \ readys s \ th \ threads s) then 0 else (1::nat))" + text {* @{text "the_preced"} is also the same as @{text "preced"}, the only difference is the order of arguemts. *} definition "the_preced s th = preced th s"