Proof System for Weakest Prespecification and its Applications