| int2bytes(i).first = i2b(~1), 0 ≤ 2 ^ (8 * n→i(# int2bytes(i) - 1)) + i, 2 ^ (8 * n→i(# int2bytes(i) - 1) - 1) + i < 0, 2 ≤ # int2bytes(i), 0 ≤ b2i(int2bytes(i).rest.first) ⊦ int2bytes(i).rest = [], n ≤ # int2bytes(i) ↔ ¬ 0 ≤ i + 2 ^ (8 * (n→i(n) - 1) - 1) |
⊦ n ≤ m → n→i(m - n) = n→i(m) - n→i(n)
1 ≤ # int2bytes(i), int2bytes(i).first = i2b(~1), 0 ≤ 2 ^ (8 * (n→i(# int2bytes(i)) - n→i(1))) + i, 2 ^ (8 * (n→i(# int2bytes(i)) - n→i(1)) - 1) + i < 0, 2 ≤ # int2bytes(i), 0 ≤ b2i(int2bytes(i).rest.first) ⊦ int2bytes(i).rest = [], n ≤ # int2bytes(i) ↔ ¬ 0 ≤ i + 2 ^ (8 * (n→i(n) - 1) - 1)
Used simplifier rules: int2bytes-empty: ⊦ int2bytes(i) ≠ [];% ⊦ ¬ m ≤ n ↔ n < m;% ⊦ m < 1 ↔ m = 0;% ⊦ # bytes = 0 ↔ bytes = [];% ⊦ ¬ i ≤ j ↔ j < i;% ⊦ i + j + i0 = (i + j) + i0;% ⊦ i + j = j + i; Used terms: 1, # int2bytes(i)