Number.BitCount.value: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/spec/math/number.bend as Number Lines 28-30 of bend-collections-laws-math@1.0.0.0/spec/math/number.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/spec/math/number.bend&start_line=28&end_line=30 import Base import bend-collections-laws-math@1.0.0.0/src/math/number.bend as NB # every n is below 2^n, so ones(n, n) counts all of n's 1 bits def BitCount.value(+n: Nat) -> Type: {NB.bit_count(n) == ones(n, n) : Nat} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/spec/math/number.bend&name=ones https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/number.bend&name=bit_count