def word_outside
bendtorch-core@0.1.0.0 · src/tensor/read_contract.bend:24
import bendtorch-core@0.1.0.0/src/tensor/read_contract.bend as ReadContract
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
24def word_outside(+shape: Shape.Shape, +index: U32, outside: {Nat.is_lt(U32.to_nat(index), Shape.logical_numel(Shape.dimensions(shape))) == False{} : Bool}) ->
25 {Nat.is_lt(U32.to_nat(index), U32.to_nat(Shape.count(shape))) == False{} : Bool}:
26 %Equal.sym(Nat, U32.to_nat(Shape.count(shape)), Shape.logical_numel(Shape.dimensions(shape)), count_exact(shape)) : {Nat.is_lt(U32.to_nat(index), _) == False{} : Bool}
27 outside