| ∀ by. by ∈ bytes → b2i(by) = 0, ∀ bytes0. # bytes0 < # bytes → (∀ by. by ∈ bytes0 → b2i(by) = 0) → bytes2int(bytes0) = 0 ∨ bytes0 = [] ⊦ bytes = [], bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255) = 0, # bytes = 1 |
∀ by. by ∈ bytes → b2i(by) = 0, ∀ bytes0. # bytes0 < # bytes → (∀ by. by ∈ bytes0 → b2i(by) = 0) → bytes2int(bytes0) = 0 ∨ bytes0 = [] ⊦ ∀ by. by ∈ bytes.butlast → b2i(by) = 0, bytes = [], bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255) = 0, # bytes = 1
bytes2int(bytes.butlast) = 0 ∨ bytes.butlast = [], ∀ by. by ∈ bytes → b2i(by) = 0, ∀ bytes0. # bytes0 < # bytes → (∀ by. by ∈ bytes0 → b2i(by) = 0) → bytes2int(bytes0) = 0 ∨ bytes0 = [] ⊦ bytes = [], bytes2int(bytes.butlast) * 256 + band(b2i(bytes.last), 255) = 0, # bytes = 1
Used simplifier rules: ⊦ bytes ≠ [] → # bytes.butlast = # bytes - 1;% ⊦ # bytes = 0 ↔ bytes = [];% ⊦ m < 1 ↔ m = 0;% ⊦ ¬ m ≤ n ↔ n < m;%n0 ≤ n ⊦ n - n0 < m ↔ n < m + n0;% ⊦ m < n + 1 ↔ ¬ n < m;% ⊦ ¬ n < n;% ⊦ (m + n0) + n1 = m + n0 + n1;% ⊦ m + n = n + m; Used terms: bytes.butlast