W2 weight-cancellation lemmas #
In primitive-character large-sieve and all-character weighted
assembly, the reciprocal factors φ(q)/q and q/φ(q) occur
alongside weights such as μ²·3^ω. Their product is 1.
This module proves only the three algebraic cancellation identities;
it does not by itself transfer a primitive-character theorem to
an all-character mean.
All three require q ≥ 1, ensuring φ(q) ≠ 0 by Nat.totient_pos:
totient_div_q_mul_q_div_totient_eq_one(W2a):(φ(q)/q)·q / φ(q) = 1.q_div_totient_mul_totient_div_q_eq_one(W2b):(q/φ(q))·φ(q) / q = 1, the symmetric form.mul_totient_div_q_mul_q_div_totient(W2c):w·(φ(q)/q)·(q/φ(q)) = w, by W2a and ring algebra.
theorem
AnalyticNumberTheory.Sieve.mul_totient_div_q_mul_q_div_totient
{q : ℕ}
(hq : 1 ≤ q)
(w : ℝ)
:
W2c: for q ≥ 1 and any real weight w,
w·(φ(q)/q)·(q/φ(q)) = w.
Use mul_div_assoc to put the inner product in W2a's
left-associated form, cancel it to 1, and finish with ring algebra.