| 0 ≤ b2i(by), ∀ n, bytes0. # bytes0 < 1 → 0 ≤ b2i(bytes0.first) → bytes2int(mklist(i2b(0), n) + bytes0) = bytes2int(bytes0) ∨ bytes0 = [] ⊦ bytes2int(mklist(i2b(0), n) + by ') = b2i(by) |
⊦ bytes ≠ [] → bytes2int(bytes + by ') = bytes2int(bytes) * 256 + band(b2i(by), 255)
Used simplifier rules: bytes2int-one: ⊦ bytes2int(by ') = b2i(by);%bytes2int-mklist-zeros: ⊦ bytes2int(mklist(i2b(0), n)) = 0;% ⊦ (bytes + bytes0) + bytes1 = bytes + bytes0 + bytes1;% ⊦ [] + bytes = bytes;% ⊦ mklist(by, 0) = [];% ⊦ mklist(by, m) = [] ↔ m = 0;% ⊦ 0 ≤ i → band(i, 255) = i % 256;% ⊦ b2i(by) % 256 = b2i(by);% ⊦ band(i, band(i0, j)) = band(band(i, i0), j);% ⊦ band(i, j) = band(j, i);% ⊦ i + 0 = i;% ⊦ i + j + i0 = (i + j) + i0;% ⊦ i + j = j + i;% ⊦ b2i(byi) = b2i(byj) ↔ byi = byj; Used terms: by, mklist(i2b(0), n)