def ToBytes.be
import bend-collections-laws-math@1.0.0.0/spec/math/fixed.bend as Fixedimport Base
import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as C
226def ToBytes.be(~T: Data, ~val: T -> Nat, ~f: @+x: T -> List<&2, U32>, +nb: Nat, +a: T) -> Type:
227 {nats(f(a)) == C.reverse(Nat, le_digits(nb, val(a))) : List<&2, Nat>}