law idx_up

lawful-bytes@0.1.1.0 · proof_fast_append.bend:380

import lawful-bytes@0.1.1.0/proof_fast_append.bend as ProofFastAppend
import Base

380# Index 4w + x for x >= 4 is index 4(w + 1) + (x - 4).
381law idx_up:
382  for +w: Nat
383  for +x: Nat
384  for +h: {Nat.is_le(4n, x) == True{} : Bool}
385  {Nat.add(Nat.mul(w, 4n), x) == Nat.add(Nat.mul(1n+w, 4n), Nat.sub(x, 4n)) : Nat}

Uses (9)

Used by (1)