def lt_true
import bendtorch-core@0.1.0.0/src/shape/nat_proofs.bend as NatProofsimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
20def lt_true(+a: Nat, +b: Nat, bound: Shape.LT(a, b)) -> {True{} == Nat.is_lt(a, b) : Bool}:
21 match a b:
22 case 0n 0n:
23 match bound:
24 case 0n 1n+q:
25 {==}
26 case 1n+p 0n:
27 match bound:
28 case 1n+p 1n+q:
29 lt_true(p, q, bound)
Uses (4)
Used by (11)
- bendtorch-core@0.1.0.0/src/shape/coordinate_proofs:fit_indices
- bendtorch-core@0.1.0.0/src/shape/flat:left_bound
- bendtorch-core@0.1.0.0/src/shape/flat:right_bound
- bendtorch-core@0.1.0.0/src/tensor/elementwise_parallel_proof:allocated_mapping
- bendtorch-core@0.1.0.0/src/autograd/broadcast_PROOF:output_inside
- …