Structured proof · Unit 140
lemma bad_share_le
labelChar_degree_bounds factorwise). Good tuples include all families in \prod_w A_w that are not in \prod_w B_w, where A_w are the monic polynomials of degree r with no root in {0} or \mu_M and no square factor, and B_w the non-primitive ones. Counting: |A_w| m \ge 1 - \varepsilon (at most (1 + M) q^{r-1} + r q^{r-1} excluded polynomials), and |B_w| m \le 1 - L/f (the minimal polynomials of the \phi(q^r - 1) primitive roots give at least \phi(q^r - 1)/r primitive labels, and n \le \phi(n)(2 \log n + 1)). Then \operatorname{Re} e(1) \ge(1 - \varepsilon)^f - (1 - L/f)^f \ge 1 - f \varepsilon - \exp(-L).Rewrite the hypothesis on L as L \le f / (2r(2r \log q + 1)) (the denominator is positive), and put m = (1 - r/q)/q^r.
1 < q, from 1 < r < q.
Using L/f \le 1/(2r(2r \log q + 1)), m \le 1/q^r and \#(not primitive) = q^r - \#(primitive), it suffices to show that the number of primitive labels of degree r is at least q^r/(2r(2r \log q + 1)).
Clearing denominators (\operatorname{monicsOfDegree}(k_w, r) has q^r elements): it suffices that q^r \le 2r(2r \log q + 1) \#(primitive labels).
Since q^r \le 2(q^r - 1) \le 2 \phi(q^r - 1)(2 \log(q^r - 1) + 1) \le 2 \phi(q^r - 1)(2r \log q + 1), and the algebraic closure of k_w contains exactly \phi(q^r - 1) primitive roots of unity of order q^r - 1, it suffices that their number is at most r times the number of primitive labels.
Uses
le_totient_mul_logunit 10,card_primitiveRootsMap each such primitive root \xi to its minimal polynomial over k_w: it suffices that this polynomial is a monic polynomial of degree r that is a primitive label, and that each fibre has at most r elements.
Uses
IsPrimitiveLabelunit 140,IsLabelunit 24,Finset.card_le_mul_card_image_of_maps_to For such a \xi: |k_w| = q, \xi^{q^r - 1} = 1, and \xi is integral (algebraic) over k_w with an irreducible minimal polynomial.
The degree of the minimal polynomial of \xi is r: \xi^{q^d - 1} = 1 for d its degree gives (q^r - 1) | (q^d - 1), and d | r gives (q^d - 1) | (q^r - 1); so q^d - 1 = q^r - 1.
Usesstep 4.5,
root_pow_card_pow_pred_eq_oneunit 24,root_pow_card_pow_eq_self_iffunit 24Each fibre consists of roots of one polynomial of degree r, so has at most r elements.
It suffices to prove the theorem from the inequality \prod_w (1 - \varepsilon) \le \prod_w \#(A_w) m, where A_w is the set of monic polynomials of degree r over k_w that are neither (X - x) h with x = 0 or x^M = 1 and h monic of degree r - 1, nor g^2 h with g monic of degree (r - d)/2 and h monic of degree d < r; this inequality follows factor by factor (the factors 1 - \varepsilon being nonnegative) from the bound for each w.
Uses
Finset.prod_le_prod₀ For every w: 1 - \varepsilon \le \#(A_w) m.
Lean states
1 -Counting: \operatorname{monicsOfDegree}(k_w, r) has q^r elements; the excluded polynomials number at most (1 + M) q^{r-1} (at most 1 + M choices of x, q^{r-1} of h) plus \sum_{d<r} q^{(r-d)/2 + d} \le r q^{r-1}; with (1 + M + 2r)/q \le \varepsilon the bound follows.
The remaining real and natural-number inequalities.
Main chain: the families of \prod_w A_w not in \prod_w B_w (B_w the non-primitive monic polynomials) are good tuples, so \#\operatorname{goodTuples}(M, r) \ge \prod_w \#A_w - \prod_w \#B_w; every good tuple c contributes to \operatorname{Re} e(1) the product over w of the coefficients of \operatorname{labelIdem}(n, c_w) at 1, which is at least m^f; with step 4 this gives \operatorname{Re} e(1) \ge \prod_w (\#A_w m) - (1 - L/f)^f.
Usesstep 4
For a good tuple c and each w: m \le the coefficient of \operatorname{labelIdem}(n, c_w) at 1, as c_w is a label of degree r = |n| over a field with q elements.
Lean states
(m : ℂ) ≤ _The side conditions of the chain (membership in
goodTuples,positivity) by unfoldinggoodTuples.Uses
goodTuplesunit 140
Remaining goal: a family in \prod_w A_w not in \prod_w B_w is a good tuple: each c_w is monic of degree r with nonzero constant term (0 is not a root), squarefree (an irreducible factor h with h^2 | c_w would make c_w of the form g^2 h'), and has no root x with x^M = 1; and some c_w is primitive.