def cursor_validity
bendtorch-core@0.1.0.0 · src/tensor/core_PROOF.bend:281
import bendtorch-core@0.1.0.0/src/tensor/core_PROOF.bend as CorePROOF
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise
281def cursor_validity(-shape: Shape.Shape, +cursor: Nat, result: Elementwise.NaturalStep<shape, cursor>) ->
282 Elementwise.CursorValidity(shape, cursor, result):
283 match result:
284 case Elementwise.NaturalStop{left, right, error}:
285 Unit{}
286 case Elementwise.NaturalContinue{state, index, exact}:
287 Elementwise.CursorWitness{exact}