def packed_success
bendtorch-core@0.1.0.0 · src/tensor/transform_PROOF.bend:1935
import bendtorch-core@0.1.0.0/src/tensor/transform_PROOF.bend as TransformPROOF
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/tensor/transforms.bend as Transforms
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 Totality
1935def packed_success(+input: Shape.Shape, +axes: List<&2, U32>, +plan: Layout.Plan<input, axes>,
1936 pair: Core.Tensor<input> & Result<&2, &1, Transforms.Error, Core.Tensor<Layout.output(input, axes, plan)>>,
1937 -successful: {Totality.copy_succeeded(input, axes, plan, pair) == True{} : Bool}) ->
1938 Totality.PublicSuccess<input, Transforms.copy_pack(input, axes, plan, pair)>:
1939 (source, result) = pair
1940 match result:
1941 case Fail{error}:
1942 Totality.PublicSuccess{Empty.absurd({False{} == True{} : Bool}, Arith.clash(successful))}
1943 case Done{target}:
1944 Totality.PublicSuccess{{==}}