law mapping_valid_success
bendtorch-core@0.1.0.0 · src/tensor/transform_LAWS.bend:395
import bendtorch-core@0.1.0.0/src/tensor/transform_LAWS.bend as TransformLAWS
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/transform_totality.bend as Totality
395law mapping_valid_success:
396 for +input: Shape.Shape
397 for +axes: List<&2, U32>
398 for +plan: Layout.Plan<input, axes>
399 for +index: U32
400 for +inside: {True{} == U32.is_lt(index, Shape.count(Layout.output(input, axes, plan))) : Bool}
401 Totality.MappingSuccess<input, axes, plan, index>