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



View long theorem info. View the proof. 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,

Proof step 33 from proof int2bytes-leading-zeros (previous step)

int2bytes(i % 256).last = i2b(0), int2bytes(i / 256) = i2b(0) ', 255 < i, 0 ≤ i, 0 < i, ∀ bytes, i0. i→n(i0) < i→n(i) → int2bytes(i0) = i2b(0) ' + i2b(0) ' + bytes ∧ 0 ≤ i0 → false ⊦

User applied rule insert elim lemma

And obtained the following new goals

Rule argument

seq: bytes ≠ [] ⊦ by = bytes.last ∧ bytes0 = bytes.butlast ↔ bytes = bytes0 + by ' subst: [bytes, by, bytes0] → [int2bytes(i % 256), by, bytes0] rotate: T spec: list-last inst: bytelist name: last-elim

Additional information

Used simplifier rules: int2bytes-empty: ⊦ int2bytes(i) ≠ [];%bytes ≠ [] ⊦ by = bytes.last ∧ bytes0 = bytes.butlast ↔ bytes = bytes0 + by '; (elim) Used terms: int2bytes(i % 256), by, bytes0