def step_write_success
bendtorch-core@0.1.0.0 · src/tensor/elementwise_PROOF.bend:653
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/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/storage/arith.bend as Arith
import bendtorch-core@0.1.0.0/src/tensor/transform_totality.bend as TransformTotality
653def step_write_success(-shape: Shape.Shape, left: Core.Dynamic, right: Core.Dynamic,
654 pair: Core.Tensor<shape> & Result<&2, &2, Core.Error, Unit>,
655 -successful: {TransformTotality.write_succeeded(shape, pair) == True{} : Bool}) -> StepSuccess<shape, Elementwise.step_write(shape, left, right, pair)>:
656 (output, result) = pair
657 match result:
658 case Fail{error}:
659 StepSuccess{Empty.absurd({False{} == True{} : Bool}, Arith.clash(successful))}
660 case Done{unit}:
661 StepSuccess{{==}}