def last
import bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/src/wide.bend as Wideimport Base
17def last(n: Nat, w: Word(n)) -> Bool:
18 match n:
19 case 0n:
20 False{}
21 case 1n+0n:
22 match w:
23 case WCon{b, tail}:
24 b
25 case 1n+1n+p:
26 match w:
27 case WCon{b, tail}:
28 last(1n+p, tail)
Uses (4)
Used by (15)
- bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/proofs/division_no_overflow:decoded_high
- bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/proofs/division_no_overflow:discarded
- bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/proofs/division_no_overflow:double_value
- bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/proofs/division_no_overflow:high_monotone
- bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/src/wide:le
- …