Bitset.wordix: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/containers/bitset.bend as Bitset Lines 127-132 of bend-collections@1.0.0.0/src/containers/bitset.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/containers/bitset.bend&start_line=127&end_line=132 import Base # The word index of bit i and the bit position inside that word. Base's # Nat.div / Nat.mod are structural definitions the proofs can peel 32 steps # at a time (proofs/bitset/index.bend) and the native backend evaluates in # constant time. def wordix(i: Nat) -> Nat: Nat.div(i, 32n) Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.div