| # bytes = 1 + # int2bytes(band(b2i(bytes.last), 255) / 256 + bytes2int(bytes.butlast)), 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(band(b2i(bytes.last), 255) / 256 + bytes2int(bytes.butlast)) + int2bytes(band(b2i(bytes.last), 255) % 256).last ' |
0 < j, 0 ≤ i, i < j ⊦ i / j = 0
0 < 256 ∧ 0 ≤ band(b2i(bytes.last), 255) ∧ band(b2i(bytes.last), 255) < 256, # bytes = 1 + # int2bytes(0 + bytes2int(bytes.butlast)), 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(0 + bytes2int(bytes.butlast)) + int2bytes(band(b2i(bytes.last), 255) % 256).last '
Used simplifier rules: ⊦ ¬ i ≤ j ↔ j < i;% ⊦ 0 ≤ i → ¬ band(i, j) < 0;% ⊦ band(i, band(i0, j)) = band(band(i, i0), j);% ⊦ band(i, j) = band(j, i);% ⊦ ¬ i < j ↔ j ≤ i;% ⊦ ¬ 256 ≤ band(i, 255); Used terms: 256, band(b2i(bytes.last), 255)