Fixed-width packed W-bit word lanes #
A natural-number word packs consecutive W-bit lanes in little-endian order, with lane j
extracted via (word >>> (j * W)) &&& (2 ^ W - 1) (laneGet). This module provides the shared
pure Nat bitwise/radix laws for laneGet used by packed SWAR search trees and character tries:
division-and-modulus and bit-level characterizations, lane extensionality, base-2 ^ W expansion
of bounded words (word_eq_sum_laneGet), and bounded-word digit injectivity
(eq_of_forall_laneGet_eq_of_lt). These are pure natural-number identities and make no machine
word-width or runtime claims.
Main definitions #
Cslib.DataStructure.laneGet: extract theW-bit lane at indexjfromword.
Main results #
Cslib.DataStructure.laneGet_eq_div_mod,Cslib.DataStructure.laneGet_lt,Cslib.DataStructure.testBit_laneGet: arithmetic, range, and bit characterizations oflaneGet.Cslib.DataStructure.laneGet_sum_mul_pow,Cslib.DataStructure.word_eq_sum_laneGet: lane extraction of base-2 ^ Wsums and base-2 ^ Wexpansion of bounded words.Cslib.DataStructure.eq_of_forall_laneGet_eq,Cslib.DataStructure.eq_of_forall_laneGet_eq_of_lt: unbounded and bounded-word lane extensionality.