def of48_h
import bend-collections-laws-math@1.0.0.0/src/math/w64.bend as W64import Base
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as W
709# the words of g < 2^64 from h = g div 2^32 (two divisions by 2^16, so no
710# closed 2^32 appears: the proof checker would expand it in unary)
711def of48_h(+g: Nat, +h: Nat) -> W.U64:
712 W.U64{U32.from_nat(Nat.sub(g, Nat.mul(Nat.mul(h, 65536n), 65536n))), U32.from_nat(h)}