| int2bytes(i) = i2b(0) ' + bytes, bytes2int(i2b(0) ' + bytes.first ' + bytes.rest) < 2 ^ ((n→i(# bytes.rest) + 1) * 8), 0 ≤ i, i2b(0) ∈ int2bytes(i) ⊦ i2b(0) ' + bytes.first ' + bytes.rest = int2bytes(i), # int2bytes(i) = n ↔ ¬ i < 2 ^ ((n→i(n) - 1) * 8 - 1) ∧ ¬ 2 ^ ((n→i(n) - 1) * 8) ≤ i ∧ n ≠ 0 |
Used simplifier rules: int2bytes-zero: ⊦ int2bytes(i) = i2b(0) ' ↔ i = 0;%int2bytes-byte: ~128 ≤ i, i < 128 ⊦ int2bytes((* i)) = i2b(i) ';% ⊦ by + bytes = by ' + bytes;% ⊦ bytes + [] = bytes;% ⊦ (bytes + bytes0) + bytes1 = bytes + bytes0 + bytes1;% ⊦ # by ' = 0 +1;% ⊦ 0 < 2 ^ i ↔ 0 ≤ i;% ⊦ i ≤ j - i0 ↔ i + i0 ≤ j;% ⊦ 1 ≤ i ↔ 0 < i;% ⊦ 0 < i → (0 < i * j ↔ 0 < j);% ⊦ i < j - i0 ↔ i + i0 < j;%0 ≤ i ⊦ (* i) < n→i(n) ↔ i→n(i) < n;% ⊦ 1 < m ↔ ¬(m = 0 ∨ m = 1);% ⊦ i * j * j0 = (i * j) * j0;% ⊦ i * j = j * i;%⊦ bytes ≠ [] → (by = bytes.first ∧ bytes0 = bytes.rest ↔ bytes = by + bytes0); (elim) Used terms: bytes, by, bytes0