| # bytes1 + 1 = # int2bytes(bytes2int(bytes1) * 256 + band(b2i(by), 255)), bytes2int(bytes1) * 256 + band(b2i(by), 255) < 0, bytes2int(bytes1) * 256 + band(b2i(by), 255) < ~256, ∀ bytes0. # bytes0 < #(bytes1 + by ') → true → # bytes0 = # int2bytes(bytes2int(bytes0)) → bytes0 = int2bytes(bytes2int(bytes0)) ⊦ bytes1 + by ' = int2bytes(bytes2int(bytes1) * 256 + band(b2i(by), 255)), bytes1 = [], bytes2int(bytes1) * 256 + band(b2i(by), 255) = ~256, (bytes2int(bytes1) * 256 + band(b2i(by), 255)) % 256 = 0 |
⊦ i < ~256 ∧ i % 256 ≠ 0 → int2bytes(i) = int2bytes(i / 256 - 1) + int2bytes(i % 256).last '
bytes2int(bytes1) * 256 + band(b2i(by), 255) < ~256 ∧ (bytes2int(bytes1) * 256 + band(b2i(by), 255)) % 256 ≠ 0, # bytes1 + 1 = #(int2bytes((bytes2int(bytes1) * 256 + band(b2i(by), 255)) / 256 - 1) + int2bytes((bytes2int(bytes1) * 256 + band(b2i(by), 255)) % 256).last '), bytes2int(bytes1) * 256 + band(b2i(by), 255) < 0, bytes2int(bytes1) * 256 + band(b2i(by), 255) < ~256, ∀ bytes0. # bytes0 < #(bytes1 + by ') → true → # bytes0 = # int2bytes(bytes2int(bytes0)) → bytes0 = int2bytes(bytes2int(bytes0)) ⊦ bytes1 + by ' = int2bytes((bytes2int(bytes1) * 256 + band(b2i(by), 255)) / 256 - 1) + int2bytes((bytes2int(bytes1) * 256 + band(b2i(by), 255)) % 256).last ', bytes1 = [], bytes2int(bytes1) * 256 + band(b2i(by), 255) = ~256, (bytes2int(bytes1) * 256 + band(b2i(by), 255)) % 256 = 0
Used simplifier rules: ⊦ i * j = j * i;% ⊦ i + j + i0 = (i + j) + i0;% ⊦ i + j = j + i;% ⊦ band(i, j) = band(j, i);%j0 ≠ 0, j ≤ j0 ⊦ i < (* j) → i < (* j0); Used terms: bytes2int(bytes1) * 256 + band(b2i(by), 255)