| # bytes1 = # int2bytes(bytes2int(bytes1)), 0 ≤ band(b2i(by), 255), bytes2int(bytes1) < 0, bytes2int(bytes1) * 256 + band(b2i(by), 255) < ~256, band(b2i(by), 255) < 256, ∀ bytes0. # bytes0 < #(bytes1 + by ') → true → # bytes0 = # int2bytes(bytes2int(bytes0)) → bytes0 = int2bytes(bytes2int(bytes0)) ⊦ b2i(by) = 0, band(b2i(by), 255) = 256, bytes2int(bytes1) * 256 + band(b2i(by), 255) = ~256, bytes1 = [], bytes1 + by ' = int2bytes(bytes2int(bytes1)) + int2bytes(band(b2i(by), 255) - 256).last ' |
# bytes1 = # int2bytes(bytes2int(bytes1)) → bytes1 = int2bytes(bytes2int(bytes1)), # bytes1 = # int2bytes(bytes2int(bytes1)), 0 ≤ band(b2i(by), 255), bytes2int(bytes1) < 0, bytes2int(bytes1) * 256 + band(b2i(by), 255) < ~256, band(b2i(by), 255) < 256, ∀ bytes0. # bytes0 < #(bytes1 + by ') → true → # bytes0 = # int2bytes(bytes2int(bytes0)) → bytes0 = int2bytes(bytes2int(bytes0)) ⊦ b2i(by) = 0, band(b2i(by), 255) = 256, bytes2int(bytes1) * 256 + band(b2i(by), 255) = ~256, bytes1 = [], bytes1 + by ' = int2bytes(bytes2int(bytes1)) + int2bytes(band(b2i(by), 255) - 256).last '
Used simplifier rules: ⊦ #(bytes + bytes0) = # bytes + # bytes0;% ⊦ # by ' = 0 +1;% ⊦ (bytes + bytes0) + bytes1 = bytes + bytes0 + bytes1;% ⊦ m < n + 1 ↔ ¬ n < m;% ⊦ ¬ n < n;% ⊦ (m + n0) + n1 = m + n0 + n1;% ⊦ m + n = n + m; Used terms: bytes1