WordPowerOfTwo.power: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/proofs/word_power_of_two.bend as WordPowerOfTwo Lines 6-15 of stelliferous@0.0.2.0/proofs/word_power_of_two.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/proofs/word_power_of_two.bend&start_line=6&end_line=15 import Base def power(+width: Nat,depth: Nat) -> Word(width): match width: case 0n: WNil{} case 1n+rest: match depth: case 0n: WCon{True{},Word.zero(rest)} case 1n+previous: WCon{False{},power(rest,previous)} Uses (6): 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=Word https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.zero