def natural_converted_certificate

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

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/elementwise.bend as Elementwise

661def natural_converted_certificate(+operation: Elementwise.Operation, +plan: Shape.BroadcastPlan, +cursor: Nat,
662  -original: Elementwise.State<Shape.output_shape(plan)>,
663  certificate: Elementwise.ConvertedCertificate<operation, plan, cursor, U32.from_nat(cursor), Shape.bool_case(Nat.is_eq(U32.to_nat(U32.from_nat(cursor)), cursor)), original>) ->
664  Elementwise.NaturalCertificate<operation, plan, cursor, original>:
665  Elementwise.ConvertedCertificate{result, exact, meaning} = certificate
666  Elementwise.NaturalCertificate{result, exact, meaning}

Uses (11)

Used by (1)