def word_exact

bendtorch-core@0.1.0.0 · src/tensor/elementwise_parallel_proof.bend:431

import bendtorch-core@0.1.0.0/src/tensor/elementwise_parallel_proof.bend as ElementwiseParallelProof
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/word_conversion.bend as WordConversion

431def word_exact(+shape: Shape.Shape, +cursor: Nat, within: {Nat.is_le(cursor, Shape.elements(shape)) == True{} : Bool}) ->
432  {U32.to_nat(U32.from_nat(cursor)) == cursor : Nat}:
433  WordConversion.natural_word_exact(cursor, Shape.count(shape),
434    %Equal.sym(Nat, U32.to_nat(Shape.count(shape)), Shape.elements(shape), WordConversion.shape_count_exact(shape)) :
435      {Nat.is_le(cursor, _) == True{} : Bool}
436    within)

Uses (11)

Used by (1)