BinaryDigit.word_digit: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/proofs/binary_digit.bend as BinaryDigit Lines 5-10 of stelliferous@0.0.2.0/proofs/binary_digit.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/proofs/binary_digit.bend&start_line=5&end_line=10 import Base import stelliferous@0.0.2.0/proofs/u32_comparison.bend as Comparison def word_digit(+n: Nat,+bit: Bool,+w: Word(n)) -> {Word.to_nat(1n+n,WCon{bit,w}) == Comparison.digit(bit,Word.to_nat(n,w)) : Nat}: match bit: case False{}: {==} case True{}: {==} 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.to_nat https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/u32_comparison.bend&name=digit