AbstractIn Keimel et al. (2009) [5] we have systematically derived a predicate transformer semantics from a direct semantics in total correctness style for a nondeterministic/probabilistic basic imperative programming language Lp. In the current paper we perform the analogous task starting from a direct semantics for Lp in partial correctness style. As in [5] we establish a “Minkowski duality” providing an isomorphism between direct semantics and a continuation semantics from which a predicate transformer semantics wpa can be read off immediately.But wpa has only an auxiliary status and we use it to define a predicate transformer wlp as wlp(P)(γ)=1−wpa(P)(1−γ) capturing the idea of “weakest liberal preexpectation” (in analogy with weakest l...