| ∀ by, bytes0. # bytes0 < # bytes → true → bytes0 = [] ∨ bytes2int(i2b(0) ' + by ' + bytes0) = band(b2i(by), 255) * 256 ^ n→i(# bytes0) + bytes2int(i2b(0) ' + bytes0) ⊦ bytes = [], band(255, b2i(bytes.last)) + 256 * bytes2int((i2b(0) ' + by ') + bytes.butlast) = band(b2i(by), 255) * 256 ^ n→i(# bytes) + bytes2int(i2b(0) ' + bytes) |
bytes = bytes1 + by0 ', ∀ by, bytes0. # bytes0 < # bytes → true → bytes0 = [] ∨ bytes2int(i2b(0) ' + by ' + bytes0) = band(b2i(by), 255) * 256 ^ n→i(# bytes0) + bytes2int(i2b(0) ' + bytes0) ⊦ bytes = [], band(255, b2i(by0)) + 256 * bytes2int((i2b(0) ' + by ') + bytes1) = band(b2i(by), 255) * 256 ^ n→i(# bytes) + bytes2int(i2b(0) ' + bytes)
Used simplifier rules: bytes ≠ [] ⊦ by = bytes.last ∧ bytes0 = bytes.butlast ↔ bytes = bytes0 + by '; (elim) Used terms: bytes, by0, bytes1