Complete proof for asserts in If and Seq.