Common roots of group elements with coprime integer exponents #
Let a and b be commuting elements of a group with a ^ m = b ^ n, and let m * s + n * t = 1.
Then c = b ^ s * a ^ t satisfies c ^ m = b and c ^ n = a, and it is the only element that
does. No condition on the order of the group or of a and b is needed. This is what
distinguishes the statement from Mathlib's powCoprime, which inverts x ↦ x ^ k for k coprime
to the order of a finite group.
This is the identity that makes the output of the algorithm in Theorem 10.6 of [BS23]
("Shamir's trick", p. 416) correct, in any group: from w ^ e = y ^ f for units w, y modulo
n and coprime e, f, that algorithm computes the e-th root y ^ s * w ^ t of y, where
e * s + f * t = 1, without knowing the order of (ℤ/nℤ)ˣ. The algorithm on encoded inputs and
its running time are not part of this file.
The characterization Commute.zpow_eq_zpow_iff_of_isCoprime is the counterpart, for groups and
integer exponents, of Mathlib's Commute.pow_eq_pow_iff_of_coprime for groups with zero and
natural exponents. Integer exponents matter in the applications: Bézout coefficients have mixed
signs, and the book applies the result with a possibly negative exponent.
Main results #
Commute.zpow_mul_zpow_zpow_eq_right,Commute.zpow_mul_zpow_zpow_eq_left: for commutinga,bwitha ^ m = b ^ nandm * s + n * t = 1,(b ^ s * a ^ t) ^ m = band(b ^ s * a ^ t) ^ n = a.eq_zpow_mul_zpow_of_zpow_eq: ifc ^ m = b,c ^ n = aandm * s + n * t = 1, thenc = b ^ s * a ^ t, with no commutativity hypothesis.Commute.zpow_eq_zpow_iff_of_isCoprime,zpow_eq_zpow_iff_of_isCoprime: for coprimem,nand commutinga,b(or in a commutative group),a ^ m = b ^ nif and only ifaandbare then-th andm-th powers of one element.
Each has an additive version generated by to_additive.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Theorem 10.6, p. 416.
If c ^ m = b, c ^ n = a and m * s + n * t = 1, then c = b ^ s * a ^ t. In particular
an element with these two powers is unique, and b ^ s * a ^ t does not depend on the choice of
s and t. No commutativity hypothesis is needed.
If m • c = b, n • c = a and m * s + n * t = 1, then c = s • b + t • a.
In particular an element with these two multiples is unique, and s • b + t • a does not depend
on the choice of s and t.
For commuting a, b and coprime integers m, n, a ^ m = b ^ n if and only if a and
b are the n-th and m-th powers of one element. This is the group, integer-exponent
counterpart of Commute.pow_eq_pow_iff_of_coprime.
For commuting a, b and coprime integers m, n, m • a = n • b if and
only if a and b are the n-th and m-th multiples of one element.
In a commutative additive group, for coprime integers m, n, m • a = n • b
if and only if a and b are the n-th and m-th multiples of one element.