def fits_hi
bend-collections-laws-crypto@1.0.0.0 · proofs/math/typed/w64m128.bend:51
import bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/w64m128.bend as W64m128
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/logic.bend as L
import bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/width.bend as WW
51def fits_hi(+s: Nat, +h: {C.fits(65n, s) == True{} : Bool}) -> {C.fits(1n, C.high(64n, s)) == True{} : Bool}:
52 L.subst(Nat, z => {Nat.is_eq(z, 0n) == True{} : Bool}, C.high(Nat.add(64n, 1n), s), C.high(1n, C.high(64n, s)), WW.high_comp(1n, 64n, s), h)