| 0 ≤ b2i(by0), b2i(by) = 0, int2bytes(b2i(by0)) = i2b(0) ' + by ' + bytes1 + by0 ', by0 ∈ int2bytes(b2i(by0)), i2b(0) ∈ int2bytes(b2i(by0)), 0 ≤ b2i(by0), b2i(by0) < 256, ∀ by, bytes0. # bytes0 < #(bytes1 + by0 ') → int2bytes(bytes2int(i2b(0) ' + by ' + bytes0)) = i2b(0) ' + by ' + bytes0 ∧ 0 ≤ b2i(by) → false ⊦ true ∈ bytes2bits(bytes1), true ∈ byte2bits(i2b(0)) |
b2i(by) = 0, int2bytes(b2i(by0)) = i2b(0) ' + by ' + bytes1 + by0 ', b2i(by0) < 256, 0 ≤ b2i(by0), i2b(0) ∈ int2bytes(b2i(by0)), by0 ∈ int2bytes(b2i(by0)), ∀ by, bytes0. # bytes0 < #(bytes1 + by0 ') → int2bytes(bytes2int(i2b(0) ' + by ' + bytes0)) = i2b(0) ' + by ' + bytes0 ∧ 0 ≤ b2i(by) → false ⊦ true ∈ bytes2bits(bytes1), true ∈ byte2bits(i2b(0))
Used simplifier rules: ⊦ i ≤ j ∧ 0 ≤ i → 0 ≤ j; (forward)% ⊦ by ' + bytes = bytes0 → by ∈ bytes0; (forward)% ⊦ (bytes + bytes0) + bytes1 = bytes + bytes0 + bytes1;% ⊦ bytes + by ' = bytes0 → by ∈ bytes0; (forward)