def eq_add_cancel

bendtorch-core@0.1.0.0 · src/storage/api.bend:174

import bendtorch-core@0.1.0.0/src/storage/api.bend as Api
import Base

174def eq_add_cancel(+c: Nat, +x: Nat, +y: Nat) -> {Nat.is_eq(x, y) == Nat.is_eq(Nat.add(c, x), Nat.add(c, y)) : Bool}:
175  match c:
176    case 0n:
177      {==}
178    case 1n+r:
179      eq_add_cancel(r, x, y)

Uses (4)

Used by (1)