| # bytes = # int2bytes(bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255)), ∀ bytes0. # bytes0 < # bytes → true → # bytes0 = # int2bytes(bytes2int(bytes0)) → bytes0 = int2bytes(bytes2int(bytes0)) ⊦ bytes = int2bytes(bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255)), # bytes = 1, bytes = [] |
255 < i ⊦ int2bytes(i) = int2bytes(i / 256) + int2bytes(i % 256).last '
¬ 255 < bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255), # bytes = # int2bytes(bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255)), ∀ bytes0. # bytes0 < # bytes → true → # bytes0 = # int2bytes(bytes2int(bytes0)) → bytes0 = int2bytes(bytes2int(bytes0)) ⊦ bytes = int2bytes(bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255)), # bytes = 1, bytes = []
255 < bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255), # bytes = # ( int2bytes((bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255)) / 256) + int2bytes((bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255)) % 256).last '), ∀ bytes0. # bytes0 < # bytes → true → # bytes0 = # int2bytes(bytes2int(bytes0)) → bytes0 = int2bytes(bytes2int(bytes0)) ⊦ bytes = int2bytes((bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255)) / 256) + int2bytes((bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255)) % 256).last ', # bytes = 1, bytes = []
Used terms: bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255)