[Imprint][Data Privacy Statement][E-Mail]

Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Theorem base for Specification bytes

This is a listing of all goals defined over the current specification. Axioms are yellow, proof obligations purple and theorems green. Click on individual names to get more information on the proof.

Name: Sequent: Type:
⊦ int2bytes(i) = bits2bytes(int2bits(i)) An Axiom
⊦ # bits ≤ 8 → bits2bytes(bits) = i2b(bits2int(bits)) ' An Axiom
⊦ 8 < # bits → bits2bytes(bits) = bits2bytes(firstn(# bits - 8, bits)) + i2b(bits2int(lastn(8, bits))) An Axiom
⊦ bytes2int(bytes) = bits2int(bytes2bits(bytes)) An Axiom
⊦ bytes2bits([]) = [] An Axiom
⊦ bytes2bits(by ' + bytes) = byte2bits(by) + bytes2bits(bytes) An Axiom
⊦ byte2bits(by) = fillsgn(8, int2bits(b2i(by))) An Axiom
⊦ # bytes ≥ n → fix(n, bytes) = lastn(n, bytes) An Axiom
⊦ # bytes < n ∧ bytes2int(bytes) < 0 → fix(n, bytes) = mklist(i2b(~1), n - # bytes) + bytes An Axiom
⊦ # bytes < n ∧ 0 ≤ bytes2int(bytes) → fix(n, bytes) = mklist(i2b(0), n - # bytes) + bytes An Axiom
⊦ # bytes < n ∧ bytes2int(bytes) < 0 → fillsgn(n, bytes) = mklist(i2b(~1), n - # bytes) + bytes An Axiom
⊦ # bytes < n ∧ 0 ≤ bytes2int(bytes) → fillsgn(n, bytes) = mklist(i2b(0), n - # bytes) + bytes An Axiom
⊦ # bytes ≥ n → fillsgn(n, bytes) = bytes An Axiom
⊦ bytes2int(bytes) < 0 ∧ # bytes ≤ 2 ∧ bytes ≠ [] → band(bytes2int(bytes), 65535) = (bytes2int(bytes) + 1) + 65535 A User Theorem
⊦ 0 ≤ bytes2int(bytes) ∧ # bytes ≤ 2 ∧ bytes ≠ [] → band(bytes2int(bytes), 65535) = bytes2int(bytes) A User Theorem
⊦ bits ≠ [] → (boolvar ∈ bytes2bits(bits2bytes(bits)) ↔ boolvar ∈ bits) A User Theorem
⊦ # bits % 8 = 0 ∧ bits ≠ [] → bytes2bits(bits2bytes(bits)) = bits A User Theorem
⊦ bits ≠ [] → sgn(bytes2bits(bits2bytes(bits))) = sgn(bits) A User Theorem
⊦ # bits2bytes(true ' + mklist(false, 7 + 8 * n)) = n + 1 A User Theorem
⊦ # bits0 % 8 = 0 ∧ bits ≠ [] ∧ bits0 ≠ [] → bits2bytes(bits + bits0) = bits2bytes(bits) + bits2bytes(bits0) A User Theorem
⊦ bits2bytes(bits) ≠ [] A User Theorem
⊦ bits ≠ [] ∧ # bits % 8 = n ∧ n ≠ 0 → bits2bytes(bits) = bits2bytes(mklist(bits.first, 8 - n) + bits) A User Theorem
⊦ bits ≠ [] → # bits2bytes(bits) = (# bits - 1) / 8 + 1 A User Theorem
⊦ # bits % 8 = 0 ∧ bits ≠ [] → # bits2bytes(bits) = # bits / 8 A User Theorem
⊦ # bits % 8 ≠ 0 → # bits2bytes(bits) = # bits / 8 + 1 A User Theorem
⊦ n % 8 = 0 ∧ n ≠ 0 → bits2bytes(mklist(false, n)) = mklist(i2b(0), n / 8) A User Theorem
⊦ n % 8 ≠ 0 → bits2bytes(mklist(false, n)) = mklist(i2b(0), n / 8 + 1) A User Theorem
⊦ n % 8 = 0 ∧ n ≠ 0 → bits2bytes(mklist(true, n)) = mklist(i2b(~1), n / 8) A User Theorem
⊦ n % 8 ≠ 0 → bits2bytes(mklist(true, n)) = mklist(i2b(~1), n / 8 + 1) A User Theorem
⊦ # bits % 8 ≠ 0 ∧ 8 < # bits → bits2bytes(bits) = bits2bytes(firstn(# bits % 8, bits)) + bits2bytes(restn(# bits % 8, bits)) A User Theorem
⊦ # bits % 8 = 0 ∧ 8 < # bits → bits2bytes(bits) = bits2bytes(firstn(8, bits)) + bits2bytes(restn(8, bits)) A User Theorem
⊦ bits2bytes(true ') = i2b(~1) ' A User Theorem
⊦ ¬ true ∈ bits → bytes2int(bits2bytes(true ' + bits)) = ~(2 ^ n→i(# bits)) A User Theorem
⊦ bits ≠ [] → (bytes2int(bits2bytes(bits)) < 0 ↔ bits.first) A User Theorem
⊦ bits ≠ [] → (0 ≤ bytes2int(bits2bytes(bits)) ↔ ¬ bits.first) A User Theorem
⊦ bytes ≠ [] → (bits2int(bytes2bits(bytes)) < 0 ↔ b2i(bytes.first) < 0) A User Theorem
⊦ byte2bits(by) ≠ [] A User Theorem
⊦ byte2bits(by).first ↔ b2i(by) < 0 A User Theorem
⊦ # byte2bits(by) = 8 A User Theorem
⊦ byte2bits(i2b(~1)) = mklist(true, 8) A User Theorem
⊦ bits2uint(byte2bits(by)) = band(b2i(by), 255) A User Theorem
⊦ bits2int(byte2bits(by)) = b2i(by) A User Theorem
⊦ byte2bits(i2b(0)) = mklist(false, 8) A User Theorem
⊦ # bits = 8 → byte2bits(i2b(bits2int(bits))) = bits A User Theorem
⊦ bytes2bits(bytes + bytes0) = bytes2bits(bytes) + bytes2bits(bytes0) A User Theorem
⊦ bytes2bits(bytes) = [] ↔ bytes = [] A User Theorem
⊦ # bytes2bits(bytes) = i→n(8) * # bytes A User Theorem
⊦ bytes2bits(mklist(i2b(0), n)) = mklist(false, 8 * n) A User Theorem
⊦ bytes2bits(mklist(i2b(~1), n)) = mklist(true, 8 * n) A User Theorem
⊦ ¬ 2 ^ (8 * n→i(# bytes)) ≤ bits2uint(bytes2bits(bytes)) A User Theorem
bytes ≠ [] ⊦ ¬ 2 ^ (8 * n→i(# bytes)) + bits2int(bytes2bits(bytes)) < 0 A User Theorem
⊦ bytes2bits(by ') = byte2bits(by) A User Theorem
⊦ bytes ≠ [] → int2bytes(bytes2int(bytes)) = bits2bytes(sgn(bytes2bits(bytes))) A User Theorem
⊦ # bytes = n ∧ bytes ≠ [] → fillsgn(n, int2bytes(bytes2int(bytes))) = bytes A User Theorem
⊦ b2i(int2bytes(bytes2int(by ' + bytes)).first) < 0 ↔ b2i(by) < 0 A User Theorem
⊦ 0 ≤ b2i(int2bytes(bytes2int(by ' + bytes)).first) ↔ 0 ≤ b2i(by) A User Theorem
⊦ bytes ≠ [] → fix(# bytes, int2bytes(bytes2int(bytes))) = bytes A User Theorem
⊦ # bytes = # int2bytes(bytes2int(bytes)) → int2bytes(bytes2int(bytes)) = bytes A User Theorem
⊦ # bytes ≤ # int2bytes(bytes2int(bytes)) ∧ bytes ≠ [] → int2bytes(bytes2int(bytes)) = bytes A User Theorem
⊦ bytes ≠ [] → # int2bytes(bytes2int(bytes)) ≤ # bytes A User Theorem
1 < # bytes, b2i(bytes.first) = ~1, 0 ≤ b2i(bytes.rest.first) ⊦ int2bytes(bytes2int(bytes)) = bytes A User Theorem
bytes ≠ [], b2i(bytes.first) ≠ 0, b2i(bytes.first) ≠ ~1 ⊦ int2bytes(bytes2int(bytes)) = bytes A User Theorem
1 < # bytes, b2i(bytes.first) = 0, b2i(bytes.rest.first) < 0 ⊦ int2bytes(bytes2int(bytes)) = bytes A User Theorem
⊦ bytes2int(i2b(0) ' + mklist(i2b(~1), n)) = 2 ^ (8 * n→i(n)) - 1 A User Theorem
⊦ bytes2int(i2b(127) ' + mklist(i2b(~1), n)) = 2 ^ (8 * (1 + n→i(n)) - 1) - 1 A User Theorem
⊦ bytes2int(i2b(~2) ' + mklist(i2b(~1), n)) = ~(2 ^ (8 * n→i(n)) + 1) A User Theorem
⊦ bytes2int(i2b(0) ' + i2b(~128) ' + mklist(i2b(0), n)) = 2 ^ (8 * (1 + n→i(n)) - 1) A User Theorem
⊦ bytes2int(i2b(1) ' + mklist(i2b(0), n)) = 2 ^ (8 * n→i(n)) A User Theorem
⊦ bytes2int(i2b(~128) ' + mklist(i2b(0), n)) = ~(2 ^ (8 * (1 + n→i(n)) - 1)) A User Theorem
⊦ bytes2int(i2b(~1) ' + mklist(i2b(0), n)) = ~(2 ^ (8 * n→i(n))) A User Theorem
⊦ bytes2int(i2b(~1) ' + i2b(127) ' + mklist(i2b(~1), n)) = ~(2 ^ (8 * (n→i(n) + 1) - 1) + 1) A User Theorem
⊦ ¬ 32767 < bytes2int(by ' + by1 ') A User Theorem
bytes ≠ [], bytes0 ≠ [] ⊦ bytes2int(bytes + bytes0) = bytes2int(bytes) * 256 ^ n→i(# bytes0) + band(bytes2int(bytes0), 256 ^ n→i(# bytes0) - 1) A User Theorem
⊦ # bytes0 = # bytes ∧ bytes0 ≠ bytes → bytes2int(bytes0) ≠ bytes2int(bytes) A User Theorem
⊦ fillsgn(n, i2b(0) ') ≠ bytes ∧ bytes ≠ [] ∧ n = # bytes → bytes2int(bytes) ≠ 0 A User Theorem
⊦ 0 ≤ b2i(int2bytes(i).first) ↔ 0 ≤ i A User Theorem
⊦ b2i(int2bytes(i).first) < 0 ↔ i < 0 A User Theorem
⊦ 0 ≤ bytes2int(by ' + bytes) → ¬ b2i(by) < 0 A User Theorem
⊦ ¬ 0 ≤ bytes2int(by + bytes) → ¬ 0 ≤ b2i(by) A User Theorem
⊦ ¬ 0 ≤ bytes2int(by ' + bytes) → ¬ 0 ≤ b2i(by) A User Theorem
⊦ 0 ≤ bytes2int(by ' + bytes) ↔ 0 ≤ b2i(by) A User Theorem
⊦ ¬ 0 ≤ bytes2int(i2b(~1) ' + bytes) A User Theorem
⊦ bytes ≠ [] → i2b(bytes2int(bytes)) = bytes.last A User Theorem
⊦ # bytes = # int2bytes(bytes2int(bytes)) → bytes = int2bytes(bytes2int(bytes)) A User Theorem
⊦ bytes2int(i2b(0) ' + bytes) ≤ 0 ↔ bytes2int(i2b(0) ' + bytes) = 0 A User Theorem
⊦ 0 ≤ b2i(by) → bytes2int(i2b(0) ' + by ') = b2i(by) A User Theorem
⊦ 0 ≤ bytes2int(bytes) ∧ # bytes ≠ 1 ∧ bytes ≠ [] ∧ bytes.first ≠ i2b(0) → ¬ bytes2int(bytes) < 128 A User Theorem
⊦ 0 ≤ bytes2int(bytes) ∧ # bytes ≠ 1 ∧ bytes ≠ [] ∧ bytes.first = i2b(0) ∧ b2i(bytes.rest.first) < 0 → ¬ bytes2int(bytes) < 128 A User Theorem
⊦ n ≠ 0 → bytes2int(mklist(i2b(~1), n)) = ~1 A User Theorem
⊦ b2i(bytes.first) < 0 ∧ bytes ≠ [] → bytes2int(mklist(i2b(~1), n) + bytes) = bytes2int(bytes) A User Theorem
⊦ bytes2int(mklist(i2b(0), n)) = 0 A User Theorem
⊦ 0 ≤ b2i(bytes.first) ∧ bytes ≠ [] → bytes2int(mklist(i2b(0), n) + bytes) = bytes2int(bytes) A User Theorem
⊦ b2i(by) < 0 → bytes2int(i2b(~1) ' + by ' + bytes) = bytes2int(by ' + bytes) A User Theorem
⊦ bytes ≠ [] → (bytes2int(bytes) < 0 ↔ b2i(bytes.first) < 0) A User Theorem
⊦ bytes2int(by ' + bytes) < 0 ↔ b2i(by) < 0 A User Theorem
⊦ bytes2int(by ') = b2i(by) A User Theorem
⊦ 0 ≤ bytes2int(bytes) ↔ bytes = [] ∨ 0 ≤ b2i(bytes.first) A User Theorem
bytes ≠ [] ⊦ ~(2 ^ n→i(# bytes * 8 - 1)) ≤ bytes2int(bytes) ∧ bytes2int(bytes) < 2 ^ n→i(# bytes * 8 - 1) A User Theorem
⊦ bytes ≠ [] → bytes2int(bytes + by ') = bytes2int(bytes) * 256 + band(b2i(by), 255) A User Theorem
⊦ 1 < # bytes → bytes2int(bytes) = bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255) A User Theorem
⊦ bytes ≠ [] → bytes2int(bytes + by ') = bor(bytes2int(bytes) * 256, band(b2i(by), 255)) A User Theorem
⊦ bytes ≠ [] → bytes2int(i2b(0) ' + by ' + bytes) = band(b2i(by), 255) * 256 ^ n→i(# bytes) + bytes2int(i2b(0) ' + bytes) A User Theorem
⊦ bytes2int(bytes) = bytes2int(bytes0) ∧ int2bytes(bytes2int(bytes)) = bytes ∧ int2bytes(bytes2int(bytes0)) = bytes0 → bytes = bytes0 A User Theorem
⊦ b2i(by) < 0 → bytes2int(i2b(0) ' + by ' + bytes) < 2 ^ ((n→i(# bytes) + 1) * 8) A User Theorem
⊦ b2i(by) < 0 → 2 ^ ((n→i(# bytes) + 1) * 8 - 1) ≤ bytes2int(i2b(0) ' + by ' + bytes) A User Theorem
⊦ 0 < b2i(by) → bytes2int(by ' + bytes) < 2 ^ ((n→i(# bytes) + 1) * 8 - 1) A User Theorem
⊦ 0 < b2i(by) → 2 ^ (n→i(# bytes) * 8) ≤ bytes2int(by ' + bytes) A User Theorem
⊦ b2i(by) < 0 → ~(2 ^ ((n→i(# bytes) + 1) * 8 - 1)) ≤ bytes2int(by ' + bytes) A User Theorem
⊦ 0 ≤ b2i(by) → ~(2 ^ ((n→i(# bytes) + 1) * 8)) ≤ bytes2int(i2b(~1) ' + by ' + bytes) A User Theorem
⊦ b2i(by) < 0 ∧ b2i(by) ≠ ~1 → bytes2int(by ' + bytes) < ~(2 ^ (8 * n→i(# bytes))) A User Theorem
⊦ 0 ≤ b2i(by) → bytes2int(i2b(~1) ' + by ' + bytes) < ~(2 ^ (8 * (n→i(# bytes) + 1) - 1)) A User Theorem
⊦ ∃ by, bytes. b2i(by) < 0 ∧ bytes2int(i2b(0) ' + by ' + bytes) = 2 ^ ((n→i(# bytes) + 1) * 8) - 1 A User Theorem
⊦ ∃ by, bytes. b2i(by) < 0 ∧ 2 ^ ((n→i(# bytes) + 1) * 8 - 1) = bytes2int(i2b(0) ' + by ' + bytes) A User Theorem
⊦ ∃ by, bytes. 0 < b2i(by) ∧ bytes2int(by ' + bytes) = 2 ^ ((n→i(# bytes) + 1) * 8 - 1) - 1 A User Theorem
⊦ ∃ by, bytes. 0 < b2i(by) ∧ bytes2int(by ' + bytes) = 2 ^ (n→i(# bytes) * 8) A User Theorem
⊦ ∃ by, bytes. b2i(by) < 0 ∧ ~(2 ^ ((n→i(# bytes) + 1) * 8 - 1)) = bytes2int(by ' + bytes) A User Theorem
⊦ ∃ by, bytes. 0 ≤ b2i(by) ∧ ~(2 ^ ((n→i(# bytes) + 1) * 8)) = bytes2int(i2b(~1) ' + by ' + bytes) A User Theorem
⊦ ∃ by, bytes. b2i(by) < 0 ∧ b2i(by) ≠ ~1 ∧ bytes2int(by ' + bytes) = ~(2 ^ (8 * n→i(# bytes)) + 1) A User Theorem
⊦ ∃ by, bytes. 0 ≤ b2i(by) ∧ bytes2int(i2b(~1) ' + by ' + bytes) = ~(2 ^ (8 * (n→i(# bytes) + 1) - 1) + 1) A User Theorem
⊦ bytes2int(i2b(0) ') = 0 A User Theorem
⊦ bytes2int(i2b(0) ' + i2b(0) ') = 0 A User Theorem
⊦ bytes2int(i2b(0) ' + i2b(0) ' + bytes) = bytes2int(i2b(0) ' + bytes) A User Theorem
⊦ by ≠ i2b(0) ∧ by ∈ bytes → bytes2int(bytes) ≠ 0 A User Theorem
⊦ 0 ≤ b2i(by) → bytes2int(i2b(0) ' + by ' + bytes) = bytes2int(by ' + bytes) A User Theorem
⊦ 0 ≤ n ∧ n < # bytes ∧ bytes2int(bytes) = 0 → bytes[n] = i2b(0) A User Theorem
⊦ bytes ≠ [] → (bytes2int(bytes) = 0 ↔ (∀ by. by ∈ bytes → b2i(by) = 0)) A User Theorem
⊦ 1 < # bytes → fillsgn(n, bytes.butlast) = fillsgn(n + 1, bytes).butlast A User Theorem
⊦ fillsgn(n, bytes) = [] ↔ n = 0 ∧ bytes = [] A User Theorem
⊦ # bytes < n → fillsgn(n, bytes) = fix(n, bytes) A User Theorem
⊦ # fillsgn(2, int2bytes(s2i(sho))) = 2 A User Theorem
⊦ bytes ≠ [] → n ≤ # fillsgn(n, bytes) A User Theorem
⊦ # bytes < n → # fillsgn(n, bytes) = n A User Theorem
⊦ # bytes ≤ n → # fillsgn(n, bytes) = n A User Theorem
⊦ # fillsgn(# bytes, bytes) = # bytes A User Theorem
⊦ fillsgn(n, int2bytes(i)) ≠ [] A User Theorem
⊦ # bytes < n ∧ bytes ≠ [] → fillsgn(n, bytes) = (b2i(bytes.first) < 0 ⊃ i2b(~1);i2b(0)) ' + fillsgn(n -1, bytes) A User Theorem
⊦ bytes ≠ [] → (fillsgn(2, int2bytes(bytes2int(bytes))) = bytes ↔ 2 ≤ # bytes ∧ (2 < # bytes → int2bytes(bytes2int(bytes)) = bytes)) A User Theorem
⊦ bits ≠ [] ∧ n ≠ 0 ∧ # bits ≤ 8 * (n - 1) → fix(n, bits2bytes(bits)) = bits2bytes(fillsgn(n * 8, bits)) A User Theorem
⊦ bits ≠ [] ∧ n ≠ 0 ∧ # bits ≤ 8 * n → fix(n, bits2bytes(bits)) = bits2bytes(fillsgn(n * 8, bits)) A User Theorem
⊦ 1 < # bytes ∧ n ≠ 0 → fix(n, bytes.butlast) = fix(n + 1, bytes).butlast A User Theorem
⊦ 1 < # bytes ∧ # bytes < n → fix(n, bytes.butlast) = fix(n, bytes).first + fix(n, bytes).butlast A User Theorem
⊦ fix(n, bytes) = [] ↔ n = 0 A User Theorem
⊦ # bytes < n → fix(n, bytes) = fillsgn(n, bytes) A User Theorem
⊦ bytes ≠ [] ∧ n ≠ 0 → fix(n, bytes).last = bytes.last A User Theorem
⊦ # fix(n, bytes) = n A User Theorem
⊦ # bytes = n → fix(n, bytes) = bytes A User Theorem
⊦ # bytes ≤ n ∧ bytes2int(bytes) < 0 → fix(n, bytes) = mklist(i2b(~1), n - # bytes) + bytes A User Theorem
⊦ fix(1, by ') = by ' A User Theorem
⊦ fix(1, int2bytes(i)) = int2bytes(i).last ' A User Theorem
⊦ # bytes ≤ n ∧ 0 ≤ bytes2int(bytes) → fix(n, bytes) = mklist(i2b(0), n - # bytes) + bytes A User Theorem
⊦ b2i(bytes.first) < 0 ∧ # bytes < n ∧ bytes ≠ [] → fix(n, bytes) = i2b(~1) ' + fix(n -1, bytes) A User Theorem
⊦ 0 ≤ b2i(bytes.first) ∧ # bytes < n ∧ bytes ≠ [] → fix(n, bytes) = i2b(0) ' + fix(n -1, bytes) A User Theorem
⊦ fix(2, i2b(0) ') = i2b(0) ' + i2b(0) ' A User Theorem
⊦ fix(2, by ' + by0 ') = by ' + by0 ' A User Theorem
⊦ fix(2, by ' + by0 ' + by1 ') = by0 ' + by1 ' A User Theorem
⊦ fix(2, bytes).rest.butlast = [] A User Theorem
⊦ fix(2, bytes).rest ≠ [] A User Theorem
⊦ # bytes ≤ n ∧ bytes ≠ [] → bytes2int(fix(n, bytes)) = bytes2int(bytes) A User Theorem
⊦ bytes ≠ [] → fix(2, bytes).rest = bytes.last ' A User Theorem
⊦ bor(bor(bor(b2i(by3) i<< 24, band(b2i(by2), 255) i<< 16), band(b2i(by1), 255) i<< 8), band(b2i(by0), 255)) = bytes2int(by3 ' + by2 ' + by1 ' + by0 ') A User Theorem
⊦ i < ~128 ∨ 128 ≤ i → int2bytes(i).butlast = int2bytes(i >> 8) A User Theorem
~128 ≤ i, i < 128 ⊦ int2bytes((* i)) = i2b(i) ' A User Theorem
⊦ int2bytes(b2i(by)) = by ' A User Theorem
⊦ ~256 < i ∧ i < ~128 → int2bytes(i) = i2b(~1) ' + i2b(i) ' A User Theorem
⊦ # int2bytes(bytes2int(bytes)) = # bytes → int2bytes(bytes2int(bytes)) = bytes A User Theorem
⊦ n ≠ 0 ∧ # bytes = n → ¬ n < # int2bytes(bytes2int(bytes)) A User Theorem
⊦ int2bytes(i) ≠ [] A User Theorem
⊦ 1 < # int2bytes(i) ∧ # int2bytes(i) ≤ n → fillsgn(n, int2bytes(i)) = fillsgn(n -1, int2bytes(i >> 8)) + i2b(i) A User Theorem
⊦ 0 ≤ i → (b2i(int2bytes(i).first) ≤ 0 ↔ b2i(int2bytes(i).first) = 0) A User Theorem
⊦ i < 0 → b2i(int2bytes(i).first) < 0 A User Theorem
⊦ i < 0 → int2bytes(i) ≠ i2b(0) ' + bytes A User Theorem
⊦ 0 ≤ i → (int2bytes(i).first = i2b(0) ↔ n→i(# int2bits(i)) % 8 = 1) A User Theorem
⊦ 0 ≤ j → (int2bytes(j).first = i2b(0) ↔ (∃ i. 0 ≤ i ∧ 2 ^ (8 * i - 1) ≤ j ∧ j < 2 ^ (8 * i))) A User Theorem
⊦ 0 ≤ j ∧ j < n→i(# int2bytes(i)) → int2bytes(i)[i→n(j)] = i2b(i >> 8 * (n→i(# int2bytes(i)) - j + 1)) A User Theorem
⊦ 0 ≤ n ∧ n < # int2bytes(i) → int2bytes(i)[n] = i2b(i >> 8 * (n→i(# int2bytes(i)) - n→i(n) + 1)) A User Theorem
⊦ 0 < i1 ∧ i1 ≤ n→i(# int2bytes(i)) ∧ i1 ≤ 4 → int2bytes(i)[i→n(n→i(# int2bytes(i)) - i1)] = i2b(i i>> 8 * (i1 - 1)) A User Theorem
0 ≤ i, i < 128 ⊦ int2bytes((* i)).last = i2b(i) A User Theorem
⊦ int2bytes(i).last = i2b(i) A User Theorem
0 ≤ i, i ≤ 127 ⊦ int2bytes(i) = i2b(i) ' A User Theorem
127 < i, i ≤ 255 ⊦ int2bytes(i) = i2b(0) ' + i2b(i - 256) ' A User Theorem
⊦ int2bytes(i) ≠ i2b(0) ' + i2b(0) ' + bytes A User Theorem
⊦ # int2bits(i) % 8 ≠ 0 → # int2bytes(i) = # int2bits(i) / 8 + 1 A User Theorem
⊦ # int2bytes(i) = (# int2bits(i))-1 / 8 + 1 A User Theorem
⊦ i < 0 ∧ int2bytes(i).first ≠ i2b(~1) → (# int2bytes(i) = n ↔ ~(2 ^ (8 * n→i(n))) ≤ i ∧ i < ~(2 ^ (8 * (n→i(n) - 1))) ∧ n ≠ 0) A User Theorem
⊦ int2bytes(i).first = i2b(~1) → (# int2bytes(i) = n ↔ ~(2 ^ (8 * n→i(n) - 1)) ≤ i ∧ i < ~(2 ^ (8 * (n→i(n) - 1) - 1)) ∧ n ≠ 0) A User Theorem
⊦ 0 ≤ i ∧ int2bytes(i).first = i2b(0) → (# int2bytes(i) = n ↔ 2 ^ ((n→i(n) - 1) * 8 - 1) ≤ i ∧ i < 2 ^ ((n→i(n) - 1) * 8) ∧ 0 < n) A User Theorem
⊦ # int2bits(i) % 8 = 0 → # int2bytes(i) = # int2bits(i) / 8 A User Theorem
⊦ 0 ≤ i ∧ int2bytes(i).first ≠ i2b(0) → (n ≤ # int2bytes(i) ↔ 2 ^ ((n→i(n) - 1) * 8) ≤ i) A User Theorem
⊦ 0 ≤ i ∧ int2bytes(i).first = i2b(0) → (n ≤ # int2bytes(i) ↔ 2 ^ ((n→i(n) - 1) * 8 - 1) ≤ i) A User Theorem
⊦ i < 0 ∧ int2bytes(i).first ≠ i2b(~1) → (n ≤ # int2bytes(i) ↔ i < ~(2 ^ (8 * (n→i(n) - 1)))) A User Theorem
⊦ int2bytes(i).first = i2b(~1) → (n ≤ # int2bytes(i) ↔ i < ~(2 ^ (8 * (n→i(n) - 1) - 1))) A User Theorem
⊦ i < 0 ∧ int2bytes(i).first ≠ i2b(~1) → (# int2bytes(i) ≤ n ↔ ~(2 ^ (8 * n→i(n))) ≤ i) A User Theorem
⊦ int2bytes(i).first = i2b(~1) → (# int2bytes(i) ≤ n ↔ ~(2 ^ (8 * n→i(n) - 1)) ≤ i) A User Theorem
⊦ 0 ≤ i ∧ int2bytes(i).first = i2b(0) → (# int2bytes(i) ≤ n ↔ i < 2 ^ (n→i(n) * 8 - 1)) A User Theorem
⊦ 0 ≤ i ∧ int2bytes(i).first ≠ i2b(0) → (n < # int2bytes(i) ↔ 2 ^ (n→i(n) * 8) ≤ i) A User Theorem
⊦ 0 ≤ i ∧ int2bytes(i).first = i2b(0) → (n < # int2bytes(i) ↔ 2 ^ (n→i(n) * 8)-1 ≤ i) A User Theorem
⊦ 0 ≤ i ∧ int2bytes(i).first ≠ i2b(0) → (# int2bytes(i) < n ↔ i < 2 ^ ((n→i(n) - 1) * 8)) A User Theorem
⊦ 0 ≤ i ∧ int2bytes(i).first = i2b(0) → (# int2bytes(i) < n ↔ i < 2 ^ ((n→i(n) - 1) * 8 - 1)) A User Theorem
⊦ i < 0 ∧ int2bytes(i).first ≠ i2b(~1) → (n < # int2bytes(i) ↔ i < ~(2 ^ (8 * n→i(n)))) A User Theorem
⊦ int2bytes(i).first = i2b(~1) → (n < # int2bytes(i) ↔ i < ~(2 ^ (8 * n→i(n) - 1))) A User Theorem
⊦ i < 0 ∧ int2bytes(i).first ≠ i2b(~1) → (# int2bytes(i) < n ↔ ~(2 ^ (8 * (n→i(n) - 1))) ≤ i) A User Theorem
⊦ int2bytes(i).first = i2b(~1) → (# int2bytes(i) < n ↔ ~(2 ^ (8 * (n→i(n) - 1) - 1)) ≤ i) A User Theorem
⊦ 0 ≤ i ∧ int2bytes(i).first ≠ i2b(0) → (# int2bytes(i) ≤ n ↔ i < 2 ^ (n→i(n) * 8)) A User Theorem
~(2 ^ (8 * (i + 1) - 1)) ≤ j, j ≤ ~(2 ^ (8 * i)), 0 ≤ i ⊦ # int2bytes(j) = i→n(i + 1) A User Theorem
~(2 ^ (8 * (i + 1))) < j, j < ~(2 ^ (8 * (i + 1) - 1)), 0 ≤ i ⊦ # int2bytes(j) = i→n(i + 2) A User Theorem
⊦ ~256 ≤ i ∧ i < ~128 → # int2bytes(i) = 2 A User Theorem
⊦ int2bytes(i) = by ' ↔ i = b2i(by) A User Theorem
⊦ # int2bytes(i) = 1 ↔ int2bytes(i) = i2b(i) ' A User Theorem
0 ≤ i, 2 ^ (8 * i) ≤ j, j < 2 ^ (8 * (i + 1) - 1) ⊦ # int2bytes(j) = i→n(i + 1) A User Theorem
0 ≤ i, 2 ^ (8 * (i + 1) - 1) ≤ j, j < 2 ^ (8 * (i + 1)) ⊦ # int2bytes(j) = i→n(i + 2) A User Theorem
⊦ int2bytes(~256) = i2b(~1) ' + i2b(0) ' A User Theorem
⊦ i = ~256 → int2bytes(i) = i2b(~1) ' + i2b(0) A User Theorem
⊦ int2bytes(i) = i2b(~1) ' ↔ i = ~1 A User Theorem
⊦ 0 ≤ i ∧ b2i(bytes.first) < 0 → int2bytes(i) ≠ bytes A User Theorem
⊦ 0 ≤ i → int2bytes(i) ≠ i2b(~1) ' + bytes A User Theorem
⊦ # int2bytes(i) = 1 → ~128 ≤ i ∧ i ≤ 127 A User Theorem
⊦ ¬ i ≤ 127 → # int2bytes(i) ≠ 1 A User Theorem
⊦ ¬ ~128 ≤ i → # int2bytes(i) ≠ 1 A User Theorem
⊦ int2bytes(i) = (~128 ≤ i ∧ i < 128 ⊃ i2b(i) ' ;(128 ≤ i ∧ i < 256 ⊃ i2b(0) ' + i2b(i - 256) ' ;(~256 < i ∧ i < ~128 ⊃ i2b(~1) ' + i2b(i) ' ;(i < ~256 ∧ i % 256 = 0 ⊃ int2bytes(i / 256) + int2bytes(i % 256).last ' ;(i < ~256 ∧ i % 256 ≠ 0 ⊃ int2bytes(i / 256 - 1) + int2bytes(i % 256).last ';int2bytes(i / 256) + int2bytes(i % 256).last ') ) ) ) ) A User Theorem
j < ~(2 ^ (i * 8)), 0 < i, j % 2 ^ (i * 8) = 0 ⊦ int2bytes(j) = int2bytes(j / 2 ^ (i * 8)) + fix(i→n(i + 1), int2bytes(j % 2 ^ (i * 8))).rest A User Theorem
j < ~(2 ^ (i * 8)), 0 < i, j % 2 ^ (i * 8) ≠ 0 ⊦ int2bytes(j) = int2bytes(j / 2 ^ (i * 8) - 1) + fix(i→n(i + 1), int2bytes(j % 2 ^ (i * 8))).rest A User Theorem
j < ~(2 ^ (i * 8)), 0 < i ⊦ int2bytes(j) = int2bytes((j - (2 ^ (i * 8) - 1)) / 2 ^ (i * 8)) + fix(i→n(i + 1), int2bytes(j % 2 ^ (i * 8))).rest A User Theorem
j < ~(2 ^ (i * 8 - 1)), 0 < i, j % 2 ^ (i * 8) = 0 ⊦ int2bytes(j) = int2bytes(j / 2 ^ (i * 8)) + fix(i→n(i + 1), int2bytes(j % 2 ^ (i * 8))).rest A User Theorem
j < ~(2 ^ (i * 8 - 1)), 0 < i, j % 2 ^ (i * 8) ≠ 0 ⊦ int2bytes(j) = int2bytes(j / 2 ^ (i * 8) - 1) + fix(i→n(i + 1), int2bytes(j % 2 ^ (i * 8))).rest A User Theorem
j < ~(2 ^ (i * 8 - 1)), 0 < i ⊦ int2bytes(j) = int2bytes((j - (2 ^ (i * 8) - 1)) / 2 ^ (i * 8)) + fix(i→n(i + 1), int2bytes(j % 2 ^ (i * 8))).rest A User Theorem
⊦ i < ~256 ∧ i % 256 = 0 → int2bytes(i) = int2bytes(i / 256) + int2bytes(i % 256).last ' A User Theorem
⊦ i < ~256 ∧ i % 256 ≠ 0 → int2bytes(i) = int2bytes(i / 256 - 1) + int2bytes(i % 256).last ' A User Theorem
255 < i ⊦ int2bytes(i) = int2bytes(i / 256) + int2bytes(i % 256).last ' A User Theorem
255 < i, i % 256 = 0 ⊦ int2bytes(i) = int2bytes(i / 256) + i2b(0) ' A User Theorem
255 < i, i % 256 < 128 ⊦ int2bytes(i) = int2bytes(i / 256) + int2bytes(i % 256) A User Theorem
255 < i, 128 ≤ i % 256 ⊦ int2bytes(i) = int2bytes(i / 256) + int2bytes(i % 256).rest A User Theorem
256 ≤ i ⊦ int2bytes(i) = int2bytes(i / 256) + fix(i→n(2), int2bytes(i % 256)).rest A User Theorem
2 ^ (i * 8) ≤ j, 0 < i ⊦ int2bytes(j) = int2bytes(j / 2 ^ (i * 8)) + fix(i→n(i + 1), int2bytes(j % 2 ^ (i * 8))).rest A User Theorem
⊦ i < ~128 ∨ 128 ≤ i → int2bytes(i) = int2bytes(i >> 8) + i2b(i) A User Theorem
⊦ i < ~ 128 → int2bytes(i) = int2bytes((i - 255) / 256) + int2bytes(i % 256).last ' A User Theorem
⊦ int2bytes(i) = i2b(0) ' ↔ i = 0 A User Theorem
⊦ bytes2int(int2bytes(i)) = i A User Theorem
⊦ bytes2int(fillsgn(n, int2bytes(i))) = i A User Theorem
⊦ 0 ≤ i → bytes2int(int2bytes(i)) = i A User Theorem
⊦ 1 < # int2bytes(i) → i i>> 8 = bytes2int(int2bytes(i).butlast) A User Theorem
⊦ int2bytes(bytes2int(bytes)) = bytes ∧ 1 < # bytes ∧ bytes.first = i2b(0) → b2i(bytes.rest.first) < 0 A User Theorem
⊦ 0 ≤ b2i(by) → int2bytes(i) ≠ i2b(0) ' + by ' + bytes A User Theorem
⊦ bytes ≠ [] ∧ bytes.first ≠ i2b(0) ∧ bytes.first ≠ i2b(~1) → int2bytes(bytes2int(bytes)) = bytes A User Theorem
⊦ 2 ≤ # bytes ∧ bytes.first = i2b(0) ∧ b2i(bytes.rest.first) < 0 → int2bytes(bytes2int(bytes)) = bytes A User Theorem
⊦ b2i(by) < 0 → int2bytes(i) ≠ i2b(~1) ' + by ' + bytes A User Theorem
⊦ int2bytes(bytes2int(bytes)) = bytes ∧ 1 < # bytes → ¬(bytes.first = i2b(0) ∧ bytes.rest.first = i2b(0)) A User Theorem
⊦ 1 < # int2bytes(i) → i >> 8 = bytes2int(int2bytes(i).butlast) A User Theorem
⊦ i→n(j) < # int2bytes(i) → i >> 8 * j = bytes2int(firstn(# int2bytes(i) - i→n(j), int2bytes(i))) A User Theorem
⊦ i >> 8 * j = bytes2int(firstn(# int2bytes(i), fillsgn(i→n(j) + # int2bytes(i), int2bytes(i)))) A User Theorem
⊦ i >> 8 = bytes2int(fillsgn(2, int2bytes(i)).butlast) A User Theorem
⊦ ¬(by = i2b(i i>> 24) ∧ by0 = i2b(i i>> 16) ∧ by1 = i2b(i i>> 8) ∧ by2 = i2b(i)) → fillsgn(4, int2bytes(i)) ≠ by ' + by0 ' + by1 ' + by2 ' A User Theorem
⊦ ¬(by0 = i2b(s2i(sho)) ∧ by = i2b(s2i(sho) i>> 8)) → fillsgn(2, int2bytes(s2i(sho))) ≠ by ' + by0 ' A User Theorem
⊦ fillsgn(2, int2bytes(s2i(sho))) = i2b(s2i(sho) i>> 8) + i2b(s2i(sho)) A User Theorem
⊦ i ∈short → fillsgn(2, int2bytes(i)) = i2b(i i>> 8) ' + i2b(i) A User Theorem
⊦ s2i(i2s(bytes2int(by ' + by0 '))) = bytes2int(by ' + by0 ') A User Theorem
⊦ ¬ 65536 ≤ bytes2int(by ' + by0 ') + s2i(sho) A User Theorem
⊦ 0 ≤ i → ¬ 32768 + i < bytes2int(by ' + by0 ') A User Theorem
⊦ ¬ 32768 < bytes2int(by ' + by0 ') A User Theorem