def initial_invariant

bendtorch-core@0.1.0.0 · src/tensor/core_PROOF.bend:920

import bendtorch-core@0.1.0.0/src/tensor/core_PROOF.bend as CorePROOF
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
import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise

920def initial_invariant(+operation: Elementwise.Operation, +plan: Shape.BroadcastPlan,
921  -left: Core.Dynamic, -right: Core.Dynamic, -output: Core.Tensor<Shape.output_shape(plan)>) ->
922  Elementwise.InvariantModel<operation, plan, left, right, 0n, Elementwise.State{left, right, output}>:
923  Elementwise.InvariantModel{(other => {==}, (other => {==}, other => bound =>
924    Empty.absurd(Core.ObservationChecked(Core.Packed{Shape.output_shape(plan), output}, other) &
925      {Core.observe(Shape.output_shape(plan), output, other) == Elementwise.expected(operation, plan, left, right, other) : Maybe<&2, F32>}, lt_zero(U32.to_nat(other), bound))))}

Uses (17)

Used by (1)