def go_double

bend-collections-laws-math@1.0.0.0 · proofs/math/pow2/pow2.bend:8

import bend-collections-laws-math@1.0.0.0/proofs/math/pow2/pow2.bend as Pow2
import Base
import bend-collections-laws-math@1.0.0.0/src/math/pow2.bend as P

8def go_double(+d: Nat, +acc: Nat) -> {P.go(d, Nat.double(acc)) == Nat.double(P.go(d, acc)) : Nat}:
9  match d:
10    case 0n:
11      {==}
12    case 1n+ +p:
13      go_double(p, Nat.double(acc))

Uses (3)

Used by (1)