Separating tuples of roots of unity with geometric weights #
Distances between distinct complex ellth roots of unity are bounded below using the
vanishing geometric sum. A coefficient polynomial of the difference of two tuples then has
a bounded Cauchy radius, so evaluation at a sufficiently large integer distinguishes the tuples.
Adapted from UnityRootSeparation and UnityWeightedSum in lean-canny at
970f28a5ecefc1327402ade16c068aa4b1b2c183, reusing the contraction power estimate.
theorem Complex.eq_of_weighted_sum_eq_of_pow_eq_one {ell R n : ℕ} (hell : ell ≠ 0) (hR : 2 * ell + 1 ≤ R) {z w : Fin n → ℂ} (hz : ∀ (i : Fin n), z i ^ ell = 1) (hw : ∀ (i : Fin n), w i ^ ell = 1) (hsum : ∑ i : Fin n, ↑R ^ ↑i * z i = ∑ i : Fin n, ↑R ^ ↑i * w i) :
z = w
Geometric weights with integer base at least 2 * ell + 1 distinguish tuples of
complex ellth roots of unity.