def sub_big
bend-collections-laws-math@1.0.0.0 · proofs/math/typed/fix32.bend:122
import bend-collections-laws-math@1.0.0.0/proofs/math/typed/fix32.bend as Fix32
import Base
import bend-collections-laws-math@1.0.0.0/proofs/lib/logic.bend as L
import bend-collections-laws-math@1.0.0.0/proofs/math/natural/arith.bend as R
122def sub_big(+n: Nat, +d: Nat, +h: {Nat.is_le(n, d) == True{} : Bool}) -> {Nat.sub(n, d) == 0n : Nat}:
123 match n d:
124 case 0n _:
125 R.zsub(d)
126 case 1n+np 0n:
127 Empty.absurd({Nat.sub(1n+np, 0n) == 0n : Nat}, L.false_true(h))
128 case 1n+ +np 1n+ +dp:
129 sub_big(np, dp, h)