Number.eg_gcd: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/spec/math/number.bend as Number Lines 32-36 of bend-collections-laws-math@1.0.0.0/spec/math/number.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/spec/math/number.bend&start_line=32&end_line=36 import Base import bend-collections-laws-math@1.0.0.0/src/math/number.bend as NB # the gcd of the extended algorithm is the proved reference's def eg_gcd(r: NB.EGcd) -> Nat: match r: case NB.EG{g, x, y, neg}: g Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/number.bend&name=EGcd