def le_add_left
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
31def le_add_left(+a: Nat, -x: Nat, +c: Nat, bound: Shape.LE(Nat.add(a, x), c)) -> Shape.LE(a, c):
32 match a c:
33 case 0n c:
34 Unit{}
35 case 1n+p 0n:
36 match bound:
37 case 1n+p 1n+q:
38 le_add_left(p, x, q, bound)
Uses (4)
Used by (7)
- bendtorch-core@0.1.0.0/src/tensor/reduction_PROOF:cursor_bounds
- bendtorch-core@0.1.0.0/src/tensor/reduction_PROOF:cursor_exact
- bendtorch-core@0.1.0.0/src/shape/construct_proofs:capacity_complete
- bendtorch-core@0.1.0.0/src/shape/construct_proofs:scale_fits
- bendtorch-core@0.1.0.0/src/tensor/axis_algebra:cursor_bound
- …