ProofNat.bn: def of lawful-words@0.1.0.0 Import: import lawful-words@0.1.0.0/proof_nat.bend as ProofNat Lines 91-97 of lawful-words@0.1.0.0/proof_nat.bend: https://jend.leeeet.dev/read.txt?path=lawful-words@0.1.0.0/proof_nat.bend&start_line=91&end_line=97 import Base # A Bool as a number: 0 or 1. def bn(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