Theorems · Definition · commutative algebra
EuclideanDomain.xgcdAux
{R : Type u} → [EuclideanDomain R] → [DecidableEq R] → R → R → R → R → R → R → R × R × RAn implementation of the extended GCD algorithm.
At each step we are computing a triple (r, s, t), where r is the next value of the GCD
algorithm, to compute the greatest common divisor of the input (say x and y), and s and t
are the coefficients in front of x and y to obtain r (i.e. r = s * x + t * y).
The function xgcdAux takes in two triples, and from these recursively computes the next triple:
``
xgcdAux (r, s, t) (r', s', t') = xgcdAux (r' % r, s' - (r' / r) * s, t' - (r' / r) * t) (r, s, t)
``
- Defined in
- Mathlib.Algebra.EuclideanDomain.Defs
- Cited by
- 7 results in Mathlib
- Foundations
- Depth 14 from the axioms · uses no axioms
- Assumes
- EuclideanDomainDecidableEq
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites1
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- EuclideanDomainstatement and proof · cited by 124
Cited by8
Results whose statement or proof uses this declaration.
- EuclideanDomain.xgcd_zero_leftstatement · cited by 4
- EuclideanDomain.xgcdproof · cited by 2
- EuclideanDomain.xgcdAux_recstatement and proof · cited by 2
- EuclideanDomain.gcd_eq_gcd_abproof · cited by 2
- EuclideanDomain.xgcdAux_Pstatement and proof · cited by 1
- EuclideanDomain.xgcdAux_fststatement and proof · cited by 1
- EuclideanDomain.xgcdAux_valstatement and proof · cited by 1
- EuclideanDomain.xgcdAux.eq_defstatement · cited by 1