Word.to_nat: def of Base Import: import Base Lines 1434-1443 of Base/base.bend: https://jend.leeeet.dev/read.txt?path=Base/base.bend&start_line=1434&end_line=1443 import Base def Word.to_nat(n: Nat, w: Word(n)) -> Nat: match n: case 0n: 0n case 1n+p: match w: case WCon{False{}, t}: Nat.double(Word.to_nat(p, t)) case WCon{True{}, t}: 1n+Nat.double(Word.to_nat(p, t)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.double https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con