def sj_top

bend-collections-laws-math@1.0.0.0 · proofs/math/typed/w64sh.bend:407

import bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64sh.bend as W64sh
import Base
import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as C
import bend-collections-laws-math@1.0.0.0/spec/math/w64.bend as SW
import bend-collections-laws-math@1.0.0.0/src/math/w64.bend as X
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as WU
import bend-collections-laws-math@1.0.0.0/proofs/lib/nat.bend as N

407def sj_top(+l: U32, +h: U32, +k: Nat, +c: Bool, +hc: {Nat.is_le(64n, k) == c : Bool}) -> {SW.value(X.jam_pick(WU.U64{l, h}, k, c)) == SW.jam(C.high(k, val(l, h)), C.low(k, val(l, h))) : Nat}:
408  match c:
409    case True{}:
410      sj_big(l, h, k, hc)
411    case False{}:
412      sj_c(l, h, k, C.low(k, val(l, h)), {==}, N.not_le_lt(64n, k, hc))

Uses (14)

Used by (1)