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