UniqueProofs.sum_zero: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/shape/unique_proofs.bend as UniqueProofs Lines 41-46 of bendtorch-core@0.1.0.0/src/shape/unique_proofs.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/shape/unique_proofs.bend&start_line=41&end_line=46 import Base def sum_zero(+a: Nat, -b: Nat, equal: {Nat.add(a, b) == 0n : Nat}) -> {a == 0n : Nat}: match a: case 0n: {==} case 1n+p: Empty.absurd({1n+p == 0n : Nat}, succ_zero(Nat.add(p, b), equal)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Empty.absurd https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/unique_proofs.bend&name=succ_zero