def word_inside

bendtorch-core@0.1.0.0 · src/tensor/construction_contract_PROOF.bend:38

import bendtorch-core@0.1.0.0/src/tensor/construction_contract_PROOF.bend as ConstructionContractPROOF
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape

38def word_inside(+shape: Shape.Shape, +index: U32,
39  inside: {Nat.is_lt(U32.to_nat(index), Shape.logical_numel(Shape.dimensions(shape))) == True{} : Bool}) ->
40  {Nat.is_lt(U32.to_nat(index), U32.to_nat(Shape.count(shape))) == True{} : Bool}:
41  %Equal.sym(Nat, U32.to_nat(Shape.count(shape)), Shape.logical_numel(Shape.dimensions(shape)), count_exact(shape)) :
42    {Nat.is_lt(U32.to_nat(index), _) == True{} : Bool}
43  inside

Uses (11)

Used by (2)