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 | import Mathlib.Algebra.Order.Star.Int |
| 4 | public import Lib.GLn.SchurModule.Basic |
| 5 | public import Lib.General.Groups.BesselGroups |
| 6 | |
| 7 | /-! |
| 8 | # Frobenius cycles, the twisted action of GL_k(W), depth and defect |
| 9 | |
| 10 | This file contains the definitions for the theorem on elementary divisors |
| 11 | (`New.FrobeniusCycle.elementary_divisors`). Let `W` be a local ring with finite residue field. |
| 12 | Variables are pairs `(b, s)` of an index `b : Fin k` and a letter `s : ZMod N`. |
| 13 | |
| 14 | ## Main definitions and results |
| 15 | |
| 16 | * `New.FrobeniusCycle`: a prime number `p` with a square root `sqrtPrime` in `R`, a power `P` of |
| 17 | `p`, and ring maps `embedding s : W → R`, each marked even or odd, and each the `P`-th power of |
| 18 | the one before modulo `p`. |
| 19 | * `New.FrobeniusCycle.letterMatrix`, `New.FrobeniusCycle.polyAction`, |
| 20 | `New.FrobeniusCycle.letterRep`: `g` acts on the letter `s` through the image under `embedding s` |
| 21 | of `g` (even) or of its inverse transpose (odd), both on polynomials and on coefficient vectors of |
| 22 | forms of degree `n` in each letter. `New.FrobeniusCycle.polyAction_polyOfCoeffs` says that the two |
| 23 | actions agree. |
| 24 | * `New.FrobeniusCycle.depth`, `New.FrobeniusCycle.defectWeight`: the depth of a monomial, and the |
| 25 | weight of a variable in the defect of a monomial at a letter. |
| 26 | * `New.FrobeniusCycle.translatesIn`, `New.FrobeniusCycle.defectConditions`: vectors whose |
| 27 | translates have given coefficients in an ideal. |
| 28 | * `New.FrobeniusCycle.deepForms`: vectors all of whose translates have only monomials of large |
| 29 | depth. |
| 30 | |
| 31 | Notions from other files: |
| 32 | * `New.linSubst z`: for a matrix `z` over `R`, the `R`-algebra map of polynomial rings that sends |
| 33 | `X b` to `∑ t, z t b • X t`. |
| 34 | * `New.Monomials σ n`: the exponent vectors of degree `n` on the variables `σ`. |
| 35 | * `New.exponentOf β`, `New.polyOfCoeffs F`: the exponent vector on the variables `(b, s)` that is |
| 36 | `β s` in the letter `s`, and the polynomial `∑ β, F β • x ^ β`. |
| 37 | * `New.symPowMatrix n`, `New.kroneckerPi`: the `n`-th symmetric power of a matrix, and the Kronecker |
| 38 | product of a family of matrices. |
| 39 | * `New.levi W τ`, `New.parahoric W τ`: for a labelling `τ : Fin k → ℕ` of the indices, the matrices |
| 40 | in `GL_k(W)` whose entry `(i, j)` is zero whenever `τ i ≠ τ j`, and those whose entry `(i, j)` |
| 41 | lies in the maximal ideal of `W` whenever `τ i < τ j`. |
| 42 | |
| 43 | ## Notation |
| 44 | |
| 45 | Matrices act on vectors of coefficients, so they are the transposes of the matrices substituted in |
| 46 | the variables: for both parities, the translate of a polynomial `h` in the letter `s` by `g` is |
| 47 | `h ∘ g_sᵀ`, where `g_s = T.letterMatrix s g`. |
| 48 | |
| 49 | ## Relation to the literature |
| 50 | |
| 51 | See `New.UpperBound.ElementaryDivisors.DefectCount` for related work. |
| 52 | -/ |
| 53 | |
| 54 | @[expose] public section |
| 55 | |
| 56 | noncomputable section |
| 57 | |
| 58 | namespace New |
| 59 | |
| 60 | open Fintype Finset MvPolynomial Matrix IsLocalRing Ideal |
| 61 | |
| 62 | /-- The exponents of the monomials that are homogeneous of degree `n` in each of the `N` letters, |
| 63 | with `k` variables in each letter. -/ |
| 64 | abbrev Exponents (N k n : ℕ) : Type := ZMod N → Monomials (Fin k) n |
| 65 | |
| 66 | /-- For natural `r`, the labelling of the indices `b : Fin k` that is `0` if `b < r` and `1` |
| 67 | otherwise. -/ |
| 68 | def twoBlock (k r : ℕ) (b : Fin k) : ℕ := if (b : ℕ) < r then 0 else 1 |
| 69 | |
| 70 | /-- The number `c* = 3 k c`, for the rank `k` and a precision `c` of congruences modulo powers of |
| 71 | the square root of `p`. It is the unit in which later files state their thresholds for defects. -/ |
| 72 | def defectThreshold (k c : ℕ) : ℕ := 3 * k * c |
| 73 | |
| 74 | lemma three_mul_le_defectThreshold {k : ℕ} (hk : 0 < k) (c : ℕ) : 3 * c ≤ defectThreshold k c := |
| 75 | Nat.mul_le_mul_right c (Nat.le_mul_of_pos_right 3 hk) |
| 76 | |
| 77 | /-- A Frobenius cycle: a prime `p` with `P = p ^ frobExp ≥ 5`, where the residue field of `W` has |
| 78 | `P ^ N` elements. It also gives ring maps `embedding s : W → R` for `s` in `ℤ/N`, alternately even |
| 79 | and odd, with `embedding (s + 1) ≡ embedding s ^ P` modulo `p`, and an element `sqrtPrime` of `R` |
| 80 | with `sqrtPrime ^ 2 = p`. -/ |
| 81 | structure FrobeniusCycle (N : ℕ) (W R : Type) [CommRing W] [IsLocalRing W] [CommRing R] where |
| 82 | /-- The prime `p`. -/ |
| 83 | p : ℕ |
| 84 | /-- The exponent `frobExp`, with `P = p ^ frobExp`. -/ |
| 85 | frobExp : ℕ |
| 86 | /-- The ring maps `ι_s : W → R`, one for each letter `s ∈ ℤ/N`. -/ |
| 87 | embedding : ZMod N → W →+* R |
| 88 | /-- Whether the letter `s` is even (`true`) or odd (`false`). -/ |
| 89 | isEven : ZMod N → Bool |
| 90 | /-- A square root of `p` in `R`. -/ |
| 91 | sqrtPrime : R |
| 92 | /-- `p` is prime. -/ |
| 93 | prime : p.Prime |
| 94 | /-- `P = p ^ frobExp` is at least `5`. -/ |
| 95 | five_le_P : 5 ≤ p ^ frobExp |
| 96 | /-- `sqrtPrime ^ 2 = p` in `R`. -/ |
| 97 | sqrtPrime_sq : sqrtPrime ^ 2 = p |
| 98 | /-- `embedding (s + 1) ≡ embedding s ^ P` modulo `p`. -/ |
| 99 | frobenius_congr (s : ZMod N) (x : W) : (p : R) ∣ embedding (s + 1) x - embedding s x ^ p ^ frobExp |
| 100 | /-- Even and odd letters alternate. -/ |
| 101 | isEven_succ (s : ZMod N) : isEven (s + 1) = !isEven s |
| 102 | /-- The residue field of `W` has `(p ^ frobExp) ^ N` elements. -/ |
| 103 | card_residueField : Nat.card (IsLocalRing.ResidueField W) = (p ^ frobExp) ^ N |
| 104 | |
| 105 | namespace FrobeniusCycle |
| 106 | |
| 107 | /-- The Frobenius exponent is positive because the corresponding prime power is at least five. -/ |
| 108 | lemma frobExp_pos {N : ℕ} {W R : Type} [CommRing W] [IsLocalRing W] [CommRing R] |
| 109 | (T : FrobeniusCycle N W R) : 0 < T.frobExp := |
| 110 | Nat.pos_of_ne_zero fun h ↦ by simpa [h] using T.five_le_P |
| 111 | |
| 112 | variable {k N : ℕ} {W R R' : Type} [CommRing W] [IsLocalRing W] [CommRing R] [CommRing R'] |
| 113 | (φ : R →+* R') [NeZero N] (T : FrobeniusCycle N W R) (n r : ℕ) (i : ZMod N) (a a' : Fin k) |
| 114 | (g : GL (Fin k) W) (s : ZMod N) (x : Fin k × ZMod N) |
| 115 | |
| 116 | /-! ### The twisted action -/ |
| 117 | |
| 118 | /-- The prime power `P = p ^ frobExp` of the Frobenius cycle. -/ |
| 119 | abbrev P : ℕ := T.p ^ T.frobExp |
| 120 | |
| 121 | /-- The number `q = P ^ N` of elements of the residue field of `W`. -/ |
| 122 | abbrev q : ℕ := T.P ^ N |
| 123 | |
| 124 | /-- For a Frobenius cycle over `R` and a ring map `φ : R →+* R'`, the Frobenius cycle over `R'` |
| 125 | obtained by composing each ring map `embedding s` with `φ` and applying `φ` to `sqrtPrime`. -/ |
| 126 | def map : FrobeniusCycle N W R' := |
| 127 | { T with |
| 128 | embedding := φ.comp ∘ T.embedding |
| 129 | sqrtPrime := φ T.sqrtPrime |
| 130 | sqrtPrime_sq := by simp [← map_pow, sqrtPrime_sq] |
| 131 | frobenius_congr s x := by simpa using map_dvd φ (T.frobenius_congr s x) } |
| 132 | |
| 133 | /-- The homomorphism sending g in GL_k(W) to the matrix g_s over R: ι_s(g) if the letter s is |
| 134 | even, ι_s of the inverse transpose if s is odd. -/ |
| 135 | @[simps -isSimp] |
| 136 | def letterMatrix : GL (Fin k) W →* Matrix (Fin k) (Fin k) R where |
| 137 | toFun g := (if T.isEven s then ↑g else g⁻¹.valᵀ).map (T.embedding s) |
| 138 | map_one' := by simp |
| 139 | map_mul' g h := by cases T.isEven s <;> simp [Matrix.map_mul] |
| 140 | |
| 141 | /-- The action of GL_k(W) on polynomials in the variables x_{bs}: g sends x_{bs} to ∑_c |
| 142 | (g_s)_{cb} x_{cs}, with g_s = `New.FrobeniusCycle.letterMatrix` s g. -/ |
| 143 | def polyAction : |
| 144 | GL (Fin k) W →* MvPolynomial (Fin k × ZMod N) R →ₐ[R] MvPolynomial (Fin k × ZMod N) R where |
| 145 | toFun g := linSubst (blockDiagonal fun s : ZMod N ↦ T.letterMatrix s g) |
| 146 | map_one' := by simp [← Pi.one_def, AlgHom.ext_iff] |
| 147 | map_mul' := by simp [AlgHom.ext_iff, linSubst_mul] |
| 148 | |
| 149 | /-- The matrix ρ(g) of g in GL_k(W) on forms of degree n in each letter: the Kronecker product |
| 150 | over s of the n-th symmetric powers of `New.FrobeniusCycle.letterMatrix` s g. -/ |
| 151 | @[simps -isSimp] |
| 152 | def letterRep : GL (Fin k) W →* Matrix (Exponents N k n) (Exponents N k n) R := |
| 153 | ({ toFun g := kroneckerPi fun s : ZMod N ↦ symPowMatrix n (T.letterMatrix s g) |
| 154 | map_one' := by simp |
| 155 | map_mul' := by simp [kroneckerPi_mul] } : GL (Fin k) W →* _) |
| 156 | |
| 157 | /-! ### Depth, defect and the coefficient condition -/ |
| 158 | |
| 159 | /-- The indicator of the deep variables `x = (b, s)`, with `b` counted from `0`: it is `1` if `s` |
| 160 | is even and `r ≤ b`, or `s` is odd and `b < r`, and `0` otherwise. -/ |
| 161 | def deepIndicator : ℕ := if T.isEven x.2 ↔ r ≤ (x.1 : ℕ) then 1 else 0 |
| 162 | |
| 163 | /-- The depth of a family β of exponent vectors of degree n, one for each letter: the total degree |
| 164 | of the monomial x^β in the variables that are deep for r (`New.FrobeniusCycle.deepIndicator`). -/ |
| 165 | def depth (k n r : ℕ) (β : Exponents N k n) : ℕ := (exponentOf β).weight (T.deepIndicator r) |
| 166 | |
| 167 | /-- For indices a,a' and letter s, the variable index (a',s) if s is even and (a,s) if s is odd. -/ |
| 168 | @[simps] |
| 169 | def rootVar : Fin k × ZMod N := (if T.isEven s then a' else a, s) |
| 170 | |
| 171 | /-- The weight of the variable `x = (b, s)` in the defect of a monomial at the letter `i` along the |
| 172 | root `(a, a')`; the defect is the sum of these weights over the monomial. Write |
| 173 | `u_s = T.rootVar a a' s` and `ū_s = T.rootVar a' a s`. The weight is `P ^ ((s - i) mod N) / (q - 1)` |
| 174 | times `[x = u_s] - [x = ū_s]`, plus `1` if `x = u_i`. For the recursive description of the defect |
| 175 | see `New.FrobeniusCycle.defectWeight_dotProduct_pieriStepMap`. -/ |
| 176 | def defectWeight : ℝ := |
| 177 | ((if x = T.rootVar a a' x.2 then (T.P : ℝ) ^ (1 + (x.2 - 1 - i).val) else 0) - |
| 178 | if x = T.rootVar a' a x.2 then (T.P : ℝ) ^ (x.2 - i).val else 0) / (T.q - 1) |
| 179 | |
| 180 | /-- The submodule of the coefficient vectors `F : Exponents N k n → R` with `(ρ(g) F) β ∈ I` for |
| 181 | all `g` in the Levi subgroup `levi W τ` and all `β` in the set `B` of exponents, where |
| 182 | `ρ = T.letterRep n`. Here `τ` labels the indices `Fin k` by natural numbers, and `levi W τ` |
| 183 | consists of the matrices in `GL_k(W)` whose entry `(i, j)` is zero whenever `τ i ≠ τ j`. -/ |
| 184 | def translatesIn (τ : Fin k → ℕ) (I : Ideal R) (B : Set (Exponents N k n)) : |
| 185 | Submodule R (Exponents N k n → R) := |
| 186 | { carrier := {F : Exponents N k n → R | ∀ g ∈ levi W τ, ∀ β ∈ B, (T.letterRep n g *ᵥ F) β ∈ I} |
| 187 | add_mem' hF hG g hg β hβ := by simpa [mulVec_add] using add_mem (hF g hg β hβ) (hG g hg β hβ) |
| 188 | zero_mem' := by simp |
| 189 | smul_mem' c F hF g hg β hβ := by |
| 190 | simpa [mulVec_smul] using I.mul_mem_left c (hF g hg β hβ) } |
| 191 | |
| 192 | /-- The coefficient vectors F such that (ρ(g)F)_β lies in I, with ρ = `New.FrobeniusCycle.letterRep` |
| 193 | n. This must hold whenever g is block diagonal with blocks of sizes a' and k − a' and β has defect |
| 194 | along the root (a, a') (`New.FrobeniusCycle.defectWeight`) above h at some letter. -/ |
| 195 | abbrev defectConditions (I : Ideal R) (h : ℝ) : Submodule R (Exponents N k n → R) := |
| 196 | T.translatesIn n (twoBlock k a') I |
| 197 | {β : Exponents N k n | ∃ i : ZMod N, h < (exponentOf β).weight (T.defectWeight i a a')} |
| 198 | |
| 199 | /-- The coefficient vectors F of forms of degree n in each letter such that, for every g in GL_k(W), |
| 200 | all monomials of ρ(g)F have depth (`New.FrobeniusCycle.depth`, for r) at least d. -/ |
| 201 | abbrev deepForms (k n r d : ℕ) : Submodule R (Exponents N k n → R) := |
| 202 | T.translatesIn n 0 ⊥ {β : Exponents N k n | T.depth k n r β < d} |
| 203 | |
| 204 | /-! ### First properties -/ |
| 205 | |
| 206 | omit [NeZero N] in |
| 207 | lemma one_lt_P : (1 : ℝ) < T.P := mod_cast Nat.one_lt_ofNat.trans_le T.five_le_P |
| 208 | |
| 209 | lemma one_lt_q : (1 : ℝ) < T.q := by simpa using one_lt_pow₀ T.one_lt_P (NeZero.ne N) |
| 210 | |
| 211 | omit [NeZero N] in |
| 212 | /-- For a Frobenius cycle `T` and natural `n`, the ring map of the letter `s + n` is the `P ^ n`-th |
| 213 | power of that of the letter `s` modulo `p`. -/ |
| 214 | lemma frobenius_pow_congr (x : W) : (T.p : R) ∣ T.embedding (s + n) x - T.embedding s x ^ T.P ^ |
| 215 | n := by |
| 216 | induction n with |
| 217 | | zero => simp |
| 218 | | succ n ih => |
| 219 | -- Raise the induction hypothesis to the power `P`, then take one step by `T.frobenius_congr`. |
| 220 | have h_pow : (T.p : R) ∣ T.embedding (s + n) x ^ T.P - (T.embedding s x ^ T.P ^ n) ^ T.P := |
| 221 | ih.trans (sub_dvd_pow_sub_pow ..) |
| 222 | simpa [← add_assoc, pow_succ, pow_mul] using (T.frobenius_congr (s + n) x).add h_pow |
| 223 | |
| 224 | variable {n r i a a' g x} |
| 225 | |
| 226 | omit [NeZero N] in |
| 227 | lemma sqrtPrime_ne_zero [CharZero R] : T.sqrtPrime ≠ 0 := by |
| 228 | intro hw |
| 229 | have hp : (T.p : R) = 0 := by simp [← T.sqrtPrime_sq, hw] |
| 230 | exact T.prime.ne_zero (Nat.cast_eq_zero.1 hp) |
| 231 | |
| 232 | omit [NeZero N] in |
| 233 | lemma finite_residueField (T : FrobeniusCycle N W R) : Finite (IsLocalRing.ResidueField W) := |
| 234 | Nat.finite_of_card_ne_zero (by simp [T.card_residueField, T.prime.ne_zero]) |
| 235 | |
| 236 | /-- The ring map `T.embedding s : W → R` of the letter `s` sends the maximal ideal of `W` into |
| 237 | `(p)`. -/ |
| 238 | lemma p_dvd_embedding_of_mem_maximalIdeal {y : W} (hy_mem : y ∈ maximalIdeal W) : |
| 239 | (T.p : R) ∣ T.embedding s y := by |
| 240 | -- As `ι s y ≡ (ι s y) ^ q` modulo `p`, the prime `p` divides `ι s y * ι s (1 - y ^ (q - 1))`, |
| 241 | -- whose last factor is a unit. |
| 242 | have hq : 1 < T.q := mod_cast T.one_lt_q |
| 243 | have h_unit : IsUnit (1 - y ^ (T.q - 1)) := |
| 244 | isUnit_one_sub_self_of_mem_nonunits _ (pow_mem_of_mem _ hy_mem _ (Nat.sub_pos_of_lt hq)) |
| 245 | have h_factor : T.embedding s y * T.embedding s (1 - y ^ (T.q - 1)) = T.embedding s y - |
| 246 | T.embedding s y ^ T.q := by |
| 247 | simp [mul_sub, mul_pow_sub_one, T.prime.ne_zero] |
| 248 | rw [← (h_unit.map (T.embedding s)).dvd_mul_right, h_factor] |
| 249 | simpa [ZMod.natCast_self] using T.frobenius_pow_congr N s y |
| 250 | |
| 251 | /-- An entry forced into the maximal ideal by the parahoric condition has image divisible by `p`. -/ |
| 252 | private lemma p_dvd_embedding_of_mem_parahoric {τ : Fin k → ℕ} {g : GL (Fin k) W} |
| 253 | (hg : g ∈ parahoric W τ) {i j : Fin k} (hij : τ i < τ j) : |
| 254 | (T.p : R) ∣ T.embedding s (g i j) := |
| 255 | T.p_dvd_embedding_of_mem_maximalIdeal s ((residue_eq_zero_iff _).1 (hg hij)) |
| 256 | |
| 257 | /-- The predicate `T.isEven` marks neighbouring letters differently. At an even letter, |
| 258 | `letterMatrix` embeds `g` entrywise. If `τ i < τ j` and `g` is parahoric, then `p` divides the |
| 259 | entry `(i, j)`. -/ |
| 260 | lemma p_dvd_letterMatrix_of_mem_parahoric_of_isEven {τ : Fin k → ℕ} {g : GL (Fin k) W} |
| 261 | (hg : g ∈ parahoric W τ) (hs : T.isEven s = true) {i j : Fin k} (hij : τ i < τ j) : |
| 262 | (T.p : R) ∣ T.letterMatrix s g i j := by |
| 263 | simpa [letterMatrix_apply, hs] using T.p_dvd_embedding_of_mem_parahoric s hg hij |
| 264 | |
| 265 | /-- The predicate `T.isEven` marks neighbouring letters differently. At an odd letter, |
| 266 | `letterMatrix` embeds the transpose of `g⁻¹`. If `τ j < τ i` and `g` is parahoric, then `p` divides |
| 267 | the entry `(i, j)`. -/ |
| 268 | lemma p_dvd_letterMatrix_of_mem_parahoric_of_not_isEven {τ : Fin k → ℕ} {g : GL (Fin k) W} |
| 269 | (hg : g ∈ parahoric W τ) (hs : T.isEven s = false) {i j : Fin k} (hji : τ j < τ i) : |
| 270 | (T.p : R) ∣ T.letterMatrix s g i j := by |
| 271 | -- The entry comes from `(j, i)` of `g⁻¹`, which is parahoric too. |
| 272 | simpa [letterMatrix_apply, hs] using T.p_dvd_embedding_of_mem_parahoric s (inv_mem hg) hji |
| 273 | |
| 274 | /-- Let `g` lie in the parahoric subgroup of `τ`. Suppose that `τ i < τ j` if `s` is even, and |
| 275 | `τ j < τ i` if it is odd. Then `p` divides the entry `(i, j)` of `T.letterMatrix s g`. -/ |
| 276 | lemma p_dvd_letterMatrix_of_mem_parahoric {τ : Fin k → ℕ} {g : GL (Fin k) W} |
| 277 | (hg : g ∈ parahoric W τ) (i j : Fin k) (h_even : T.isEven s = true → τ i < τ j) |
| 278 | (h_odd : T.isEven s = false → τ j < τ i) : (T.p : R) ∣ T.letterMatrix s g i j := by |
| 279 | cases hs : T.isEven s with |
| 280 | | true => exact T.p_dvd_letterMatrix_of_mem_parahoric_of_isEven s hg hs (h_even hs) |
| 281 | | false => exact T.p_dvd_letterMatrix_of_mem_parahoric_of_not_isEven s hg hs (h_odd hs) |
| 282 | |
| 283 | /-- Under `T.polyAction`, an element `g` of GL_k(W) sends the variable `X x`, where `x = (c, s)`, to |
| 284 | `∑ b, (g_s) b c • X (b, s)`, where `g_s = T.letterMatrix s g`. -/ |
| 285 | lemma polyAction_X (T : FrobeniusCycle N W R) {g : GL (Fin k) W} {x : Fin k × ZMod N} : |
| 286 | T.polyAction g (X x) = ∑ b : Fin k, C (T.letterMatrix x.2 g b x.1) * X (b, x.2) := by |
| 287 | simp [polyAction, linSubst, blockDiagonal, smul_eq_C_mul, sum_prod_type_right] |
| 288 | |
| 289 | /-- Fix a threshold `r`. The variable `(b, s)` is deep if `s` is even and `r ≤ b`, or `s` is odd and |
| 290 | `b < r`; the number `T.deepIndicator r (b, s)` is `1` on deep variables and `0` on the others. |
| 291 | An element `β` of `Exponents N k n` is a monomial of degree `n` in each letter, and |
| 292 | `T.depth k n r β` is its degree in the deep variables. The diagonal matrix with entries |
| 293 | `t ^ T.depth k n r β` is the Kronecker product over the letters `s` of the `n`-th symmetric powers |
| 294 | of the diagonal matrices that scale the deep variables of `s` by `t` and fix the others. -/ |
| 295 | lemma diagonal_pow_depth (T : FrobeniusCycle N W R) {n r : ℕ} (t : R) : |
| 296 | diagonal (fun β : Exponents N k n ↦ t ^ T.depth k n r β) = |
| 297 | kroneckerPi fun s : ZMod N ↦ |
| 298 | symPowMatrix n (diagonal fun b : Fin k ↦ t ^ T.deepIndicator r (b, s)) := by |
| 299 | -- In each letter a diagonal substitution scales a monomial by the product of the factors of its |
| 300 | -- variables, and the exponents of `t` add up to the depth. |
| 301 | set δ : Fin k × ZMod N → ℕ := T.deepIndicator r with hδ |
| 302 | have h_scale (s : ZMod N) (α : Fin k →₀ ℕ) : |
| 303 | linSubst (diagonal fun b : Fin k ↦ t ^ δ (b, s)) (monomial α 1) = |
| 304 | monomial α (t ^ ∑ b : Fin k, α b * δ (b, s)) := by |
| 305 | simp [monomial_eq, linSubst, diagonal_apply, smul_eq_C_mul, Finsupp.prod_fintype, mul_pow, |
| 306 | prod_mul_distrib, ← prod_pow_eq_pow_sum, pow_mul'] |
| 307 | have h_letter (s : ZMod N) : symPowMatrix n (diagonal fun b : Fin k ↦ t ^ δ (b, s)) = |
| 308 | diagonal fun α : Monomials (Fin k) n ↦ t ^ ∑ b : Fin k, α.val b * δ (b, s) := by |
| 309 | ext α β |
| 310 | by_cases h_eq : α = β |
| 311 | · simp [symPowMatrix, h_scale, h_eq] |
| 312 | · simp [symPowMatrix, h_scale, coeff_monomial, h_eq, Ne.symm h_eq] |
| 313 | have h_depth (β : Exponents N k n) : |
| 314 | T.depth k n r β = ∑ s : ZMod N, ∑ b : Fin k, (β s).val b * δ (b, s) := by |
| 315 | simp [depth, exponentOf, Finsupp.weight_eq_sum, sum_prod_type_right, hδ] |
| 316 | ext α β |
| 317 | simp [h_letter, h_depth, kroneckerPi, diagonal_apply, Fintype.prod_ite_zero, funext_iff, |
| 318 | prod_pow_eq_pow_sum] |
| 319 | |
| 320 | /-- For a Frobenius cycle `T`, an element `g` of `GL_k(W)` acts on polynomials in the variables |
| 321 | `x_{(b, s)}` by `T.polyAction g`: in each letter `s` it substitutes linearly by the matrix |
| 322 | `T.letterMatrix s g`, which is the image in `R` of `g` (even `s`) or of its inverse transpose |
| 323 | (odd `s`). A coefficient vector `F` stands for the form `∑ β, F β • x ^ β` of degree `n` in each |
| 324 | letter. The matrix `T.letterRep n g`, the Kronecker product over the letters of the `n`-th symmetric |
| 325 | powers of these matrices, represents the action on such forms. -/ |
| 326 | lemma polyAction_polyOfCoeffs (T : FrobeniusCycle N W R) {n : ℕ} {g : GL (Fin k) W} |
| 327 | (F : Exponents N k n → R) : |
| 328 | T.polyAction g (polyOfCoeffs F) = polyOfCoeffs (T.letterRep n g *ᵥ F) := by |
| 329 | -- `mono s` renames to the variables of the letter `s`. The image of the monomial `α s` is a form |
| 330 | -- of degree `n`, which we expand in monomials; then we multiply over the letters. |
| 331 | let mono (s : ZMod N) (f : MvPolynomial (Fin k) R) : MvPolynomial (Fin k × ZMod N) R := |
| 332 | rename (fun b : Fin k ↦ (b, s)) f |
| 333 | have expand (α : Exponents N k n) (s : ZMod N) : |
| 334 | linSubst (T.letterMatrix s g) (monomial (α s) 1) = |
| 335 | ∑ β : Monomials (Fin k) n, symPowMatrix n (T.letterMatrix s g) β (α s) • monomial β 1 := |
| 336 | (sum_monomials_eq_of_isHomogeneous ((α s).isHomogeneous_linSubst (T.letterMatrix s g))).symm |
| 337 | calc T.polyAction g (polyOfCoeffs F) |
| 338 | = ∑ α, F α • ∏ s, mono s (linSubst (T.letterMatrix s g) (monomial (α s) 1)) := by |
| 339 | simp [mono, monomial_eq, polyAction, linSubst, blockDiagonal, smul_eq_C_mul, |
| 340 | sum_prod_type_right, polyOfCoeffs, exponentOf, prod_prod_type_right] |
| 341 | _ = ∑ α, F α • ∑ β, T.letterRep n g β α • ∏ s, mono s (monomial (β s) 1) := by |
| 342 | simp [expand, mono, prod_univ_sum, prod_smul, letterRep, kroneckerPi, -univ_eq_attach] |
| 343 | _ = polyOfCoeffs (T.letterRep n g *ᵥ F) := by |
| 344 | simp [mono, monomial_eq, polyOfCoeffs, exponentOf, prod_prod_type_right, mulVec_eq_sum, |
| 345 | smul_eq_C_mul, Finset.mul_sum] |
| 346 | |
| 347 | /-- The matrix of `g` on forms for the Frobenius cycle `T.map φ`, obtained from `T` along the ring |
| 348 | map `φ : R →+* R'`, is the entrywise image under `φ` of the matrix of `g` for `T`. -/ |
| 349 | lemma letterRep_map : (T.map φ).letterRep n g = (T.letterRep n g).map φ := by |
| 350 | simp only [letterRep_apply, ← kroneckerPi_map, ← symPowMatrix_map] |
| 351 | rfl |
| 352 | |
| 353 | @[simp] |
| 354 | lemma one_add_val_sub_one_sub : 1 + (s - 1 - i).val = if s = i then N else (s - i).val := by |
| 355 | zify |
| 356 | simp [sub_right_comm, ZMod.cast_sub_one, sub_eq_zero] |
| 357 | |
| 358 | /-! ### Bounds on the defect weights -/ |
| 359 | |
| 360 | /-- For a Frobenius cycle `T`, let `P = T.P` be its prime power, which is at least `5`, and let |
| 361 | `q = T.q = P ^ N`. For every letter `s` one has `5 P ^ s ≤ q`, where `s` is read in |
| 362 | `{0, …, N - 1}`. -/ |
| 363 | lemma five_mul_P_pow_le_q : 5 * T.P ^ s.val ≤ T.q := |
| 364 | calc 5 * T.P ^ s.val ≤ T.P ^ (s.val + 1) := by grw [pow_succ', T.five_le_P] |
| 365 | _ ≤ T.P ^ N := Nat.pow_le_pow_right (pow_pos T.prime.pos T.frobExp) s.val_lt |
| 366 | |
| 367 | lemma five_le_q : (5 : ℝ) ≤ T.q := mod_cast T.five_le_P.trans (Nat.le_self_pow (NeZero.ne N) T.P) |
| 368 | |
| 369 | /-- At the letter `s` write `u = T.rootVar a a' s` and `ū = T.rootVar a' a s`. For distinct rows, |
| 370 | `u` has row `a'` at even letters and row `a` at odd letters, and `ū` has the opposite row. |
| 371 | The defect of a monomial at the letter `i` along the root `(a, a')` is its weighted degree for the |
| 372 | real weights `T.defectWeight i a a'`. These are `P ^ (1 + (s - 1 - i).val) / (q - 1)` at `u`, |
| 373 | `-P ^ (s - i).val / (q - 1)` at `ū` and `0` at the other variables. The weight of `u` minus the |
| 374 | weight of `ū` lies in `[0, 3 / 2]`. When the rows coincide, this difference is zero. -/ |
| 375 | lemma defectWeight_sub_mem_Icc (T : FrobeniusCycle N W R) {i : ZMod N} {a a' : Fin k} (s : ZMod N) : |
| 376 | T.defectWeight i a a' (T.rootVar a a' s) - T.defectWeight i a a' (T.rootVar a' a s) ∈ |
| 377 | Set.Icc 0 (3 / 2) := by |
| 378 | obtain heq | h_ne := eq_or_ne (T.rootVar a a' s) (T.rootVar a' a s) |
| 379 | · norm_num [heq] |
| 380 | have q_sub_one_pos : (0 : ℝ) < T.q - 1 := sub_pos.2 T.one_lt_q |
| 381 | have h_diff : |
| 382 | T.defectWeight i a a' (T.rootVar a a' s) - T.defectWeight i a a' (T.rootVar a' a s) = |
| 383 | (T.P ^ (1 + (s - 1 - i).val) + T.P ^ (s - i).val) / (T.q - 1) := by |
| 384 | simp only [defectWeight, rootVar_snd, ite_true, ite_eq_right h_ne, ite_eq_right h_ne.symm] |
| 385 | ring |
| 386 | have h_first : (T.P : ℝ) ^ (1 + (s - 1 - i).val) ≤ T.q := |
| 387 | mod_cast Nat.pow_le_pow_right (pow_pos T.prime.pos _) (by linarith [(s - 1 - i).val_lt]) |
| 388 | have h_second : (5 * T.P ^ (s - i).val : ℝ) ≤ T.q := mod_cast T.five_mul_P_pow_le_q (s - i) |
| 389 | rw [h_diff] |
| 390 | exact ⟨by positivity, (div_le_iff₀ q_sub_one_pos).2 (by linarith [T.five_le_q])⟩ |
| 391 | |
| 392 | /-- Let `P = T.P` be the prime power of the Frobenius cycle, which is at least `5`, and let |
| 393 | `q = T.q = P ^ N`. As `s` runs over the letters, the exponent `1 + (s - 1 - i).val` runs over |
| 394 | `1, …, N`, and the sum `P + P ^ 2 + ⋯ + P ^ N` is at most `2 (q - 1)`. -/ |
| 395 | lemma sum_P_pow_le (T : FrobeniusCycle N W R) (i : ZMod N) : |
| 396 | ∑ s : ZMod N, (T.P : ℝ) ^ (1 + (s - 1 - i).val) ≤ 2 * (T.q - 1) := by |
| 397 | -- With `S = 1 + P + ⋯ + P ^ (N - 1)` the sum is both `P S` and `S + (q - 1)`. |
| 398 | set S : ℝ := ∑ s : ZMod N, (T.P : ℝ) ^ (s - i).val with hS |
| 399 | have h_mul : ∑ s : ZMod N, (T.P : ℝ) ^ (1 + (s - 1 - i).val) = T.P * S := by |
| 400 | simp only [pow_add, pow_one, ← mul_sum] |
| 401 | exact congrArg _ ((Equiv.subRight 1).sum_comp fun s : ZMod N ↦ (T.P : ℝ) ^ (s - i).val) |
| 402 | have h_term (s : ZMod N) : (T.P : ℝ) ^ (1 + (s - 1 - i).val) = |
| 403 | T.P ^ (s - i).val + if s = i then (T.q - 1 : ℝ) else 0 := by |
| 404 | rw [one_add_val_sub_one_sub] |
| 405 | split_ifs with hs <;> simp [hs] |
| 406 | have h_add : ∑ s : ZMod N, (T.P : ℝ) ^ (1 + (s - 1 - i).val) = S + (T.q - 1) := by |
| 407 | simp only [h_term, sum_add_distrib, Fintype.sum_ite_eq', hS] |
| 408 | have hP : 5 * S ≤ T.P * S := mul_le_mul_of_nonneg_right (mod_cast T.five_le_P) (by positivity) |
| 409 | linarith [T.one_lt_q] |
| 410 | |
| 411 | /-- The defect of an exponent vector `α` at the letter `i` along the root `(a, a')` is the sum of |
| 412 | `α x * T.defectWeight i a a' x` over the variables `x = (b, s)`. If `α` has degree at most `d` in |
| 413 | each letter, then its defect has absolute value at most `2 d`. -/ |
| 414 | lemma abs_weight_defectWeight_le (T : FrobeniusCycle N W R) {i : ZMod N} {a a' : Fin k} |
| 415 | {α : Fin k × ZMod N →₀ ℕ} {d : ℝ} (hα : ∀ s : ZMod N, ∑ b : Fin k, (α (b, s) : ℝ) ≤ d) : |
| 416 | |α.weight (T.defectWeight i a a')| ≤ 2 * d := by |
| 417 | have q_sub_one_pos : (0 : ℝ) < T.q - 1 := sub_pos.2 T.one_lt_q |
| 418 | have hd : 0 ≤ d := le_trans (by positivity) (hα i) |
| 419 | let bound (s : ZMod N) : ℝ := T.P ^ (1 + (s - 1 - i).val) / (T.q - 1) |
| 420 | have h_var (x : Fin k × ZMod N) : |T.defectWeight i a a' x| ≤ bound x.2 := by |
| 421 | have h_exp : (x.2 - i).val ≤ 1 + (x.2 - 1 - i).val := by |
| 422 | rw [one_add_val_sub_one_sub] |
| 423 | split_ifs |
| 424 | exacts [(ZMod.val_lt (x.2 - i)).le, le_rfl] |
| 425 | have h_pow_nonneg : 0 ≤ (T.P : ℝ) ^ (x.2 - i).val := by positivity |
| 426 | have h_pow_le : (T.P : ℝ) ^ (x.2 - i).val ≤ (T.P : ℝ) ^ (1 + (x.2 - 1 - i).val) := |
| 427 | pow_le_pow_right₀ T.one_lt_P.le h_exp |
| 428 | -- The numerator is a difference of two numbers in `[0, P ^ (1 + (s - 1 - i))]`. |
| 429 | rw [defectWeight, abs_div, abs_of_pos q_sub_one_pos] |
| 430 | refine div_le_div_of_nonneg_right (abs_sub_le_iff.2 ⟨?_, ?_⟩) q_sub_one_pos.le |
| 431 | · split_ifs <;> linarith |
| 432 | · split_ifs <;> linarith |
| 433 | calc |α.weight (T.defectWeight i a a')| |
| 434 | ≤ ∑ x : Fin k × ZMod N, α x * |T.defectWeight i a a' x| := by |
| 435 | simpa [Finsupp.weight_eq_sum, abs_mul] using |
| 436 | abs_sum_le_sum_abs (fun x ↦ α x * T.defectWeight i a a' x) univ |
| 437 | _ ≤ ∑ x : Fin k × ZMod N, α x * bound x.2 := by grw [h_var] |
| 438 | _ = ∑ s : ZMod N, (∑ b : Fin k, (α (b, s) : ℝ)) * bound s := by |
| 439 | simp only [sum_prod_type_right, sum_mul] |
| 440 | _ ≤ ∑ s : ZMod N, d * bound s := by grw [hα] |
| 441 | _ = (∑ s : ZMod N, (T.P : ℝ) ^ (1 + (s - 1 - i).val)) / (T.q - 1) * d := by |
| 442 | rw [← mul_sum, Finset.sum_div, mul_comm] |
| 443 | _ ≤ 2 * d := mul_le_mul_of_nonneg_right ((div_le_iff₀ q_sub_one_pos).2 (T.sum_P_pow_le i)) hd |
| 444 | |
| 445 | end FrobeniusCycle |
| 446 | |
| 447 | end New |
| 448 | |
| 449 | end |