remove unnecessary "0 <= " conditions and adapt proofs