bezout_step
std.elementwise.bezout_step · Level L4One step of the extended Euclidean algorithm on each pair: where r1 is above 0, with q = ⌊r0 / r1⌋, each of the pairs (r0, r1), (s0, s1), (t0, t1) becomes (second, first − q·second); a finished pair stays. The body that bezout runs.
Signature
bezout_step(r0: i64[n], r1: i64[n], s0: i64[n], s1: i64[n], t0: i64[n], t1: i64[n]) → i64[n], i64[n], i64[n], i64[n], i64[n], i64[n]
Structure
The function as NOVA stores it: one box per input, operation and output, and arrows that carry values. A double border marks another library function this one runs — called once, or by Scan once per element; select it to open that function.
- input
- operation
- constant
- call
- output
Verification
- Signature proven by NOVA’s shape solver, for every size.
- Equal to the reference
q = r0 // r1; (r1, r0 - q*r1), (s1, s0 - q*s1), (t1, t0 - q*t1) where r1 > 0in exact rational arithmetic, on all 40 test cases. - All 798 int64 results are exact: the error is zero.
- Interpreter and NumPy backend return bit-identical results.
- At float32 too: the 40 test cases rounded to float32, and 40 of them exact, with zero error.
- correctly rounded (the int64 nearest the exact value)
- 100%
- bit-equal to the NumPy formula in int64
- 100%
- largest error, in units in the last place
- 0
Identity
sha256:f4a3d938bc7aba0b42104d65c510b7443056d603d8180956701c8aa02c48c6dcThe semantic hash of the graph. It changes when the program changes, and never when only its documentation does.
Control handle
- Symbol
- Ω:std.elementwise.bezout_step · Ω:bezout_step
- Pins
sha256:efeab366316af919d6c93bdc32654227696be3aac4ce793aeb634f30d2e87153this graph alone- Evidence
sha256:3b459c0d5c564889c516f01c179e638f13a71e9127df4a749d7ab4b08af66f78the hash of its verification record- Needs
- no capability: a pure function
Through NOVA’s control layer, the symbol launches this function only while the program still matches what it pins: a change to this graph, or to any graph it reaches, needs a migration first.