def shr_value
import bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/w64sh.bend as W64shimport Base
import bend-collections-laws-crypto@1.0.0.0/spec/math/w64.bend as SW
import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as WU
198def shr_value(+a: WU.U64, +k: Nat) -> SW.Shr.value(a, k):
199 match a:
200 case WU.U64{+l, +h}:
201 shr_c(l, h, k, Nat.is_lt(k, 32n), {==})