def output_success
bendtorch-core@0.1.0.0 · src/tensor/elementwise_PROOF.bend:854
import bendtorch-core@0.1.0.0/src/tensor/elementwise_PROOF.bend as ElementwisePROOF
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/storage/main.bend as Storage
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise
import bendtorch-core@0.1.0.0/src/tensor/elementwise_totality.bend as Totality
854def output_success(+operation: Elementwise.Operation, +plan: Shape.BroadcastPlan, +depth: Nat, +length: Nat,
855 -valid: {Storage.bounds(depth, length) == True{} : Bool},
856 -exact: {length == Shape.logical_numel(Shape.dimensions(Shape.output_shape(plan))) : Nat},
857 taken_left: Core.Dynamic & Array<F32>, taken_right: Core.Dynamic & Array<F32>) ->
858 Totality.Success<Elementwise.parallel_output(operation, plan, depth, length, valid, exact, taken_left, taken_right)>:
859 (kept_left, la) = taken_left
860 (kept_right, ra) = taken_right
861 Totality.Success{{==}}