Proof.res_val: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/proofs/math/natural/proof.bend as Proof Lines 25-31 of bend-collections-laws-crypto@1.0.0.0/proofs/math/natural/proof.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/math/natural/proof.bend&start_line=25&end_line=31 import Base import bend-collections-laws-crypto@1.0.0.0/src/math/natural.bend as M # the value of a successful result, 0 on an error def res_val(r: Result<&2, &2, M.MathError, Nat>) -> Nat: match r: case Done{x}: x case Fail{e}: 0n Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/natural.bend&name=MathError