def span_one

bendtorch-core@0.1.0.0 · src/autograd/reduce_parallel_proof.bend:386

import bendtorch-core@0.1.0.0/src/autograd/reduce_parallel_proof.bend as ReduceParallelProof
import Base
import bendtorch-core@0.1.0.0/src/storage/arith.bend as Arith
import bendtorch-core@0.1.0.0/src/autograd/reduce.bend as Reduce

386def span_one(+left: Nat, +extent: Nat, +single: {Nat.is_eq(Reduce.span(left, extent), 1n) == True{} : Bool}) ->
387  {Reduce.span(left, extent) == 1n : Nat}:
388  Arith.eq_true(Reduce.span(left, extent), 1n, single)

Uses (5)

Used by (2)