Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | public import Mathlib.LinearAlgebra.PiTensorProduct.Dual |
| 4 | public import New.UpperBound.ElementaryDivisors.Edges |
| 5 | public import New.UpperBound.ElementaryDivisors.FrobeniusFactors |
| 6 | public import New.UpperBound.ElementaryDivisors.InvariantAverage |
| 7 | |
| 8 | /-! |
| 9 | # Averaging: removing the terms of large defect in all Levi translates at once |
| 10 | |
| 11 | Fix a Frobenius cycle `T` over `W` and `O` (`New.FrobeniusCycle`; `N = 2 ℓ` letters, `P` a power of |
| 12 | the prime `p`, `w ^ 2 = p`) and an edge, with the Levi subgroup `G` of blocks of sizes `r` and |
| 13 | `k - r`. Forms are written in the normalized monomials of the edge with weights `b_β`, and |
| 14 | `⟨h, h'⟩ = ∑_β h'_β b_β h_β` is the pairing with the forms of the dual edge |
| 15 | (`New.FrobeniusCycle.IsEdgePairing`). Fix `c : ℕ` and put `c* = 3 k c` (`New.defectThreshold`) and |
| 16 | `c₀ = T.multinomialExponent k`. Let `O` be a valuation domain of characteristic `0` in which `p` is |
| 17 | not a unit, and let `P ^ ℓ` be large. The main result |
| 18 | `New.FrobeniusCycle.exists_average_mem_defectConditions_and_dvd_sub` gives a matrix `Av` such that |
| 19 | no `G(W)`-translate of `Av h` has a term of defect above `3 c*` modulo `w ^ c`, while |
| 20 | `⟨Av h, h'⟩ ≡ p ^ (N c₀) ⟨h, h'⟩` modulo `w ^ c` for all `h'` in the halfway lattices of all edges |
| 21 | from the origin of the dual edge (`New.FrobeniusCycle.allEdgesForms`). |
| 22 | |
| 23 | Substitute generic matrices, one copy for each letter, in `h` |
| 24 | (`New.FrobeniusCycle.substitutionOperator`). For a set `J` of copies, `Av_J h` |
| 25 | (`New.FrobeniusCycle.partialAverage`) is obtained by applying the average (`New.Average.IsAverage`) |
| 26 | in the copies `j ∈ J` and `p ^ c₀` times the evaluation at `1` in the others. Then |
| 27 | `Av_∅ h = p ^ (N c₀) h`, and `Av` is `Av_J` for the set of all copies. A monomial in one copy is bad |
| 28 | if its row weight for `New.rootVector a r`, `r = a + 1`, is above `2 c* P ^ ℓ`. The substitution in |
| 29 | the frame `g ∈ G(W)` is the one formed from the factors |
| 30 | `New.FrobeniusCycle.conjFrobGenericMatrix g`. |
| 31 | |
| 32 | * `New.FrobeniusCycle.contractOtherCopies`, `New.FrobeniusCycle.conjSubst_contractOtherCopies_one`: |
| 33 | the linear forms are applied in all copies but one, in a frame `g`; the change of frame conjugates |
| 34 | the remaining copy. |
| 35 | * `New.FrobeniusCycle.abs_weight_div_sub_defect_le`: let the forms be invariant under `G(W)`. If the |
| 36 | coefficient of `α` in the entry `β` of `contractOtherCopies` is not divisible by `w ^ c`, then the |
| 37 | row weight of `α` over `P ^ ℓ` is within `c*` of the defect of `β` at the letter `j + ℓ`, for the |
| 38 | remaining copy `j`. |
| 39 | * `New.FrobeniusCycle.lt_weight_and_lt_defect_of_not_dvd_coeff_contractOtherCopies`: hence a defect |
| 40 | of `β` above `3 c*` makes `α` bad, and a bad `α` makes the defect exceed `c*`. |
| 41 | * `New.FrobeniusCycle.pow_dvd_pairing_partialAverage_insert_sub`: one more copy in `J` does not |
| 42 | change the pairing modulo `w ^ c`. The main result adds these differences along a chain of |
| 43 | subsets. |
| 44 | |
| 45 | Notions from other files: |
| 46 | * `New.FrobeniusCycle.letterRep`: the matrix of `g ∈ GL_k(W)` on the forms, which have degree `n` in |
| 47 | each letter and are twisted at the letter `s` by `T.embedding s`. |
| 48 | * `New.FrobeniusCycle.substitutionOperator`: the Kronecker product over the letters `s` of the |
| 49 | matrices on forms of degree `n` that are built from given factors `ψ s d`; with |
| 50 | `New.FrobeniusCycle.frobGenericMatrix` the factor is the entrywise power `P ^ d` of the copy |
| 51 | `s - d` of the generic matrix, and odd letters take the cofactor matrix of the product. |
| 52 | * `New.Average.IsAverage`: a linear form that is invariant under conjugation by the Levi subgroup |
| 53 | and vanishes on bad monomials. If a polynomial of bounded degree has all bad coefficients of its |
| 54 | Levi conjugates in an ideal, the form agrees on it with a multiple of the evaluation at `1` modulo |
| 55 | this ideal. |
| 56 | * `New.FrobeniusCycle.defectConditions`: the vectors whose `G(W)`-translates have their coefficients |
| 57 | of defect above a bound in a given ideal. |
| 58 | |
| 59 | ## Relation to the literature |
| 60 | |
| 61 | Linear forms on polynomials in a generic matrix that are invariant under the Levi subgroup split |
| 62 | evaluation at the identity by weight, up to a power of `p`. This gives a map into the forms without |
| 63 | terms of large defect that keeps the pairing up to `p ^ (N c₀)` modulo `w ^ c`. The Schur algebra as |
| 64 | dual of polynomials in a generic matrix, its spanning by finite points in low degree, and truncation |
| 65 | by weights are known in the literature. Related work: Benson–Doty, Schur–Weyl duality over finite |
| 66 | fields, 2009; Green, Polynomial representations of GL_n, 1980; Donkin, On Schur algebras and related |
| 67 | algebras I, 1986. |
| 68 | -/ |
| 69 | |
| 70 | @[expose] public section |
| 71 | |
| 72 | noncomputable section |
| 73 | |
| 74 | namespace New |
| 75 | |
| 76 | open MvPolynomial Matrix IsLocalRing Function Module PiTensorProduct Finset Fintype Ideal Average |
| 77 | |
| 78 | /-! ### Tensor products of linear forms on polynomials -/ |
| 79 | |
| 80 | section TensorDual |
| 81 | |
| 82 | variable {ι σ R : Type*} [Fintype ι] [DecidableEq ι] [CommRing R] |
| 83 | |
| 84 | /-- A linear form on polynomials is determined by its values on the monomials. -/ |
| 85 | lemma map_eq_sum_coeff_mul (m : Dual R (MvPolynomial σ R)) (ψ : MvPolynomial σ R) : |
| 86 | m ψ = ∑ α ∈ ψ.support, ψ.coeff α * m (monomial α 1) := by |
| 87 | refine (congrArg m ψ.as_sum).trans |
| 88 | ((map_sum m _ _).trans (sum_congr rfl fun α _ ↦ ?_)) |
| 89 | rw [← smul_eq_mul, ← LinearMap.map_smul, smul_monomial, smul_eq_mul, mul_one] |
| 90 | |
| 91 | /-- If for each exponent `α` either `z` divides the coefficient of `α` in `ψ` or the linear form `m` |
| 92 | vanishes on the monomial of exponent `α`, then `z` divides `m ψ`. -/ |
| 93 | lemma dvd_map_of_forall_monomial {m : Dual R (MvPolynomial σ R)} {ψ : MvPolynomial σ R} {z : R} |
| 94 | (h_all : ∀ α : σ →₀ ℕ, ¬z ∣ ψ.coeff α → m (monomial α 1) = 0) : z ∣ m ψ := by |
| 95 | rw [map_eq_sum_coeff_mul] |
| 96 | refine dvd_sum fun α _ ↦ ?_ |
| 97 | by_cases h_dvd : z ∣ ψ.coeff α |
| 98 | · exact dvd_mul_of_dvd_left h_dvd _ |
| 99 | · rw [h_all α h_dvd, mul_zero] |
| 100 | exact dvd_zero z |
| 101 | |
| 102 | /-- The tensor product of linear forms `l j` on polynomials in disjoint blocks of variables: the |
| 103 | product of the forms on `⨂_ι R[X_σ]`, pulled back along `R[X_{ι × σ}] → ⨂_ι R[X_σ]`. -/ |
| 104 | def tensorDual (l : ι → Dual R (MvPolynomial σ R)) : Dual R (MvPolynomial (ι × σ) R) := |
| 105 | dualDistrib (tprod R l) ∘ₗ |
| 106 | (aeval fun v : ι × σ ↦ singleAlgHom v.1 (X v.2) : |
| 107 | MvPolynomial (ι × σ) R →ₐ[R] PiTensorProduct R fun _ : ι ↦ MvPolynomial σ R).toLinearMap |
| 108 | |
| 109 | /-- On a product of polynomials `f j`, one in each block, the tensor product of the forms `l j` is |
| 110 | the product of the values `l j (f j)`. -/ |
| 111 | lemma tensorDual_prod_rename (l : ι → Dual R (MvPolynomial σ R)) (f : ι → MvPolynomial σ R) : |
| 112 | tensorDual l (∏ j : ι, rename (fun v : σ ↦ (j, v)) (f j)) = ∏ j : ι, l j (f j) := by |
| 113 | let Ψ : MvPolynomial (ι × σ) R →ₐ[R] PiTensorProduct R fun _ : ι ↦ MvPolynomial σ R := |
| 114 | aeval fun v : ι × σ ↦ singleAlgHom v.1 (X v.2) |
| 115 | have h_block (j : ι) : Ψ.comp (rename fun v : σ ↦ (j, v)) = |
| 116 | singleAlgHom (A := fun _ : ι ↦ MvPolynomial σ R) j := |
| 117 | algHom_ext fun v ↦ by rw [AlgHom.comp_apply, rename_X, aeval_X] |
| 118 | have hΨ : Ψ (∏ j : ι, rename (fun v : σ ↦ (j, v)) (f j)) = tprod R f := by |
| 119 | rw [map_prod] |
| 120 | have h_eq (j : ι) : Ψ (rename (fun v : σ ↦ (j, v)) (f j)) = |
| 121 | tprod R (MonoidHom.mulSingle (fun _ : ι ↦ MvPolynomial σ R) j (f j)) := |
| 122 | (AlgHom.comp_apply Ψ _ _).symm.trans ((AlgHom.congr_fun (h_block j) (f j)).trans |
| 123 | (singleAlgHom_apply (R := R) (A := fun _ : ι ↦ MvPolynomial σ R) j (f j))) |
| 124 | rw [Finset.prod_congr rfl fun j _ ↦ h_eq j, ← tprod_prod] |
| 125 | exact congrArg (PiTensorProduct.tprod R) (univ_prod_mulSingle f) |
| 126 | rw [tensorDual, LinearMap.comp_apply, AlgHom.toLinearMap_apply, hΨ, dualDistrib_apply] |
| 127 | |
| 128 | /-- On the monomial of exponent `ν`, the tensor product of the forms `l j` is the product of the |
| 129 | values of `l j` at the monomials of exponent `ν.curry j`, the parts of `ν` in the blocks. -/ |
| 130 | lemma tensorDual_monomial [Fintype σ] (l : ι → Dual R (MvPolynomial σ R)) (ν : ι × σ →₀ ℕ) : |
| 131 | tensorDual l (monomial ν 1) = ∏ j : ι, l j (monomial (ν.curry j) 1) := by |
| 132 | rw [← tensorDual_prod_rename] |
| 133 | refine congrArg (tensorDual l) ?_ |
| 134 | rw [monomial_eq, C_1, one_mul, Finsupp.prod_fintype _ _ fun _ ↦ pow_zero _, prod_prod_type] |
| 135 | refine Finset.prod_congr rfl fun j _ ↦ ?_ |
| 136 | rw [monomial_eq, C_1, one_mul, Finsupp.prod_fintype _ _ fun _ ↦ pow_zero _, map_prod] |
| 137 | refine Finset.prod_congr rfl fun v _ ↦ ?_ |
| 138 | rw [map_pow, rename_X, Finsupp.curry_apply] |
| 139 | |
| 140 | /-- The value of the tensor product of the forms `l j` at `f` is the sum over the monomials of `f` |
| 141 | of the coefficient times the product of the values of the `l j` at the parts of the monomial. -/ |
| 142 | lemma tensorDual_eq_sum [Fintype σ] (l : ι → Dual R (MvPolynomial σ R)) |
| 143 | (f : MvPolynomial (ι × σ) R) : |
| 144 | tensorDual l f = ∑ ν ∈ f.support, f.coeff ν * ∏ j : ι, l j (monomial (ν.curry j) 1) := by |
| 145 | rw [map_eq_sum_coeff_mul (tensorDual l) f] |
| 146 | exact sum_congr rfl fun ν _ ↦ congrArg (f.coeff ν * ·) (tensorDual_monomial l ν) |
| 147 | |
| 148 | /-- If the form in each block is `evalAtOne z`, that is `z` times the evaluation at the identity |
| 149 | matrix, then the tensor product of the forms is `z` to the number of blocks times the evaluation at |
| 150 | the identity matrix in every block. -/ |
| 151 | lemma tensorDual_evalAtOne {k : ℕ} {A : Type} [CommRing A] (z : A) |
| 152 | (f : MvPolynomial (ι × Fin k × Fin k) A) : |
| 153 | tensorDual (fun _ : ι ↦ evalAtOne z) f = z ^ Fintype.card ι * |
| 154 | eval (fun v : ι × Fin k × Fin k ↦ vec (1 : Matrix (Fin k) (Fin k) A) v.2) f := by |
| 155 | rw [tensorDual_eq_sum, eval_eq', mul_sum] |
| 156 | refine sum_congr rfl fun ν _ ↦ ?_ |
| 157 | have h_term (j : ι) : evalAtOne z (monomial (ν.curry j) 1) = |
| 158 | z * ∏ v : Fin k × Fin k, vec (1 : Matrix (Fin k) (Fin k) A) v ^ ν (j, v) := by |
| 159 | rw [evalAtOne_apply, eval_monomial, one_mul, Finsupp.prod_fintype _ _ fun _ ↦ pow_zero _] |
| 160 | exact congrArg (z * ·) (Finset.prod_congr rfl fun v _ ↦ by rw [Finsupp.curry_apply]) |
| 161 | rw [Finset.prod_congr rfl fun j _ ↦ h_term j, prod_mul_distrib, prod_const, card_univ, |
| 162 | prod_prod_type, mul_left_comm] |
| 163 | |
| 164 | /-- Apply the forms `l i` in all blocks `i ≠ j` of variables; a polynomial in the block `j` |
| 165 | remains. A monomial of exponent `ν` gives the product of the values of the `l i` at its parts |
| 166 | `ν.curry i`, times the monomial of exponent `ν.curry j`. -/ |
| 167 | def tensorDualExcept (l : ι → Dual R (MvPolynomial σ R)) (j : ι) (f : MvPolynomial (ι × σ) R) : |
| 168 | MvPolynomial σ R := |
| 169 | ∑ ν ∈ f.support, |
| 170 | (f.coeff ν * ∏ i ∈ univ.erase j, l i (monomial (ν.curry i) 1)) • monomial (ν.curry j) 1 |
| 171 | |
| 172 | /-- Applying a form `m` to `tensorDualExcept l j f`, the polynomial left in the block `j` after the |
| 173 | forms `l i` are applied in the other blocks, gives `tensorDual (update l j m) f`: the tensor product |
| 174 | of the forms with `l j` replaced by `m`. -/ |
| 175 | lemma map_tensorDualExcept [Fintype σ] (l : ι → Dual R (MvPolynomial σ R)) (j : ι) |
| 176 | (m : Dual R (MvPolynomial σ R)) (f : MvPolynomial (ι × σ) R) : |
| 177 | m (tensorDualExcept l j f) = tensorDual (update l j m) f := by |
| 178 | rw [tensorDual_eq_sum, tensorDualExcept, map_sum] |
| 179 | refine sum_congr rfl fun ν _ ↦ ?_ |
| 180 | rw [LinearMap.map_smul, smul_eq_mul, mul_assoc, ← prod_erase_mul _ _ (mem_univ j), update_self] |
| 181 | refine congrArg (f.coeff ν * ·) (congrArg (· * m (monomial (ν.curry j) 1)) ?_) |
| 182 | exact Finset.prod_congr rfl fun i hi ↦ by rw [update_of_ne (ne_of_mem_erase hi)] |
| 183 | |
| 184 | /-- Let `f` be a polynomial in blocks of variables indexed by `ι`, and let `tensorDualExcept l j f` |
| 185 | be the polynomial in the block `j` obtained by applying the linear forms `l i` in all blocks |
| 186 | `i ≠ j`. If `z` does not divide its coefficient of `α`, then `α` is the part in the block `j` of a |
| 187 | monomial `ν` whose coefficient in `f` is not divisible by `z` and whose other parts are not killed |
| 188 | by the forms `l i`. -/ |
| 189 | lemma exists_of_not_dvd_coeff_tensorDualExcept {l : ι → Dual R (MvPolynomial σ R)} {j : ι} |
| 190 | {f : MvPolynomial (ι × σ) R} {z : R} {α : σ →₀ ℕ} |
| 191 | (h_coeff : ¬z ∣ (tensorDualExcept l j f).coeff α) : |
| 192 | ∃ ν : ι × σ →₀ ℕ, ν.curry j = α ∧ ¬z ∣ f.coeff ν ∧ |
| 193 | ∀ i ≠ j, l i (monomial (ν.curry i) 1) ≠ 0 := by |
| 194 | classical |
| 195 | contrapose! h_coeff with h_all |
| 196 | rw [tensorDualExcept, coeff_sum] |
| 197 | refine dvd_sum fun ν _ ↦ ?_ |
| 198 | rw [AddMonoidAlgebra.coeff_smul_apply, smul_eq_mul, coeff_monomial] |
| 199 | -- Each summand has `z` as a factor of its coefficient, or a factor `0`. |
| 200 | by_cases h_part : ν.curry j = α |
| 201 | · rw [ite_eq_left h_part, mul_one] |
| 202 | by_cases h_dvd : z ∣ f.coeff ν |
| 203 | · exact h_dvd.mul_right _ |
| 204 | · obtain ⟨i, hi, h_zero⟩ := h_all ν h_part h_dvd |
| 205 | rw [prod_eq_zero (mem_erase.2 ⟨hi, mem_univ i⟩) h_zero, mul_zero] |
| 206 | exact dvd_zero z |
| 207 | · rw [ite_eq_right h_part, mul_zero] |
| 208 | exact dvd_zero z |
| 209 | |
| 210 | /-- The polynomial in the block `j` that remains of `f` after the forms `l i` are applied in the |
| 211 | blocks `i ≠ j` has at most the degree of `f` in the block `j`. -/ |
| 212 | lemma tensorDualExcept_mem_restrictTotalDegree (l : ι → Dual R (MvPolynomial σ R)) (j : ι) |
| 213 | {f : MvPolynomial (ι × σ) R} {D : ℕ} |
| 214 | (h_degree : ∀ ν : ι × σ →₀ ℕ, f.coeff ν ≠ 0 → (ν.curry j).degree ≤ D) : |
| 215 | tensorDualExcept l j f ∈ restrictTotalDegree σ R D := by |
| 216 | exact Submodule.sum_mem _ fun ν hν ↦ Submodule.smul_mem _ _ <| (mem_restrictTotalDegree ..).2 <| |
| 217 | (totalDegree_monomial_le _ _).trans (h_degree ν (mem_support_iff.1 hν)) |
| 218 | |
| 219 | end TensorDual |
| 220 | |
| 221 | namespace FrobeniusCycle |
| 222 | |
| 223 | variable {N k n : ℕ} {W O : Type} [NeZero N] [CommRing W] [IsLocalRing W] [CommRing O] |
| 224 | (T : FrobeniusCycle N W O) |
| 225 | |
| 226 | /-! ### Linear forms applied to the substitution -/ |
| 227 | |
| 228 | /-- The entries of `T.substitutionOperator r ℓ n T.frobGenericMatrix` are polynomials in `N` generic |
| 229 | `k × k` matrices, the copies, one for each letter `j ∈ ℤ/N`. This is the matrix over `O` obtained by |
| 230 | applying to each entry the tensor product of linear forms `l j`, one for each copy. Its rows and |
| 231 | columns are indexed by the monomials of degree `n` in each of `N` groups of `k` variables. -/ |
| 232 | def frobContraction (n r ℓ : ℕ) (l : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)) : |
| 233 | Matrix (Exponents N k n) (Exponents N k n) O := |
| 234 | (T.substitutionOperator r ℓ n T.frobGenericMatrix).map (tensorDual l) |
| 235 | |
| 236 | /-- The matrix `T.frobContraction n r ℓ l`, indexed by the monomials of degree `n` in each of `N` |
| 237 | groups of `k` variables (`Exponents N k n`), arises from the substitution of `N` generic `k × k` |
| 238 | matrices by applying a linear form `l j` in the entries of the `j`-th one. If each form is `z` times |
| 239 | the evaluation at the identity matrix (`evalAtOne z`), it is the scalar matrix `z ^ N`. -/ |
| 240 | lemma frobContraction_evalAtOne (r ℓ : ℕ) (z : O) : |
| 241 | T.frobContraction (k := k) n r ℓ (fun _ : ZMod N ↦ evalAtOne z) = |
| 242 | z ^ N • (1 : Matrix (Exponents N k n) (Exponents N k n) O) := by |
| 243 | -- At the identity matrices `substitutionOperator` is `1`. |
| 244 | let ev : MvPolynomial (ZMod N × Fin k × Fin k) O →+* O := |
| 245 | eval fun v : ZMod N × Fin k × Fin k ↦ vec (1 : Matrix (Fin k) (Fin k) O) v.2 |
| 246 | have h_factor (s : ZMod N) (d : ℕ) : (T.frobGenericMatrix s d).map ev = 1 := by |
| 247 | ext b c |
| 248 | rw [Matrix.map_apply, frobGenericMatrix, of_apply, map_pow, eval_X, Matrix.one_apply] |
| 249 | dsimp only [vec] |
| 250 | by_cases h : b = c |
| 251 | · subst h |
| 252 | rw [ite_eq_left rfl, Matrix.one_apply_eq, one_pow] |
| 253 | · rw [ite_eq_right h, Matrix.one_apply_ne (Ne.symm h), |
| 254 | zero_pow (pow_ne_zero d (pow_ne_zero _ T.prime.ne_zero))] |
| 255 | have h_one : (T.substitutionOperator (k := k) r ℓ n T.frobGenericMatrix).map ev = 1 := by |
| 256 | -- `substitutionOperator_map_eq_conj` at `g = 1` moves `ev` into the factors. |
| 257 | rw [T.substitutionOperator_map_eq_conj ev (one_mem _), inv_one, MonoidHom.map_one, |
| 258 | Matrix.one_mul, Matrix.mul_one] |
| 259 | have h_fn : (fun s d ↦ T.letterConj 1 s ((T.frobGenericMatrix s d).map ev)) = |
| 260 | fun _ _ ↦ 1 := by |
| 261 | funext s d |
| 262 | rw [h_factor, MonoidHom.map_one] |
| 263 | rw [h_fn, substitutionOperator_one] |
| 264 | ext β β' |
| 265 | rw [frobContraction, Matrix.map_apply, tensorDual_evalAtOne, ZMod.card, Matrix.smul_apply, |
| 266 | smul_eq_mul, ← h_one, Matrix.map_apply] |
| 267 | |
| 268 | omit [NeZero N] in |
| 269 | /-- The substitution that conjugates the generic matrix of each letter `j` by `g` through |
| 270 | `T.embedding j` (`conjSubst`) sends the variable `X (s, b, c)` to the `(b, c)` entry of the |
| 271 | conjugate `T.letterConj g⁻¹ s` of the generic matrix of the letter `s`. -/ |
| 272 | private lemma aeval_conjSubst_X_eq_letterConj (g : GL (Fin k) W) (s : ZMod N) (b c : Fin k) : |
| 273 | aeval (R := O) (fun v : ZMod N × Fin k × Fin k ↦ |
| 274 | rename (fun u : Fin k × Fin k ↦ (v.1, u)) (conjSubst (T.embedding v.1) g (X v.2))) |
| 275 | (X (s, b, c)) = |
| 276 | (T.map C).letterConj g⁻¹ s (of fun b' c' : Fin k ↦ X (s, b', c')) b c := by |
| 277 | have h_lhs : aeval (R := O) (fun v : ZMod N × Fin k × Fin k ↦ |
| 278 | rename (fun u : Fin k × Fin k ↦ (v.1, u)) (conjSubst (T.embedding v.1) g (X v.2))) |
| 279 | (X (s, b, c)) = ∑ b' : Fin k, ∑ c' : Fin k, |
| 280 | C (T.embedding s (g⁻¹.val b b')) * C (T.embedding s (g.val c' c)) * X (s, b', c') := by |
| 281 | rw [show aeval (R := O) (fun v : ZMod N × Fin k × Fin k ↦ |
| 282 | rename (fun u : Fin k × Fin k ↦ (v.1, u)) (conjSubst (T.embedding v.1) g (X v.2))) |
| 283 | (X (s, b, c)) = |
| 284 | rename (fun u : Fin k × Fin k ↦ (s, u)) (conjSubst (T.embedding s) g (X (b, c))) from |
| 285 | aeval_X _ _, |
| 286 | conjSubst, linSubst, aeval_X, map_sum, sum_prod_type] |
| 287 | refine sum_congr rfl fun b' _ ↦ sum_congr rfl fun c' _ ↦ ?_ |
| 288 | rw [map_smul, rename_X, kroneckerMap_apply, transpose_apply, smul_eq_C_mul, C_mul] |
| 289 | rw [h_lhs, sum_comm, letterConj, MonoidHom.coe_mk, OneHom.coe_mk, inv_inv, Matrix.mul_apply] |
| 290 | refine sum_congr rfl fun c' _ ↦ ?_ |
| 291 | rw [Matrix.mul_apply, sum_mul] |
| 292 | refine sum_congr rfl fun b' _ ↦ ?_ |
| 293 | rw [Matrix.map_apply, Matrix.map_apply, of_apply, mul_right_comm] |
| 294 | rfl |
| 295 | |
| 296 | /-- Let `T` be a Frobenius cycle, with ring maps `T.embedding j : W →+* O` for the letters |
| 297 | `j ∈ ℤ/N`, and let `ρ(g) = T.letterRep n g` be the matrix of `g ∈ GL_k(W)` on polynomials of degree |
| 298 | `n` in each of `N` groups of `k` variables. For a family `ψ` of factors, |
| 299 | `S(ψ) = T.substitutionOperator r ℓ n ψ` is a matrix of the same size; here its entries are |
| 300 | polynomials in `N` generic matrices `X_j`. Write `l(S)` for `S.map (tensorDual l)`, the matrix over |
| 301 | `O` obtained by applying the linear form `l j` in the entries of `X_j` for every `j`. Let `g` be |
| 302 | block diagonal with blocks of sizes `r` and `k - r`, and let `m j` be `l j` composed with |
| 303 | `X ↦ g⁻¹ X g` through `T.embedding j` (`conjSubst`). Then `ρ(g) m(S(ψ₁)) = l(S(ψ_g)) ρ(g)`. Here |
| 304 | `ψ₁ = T.frobGenericMatrix` consists of the entrywise powers `P ^ d` of the `X_j`, so that |
| 305 | `m(S(ψ₁)) = T.frobContraction n r ℓ m`, and `ψ_g = T.conjFrobGenericMatrix g` is the same family |
| 306 | with the powers taken in the basis given by `g`. -/ |
| 307 | lemma letterRep_mul_frobContraction {r ℓ : ℕ} {g : GL (Fin k) W} (hg : g ∈ levi W (twoBlock k r)) |
| 308 | {l m : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)} |
| 309 | (hm : ∀ (j : ZMod N) (ψ : MvPolynomial (Fin k × Fin k) O), |
| 310 | m j ψ = l j (conjSubst (T.embedding j) g ψ)) : |
| 311 | T.letterRep n g * T.frobContraction n r ℓ m = |
| 312 | (T.substitutionOperator r ℓ n (T.conjFrobGenericMatrix g)).map (tensorDual l) * |
| 313 | T.letterRep n g := by |
| 314 | -- Move the conjugation by `g` from the forms to the generic matrices. |
| 315 | let conj : |
| 316 | MvPolynomial (ZMod N × Fin k × Fin k) O →ₐ[O] MvPolynomial (ZMod N × Fin k × Fin k) O := |
| 317 | aeval fun v : ZMod N × Fin k × Fin k ↦ |
| 318 | rename (fun u : Fin k × Fin k ↦ (v.1, u)) (conjSubst (T.embedding v.1) g (X v.2)) |
| 319 | have h_monomial (ν : ZMod N × Fin k × Fin k →₀ ℕ) : conj (monomial ν 1) = ∏ j : ZMod N, |
| 320 | rename (fun u : Fin k × Fin k ↦ (j, u)) |
| 321 | (conjSubst (T.embedding j) g (monomial (ν.curry j) 1)) := by |
| 322 | rw [monomial_eq, C_1, one_mul, Finsupp.prod_fintype _ _ fun _ ↦ pow_zero _, map_prod, |
| 323 | prod_prod_type] |
| 324 | refine Finset.prod_congr rfl fun j _ ↦ ?_ |
| 325 | rw [monomial_eq, C_1, one_mul, Finsupp.prod_fintype _ _ fun _ ↦ pow_zero _, map_prod, |
| 326 | map_prod] |
| 327 | refine Finset.prod_congr rfl fun u _ ↦ ?_ |
| 328 | rw [map_pow, aeval_X, map_pow, map_pow, Finsupp.curry_apply] |
| 329 | have h_forms : tensorDual m = tensorDual l ∘ₗ conj.toLinearMap := |
| 330 | linearMap_ext fun ν ↦ LinearMap.ext_ring <| by |
| 331 | change tensorDual m (monomial ν 1) = tensorDual l (conj (monomial ν 1)) |
| 332 | rw [tensorDual_monomial, h_monomial, tensorDual_prod_rename] |
| 333 | exact Finset.prod_congr rfl fun j _ ↦ hm j _ |
| 334 | let T' : FrobeniusCycle N W (MvPolynomial (ZMod N × Fin k × Fin k) O) := T.map C |
| 335 | have h_entry (s : ZMod N) (b c : Fin k) : |
| 336 | conj (X (s, b, c)) = T'.letterConj g⁻¹ s (of fun b' c' : Fin k ↦ X (s, b', c')) b c := |
| 337 | T.aeval_conjSubst_X_eq_letterConj g s b c |
| 338 | have h_frame : (fun (s : ZMod N) (d : ℕ) ↦ |
| 339 | T'.letterConj g s ((T.frobGenericMatrix s d).map conj.toRingHom)) = |
| 340 | T.conjFrobGenericMatrix g := by |
| 341 | funext s d |
| 342 | rw [conjFrobGenericMatrix] |
| 343 | refine congrArg (T'.letterConj g s) (Matrix.ext fun b c ↦ ?_) |
| 344 | rw [Matrix.map_apply, frobGenericMatrix, of_apply, Matrix.map_apply, |
| 345 | AlgHom.toRingHom_eq_coe, RingHom.coe_coe, map_pow, h_entry] |
| 346 | -- After `conj`, the operator is a conjugate of the operator `F` in the frame `g`. |
| 347 | set F := T.substitutionOperator (k := k) r ℓ n (T.conjFrobGenericMatrix g) |
| 348 | have h_op : (T.substitutionOperator r ℓ n T.frobGenericMatrix).map conj.toRingHom = |
| 349 | (T.letterRep n g⁻¹).map C * F * (T.letterRep n g).map C := by |
| 350 | rw [← substitutionOperator_frobeniusCycle_map T C, substitutionOperator_map_eq_conj _ _ hg, |
| 351 | h_frame, letterRep_map, letterRep_map, substitutionOperator_frobeniusCycle_map] |
| 352 | have h_contraction : T.frobContraction n r ℓ m = |
| 353 | T.letterRep n g⁻¹ * F.map (tensorDual l) * T.letterRep n g := by |
| 354 | rw [← map_C_mul_mul_C, ← h_op, frobContraction, h_forms, Matrix.map_map, LinearMap.coe_comp, |
| 355 | AlgHom.coe_toLinearMap, AlgHom.toRingHom_eq_coe, RingHom.coe_coe] |
| 356 | rw [h_contraction, ← Matrix.mul_assoc, ← Matrix.mul_assoc, ← MonoidHom.map_mul, mul_inv_cancel, |
| 357 | MonoidHom.map_one, Matrix.one_mul] |
| 358 | |
| 359 | /-! ### One copy at a time -/ |
| 360 | |
| 361 | /-- The substitution in the frame `g`, that is `T.substitutionOperator` at the factors |
| 362 | `T.conjFrobGenericMatrix g`, is a matrix of polynomials in `N` generic matrices, the copies. It is |
| 363 | applied to the translate `T.letterRep n g *ᵥ h`, and the linear forms `l i` are applied in all |
| 364 | copies `i ≠ j`. The result is a vector, indexed by `β`, of polynomials in the entries of the copy |
| 365 | `j`. -/ |
| 366 | def contractOtherCopies (r ℓ : ℕ) (l : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)) |
| 367 | (j : ZMod N) (g : GL (Fin k) W) (h : Exponents N k n → O) (β : Exponents N k n) : |
| 368 | MvPolynomial (Fin k × Fin k) O := |
| 369 | ∑ γ : Exponents N k n, (T.letterRep n g *ᵥ h) γ • |
| 370 | tensorDualExcept l j (T.substitutionOperator r ℓ n (T.conjFrobGenericMatrix g) β γ) |
| 371 | |
| 372 | /-- Let `g` be block diagonal with blocks of sizes `r` and `k - r`, and let each `l i` be invariant |
| 373 | under `X ↦ g⁻¹ X g` through `T.embedding i` (`conjSubst`). Then a form `m` applied to the entries of |
| 374 | `T.contractOtherCopies r ℓ l j g h` gives the translate by `g` of `T.frobContraction n r ℓ l' *ᵥ h`, |
| 375 | where `l'` is `l` with `l j` replaced by `m` composed with the conjugation. -/ |
| 376 | lemma map_contractOtherCopies {r ℓ : ℕ} {l : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)} |
| 377 | {j : ZMod N} {g : GL (Fin k) W} (hg : g ∈ levi W (twoBlock k r)) |
| 378 | (hl : ∀ (i : ZMod N) (ψ : MvPolynomial (Fin k × Fin k) O), |
| 379 | l i (conjSubst (T.embedding i) g ψ) = l i ψ) |
| 380 | (m : Dual O (MvPolynomial (Fin k × Fin k) O)) (h : Exponents N k n → O) (β : Exponents N k n) : |
| 381 | m (T.contractOtherCopies r ℓ l j g h β) = |
| 382 | (T.letterRep n g *ᵥ T.frobContraction n r ℓ |
| 383 | (update l j (m ∘ₗ (conjSubst (T.embedding j) g).toLinearMap)) *ᵥ h) β := by |
| 384 | have h_update (i : ZMod N) (ψ : MvPolynomial (Fin k × Fin k) O) : |
| 385 | update l j (m ∘ₗ (conjSubst (T.embedding j) g).toLinearMap) i ψ = |
| 386 | update l j m i (conjSubst (T.embedding i) g ψ) := by |
| 387 | obtain rfl | hi := eq_or_ne i j |
| 388 | · rw [update_self, update_self, LinearMap.comp_apply, AlgHom.toLinearMap_apply] |
| 389 | · rw [update_of_ne hi, update_of_ne hi, hl i] |
| 390 | rw [mulVec_mulVec, T.letterRep_mul_frobContraction hg h_update, ← mulVec_mulVec, |
| 391 | contractOtherCopies, map_sum, mulVec, dotProduct] |
| 392 | refine sum_congr rfl fun γ _ ↦ ?_ |
| 393 | rw [LinearMap.map_smul, map_tensorDualExcept, smul_eq_mul, Matrix.map_apply, mul_comm] |
| 394 | |
| 395 | /-- The entries of `T.contractOtherCopies r ℓ l j 1 h` are the polynomials in the `j`-th generic |
| 396 | matrix that are left when the forms `l i` are applied in the others. A form `m` applied to them |
| 397 | gives `T.frobContraction`, with `m` at the place `j` and `l i` at the others, applied to `h`. -/ |
| 398 | lemma map_contractOtherCopies_one {r ℓ : ℕ} {l : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)} |
| 399 | {j : ZMod N} (m : Dual O (MvPolynomial (Fin k × Fin k) O)) (h : Exponents N k n → O) |
| 400 | (β : Exponents N k n) : |
| 401 | m (T.contractOtherCopies r ℓ l j 1 h β) = (T.frobContraction n r ℓ (update l j m) *ᵥ h) β := by |
| 402 | rw [contractOtherCopies, conjFrobGenericMatrix_one, MonoidHom.map_one, one_mulVec, |
| 403 | map_sum, frobContraction, mulVec, dotProduct] |
| 404 | refine sum_congr rfl fun γ _ ↦ ?_ |
| 405 | rw [LinearMap.map_smul, map_tensorDualExcept, smul_eq_mul, Matrix.map_apply, mul_comm] |
| 406 | |
| 407 | /-- Change of basis. Let `F_g = T.contractOtherCopies r ℓ l j g h` be the vector of polynomials in |
| 408 | one generic matrix `X` that arises by substituting `N` generic matrices, in the basis given by `g`, |
| 409 | in the translate of `h` by `g`, and applying the linear forms `l i` in all of them but the `j`-th. |
| 410 | Let `g` be block diagonal with blocks of sizes `r` and `k - r`, and let each `l i` be invariant |
| 411 | under `X ↦ g⁻¹ X g` through `T.embedding i` (`conjSubst`). Then `F_1(g⁻¹ X g)`, with the conjugation |
| 412 | through `T.embedding j`, is the translate of `F_g(X)` by `g⁻¹`. -/ |
| 413 | lemma conjSubst_contractOtherCopies_one {r ℓ : ℕ} |
| 414 | {l : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)} {j : ZMod N} {g : GL (Fin k) W} |
| 415 | (hg : g ∈ levi W (twoBlock k r)) |
| 416 | (hl : ∀ (i : ZMod N) (ψ : MvPolynomial (Fin k × Fin k) O), |
| 417 | l i (conjSubst (T.embedding i) g ψ) = l i ψ) |
| 418 | (h : Exponents N k n → O) (γ : Exponents N k n) : |
| 419 | conjSubst (T.embedding j) g (T.contractOtherCopies r ℓ l j 1 h γ) = |
| 420 | ∑ β : Exponents N k n, T.letterRep n g⁻¹ γ β • T.contractOtherCopies r ℓ l j g h β := by |
| 421 | ext α |
| 422 | let v : Exponents N k n → O := T.frobContraction n r ℓ |
| 423 | (update l j (lcoeff O α ∘ₗ (conjSubst (T.embedding j) g).toLinearMap)) *ᵥ h |
| 424 | have h_frame (β : Exponents N k n) : |
| 425 | (T.contractOtherCopies r ℓ l j g h β).coeff α = (T.letterRep n g *ᵥ v) β := |
| 426 | T.map_contractOtherCopies hg hl (lcoeff O α) h β |
| 427 | have h_lhs : (conjSubst (T.embedding j) g (T.contractOtherCopies r ℓ l j 1 h γ)).coeff α = v γ := |
| 428 | T.map_contractOtherCopies_one (lcoeff O α ∘ₗ (conjSubst (T.embedding j) g).toLinearMap) h γ |
| 429 | have h_mul : (T.letterRep n g⁻¹ *ᵥ T.letterRep n g *ᵥ v) γ = v γ := by |
| 430 | rw [mulVec_mulVec, ← MonoidHom.map_mul, inv_mul_cancel, MonoidHom.map_one, one_mulVec] |
| 431 | rw [h_lhs, ← h_mul, coeff_sum, mulVec, dotProduct] |
| 432 | refine sum_congr rfl fun β _ ↦ ?_ |
| 433 | rw [AddMonoidAlgebra.coeff_smul_apply, smul_eq_mul, h_frame] |
| 434 | |
| 435 | /-- Each polynomial `T.contractOtherCopies r ℓ l j 1 h β`, which is left in the `j`-th generic |
| 436 | matrix when the forms `l i` are applied in the others, has total degree at most |
| 437 | `N n k (ℓ + 2) P ^ ℓ`. -/ |
| 438 | lemma contractOtherCopies_one_mem_restrictTotalDegree {r ℓ : ℕ} |
| 439 | {l : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)} {j : ZMod N} (h : Exponents N k n → O) |
| 440 | (β : Exponents N k n) : |
| 441 | T.contractOtherCopies r ℓ l j 1 h β ∈ |
| 442 | restrictTotalDegree (Fin k × Fin k) O (N * n * k * (ℓ + 2) * T.P ^ ℓ) := by |
| 443 | rw [contractOtherCopies, conjFrobGenericMatrix_one] |
| 444 | exact Submodule.sum_mem _ fun γ _ ↦ Submodule.smul_mem _ _ <| |
| 445 | tensorDualExcept_mem_restrictTotalDegree l j fun _ hν ↦ |
| 446 | T.degree_le_of_coeff_substitutionOperator hν j |
| 447 | |
| 448 | /-- Weight and defect in one copy. Let `T` be a Frobenius cycle (`P = T.P`, `w = T.sqrtPrime`, |
| 449 | `w ^ 2 = p`) from a local ring `W` to a domain |
| 450 | `O` of characteristic `0` in which `p` is not a unit. Let `r = a + 1`, `N n k (ℓ + 2) ≤ P ^ ℓ` and |
| 451 | `ℓ ≤ N`. Let each linear form `l i` be invariant under conjugation, through `T.embedding i`, by the |
| 452 | Levi subgroup of the blocks of sizes `r` and `k - r`. Let `β` be a monomial of degree `n` in each |
| 453 | letter. The polynomial `T.contractOtherCopies r ℓ l j g h β` in one generic matrix is the entry `β` |
| 454 | of the vector obtained from `T.letterRep n g *ᵥ h` by substituting the `N` generic matrices |
| 455 | conjugated by `g` and applying the `l i` in all of them but the `j`-th. Let its coefficient of `α` |
| 456 | not be divisible by `w ^ c`. Then the row weight of `α` (its degree in the row `r` minus its degree |
| 457 | in the row `a`), divided by `P ^ ℓ`, is within `defectThreshold k c = 3 k c` of the defect of `β` at |
| 458 | the letter `j + ℓ`. The defect is a weighted sum over all letters of the degrees of `β` in the |
| 459 | variables `a` and `r`, with the real weights `T.defectWeight (j + ℓ) a r`; `exponentOf β` is `β` as |
| 460 | one exponent vector. -/ |
| 461 | lemma abs_weight_div_sub_defect_le [IsDomain O] [CharZero O] {a r : Fin k} {ℓ c : ℕ} |
| 462 | (hp : ¬IsUnit (T.p : O)) (ha : a + 1 = r.val) (h_size : N * n * k * (ℓ + 2) ≤ T.P ^ ℓ) |
| 463 | (hℓ : ℓ ≤ N) {l : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)} |
| 464 | (hl : ∀ i : ZMod N, ∀ u ∈ levi W (twoBlock k r), ∀ ψ : MvPolynomial (Fin k × Fin k) O, |
| 465 | l i (conjSubst (T.embedding i) u ψ) = l i ψ) |
| 466 | {j : ZMod N} {g : GL (Fin k) W} {h : Exponents N k n → O} {β : Exponents N k n} |
| 467 | {α : Fin k × Fin k →₀ ℕ} |
| 468 | (h_coeff : ¬T.sqrtPrime ^ c ∣ (T.contractOtherCopies r ℓ l j g h β).coeff α) : |
| 469 | |(α.weight (fun v : Fin k × Fin k ↦ rootVector a r v.1) : ℤ) / (T.P : ℝ) ^ ℓ - |
| 470 | (exponentOf β).weight (T.defectWeight (j + ℓ) a r)| ≤ defectThreshold k c := by |
| 471 | -- Some monomial `ν` in all copies, with the part `α` in the copy `j`, has a coefficient that is |
| 472 | -- not divisible by `w ^ c`, and for `i ≠ j` no `l i` kills its part in the copy `i`. |
| 473 | obtain ⟨γ, hγ⟩ : ∃ γ : Exponents N k n, ¬T.sqrtPrime ^ c ∣ (tensorDualExcept l j |
| 474 | (T.substitutionOperator r ℓ n (T.conjFrobGenericMatrix g) β γ)).coeff α := by |
| 475 | contrapose! h_coeff with h_all |
| 476 | rw [contractOtherCopies, coeff_sum] |
| 477 | refine dvd_sum fun γ _ ↦ ?_ |
| 478 | rw [AddMonoidAlgebra.coeff_smul_apply, smul_eq_mul] |
| 479 | exact (h_all γ).mul_left _ |
| 480 | obtain ⟨ν, rfl, hν, h_ne_zero⟩ : ∃ ν : ZMod N × Fin k × Fin k →₀ ℕ, ν.curry j = α ∧ |
| 481 | ¬T.sqrtPrime ^ c ∣ (T.substitutionOperator r ℓ n (T.conjFrobGenericMatrix g) β γ).coeff ν ∧ |
| 482 | ∀ i ≠ j, l i (monomial (ν.curry i) 1) ≠ 0 := exists_of_not_dvd_coeff_tensorDualExcept hγ |
| 483 | -- An invariant form kills the monomials whose row and column weights differ, so the copies |
| 484 | -- `i ≠ j` contribute nothing to the weight of `ν`. |
| 485 | have h_balanced (i : ZMod N) (hi : i ∈ univ.erase j) : |
| 486 | (ν.curry i).weight (fun v : Fin k × Fin k ↦ rootVector a r v.1) = |
| 487 | (ν.curry i).weight (fun v : Fin k × Fin k ↦ rootVector a r v.2) := by |
| 488 | by_contra h_ne |
| 489 | exact h_ne_zero i (ne_of_mem_erase hi) (apply_monomial_eq_zero_of_weight_ne (twoBlock k r) |
| 490 | (T.embedding i) T.prime.pos hp (rootVector a r) (hl i) h_ne) |
| 491 | have h_weight : T.copyWeight ℓ a r j ν = |
| 492 | ((ν.curry j).weight (fun v : Fin k × Fin k ↦ rootVector a r v.1) : ℤ) / T.P ^ ℓ := by |
| 493 | rw [copyWeight, |
| 494 | Finset.sum_eq_zero fun i hi ↦ by rw [h_balanced i hi, sub_self, mul_zero], add_zero] |
| 495 | rw [← h_weight, abs_sub_comm] |
| 496 | exact T.abs_defect_sub_copyWeight_le ha j h_size hℓ g hν |
| 497 | |
| 498 | /-- Let `T` be a Frobenius cycle from a local ring `W` to a domain `O` of characteristic `0` in |
| 499 | which `p` is not a unit. Let `r = a + 1`, `N n k (ℓ + 2) ≤ P ^ ℓ` and `ℓ ≤ N`. Let each linear form |
| 500 | `l i` be invariant under conjugation, through `T.embedding i`, by the Levi subgroup of the blocks of |
| 501 | sizes `r` and `k - r`. Let `β` be a monomial of degree `n` in each letter. The polynomial |
| 502 | `T.contractOtherCopies r ℓ l j g h β` in one generic matrix is the entry `β` of the vector obtained |
| 503 | from `T.letterRep n g *ᵥ h` by substituting the `N` generic matrices conjugated by `g` and applying |
| 504 | the `l i` in all of them but the `j`-th. Let its coefficient of `α` not be divisible by `w ^ c`, and |
| 505 | put `c* = 3 k c`. The row weight of `α` is its degree in the row `r` minus its degree in the row |
| 506 | `a`, and the defect of `β` at the letter `j + ℓ` is its weighted degree for the weights |
| 507 | `T.defectWeight (j + ℓ) a r`. If the defect is above `3 c*`, then the row weight is above |
| 508 | `2 c* P ^ ℓ`; if the row weight is above `2 c* P ^ ℓ`, then the defect is above `c*`. -/ |
| 509 | lemma lt_weight_and_lt_defect_of_not_dvd_coeff_contractOtherCopies [IsDomain O] [CharZero O] |
| 510 | {a r : Fin k} {ℓ c : ℕ} (hp : ¬IsUnit (T.p : O)) |
| 511 | (ha : a + 1 = r.val) (h_size : N * n * k * (ℓ + 2) ≤ T.P ^ ℓ) (hℓ : ℓ ≤ N) |
| 512 | {l : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)} |
| 513 | (hl : ∀ i : ZMod N, ∀ u ∈ levi W (twoBlock k r), ∀ ψ : MvPolynomial (Fin k × Fin k) O, |
| 514 | l i (conjSubst (T.embedding i) u ψ) = l i ψ) |
| 515 | {j : ZMod N} {g : GL (Fin k) W} {h : Exponents N k n → O} {β : Exponents N k n} |
| 516 | {α : Fin k × Fin k →₀ ℕ} |
| 517 | (h_coeff : ¬T.sqrtPrime ^ c ∣ (T.contractOtherCopies r ℓ l j g h β).coeff α) : |
| 518 | (3 * defectThreshold k c < (exponentOf β).weight (T.defectWeight (j + ℓ) a r) → |
| 519 | 2 * defectThreshold k c * (T.P : ℤ) ^ ℓ < |
| 520 | α.weight (fun v : Fin k × Fin k ↦ rootVector a r v.1)) ∧ |
| 521 | (2 * defectThreshold k c * (T.P : ℤ) ^ ℓ < |
| 522 | α.weight (fun v : Fin k × Fin k ↦ rootVector a r v.1) → |
| 523 | defectThreshold k c < (exponentOf β).weight (T.defectWeight (j + ℓ) a r)) := by |
| 524 | set wt : ℤ := α.weight fun v : Fin k × Fin k ↦ rootVector a r v.1 |
| 525 | have h_bad_iff : 2 * defectThreshold k c * (T.P : ℤ) ^ ℓ < wt ↔ |
| 526 | 2 * defectThreshold k c < wt / (T.P : ℝ) ^ ℓ := by |
| 527 | rw [lt_div_iff₀ (pow_pos (zero_lt_one.trans T.one_lt_P) ℓ), ← Int.cast_lt (R := ℝ), |
| 528 | Int.cast_mul, Int.cast_mul, Int.cast_pow, Int.cast_natCast, Int.cast_natCast, Int.cast_ofNat] |
| 529 | obtain ⟨h_lower, h_upper⟩ := |
| 530 | abs_le.1 (T.abs_weight_div_sub_defect_le hp ha h_size hℓ hl h_coeff) |
| 531 | rw [h_bad_iff] |
| 532 | have h3 : (3 : ℝ) * defectThreshold k c = 2 * defectThreshold k c + defectThreshold k c := by |
| 533 | rw [← Nat.cast_ofNat (n := 3), show (3 : ℕ) = 2 + 1 from rfl, Nat.cast_add, Nat.cast_ofNat, |
| 534 | Nat.cast_one, add_mul, one_mul] |
| 535 | refine ⟨fun h1 ↦ lt_of_add_lt_add_right (a := (defectThreshold k c : ℝ)) ?_, |
| 536 | fun h2 ↦ lt_of_add_lt_add_left (a := (defectThreshold k c : ℝ)) ?_⟩ |
| 537 | · rw [← h3] |
| 538 | exact h1.trans_le (neg_le_sub_iff_le_add.1 h_lower) |
| 539 | · rw [← two_mul] |
| 540 | exact h2.trans_le (sub_le_iff_le_add.1 h_upper) |
| 541 | |
| 542 | /-! ### The averaging map -/ |
| 543 | |
| 544 | /-- The map `Av_J`: the substitution `T.substitutionOperator` at generic matrices, one for each |
| 545 | letter, is applied, then the forms `I j` (averages, in the applications) in the copies `j ∈ J` and |
| 546 | `p ^ c₀` times the evaluation at the identity matrix in the other copies, |
| 547 | `c₀ = T.multinomialExponent k`. -/ |
| 548 | def partialAverage (n r ℓ : ℕ) (I : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)) |
| 549 | (J : Finset (ZMod N)) : Matrix (Exponents N k n) (Exponents N k n) O := |
| 550 | T.frobContraction n r ℓ |
| 551 | (J.piecewise I fun _ : ZMod N ↦ evalAtOne ((T.p : O) ^ T.multinomialExponent k)) |
| 552 | |
| 553 | /-- With no average, the map `Av_∅` is `p ^ (N c₀)` times the identity, where |
| 554 | `c₀ = T.multinomialExponent k`. -/ |
| 555 | lemma partialAverage_empty {ℓ : ℕ} (r : ℕ) (I : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)) : |
| 556 | T.partialAverage n r ℓ I ∅ = (T.p : O) ^ (N * T.multinomialExponent k) • 1 := by |
| 557 | rw [partialAverage, piecewise_empty, frobContraction_evalAtOne, ← pow_mul, mul_comm] |
| 558 | |
| 559 | /-- Let `T` be a Frobenius cycle over a domain `O` of characteristic `0` in which `p` is not a unit. |
| 560 | Let `r = a + 1`, `N n k (ℓ + 2) ≤ P ^ ℓ` and `ℓ ≤ N`, and put `c* = 3 k c`. Let the `I j` be |
| 561 | averages; they are linear forms on polynomials in a generic matrix, invariant under the Levi |
| 562 | subgroup of the blocks of sizes `r` and `k - r`, that vanish on the monomials of row weight above |
| 563 | `2 c* P ^ ℓ`. Let `Av = T.partialAverage n r ℓ I univ` be the matrix obtained from the substitution |
| 564 | of `N` generic matrices by applying `I j` in the `j`-th one for every `j`. Then for every |
| 565 | coefficient vector `h`, `w ^ c` divides the coefficient in each Levi translate of `Av h` of each |
| 566 | monomial with defect above `3 c*` at some letter; the defect is the weighted degree for |
| 567 | `T.defectWeight`. -/ |
| 568 | lemma partialAverage_univ_mulVec_mem_defectConditions [IsDomain O] [CharZero O] {a r : Fin k} |
| 569 | {ℓ c : ℕ} (hp : ¬IsUnit (T.p : O)) (ha : a + 1 = r.val) |
| 570 | (h_size : N * n * k * (ℓ + 2) ≤ T.P ^ ℓ) (hℓ : ℓ ≤ N) {D : ℕ} |
| 571 | {I : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)} |
| 572 | (hI : ∀ j : ZMod N, IsAverage (twoBlock k r) (T.embedding j) (rootVector a r) |
| 573 | (2 * defectThreshold k c * T.P ^ ℓ) ((T.p : O) ^ T.multinomialExponent k) D (I j)) |
| 574 | (h : Exponents N k n → O) : |
| 575 | T.partialAverage n r ℓ I univ *ᵥ h ∈ |
| 576 | T.defectConditions n a r (span {T.sqrtPrime ^ c}) (3 * defectThreshold k c) := by |
| 577 | rintro g hg β ⟨i, h_defect⟩ |
| 578 | obtain ⟨j, rfl⟩ : ∃ j : ZMod N, j + ℓ = i := ⟨i - ℓ, sub_add_cancel i ℓ⟩ |
| 579 | -- The translate by `g` is `I j` applied to the polynomial that remains in the copy `j`. |
| 580 | have h_invariant : I j ∘ₗ (conjSubst (T.embedding j) g).toLinearMap = I j := |
| 581 | LinearMap.ext ((hI j).map_conjSubst g hg) |
| 582 | have h_value : (T.letterRep n g *ᵥ T.partialAverage n r ℓ I univ *ᵥ h) β = |
| 583 | I j (T.contractOtherCopies r ℓ I j g h β) := by |
| 584 | rw [T.map_contractOtherCopies hg fun i ↦ (hI i).map_conjSubst g hg, h_invariant, update_eq_self, |
| 585 | partialAverage, piecewise_univ] |
| 586 | rw [mem_span_singleton, h_value] |
| 587 | -- Modulo `w ^ c` this polynomial has only bad monomials, on which `I j` vanishes. |
| 588 | refine dvd_map_of_forall_monomial fun α h_coeff ↦ (hI j).map_monomial_eq_zero α ?_ |
| 589 | exact (T.lt_weight_and_lt_defect_of_not_dvd_coeff_contractOtherCopies hp ha h_size hℓ |
| 590 | (fun i ↦ (hI i).map_conjSubst) h_coeff).1 h_defect |
| 591 | |
| 592 | /-- Let `T` be a Frobenius cycle with `N ≠ 0` letters from a local ring `W` to a commutative ring |
| 593 | `O`, and let `k`, `n`, `r`, `ℓ : ℕ`. Let `g ∈ levi W (twoBlock k r)` be block diagonal with blocks |
| 594 | of sizes `r` and `k - r`, and let `l : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)` be a |
| 595 | family of linear forms such that `l i` is invariant under conjugation by `g` through |
| 596 | `T.embedding i` (`conjSubst`) for every `i : ZMod N`. For a letter `j : ZMod N`, vectors |
| 597 | `b`, `h`, `h' : Exponents N k n → O`, and an exponent `α : Fin k × Fin k →₀ ℕ`, the coefficient of |
| 598 | `α` in the `g`-conjugate of |
| 599 | `∑ β : Exponents N k n, (h' β * b β) • T.contractOtherCopies r ℓ l j 1 h β` equals the sum over |
| 600 | `β : Exponents N k n` of `(T.contractOtherCopies r ℓ l j g h β).coeff α` times |
| 601 | `h' ⬝ᵥ (b * T.letterRep n g⁻¹ *ᵥ Pi.single β 1)`. -/ |
| 602 | private lemma coeff_conjSubst_sum_smul_contractOtherCopies {r ℓ : ℕ} |
| 603 | {l : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)} {j : ZMod N} {g : GL (Fin k) W} |
| 604 | (hg : g ∈ levi W (twoBlock k r)) |
| 605 | (hl : ∀ (i : ZMod N) (φ : MvPolynomial (Fin k × Fin k) O), |
| 606 | l i (conjSubst (T.embedding i) g φ) = l i φ) |
| 607 | (b h h' : Exponents N k n → O) (α : Fin k × Fin k →₀ ℕ) : |
| 608 | (conjSubst (T.embedding j) g |
| 609 | (∑ β : Exponents N k n, (h' β * b β) • T.contractOtherCopies r ℓ l j 1 h β)).coeff α = |
| 610 | ∑ β : Exponents N k n, (T.contractOtherCopies r ℓ l j g h β).coeff α * |
| 611 | h' ⬝ᵥ (b * T.letterRep n g⁻¹ *ᵥ Pi.single β 1) := by |
| 612 | -- The coefficient of `α` in the conjugate of the pairing polynomial is a combination of the |
| 613 | -- pairings of `h'` with the translates by `g⁻¹` of the monomials `β`. The scalars are |
| 614 | -- coefficients of `contractOtherCopies` in the frame `g`. |
| 615 | have h_lhs : (conjSubst (T.embedding j) g |
| 616 | (∑ β : Exponents N k n, (h' β * b β) • T.contractOtherCopies r ℓ l j 1 h β)).coeff α = |
| 617 | ∑ γ : Exponents N k n, ∑ β : Exponents N k n, |
| 618 | (h' γ * b γ) * (T.letterRep n g⁻¹ γ β * |
| 619 | (T.contractOtherCopies r ℓ l j g h β).coeff α) := by |
| 620 | rw [map_sum, coeff_sum] |
| 621 | refine sum_congr rfl fun γ _ ↦ ?_ |
| 622 | rw [map_smul, T.conjSubst_contractOtherCopies_one hg hl, |
| 623 | AddMonoidAlgebra.coeff_smul_apply, smul_eq_mul, coeff_sum, mul_sum] |
| 624 | refine sum_congr rfl fun β _ ↦ ?_ |
| 625 | rw [AddMonoidAlgebra.coeff_smul_apply, smul_eq_mul] |
| 626 | rw [h_lhs, sum_comm] |
| 627 | refine sum_congr rfl fun β _ ↦ ?_ |
| 628 | rw [mulVec_single_one, dotProduct, mul_sum] |
| 629 | refine sum_congr rfl fun γ _ ↦ ?_ |
| 630 | rw [Pi.mul_apply, col_apply, ← mul_assoc, |
| 631 | mul_comm _ ((T.contractOtherCopies r ℓ l j g h β).coeff α), mul_assoc] |
| 632 | |
| 633 | /-- Let `T` be a Frobenius cycle over a valuation domain `O` of characteristic `0` in which `p` is |
| 634 | not a unit. Let `r = a + 1`, `N n k (ℓ + 2) ≤ P ^ ℓ` and `ℓ ≤ N`, and put `c* = 3 k c` and |
| 635 | `c₀ = T.multinomialExponent k`. Let the `I j` be averages up to the degree `N n k (ℓ + 2) P ^ ℓ`, |
| 636 | whose bad monomials are those of row weight above `2 c* P ^ ℓ`. The matrix |
| 637 | `Av_J = T.partialAverage n r ℓ I J` arises from the substitution of `N` generic matrices by applying |
| 638 | `I i` in the `i`-th one for `i ∈ J`, and `p ^ c₀` times the evaluation at `1` for `i ∉ J`. Let the |
| 639 | weights `b` define a pairing `⟨h, h'⟩ = ∑_β h'_β b_β h_β` that makes the matrices of `g` and `gᵀ` |
| 640 | adjoint, with `b b' = p ^ (N c₀)`. Let `h' ∈ T.allEdgesForms k n r`: it is `w ^ (-m) Δ f` for a |
| 641 | vector `f` over `O` with `w ^ (-m) Δ g f` integral for all `g ∈ GL_k(W)`, where |
| 642 | `Δ = T.depthScaling k n r` is a diagonal matrix of powers of `w`. Then |
| 643 | `⟨Av_{J ∪ {j}} h, h'⟩ ≡ ⟨Av_J h, h'⟩` modulo `w ^ c` for `j ∉ J`. -/ |
| 644 | lemma pow_dvd_pairing_partialAverage_insert_sub [IsDomain O] [CharZero O] {a r : Fin k} {ℓ c : ℕ} |
| 645 | (hp : ¬IsUnit (T.p : O)) |
| 646 | (ha : a + 1 = r.val) (h_size : N * n * k * (ℓ + 2) ≤ T.P ^ ℓ) (hℓ : ℓ ≤ N) |
| 647 | {I : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O)} |
| 648 | (hI : ∀ j : ZMod N, IsAverage (twoBlock k r) (T.embedding j) (rootVector a r) |
| 649 | (2 * defectThreshold k c * T.P ^ ℓ) ((T.p : O) ^ T.multinomialExponent k) |
| 650 | (N * n * k * (ℓ + 2) * T.P ^ ℓ) (I j)) |
| 651 | {b b' : Exponents N k n → O} (hb : T.IsEdgePairing b b') {J : Finset (ZMod N)} {j : ZMod N} |
| 652 | (hj : j ∉ J) (h : Exponents N k n → O) {h' : Exponents N k n → O} |
| 653 | (hh' : h' ∈ T.allEdgesForms k n r) : |
| 654 | T.sqrtPrime ^ c ∣ h' ⬝ᵥ (b * T.partialAverage n r ℓ I (insert j J) *ᵥ h) - |
| 655 | h' ⬝ᵥ (b * T.partialAverage n r ℓ I J *ᵥ h) := by |
| 656 | -- The difference is `(I j - ev) ψ` for the pairing `ψ` of `h'` with the polynomials that remain |
| 657 | -- in the copy `j`. It is enough to show that the bad monomials of the conjugates of `ψ` have |
| 658 | -- coefficients divisible by `w ^ c` (`coeff_conjSubst_sum_smul_contractOtherCopies`). |
| 659 | let ev : Dual O (MvPolynomial (Fin k × Fin k) O) := |
| 660 | evalAtOne ((T.p : O) ^ T.multinomialExponent k) |
| 661 | let l : ZMod N → Dual O (MvPolynomial (Fin k × Fin k) O) := J.piecewise I fun _ ↦ ev |
| 662 | have hl (i : ZMod N) (u : GL (Fin k) W) (hu : u ∈ levi W (twoBlock k r)) |
| 663 | (φ : MvPolynomial (Fin k × Fin k) O) : l i (conjSubst (T.embedding i) u φ) = l i φ := by |
| 664 | dsimp only [l] |
| 665 | by_cases hi : i ∈ J |
| 666 | · rw [piecewise_eq_of_mem J I _ hi, (hI i).map_conjSubst u hu] |
| 667 | · rw [piecewise_eq_of_notMem J I _ hi, evalAtOne_conjSubst] |
| 668 | let ψ : MvPolynomial (Fin k × Fin k) O := |
| 669 | ∑ β : Exponents N k n, (h' β * b β) • T.contractOtherCopies r ℓ l j 1 h β |
| 670 | have hψ (m : Dual O (MvPolynomial (Fin k × Fin k) O)) : |
| 671 | m ψ = h' ⬝ᵥ (b * T.frobContraction n r ℓ (update l j m) *ᵥ h) := by |
| 672 | rw [map_sum, dotProduct] |
| 673 | refine sum_congr rfl fun β _ ↦ ?_ |
| 674 | rw [LinearMap.map_smul, smul_eq_mul, T.map_contractOtherCopies_one, Pi.mul_apply, mul_assoc] |
| 675 | have h_degree : ψ.totalDegree ≤ N * n * k * (ℓ + 2) * T.P ^ ℓ := (mem_restrictTotalDegree ..).1 <| |
| 676 | sum_mem fun β _ ↦ Submodule.smul_mem _ _ (T.contractOtherCopies_one_mem_restrictTotalDegree h β) |
| 677 | have h_update_ev : update l j ev = l := |
| 678 | update_eq_self_iff.2 (piecewise_eq_of_notMem J I (fun _ ↦ ev) hj).symm |
| 679 | suffices h_mem : I j ψ - ev ψ ∈ span {T.sqrtPrime ^ c} by |
| 680 | rwa [hψ, hψ, h_update_ev, mem_span_singleton, ← piecewise_insert] at h_mem |
| 681 | refine (hI j).sub_evalAtOne_mem (span {T.sqrtPrime ^ c}) ψ h_degree fun g hg α h_bad ↦ ?_ |
| 682 | have h_coeff : (conjSubst (T.embedding j) g ψ).coeff α = ∑ β : Exponents N k n, |
| 683 | (T.contractOtherCopies r ℓ l j g h β).coeff α * |
| 684 | h' ⬝ᵥ (b * T.letterRep n g⁻¹ *ᵥ Pi.single β 1) := |
| 685 | T.coeff_conjSubst_sum_smul_contractOtherCopies hg (fun i ↦ hl i g hg) b h h' α |
| 686 | rw [mem_span_singleton, h_coeff] |
| 687 | refine dvd_sum fun β _ ↦ ?_ |
| 688 | by_cases h_dvd : T.sqrtPrime ^ c ∣ (T.contractOtherCopies r ℓ l j g h β).coeff α |
| 689 | · exact h_dvd.mul_right _ |
| 690 | · -- As `α` is bad, the defect of `β` is large, so the pairing is divisible by `w ^ c`. |
| 691 | have h_defect : defectThreshold k c < (exponentOf β).weight (T.defectWeight (j + ℓ) a r) := |
| 692 | (T.lt_weight_and_lt_defect_of_not_dvd_coeff_contractOtherCopies hp ha h_size hℓ hl |
| 693 | h_dvd).2 h_bad |
| 694 | have h_lt : a < r := Fin.lt_def.2 (ha ▸ Nat.lt_succ_self a.val) |
| 695 | exact (hb.pow_dvd_pairing_letterRep T h_lt hh' (inv_mem hg) h_defect).mul_left _ |
| 696 | |
| 697 | /-- The averaging map. Let `T` be a Frobenius cycle (`P = T.P`, `w = T.sqrtPrime`, `w ^ 2 = p`) |
| 698 | over a valuation domain `O` of characteristic |
| 699 | `0` in which `p` is not a unit. Vectors are coefficient vectors of polynomials of degree `n` in each |
| 700 | of `N` groups of `k` variables, on which `GL_k(W)` acts by `T.letterRep n`. Let `r = a + 1`, |
| 701 | `N = 2 ℓ` and `N k (ℓ + 2) n + n + k < P ^ ℓ`. Put `c* = 3 k c` and |
| 702 | `c₀ = T.multinomialExponent k = k² log_p P^N`. Let the weights `b` define a pairing |
| 703 | `⟨h, h'⟩ = ∑_β h'_β b_β h_β` that makes the matrices of `g` and `gᵀ` adjoint, with |
| 704 | `b b' = p ^ (N c₀)`. For every `c` there is a matrix `Av` with two properties. |
| 705 | * For all `h` and all `g` in the Levi subgroup of the blocks of sizes `r` and `k - r`, `w ^ c` |
| 706 | divides the coefficient in `g Av h` of each monomial with defect above `3 c*` at some letter `i`; |
| 707 | the defect is the weighted degree for the weights `T.defectWeight i a r`. |
| 708 | * `⟨Av h, h'⟩ ≡ p ^ (N c₀) ⟨h, h'⟩` modulo `w ^ c` for all `h` and all |
| 709 | `h' ∈ T.allEdgesForms k n r`. -/ |
| 710 | theorem exists_average_mem_defectConditions_and_dvd_sub [IsDomain O] [CharZero O] {a r : Fin k} |
| 711 | [ValuationRing O] (hp : ¬IsUnit (T.p : O)) (ha : a + 1 = r.val) {ℓ : ℕ} |
| 712 | (hℓ : ℓ + ℓ = N) (h_size : N * k * (ℓ + 2) * n + n + k < T.P ^ ℓ) |
| 713 | {b b' : Exponents N k n → O} (hb : T.IsEdgePairing b b') (c : ℕ) : |
| 714 | ∃ Av : Matrix (Exponents N k n) (Exponents N k n) O, |
| 715 | (∀ h : Exponents N k n → O, |
| 716 | Av *ᵥ h ∈ T.defectConditions n a r (span {T.sqrtPrime ^ c}) (3 * defectThreshold k c)) ∧ |
| 717 | ∀ (h : Exponents N k n → O), ∀ h' ∈ T.allEdgesForms k n r, |
| 718 | T.sqrtPrime ^ c ∣ h' ⬝ᵥ (b * Av *ᵥ h) - |
| 719 | (T.p : O) ^ (N * T.multinomialExponent k) * h' ⬝ᵥ (b * h) := by |
| 720 | have h_eq : N * n * k * (ℓ + 2) = N * k * (ℓ + 2) * n := by |
| 721 | rw [mul_right_comm N n k, mul_right_comm (N * k) n (ℓ + 2)] |
| 722 | have h_small : N * n * k * (ℓ + 2) ≤ T.P ^ ℓ := by |
| 723 | rw [h_eq] |
| 724 | exact ((Nat.le_add_right _ n).trans (Nat.le_add_right _ k)).trans h_size.le |
| 725 | have hℓ_le : ℓ ≤ N := hℓ ▸ Nat.le_add_right ℓ ℓ |
| 726 | -- `D` bounds the degree in one copy; it is small against `P ^ N`, so the averages exist. |
| 727 | let D : ℕ := N * n * k * (ℓ + 2) * T.P ^ ℓ |
| 728 | have hD : D + k < T.P ^ N := by |
| 729 | have h1 : D + k < (N * k * (ℓ + 2) * n + 1) * T.P ^ ℓ := by |
| 730 | rw [add_mul, one_mul, ← h_eq] |
| 731 | exact Nat.add_lt_add_left ((Nat.le_add_left k _).trans_lt h_size) D |
| 732 | have h2 : (N * k * (ℓ + 2) * n + 1) * T.P ^ ℓ ≤ T.P ^ N := |
| 733 | (Nat.mul_le_mul_right _ (Nat.succ_le_of_lt |
| 734 | (((Nat.le_add_right _ n).trans (Nat.le_add_right _ k)).trans_lt h_size))).trans_eq |
| 735 | (by rw [← pow_add, hℓ]) |
| 736 | exact h1.trans_le h2 |
| 737 | have hD_pow : D < T.p ^ (T.frobExp * N) := by |
| 738 | rw [pow_mul] |
| 739 | exact (Nat.le_add_right D k).trans_lt hD |
| 740 | have h_exists (j : ZMod N) : ∃ I : Dual O (MvPolynomial (Fin k × Fin k) O), |
| 741 | IsAverage (twoBlock k r) (T.embedding j) (rootVector a r) (2 * defectThreshold k c * T.P ^ ℓ) |
| 742 | ((T.p : O) ^ T.multinomialExponent k) D I := |
| 743 | exists_isAverage (twoBlock k r) (T.embedding j) T.prime hp (T.frobExp * N) hD_pow |
| 744 | (hD.le.trans_eq T.card_residueField.symm) _ _ |
| 745 | choose I hI using h_exists |
| 746 | refine ⟨T.partialAverage n r ℓ I univ, |
| 747 | T.partialAverage_univ_mulVec_mem_defectConditions hp ha h_small hℓ_le hI, fun h h' hh' ↦ ?_⟩ |
| 748 | -- Add the differences along a chain of subsets that starts at `∅`. |
| 749 | have h_chain (J : Finset (ZMod N)) : |
| 750 | T.sqrtPrime ^ c ∣ h' ⬝ᵥ (b * T.partialAverage n r ℓ I J *ᵥ h) - |
| 751 | (T.p : O) ^ (N * T.multinomialExponent k) * h' ⬝ᵥ (b * h) := by |
| 752 | induction J using Finset.induction_on with |
| 753 | | empty => |
| 754 | rw [partialAverage_empty, smul_mulVec, one_mulVec, mul_smul_comm, dotProduct_smul, |
| 755 | smul_eq_mul, sub_self] |
| 756 | exact dvd_zero _ |
| 757 | | insert j J hj ih => |
| 758 | have h_add := dvd_add |
| 759 | (T.pow_dvd_pairing_partialAverage_insert_sub hp ha h_small hℓ_le hI hb hj h hh') ih |
| 760 | rwa [sub_add_sub_cancel] at h_add |
| 761 | exact h_chain univ |
| 762 | |
| 763 | end FrobeniusCycle |
| 764 | |
| 765 | end New |
| 766 | |
| 767 | end |