def owned_status
bendtorch-core@0.1.0.0 · src/tensor/reduction_PROOF.bend:480
import bendtorch-core@0.1.0.0/src/tensor/reduction_PROOF.bend as ReductionPROOF
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/reduction.bend as Reduction
import bendtorch-core@0.1.0.0/src/tensor/math_totality.bend as Totality
import bendtorch-core@0.1.0.0/src/storage/main.bend as Storage
import bendtorch-core@0.1.0.0/src/storage/model.bend as Model
480def owned_status(-shape: Shape.Shape, +depth: Nat, +length: Nat, -original: Array<F32>, -balanced: Model.Balanced(F32, depth, original),
481 -valid: {Storage.bounds(depth, length) == True{} : Bool},
482 -exact: {length == Shape.logical_numel(Shape.dimensions(shape)) : Nat},
483 pair: F32 & Array<F32>, -kept: Reduction.Fact<{Pair.snd(F32, Array<F32>, pair) == original : Array<F32>}>) ->
484 Totality.Status<Core.Error, Core.Tensor<shape> & F32, Reduction.owned_sum(shape, depth, length, original, balanced, valid, exact, pair, kept)>:
485 (value, retained) = pair
486 Totality.Status{{==}}