The withdraw example would look something like
impl Account { #[requires(amount <= self.balance)] #[ensures(self.balance >= 0)] pub fn withdraw(&mut self, amount: uint) { ... } }
The withdraw example would look something like
and Prusti has a good story for going from this to larger proofs.