def mod_one_go

bendtorch-core@0.1.0.0 · src/tensor/elementwise_walk_proof.bend:71

import bendtorch-core@0.1.0.0/src/tensor/elementwise_walk_proof.bend as ElementwiseWalkProof
import Base

71def mod_one_go(+n: Nat, +d: Nat) -> {Pair.snd(Nat, Nat, Nat.divmod.go(n, 0n, d, 0n)) == 0n : Nat}:
72  match n:
73    case 0n:
74      {==}
75    case 1n+np:
76      mod_one_go(np, 1n+d)

Uses (3)

Used by (1)