def PrefixInvariant
bendtorch-core@0.1.0.0 · src/tensor/elementwise.bend:558
import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise
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
558def PrefixInvariant(+operation: Operation, +plan: Shape.BroadcastPlan,
559 -left: Core.Dynamic, -right: Core.Dynamic, +next: Nat, -output: Core.Dynamic) -> Type:
560 @+index: U32 -> @earlier: Shape.LT(U32.to_nat(index), next) ->
561 Core.ObservationChecked(output, index) &
562 {Core.observe_dynamic(output, index) == expected(operation, plan, left, right, index) : Maybe<&2, F32>}