def successful_loop_certificate
bendtorch-core@0.1.0.0 · src/tensor/core_PROOF.bend:1002
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
1002def successful_loop_certificate(+operation: Elementwise.Operation, +plan: Shape.BroadcastPlan,
1003 -left: Core.Dynamic, -right: Core.Dynamic, -output: Core.Tensor<Shape.output_shape(plan)>,
1004 certificate: Elementwise.LoopCertificate<Shape.logical_numel(Shape.dimensions(Shape.output_shape(plan))), operation, plan, 0n, left, right, Elementwise.State{left, right, output}>) ->
1005 Elementwise.MappingModel<operation, plan, left, right,
1006 Elementwise.loop(Shape.logical_numel(Shape.dimensions(Shape.output_shape(plan))), operation, plan, 0n, Elementwise.State{left, right, output})>:
1007 Elementwise.LoopCertificate{result, exact, meaning} = certificate
1008 Elementwise.MappingModel{
1009 %exact : Elementwise.SuccessfulMapping(operation, plan, left, right, _)
1010 {\{Elementwise.MappingModel: mapping => mapping} : Elementwise.MappingModel<operation, plan, left, right, result> ->
1011 Elementwise.SuccessfulMapping(operation, plan, left, right, result)}(successful_pair_mapping(operation, plan, left, right, result, meaning))}