Improved formal function contracts. Used them in the FLPBbook.