def LE.from
import bendtorch-core@0.1.0.0/src/shape/core.bend as Coreimport Base
542# The rewrite is erased at runtime, so a decided bound costs one comparison
543# instead of a unary walk to 2^20.
544def LE.from(+a: Nat, +b: Nat, decided: {True{} == Nat.is_le(a, b) : Bool}) -> LE(a, b):
545 %LE.decided(a, b, decided) : _
546 Unit{}
Uses (6)
Used by (8)
- bendtorch-core@0.1.0.0/src/shape/construct_proofs:construction_complete
- bendtorch-core@0.1.0.0/src/shape/core:construct.ranked
- bendtorch-core@0.1.0.0/src/autograd/reduce_PROOF:length_decided
- bendtorch-core@0.1.0.0/src/shape/core:construct.bound
- bendtorch-core@0.1.0.0/src/tensor/construction_PROOF:allocated_fill_success
- …