Numeric.bit_value: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/spec/lib/numeric.bend as Numeric Lines 8-15 of bend-collections-laws-math@1.0.0.0/spec/lib/numeric.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/spec/lib/numeric.bend&start_line=8&end_line=15 import Base # Independent mathematical interpretation. Nat here is a specification value; # no public executable conversion of a 64-bit number through Nat is required. def bit_value(b: Bool) -> Nat: match b: case False{}: 0n case True{}: 1n Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat