def impl_up64

bend-collections-laws-math@1.0.0.0 · proofs/math/typed/w64isq.bend:63

import bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64isq.bend as W64isq
import Base
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

63def impl_up64(+fuel: Nat, +n: WU.U64, +r: U32, +up: Bool) -> {X.up64(fuel, n, r, up) == up64g(fuel, n, r, up, 4294967295) : U32}:
64  match fuel up:
65    case 0n _:
66      {==}
67    case 1n+ +f False{}:
68      {==}
69    case 1n+ +f True{}:
70      impl_up64(f, n, U32.add(r, 1), X.up64_ok(n, U32.add(r, 1)))

Uses (8)

Used by (1)