def small_fits
bend-collections-laws-math@1.0.0.0 · proofs/math/typed/u64int.bend:923
import bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int.bend as U64int
import Base
import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as C
923def small_fits(+x: Nat, +h: {Nat.is_le(x, 1n) == True{} : Bool}) -> {C.fits(64n, x) == True{} : Bool}:
924 match x:
925 case 0n:
926 {==}
927 case 1n:
928 {==}
929 case 2n+y:
930 Empty.absurd({C.fits(64n, 2n+y) == True{} : Bool}, true_ne_false(Equal.sym(Bool, False{}, True{}, h)))