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.RingTheory.Etale.Weakly |
| 4 | import Mathlib.RingTheory.PiTensorProduct |
| 5 | import Mathlib.RingTheory.TotallySplit |
| 6 | public import Lib.PadicHodge.Kisin.PeriodMatrixBasis |
| 7 | |
| 8 | /-! |
| 9 | # The frame theorem for a period matrix, with Frobenius and Galois action on the frame |
| 10 | |
| 11 | The frame theorem `New.Lift.Chart.IsPeriodMatrix.exists_frame` for a period matrix `U` |
| 12 | (`New.Lift.Chart.IsPeriodMatrix`) over a chart with ring `S ⊂ A_inf`: the basis `Q`, `Z` of |
| 13 | `New.Lift.Chart.IsPeriodMatrix.exists_basis` is completed by partial inverses of `Q` and `Z`, a |
| 14 | Frobenius matrix `B` over `S`, and the Galois action on `Z`. The key point is `p ∤ det Q`; it rests |
| 15 | on |
| 16 | |
| 17 | * `New.Lift.Chart.exists_det_ne_zero`: a nonzero determinant from a separating set of rows; |
| 18 | * `New.exists_mulVec_eq_zero_and_forall_comp_eq`: Artin's minimal support argument over a valuation |
| 19 | ring, applied to the reduction of `Q` modulo `p` over the tilt `O^♭`. |
| 20 | |
| 21 | Here `π` is `WittVector.constantCoeff`, the reduction `A_inf → O^♭` modulo `p`, `ainfToBPlus` is the |
| 22 | map `A_inf → B⁺`, and `(n, g)` in `New.Period.FrobGal` acts as `φ ^ n g`. |
| 23 | |
| 24 | Notions from other files: |
| 25 | * `New.Lift.Chart.E`: The image in S of the series X^e A + p; it equals ξ times a unit of A_inf. |
| 26 | * `New.Lift.Chart.bicommutant`: The S-subalgebra S_B of those y in B⁺ whose multiplication commutes |
| 27 | with every S-linear endomorphism of B⁺ that maps `New.Period.amaxImage` into itself. |
| 28 | * `New.Period.tau`: The element τ = [ε^{1/p}] − 1 of A_inf, where the brackets denote the |
| 29 | Teichmüller lift. |
| 30 | * `New.Lift.Chart.S`: For a chart, the Λ-subalgebra S of A_inf that is the image of the chart's map |
| 31 | Λ[[X]] → A_inf. |
| 32 | * `New.Lift.Chart`: A chart: a Λ-algebra map Λ[[X]] → A_inf, Λ = W(F_{p^f}), sending X to a non-unit |
| 33 | Teichmüller lift z = [u] and a series X^e A + p, A a unit, to ξ times a unit. |
| 34 | |
| 35 | ## Relation to the literature |
| 36 | |
| 37 | Known result: Kisin lattice (Breuil–Kisin module) of a crystalline lattice. Only existence is proved |
| 38 | here, of a frame over A_inf with a Frobenius matrix over S, which spans the crystalline periods up |
| 39 | to powers of E. Finite height is not stated, and there is no equivalence of categories. The proof |
| 40 | works directly by linear retractions onto the Breuil–Kisin ring, without slope theory or étale |
| 41 | φ-modules. Source: M. Kisin, Crystalline representations and F-crystals, Progr. Math. 253 (2006), |
| 42 | 459–496; Bhatt–Morrow–Scholze, Integral p-adic Hodge theory, Publ. IHÉS 128 (2018), 4.26–4.34; |
| 43 | Cais–Liu, On F-crystalline representations, Doc. Math. 21 (2016). |
| 44 | -/ |
| 45 | |
| 46 | @[expose] public section |
| 47 | |
| 48 | namespace New.Lift.Chart |
| 49 | |
| 50 | open Period BPlus Algebra Matrix MulSemiringAction Function Witt RingHom Ideal Quotient PreTilt |
| 51 | open WittVector renaming constantCoeff → π |
| 52 | |
| 53 | variable {p : ℕ} [ThePrime p] {d : Type _} {c : Chart} [Fintype d] [DecidableEq d] |
| 54 | |
| 55 | /-- Let R: S → D be a homomorphism to a nontrivial semiring and X a set of vectors over S. If |
| 56 | R(t·x) = 0 for all x in X forces R(t) = 0, some square matrix N with rows in X has R(det N) |
| 57 | ≠ 0. -/ |
| 58 | lemma exists_det_ne_zero {S D : Type*} [CommRing S] [Semiring D] [Nontrivial D] (R : S →+* D) |
| 59 | (X : Set (d → S)) (h_sep : ∀ t : d → S, (∀ x ∈ X, R (t ⬝ᵥ x) = 0) → ∀ i : d, R (t i) = 0) : |
| 60 | ∃ N : Matrix d d S, R (det N) ≠ 0 ∧ ∀ k : d, N k ∈ X := by |
| 61 | -- Among the matrices with `R (det N) ≠ 0` take one whose set of rows in `X` is maximal. |
| 62 | obtain ⟨N, hN, hmax⟩ := exists_maximalFor_of_wellFoundedGT |
| 63 | (fun N : Matrix d d S ↦ R (det N) ≠ 0) (fun N ↦ {k | N k ∈ X}) ⟨1, by simp⟩ |
| 64 | refine ⟨N, hN, fun k ↦ by_contra fun hk ↦ hN ?_⟩ |
| 65 | -- If row `k` is not in `X`, column `k` of the adjugate kills `X` after `R`: its product |
| 66 | -- with `x` is the determinant of `N` with row `k` replaced by `x`, which has more rows in `X`. |
| 67 | have hkill (x : d → S) (hx : x ∈ X) : R ((N.adjugate · k) ⬝ᵥ x) = 0 := by |
| 68 | by_contra hne |
| 69 | have hdet : R (det (N.updateRow k x)) ≠ 0 := by |
| 70 | simpa [← cramer_transpose_apply, cramer_eq_adjugate_mulVec, ← adjugate_transpose] |
| 71 | have h_rows_sub : {l | N l ∈ X} ⊆ {l | N.updateRow k x l ∈ X} := fun l hl ↦ by |
| 72 | by_cases hlk : l = k <;> simp_all |
| 73 | exact hk (hmax hdet h_rows_sub (show k ∈ {l | N.updateRow k x l ∈ X} by simpa using hx)) |
| 74 | -- So `R` kills that column, hence also `det N`, expanded along row `k`. |
| 75 | have h_col : ∀ i : d, R (N.adjugate i k) = 0 := h_sep (N.adjugate · k) hkill |
| 76 | simp [N.det_eq_sum_mul_adjugate_row k, h_col] |
| 77 | |
| 78 | /-- A square matrix M of determinant 0 over a valuation ring R has a kernel vector a, with some |
| 79 | coordinate 1, such that g(a) = a for every ring endomorphism g of R with M·g(a) = 0 (Artin's |
| 80 | minimal support argument). -/ |
| 81 | lemma _root_.New.exists_mulVec_eq_zero_and_forall_comp_eq {R : Type*} [CommRing R] [IsDomain R] |
| 82 | [ValuationRing R] {M : Matrix d d R} (h_det : M.det = 0) : |
| 83 | ∃ (a : d → R) (ν : d), a ν = 1 ∧ M *ᵥ a = 0 ∧ ∀ g : R →+* R, M *ᵥ g ∘ a = 0 → g ∘ a = a := by |
| 84 | classical |
| 85 | -- Take a nonzero kernel vector `w` of minimal support. |
| 86 | obtain ⟨w, ⟨hw, hMw⟩, hmin⟩ := exists_minimalFor_of_wellFoundedLT |
| 87 | (fun v : d → R ↦ v ≠ 0 ∧ M *ᵥ v = 0) support (exists_mulVec_eq_zero_iff.mpr h_det) |
| 88 | -- Ideals of a valuation ring are totally ordered, so one coordinate `w ν` divides all others. |
| 89 | have h_nonempty : Nonempty d := (ne_iff.mp hw).nonempty |
| 90 | obtain ⟨ν, hν⟩ : ∃ ν : d, ∀ i : d, w ν ∣ w i := by |
| 91 | simpa [mem_span_singleton] using Finite.exists_max fun i ↦ (span {w i} : Ideal R) |
| 92 | -- write `w = w ν • a` |
| 93 | choose a ha using hν |
| 94 | generalize ht : w ν = t at ha |
| 95 | obtain rfl : w = t • a := funext ha |
| 96 | have ht₀ : t ≠ 0 := left_ne_zero_of_smul hw |
| 97 | have haν : a ν = 1 := by simpa [ht₀] using ht |
| 98 | have hMa : M *ᵥ a = 0 := by simpa [ht₀, mulVec_smul] using hMw |
| 99 | refine ⟨a, ν, haν, hMa, fun g hg ↦ by_contra fun hne ↦ ?_⟩ |
| 100 | -- Otherwise `g ∘ a - a` is a nonzero kernel vector whose support lies in that of `t • a` |
| 101 | -- but misses `ν`, against minimality. |
| 102 | have hker : M *ᵥ (g ∘ a - a) = 0 := by rw [mulVec_sub, hg, hMa, sub_zero] |
| 103 | have hsub : support (g ∘ a - a) ⊆ support (t • a) := by aesop |
| 104 | have hν_sub : ν ∈ support (g ∘ a - a) := |
| 105 | hmin ⟨sub_ne_zero.mpr hne, hker⟩ hsub (by simp [haν, ht₀]) |
| 106 | -- but `(g ∘ a - a) ν = g 1 - 1 = 0` |
| 107 | simp [haν] at hν_sub |
| 108 | |
| 109 | /-- For a chart `c` (a Λ-algebra map Λ[[X]] → `A_inf`, Λ = `WittFq f`, sending X to z = [ϖ^♭]), let |
| 110 | `S = c.S` be its subring of `A_inf`, with `c.adicBasis` a (p, z)-adic topological basis of `A_inf` |
| 111 | over `S` whose `S`-linear coordinates are `c.adicBasis.coord i`. Let `Q` be a matrix over `A_inf` |
| 112 | such that, for `t` over `S`, `p` divides every entry of `Q t` only if `p` divides every entry of `t` |
| 113 | (`π (t i) = 0`). Then there are `N` over `S` with `p ∤ det N`, and `σ`, `τ`, such that `(N t) k` is |
| 114 | the coordinate `σ k` of entry `τ k` of `Q t`. -/ |
| 115 | lemma exists_det_ne_zero_and_mulVec_eq_coord {Q : Matrix d d Ainf} |
| 116 | (hsat : ∀ t : d → c.S, |
| 117 | (∀ j : d, ↑p ∣ (Q *ᵥ fun i : d ↦ (t i : Ainf)) j) → ∀ i : d, π (t i).val = 0) : |
| 118 | ∃ (N : Matrix d d c.S) (σ : d → c.adicBasis.Index) (τ : d → d), |
| 119 | π N.det.val ≠ 0 ∧ |
| 120 | ∀ (k : d) (t : d → c.S), |
| 121 | (N *ᵥ t) k = c.adicBasis.coord (σ k) ((Q *ᵥ fun i : d ↦ (t i : Ainf)) (τ k)) := by |
| 122 | have hdot (i : c.adicBasis.Index) (j : d) (t : d → c.S) : |
| 123 | t ⬝ᵥ c.adicBasis.coord i ∘ Q j = c.adicBasis.coord i ((Q *ᵥ fun l : d ↦ (t l : Ainf)) j) := by |
| 124 | simp [mulVec_eq_sum, dotProduct, ← Subalgebra.smul_def] |
| 125 | -- The rows `c.adicBasis.coord i ∘ Q j` separate modulo `p`, so `exists_det_ne_zero` applies to |
| 126 | -- them. |
| 127 | have h_sep (t : d → c.S) |
| 128 | (ht : ∀ x ∈ {x : d → c.S | ∃ (i : c.adicBasis.Index) (j : d), c.adicBasis.coord i ∘ Q j = x}, |
| 129 | π (t ⬝ᵥ x).val = 0) : ∀ i : d, π (t i).val = 0 := by |
| 130 | -- `O^♭` is separated for the `π z`-adic topology, as `z = seriesMap X` is not a unit. |
| 131 | have h_haus : IsHausdorff (span {π (c.seriesMap PowerSeries.X)}) OFlat := |
| 132 | OFlat.isHausdorff_span_singleton_of_not_isUnit |
| 133 | (mt Ainf.isUnit_iff_isUnit_constantCoeff.mpr c.not_isUnit_z) |
| 134 | -- All coordinates of `(Q t) j` in the adic basis lie in the kernel of `π`. |
| 135 | have h_coord (j : d) (i : c.adicBasis.Index) : |
| 136 | π (c.adicBasis.coord i ((Q *ᵥ fun l : d ↦ (t l : Ainf)) j)).val = 0 := by |
| 137 | simpa only [hdot] using ht _ ⟨i, j, rfl⟩ |
| 138 | -- So `(Q t) j` lies in `maxIdeal ^ n` modulo the kernel of `π`, and its reduction is |
| 139 | -- divisible by every `(π z) ^ n`, hence zero. |
| 140 | refine hsat t fun j ↦ p_dvd_iff.mpr (h_haus.haus' _ fun n ↦ ?_) |
| 141 | refine SModEq.zero.mpr <| mem_comap.mp <| (Submodule.restrictScalars_mem ..).mp <| |
| 142 | c.adicBasis.mem_of_coord (n := n) ?_ fun i ↦ mul_mem_right _ _ (ker_le_comap π (h_coord j i)) |
| 143 | simp [Ideal.map_pow, ← map_le_iff_le_comap, map_span] |
| 144 | rfl |
| 145 | obtain ⟨N, hN, h_rows⟩ := exists_det_ne_zero (π.domRestrict c.S) _ h_sep |
| 146 | -- row `k` of `N` is the functional of index `σ k` applied to row `τ k` of `Q` |
| 147 | choose σ τ hστ using h_rows |
| 148 | exact ⟨N, σ, τ, hN, fun k t ↦ by rw [mulVec, dotProduct_comm, ← hστ, hdot]⟩ |
| 149 | |
| 150 | /-- Let `ψ : S → T` be a map of commutative rings, `M` a square matrix over `S` and `s` a vector |
| 151 | over `S` such that `ψ` kills every entry of `M s` and `ψ (s ν) = 1` for some `ν`. Then |
| 152 | `ψ (det M) = 0`. -/ |
| 153 | lemma _root_.RingHom.map_det_eq_zero_of_map_mulVec_eq_zero {S T : Type*} [CommRing S] |
| 154 | [CommRing T] (ψ : S →+* T) {M : Matrix d d S} {s : d → S} |
| 155 | (hMs : ∀ k : d, ψ ((M *ᵥ s) k) = 0) {ν : d} (hν : ψ (s ν) = 1) : ψ M.det = 0 := by |
| 156 | -- `M.map ψ` kills the vector `ψ ∘ s`, whose entry `ν` is `1` |
| 157 | have h_mulVec_zero : M.map ψ *ᵥ ψ ∘ s = 0 := |
| 158 | funext fun k ↦ (ψ.map_mulVec M s k).symm.trans (hMs k) |
| 159 | exact (ψ.map_det M).trans |
| 160 | (det_eq_zero_of_mulVec_eq_zero_of_mem_nonZeroDivisors h_mulVec_zero (i := ν) (by simp [hν])) |
| 161 | |
| 162 | omit [DecidableEq d] in |
| 163 | /-- Let `m ∈ FrobGal` and `C = ρ m(Q)` for matrices over `A_inf`. Then `m` maps the kernel of the |
| 164 | reduction of `Q` modulo `p` into the kernel of the reduction of `C`: if `π(Q) a = 0` then |
| 165 | `π(C) m(a) = 0`. -/ |
| 166 | lemma map_mulVec_comp_eq_zero_of_eq_mul_smul {Q ρ C : Matrix d d Ainf} {m : FrobGal} |
| 167 | {a : d → OFlat} (hC : C = ρ * m • Q) (ha : Q.map π *ᵥ a = 0) : |
| 168 | C.map π *ᵥ toRingHom FrobGal OFlat m ∘ a = 0 := by |
| 169 | -- `π` commutes with the action of `m` |
| 170 | have h_map_smul : (m • Q).map WittVector.constantCoeff = Q.map fun x ↦ m • x.coeff 0 := rfl |
| 171 | simpa [hC, ← Pi.zero_def, comp_def, map_mulVec, h_map_smul] using |
| 172 | congrArg (fun v ↦ ρ.map π *ᵥ toRingHom FrobGal OFlat m ∘ v) ha |
| 173 | |
| 174 | /-- Let `Q B` be a left multiple of the Frobenius twist of `Q`, and let `a` be in the kernel of |
| 175 | the reduction `π(Q)`. For every `n` there is a matrix `C` over `S` such that `π(Q)` kills |
| 176 | `π(C) a ^ p ^ n` and `K · π(det C)` divides `K ^ p ^ n`, where `K = π(det B) · k`. -/ |
| 177 | private lemma exists_dvd_pow_and_mulVec_pow_eq_zero {Q ρ : Matrix d d Ainf} |
| 178 | {B : Matrix d d c.S} {a : d → OFlat} |
| 179 | (hφ : Q * B.map (↑) = ρ * ((Multiplicative.ofAdd 1, 1) : FrobGal) • Q) |
| 180 | (ha : Q.map π *ᵥ a = 0) (k : OFlat) (n : ℕ) : |
| 181 | ∃ C : Matrix d d c.S, |
| 182 | (π : Ainf →+* OFlat).domRestrict c.S B.det * k * |
| 183 | (π : Ainf →+* OFlat).domRestrict c.S (det C) ∣ |
| 184 | ((π : Ainf →+* OFlat).domRestrict c.S B.det * k) ^ p ^ n ∧ |
| 185 | Q.map π *ᵥ C.map ((π : Ainf →+* OFlat).domRestrict c.S) *ᵥ a ^ p ^ n = 0 := by |
| 186 | let R : c.S →+* OFlat := π.domRestrict c.S |
| 187 | have hR_apply (x : c.S) : R x = (x : Ainf).coeff 0 := rfl |
| 188 | let K : OFlat := R B.det * k |
| 189 | change ∃ C : Matrix d d c.S, |
| 190 | K * R (det C) ∣ K ^ p ^ n ∧ Q.map π *ᵥ C.map R *ᵥ a ^ p ^ n = 0 |
| 191 | induction n with |
| 192 | | zero => |
| 193 | exact ⟨1, by simpa [R.map_one, show (1 : Matrix d d c.S).map R = 1 from R.mapMatrix.map_one]⟩ |
| 194 | | succ n ih => |
| 195 | obtain ⟨C, hCK, hCa⟩ := ih |
| 196 | -- the Frobenius `(ofAdd 1, 1)` acts on `OFlat` as `frobEnd` and commutes with `R` |
| 197 | have h_frob_a (y : OFlat) : ((.ofAdd 1, 1) : FrobGal) • y = frobEnd y := rfl |
| 198 | have hR_phi (x : c.S) : R (c.φ x) = frobEnd (R x) := rfl |
| 199 | have hCa_succ : Q.map π *ᵥ (B * C.map c.φ).map R *ᵥ a ^ p ^ (n + 1) = 0 := by |
| 200 | simpa [pow_mul, Pi.pow_def, comp_def, pow_succ, ← OFlat.frobEnd_apply, ← mul_assoc, |
| 201 | map_mulVec, ← hR_apply, hR_phi, h_frob_a] using |
| 202 | map_mulVec_comp_eq_zero_of_eq_mul_smul hφ hCa |
| 203 | refine ⟨B * C.map c.φ, ?_, hCa_succ⟩ |
| 204 | grw [det_mul, map_mul, pow_succ, pow_mul, ← hCK, mul_pow, |
| 205 | ← pow_dvd_pow K (Fact.out : 1 < p), Dvd.intro _ (refl K)] |
| 206 | simp [map_det, comp_def, ← mul_assoc, pow_succ, ← OFlat.frobEnd_apply, hR_phi] |
| 207 | |
| 208 | /-- Let `Q` over `Ainf` be `p`-saturated over `S` (`p` divides every entry of `Q t`, for `t` over |
| 209 | `S`, only if `p` divides every entry of `t`), with `Q B` a left multiple of the Frobenius twist of |
| 210 | `Q`, `p ∤ det B`, and `Q` a left multiple of `(1, g) • Q` for each `g` in `Gp p` fixing `S` (`g` |
| 211 | acts on `A_inf` as `(1, g)` in `FrobGal`). Then `p ∤ det Q`. -/ |
| 212 | lemma not_dvd_det_of_frobenius {Q ρ : Matrix d d Ainf} {B : Matrix d d c.S} |
| 213 | (hsat : ∀ t : d → c.S, |
| 214 | (∀ j : d, ↑p ∣ (Q *ᵥ fun i : d ↦ (t i : Ainf)) j) → ∀ i : d, π (t i).val = 0) |
| 215 | (hφ : Q * B.map (↑) = ρ * ((Multiplicative.ofAdd 1, 1) : FrobGal) • Q) (hB : π B.det.val ≠ 0) |
| 216 | (hgal : ∀ g : Gp p, (∀ s : c.S, g • s.val = s) → ∃ ρ' : Matrix d d Ainf, |
| 217 | Q = ρ' * ((1, g) : FrobGal) • Q) : |
| 218 | ¬↑p ∣ Q.det := by |
| 219 | -- Otherwise the reduction of `Q` kills a vector `a` fixed by the fixer of `S`, so approximable |
| 220 | -- from `S`. This forces every component of `K = det B · det N ≠ 0` (mod `p`) to vanish. |
| 221 | intro hp |
| 222 | let R : c.S →+* OFlat := π.domRestrict c.S |
| 223 | have hR_apply (x : c.S) : R x = (x : Ainf).coeff 0 := rfl |
| 224 | obtain ⟨N, σ, τ, hN, hNQ⟩ := exists_det_ne_zero_and_mulVec_eq_coord hsat |
| 225 | -- `a`: a kernel vector of `π(Q)` with `a ν = 1`, fixed by every ring map `g` with |
| 226 | -- `π(Q) (g ∘ a) = 0` |
| 227 | obtain ⟨a, ν, haν, ha, hfix⟩ := |
| 228 | exists_mulVec_eq_zero_and_forall_comp_eq (M := Q.map π) |
| 229 | ((π.map_det Q).symm.trans (p_dvd_iff.mp hp)) |
| 230 | have hga (g : Gp p) (hg : ∀ s : c.S, g • s.val = s) (i : d) : g • a i = a i := by |
| 231 | obtain ⟨ρ', hρ'⟩ := hgal g hg |
| 232 | exact congrFun (hfix _ (map_mulVec_comp_eq_zero_of_eq_mul_smul hρ' ha)) i |
| 233 | let K : OFlat := R B.det * R N.det |
| 234 | refine mul_ne_zero hB hN (Perfection.ext (f := K) fun M ↦ ?_) |
| 235 | -- Component `M` of the fixed vector `a` is component `M + n` of a vector `s` over `S`. |
| 236 | have h_eventually : ∀ᶠ m in Filter.atTop, ∀ i : d, ∃ s : c.S, |
| 237 | coeff M (a i) = coeff m (π s.val) := |
| 238 | Filter.eventually_all.mpr fun i ↦ |
| 239 | c.eventually_exists_coeff_eq_of_fixed (fun g hg ↦ hga g hg i) M |
| 240 | have approx : ∃ n : ℕ, ∀ i : d, ∃ s : c.S, coeff M (a i) = coeff (M + n) (π s.val) := |
| 241 | ((add_right_injective M).nat_tendsto_atTop.eventually h_eventually).exists |
| 242 | choose n s hs using approx |
| 243 | -- `C = B · φ B ⋯ φⁿ⁻¹ B` carries `a ^ p ^ n` to the kernel, and `K · det C ∣ K ^ p ^ n`. |
| 244 | obtain ⟨C, hCK, hCa⟩ : ∃ C : Matrix d d c.S, |
| 245 | K * R (det C) ∣ K ^ p ^ n ∧ Q.map π *ᵥ C.map R *ᵥ a ^ p ^ n = 0 := |
| 246 | exists_dvd_pow_and_mulVec_pow_eq_zero hφ ha (R N.det) n |
| 247 | -- Let `ψ` be the component `M + n` of the reduction, that is `θ ∘ φ ^ (-(M + n))` modulo `p`. |
| 248 | -- This component of `Q C s` vanishes; by `exists_frobE_dvd_sub_of_dvd` the vanishing passes |
| 249 | -- through `S`-linear maps `A_inf → S`, so `ψ` kills `N C s`. |
| 250 | let ψ : c.S →+* ModP OC p := (coeff (M + n)).comp R |
| 251 | have hNCs (k : d) : ψ (((N * C) *ᵥ s) k) = 0 := by |
| 252 | have hdvd : thetaPhiInv (M + n) (p : c.S).val ∣ |
| 253 | thetaPhiInv (M + n) ((Q *ᵥ fun i : d ↦ (C *ᵥ s) i) (τ k)) := by |
| 254 | simpa [OFlat, ← eq_zero_iff_dvd, mk_thetaPhiInv_eq_coeff, mulVec_eq_sum, hs, |
| 255 | ← iterate_frobenius, hR_apply] using congrArg (coeff (M + n)) (congrFun hCa (τ k)) |
| 256 | obtain ⟨x, y, hx⟩ : |
| 257 | ∃ x : c.S, |
| 258 | c.frobE (M + n) ∣ c.adicBasis.coord (σ k) ((Q *ᵥ fun i : d ↦ (C *ᵥ s) i) (τ k)) - p * x := |
| 259 | c.exists_frobE_dvd_sub_of_dvd _ (c.adicBasis.coord (σ k)) p _ hdvd |
| 260 | have hψ_apply (x : c.S) : ψ x = coeff (M + n) (π x.val) := rfl |
| 261 | rw [hψ_apply, ← mulVec_mulVec, hNQ, ← mk_thetaPhiInv_eq_coeff, eq_add_of_sub_eq hx] |
| 262 | simp [CharP.cast_eq_zero, frobE_dvd_iff.mp dvd_rfl] |
| 263 | -- As `ψ (s ν) = 1`, it kills `det (N C)`, hence `K ^ p ^ n`, whose image is component `M` of `K`. |
| 264 | have hψ_s : ψ (s ν) = 1 := by simpa [ψ, hR_apply, haν] using (hs ν).symm |
| 265 | have hdet : ψ (N * C).det = 0 := ψ.map_det_eq_zero_of_map_mulVec_eq_zero hNCs hψ_s |
| 266 | have h_NC : coeff (M + n) (R N.det) * coeff (M + n) (R C.det) = 0 := by simpa [ψ] using hdet |
| 267 | have h_zero : coeff (M + n) (K * R C.det) = 0 := by simp [K, mul_assoc, h_NC] |
| 268 | have h_pow : coeff (M + n) (K ^ p ^ n) = coeff M K := by simp [OFlat, ← iterate_frobenius] |
| 269 | have h_map : coeff (M + n) (K * R C.det) ∣ coeff (M + n) (K ^ p ^ n) := map_dvd _ hCK |
| 270 | rw [h_zero, zero_dvd_iff, h_pow] at h_map |
| 271 | exact h_map.trans (map_zero _).symm |
| 272 | |
| 273 | omit [DecidableEq d] in |
| 274 | /-- Apply `m` to `U Z = E ^ h Q`, given `ρ m(U) = U F` and `w m(E) = E r`: then |
| 275 | `U w ^ h F m(Z) = E ^ h r ^ h ρ m(Q)`. Here `m` in `FrobGal` acts entrywise on matrices. -/ |
| 276 | lemma mul_smul_mul_smul_eq_smul_map_of_mul_eq {U Z : Matrix d d BPlus} {Q : Matrix d d Ainf} {h : ℕ} |
| 277 | (hUZ : U * Z = c.E.val ^ h • Q.map ainfToBPlus) (m : FrobGal) (ρ : Matrix d d Ainf) |
| 278 | (F : Matrix d d BPlus) (w : BPlus) (r : Ainf) (hU : ρ.map ainfToBPlus * m • U = U * F) |
| 279 | (hE : w * ainfToBPlus (m • c.E.val) = ainfToBPlus (c.E.val * r)) : |
| 280 | U * w ^ h • (F * m • Z) = c.E.val ^ h • (r ^ h • ρ * m • Q).map ainfToBPlus := by |
| 281 | classical |
| 282 | rw [mul_smul_comm, ← mul_assoc, ← hU, mul_assoc] |
| 283 | -- `m` acts on matrices entrywise, through the ring map `(toRingHom _ _ m).mapMatrix` |
| 284 | change w ^ h • (ρ.map ainfToBPlus * ((toRingHom FrobGal BPlus m).mapMatrix U * |
| 285 | (toRingHom FrobGal BPlus m).mapMatrix Z)) = _ |
| 286 | rw [← map_mul] |
| 287 | ext |
| 288 | simp [smul_def (A := BPlus), Matrix.mul_apply, Finset.mul_sum, mul_left_comm (ainfToBPlus _), *, |
| 289 | ← mul_assoc, ← mul_pow] |
| 290 | |
| 291 | /-- Let `c` be a chart, let `E` be the image of its series X^e A + p (ξ times a unit), |
| 292 | `τ = [ε^{1/p}] - 1`, and `B⁺ = A_max[1/p]`. Let `U`, `U'` over `B⁺` satisfy `U U' = (E τ) ^ h`. If |
| 293 | every solution of `U Y = E ^ h X` with `X` over `A_inf` and `Y` over `B⁺` has `X = Q L` for some `L` |
| 294 | over `A_inf`, then `Q L = τ ^ h` for some `L` and `Q` divides `U` over `B⁺`. -/ |
| 295 | lemma exists_mul_eq_tau_pow_and_map_dvd {U U' : Matrix d d BPlus} {Q : Matrix d d Ainf} {h : ℕ} |
| 296 | (hUU' : U * U' = (c.E * tau) ^ h • 1) |
| 297 | (hQ : ∀ {X : Matrix d d Ainf} {Y : Matrix d d BPlus}, |
| 298 | U * Y = c.E.val ^ h • X.map ainfToBPlus → ∃ L : Matrix d d Ainf, Q * L = X) : |
| 299 | ∃ L : Matrix d d Ainf, Q * L = tau ^ h • 1 ∧ Q.map ainfToBPlus ∣ U := by |
| 300 | obtain ⟨t, ht⟩ : ∃ t : Ainf, mu = c.E * tau * t := c.associated_E_mul_tau_mu.dvd |
| 301 | obtain ⟨q, -, hqp⟩ : ∃ q ∈ c.bicommutant, q * p = 1 := c.exists_bicommutant_mul_p_eq_one |
| 302 | have hUU'_eq : U * U' = c.E.val ^ h • (tau ^ h • (1 : Matrix d d Ainf)).map ainfToBPlus := by |
| 303 | simp [-map_pow, *, map_smul', smul_smul, ← mul_pow] |
| 304 | obtain ⟨L, hL⟩ := hQ hUU'_eq |
| 305 | -- Approximate `p ^ n U` by a matrix over `Ainf` modulo `p ^ n μ ^ h`, where `μ = E τ t`. |
| 306 | have h_approx (y : BPlus) : ∃ (m : ℕ) (a : Ainf), ∃ w ∈ amaxImage, |
| 307 | (p : BPlus) ^ m * y = |
| 308 | algebraMap Ainf BPlus a + (p : BPlus) ^ (m + 0) * algebraMap Ainf BPlus mu ^ h * w := |
| 309 | y.exists_Ainf_approx 0 h |
| 310 | choose k a w hw_mem hka using h_approx |
| 311 | obtain ⟨n, hn⟩ : ∃ n : ℕ, ∀ i : d × d, (k ∘ U.uncurry) i ≤ n := Finite.exists_le _ |
| 312 | -- With a common exponent `n`, the matrix of approximations is `U` times a matrix over `B⁺`. |
| 313 | have hX : (U.map fun y : BPlus ↦ p ^ (n - k y) * a y).map ainfToBPlus = |
| 314 | U * ainfToBPlus p ^ n • (1 - t ^ h • U' * U.map w) := by |
| 315 | ext i j |
| 316 | simp [*, ← pow_sub_mul_pow _ (hn (i, j)), mul_sub, ← mul_assoc, smul_smul, ← mul_pow] |
| 317 | -- a ring identity from `hka` and `ht` alone; the other facts are cleared so grind ignores them |
| 318 | clear * - hka ht |
| 319 | grind [smul_def] |
| 320 | have h_sol : U * (c.E.val ^ h • ainfToBPlus p ^ n • (1 - t ^ h • U' * U.map w)) = |
| 321 | c.E.val ^ h • (U.map fun y : BPlus ↦ p ^ (n - k y) * a y).map ainfToBPlus := by |
| 322 | rw [hX, mul_smul_comm] |
| 323 | obtain ⟨γ, hγ⟩ := hQ h_sol |
| 324 | -- Divide by `p ^ n` and rewrite the error term using `Q L = τ ^ h`. |
| 325 | refine ⟨L, hL, q ^ n • γ.map ainfToBPlus + (t * c.E) ^ h • L.map ainfToBPlus * U.map w, ?_⟩ |
| 326 | simp [mul_add, ← Matrix.map_mul, *, -map_pow, mul_sub, ← mul_assoc, smul_smul, ← mul_pow, |
| 327 | map_smul'] |
| 328 | |
| 329 | /-- If `det Q ≠ 0` and `φ Q = v Q B` with `v` a unit and `B` over `S`, then `p ∤ det B`. -/ |
| 330 | lemma constantCoeff_det_ne_zero {Q : Matrix d d Ainf} {B : Matrix d d c.S} {v : Ainfˣ} |
| 331 | (hQ₀ : Q.det ≠ 0) (hB : Q.map frobEnd = v • (Q * B.map (↑))) : |
| 332 | π B.det.val ≠ 0 := by |
| 333 | -- If `p ∣ det B` then `p ^ n ∣ det Q` gives `p ^ (n + 1) ∣ φ (det Q)`, so `det Q = 0`. |
| 334 | refine fun hB₀ ↦ hQ₀ (eq_of_forall_pow_dvd_sub p fun n ↦ ?_) |
| 335 | rw [show B.det.val = (B.map (↑)).det from c.S.val.toRingHom.map_det B] at hB₀ |
| 336 | induction n with |
| 337 | | zero => simp |
| 338 | | succ n ih => |
| 339 | refine (map_dvd_iff (MulEquiv.ofBijective _ frobEnd_bijective)).mp ?_ |
| 340 | simpa [hB, map_det, pow_succ, Units.smul_def] using |
| 341 | (mul_dvd_mul ih (p_dvd_iff.mpr hB₀)).mul_left _ |
| 342 | |
| 343 | /-- Frobenius step of the frame theorem. Let `U Z = E ^ h Q` with `Z` over `S_B`, let every `x` |
| 344 | over `A_inf` with `U y = E ^ h x` for some `y` over `S_B` be `Q s` with `s` over `S` (`hspan`), let |
| 345 | `φ(U) = v U F` with `F` over `S_B`, and let `u ∈ S_B` invert `φ(E)`. Then `Q B = v⁻¹ φ(Q)` for a |
| 346 | matrix `B` over `S`; here `(ofAdd 1, 1)` in `FrobGal` acts as the Frobenius `φ`. -/ |
| 347 | lemma exists_mul_map_eq_frobenius_smul {U Z F : Matrix d d BPlus} {Q : Matrix d d Ainf} {h : ℕ} |
| 348 | {v : Ainfˣ} {u : BPlus} (hZ : ∀ i j : d, Z i j ∈ c.bicommutant) |
| 349 | (hUZ : U * Z = c.E.val ^ h • Q.map ainfToBPlus) |
| 350 | (hspan : ∀ (x : d → Ainf) (y : d → BPlus), (∀ i : d, y i ∈ c.bicommutant) → |
| 351 | U *ᵥ y = c.E.val ^ h • ainfToBPlus ∘ x → ∃ s : d → c.S, Q *ᵥ (↑) ∘ s = x) |
| 352 | (hF : ∀ i j : d, F i j ∈ c.bicommutant) (hφU : U.map frobEnd = v • (U * F)) |
| 353 | (hu : u ∈ c.bicommutant) (huE : u * ainfToBPlus (c.φ c.E) = 1) : |
| 354 | ∃ B : Matrix d d c.S, Q * B.map (↑) = (v⁻¹ • 1) * ((.ofAdd 1, 1) : FrobGal) • Q := by |
| 355 | -- Apply the Frobenius, which acts entrywise, to `U Z = E ^ h Q`: the columns of `v⁻¹ φ(Q)` |
| 356 | -- satisfy the hypothesis of `hspan`, with solutions `(E u) ^ h F φ(Z)` over `S_B`. |
| 357 | let φ : FrobGal := (.ofAdd 1, 1) |
| 358 | have hU_frob : (v⁻¹ • 1 : Matrix d d Ainf).map ainfToBPlus * φ • U = U * F := by |
| 359 | rw [show φ • U = U.map frobEnd from rfl, hφU] |
| 360 | simp [Units.smul_def, map_smul', smul_smul] |
| 361 | have hE_frob : ainfToBPlus c.E.val * u * ainfToBPlus (φ • c.E.val) = |
| 362 | ainfToBPlus (c.E.val * 1) := by |
| 363 | rw [show φ • c.E.val = (c.φ c.E).val from rfl, mul_assoc, huE, mul_one, mul_one] |
| 364 | have hact := mul_smul_mul_smul_eq_smul_map_of_mul_eq hUZ φ (v⁻¹ • 1) F (ainfToBPlus c.E.val * u) 1 |
| 365 | hU_frob hE_frob |
| 366 | have h_mem (j i : d) : ((ainfToBPlus c.E.val * u) ^ h • (F * φ • Z)) i j ∈ c.bicommutant := |
| 367 | mul_mem (pow_mem (mul_mem (ainfToBPlus_mem_bicommutant _) hu) h) |
| 368 | (sum_mem fun _ _ ↦ mul_mem (hF _ _) (c.frobEnd_mem_bicommutant (hZ _ _))) |
| 369 | have h_col (j : d) : ∃ s : d → c.S, |
| 370 | Q *ᵥ (↑) ∘ s = fun i : d ↦ ((1 : Ainf) ^ h • (v⁻¹ • 1) * φ • Q) i j := |
| 371 | hspan _ _ (h_mem j) (congrFun (congrArg col hact) j) |
| 372 | choose b hb using h_col |
| 373 | have hQb : Q * bᵀ.map (↑) = (1 : Ainf) ^ h • (v⁻¹ • 1) * φ • Q := ext_col hb |
| 374 | rw [one_pow, one_smul] at hQb |
| 375 | exact ⟨bᵀ, hQb⟩ |
| 376 | |
| 377 | /-- Galois step of the frame theorem. Let `U` be a period matrix of height `h` with `U Z = E ^ h Q`. |
| 378 | For `g` satisfying `c.FixesThetaZ` (this holds when `g` fixes `S` pointwise; the Frobenius factor |
| 379 | `v` is not used) there is `ρ` over `A_inf` with `U g(Z) = E ^ h ρ g(Q)`; here `(1, g)` in `FrobGal` |
| 380 | acts as `g`. -/ |
| 381 | lemma IsPeriodMatrix.exists_mul_smul_eq_of_fixesThetaZ {U Z : Matrix d d BPlus} |
| 382 | {Q : Matrix d d Ainf} {h : ℕ} {v : Ainfˣ} (hU : c.IsPeriodMatrix U h v) |
| 383 | (hUZ : U * Z = c.E.val ^ h • Q.map ainfToBPlus) {g : Gp p} (hg : c.FixesThetaZ g) : |
| 384 | ∃ ρ : Matrix d d Ainf, |
| 385 | U * g • Z = c.E.val ^ h • (ρ * ((1, g) : FrobGal) • Q).map ainfToBPlus := by |
| 386 | -- `g` acts on `U` through `ρ` (`exists_gal`) and multiplies `E` by a unit `r` |
| 387 | -- (`associated_smul_E`); apply it to `U Z = E ^ h Q` with |
| 388 | -- `mul_smul_mul_smul_eq_smul_map_of_mul_eq`. |
| 389 | obtain ⟨ρ, hρ⟩ := hU.exists_gal g hg |
| 390 | obtain ⟨r, hr⟩ := c.associated_smul_E g |
| 391 | have hact : U * ((1, g) : FrobGal) • Z = |
| 392 | c.E.val ^ h • ((r : Ainf) ^ h • ρ * ((1, g) : FrobGal) • Q).map ainfToBPlus := by |
| 393 | simpa only [one_pow, one_smul, one_mul] using mul_smul_mul_smul_eq_smul_map_of_mul_eq hUZ (1, g) |
| 394 | ρ 1 1 r |
| 395 | (hρ.trans (mul_one U).symm) ((one_mul _).trans (congrArg ainfToBPlus hr.symm)) |
| 396 | exact ⟨(r : Ainf) ^ h • ρ, hact⟩ |
| 397 | |
| 398 | /-- Saturation step of the frame theorem. Let `det Q ≠ 0`, `U Z = E ^ h Q` with `Z` over `S_B`, |
| 399 | let `hspan` be as in `exists_basis`, and let `q ∈ S_B` invert `p`. If `p` divides every entry of |
| 400 | `Q s` for `s` over `S`, then `p` divides every entry of `s`: `π (s i) = 0`. -/ |
| 401 | lemma constantCoeff_eq_zero_of_p_dvd_mulVec {U Z : Matrix d d BPlus} {Q : Matrix d d Ainf} |
| 402 | {h : ℕ} {q : BPlus} (hQ₀ : Q.det ≠ 0) (hUZ : U * Z = c.E.val ^ h • Q.map ainfToBPlus) |
| 403 | (hspan : ∀ (x : d → Ainf) (y : d → BPlus), (∀ i : d, y i ∈ c.bicommutant) → |
| 404 | U *ᵥ y = c.E.val ^ h • ainfToBPlus ∘ x → ∃ s : d → c.S, Q *ᵥ (↑) ∘ s = x) |
| 405 | (hZ : ∀ i j : d, Z i j ∈ c.bicommutant) (hq : q ∈ c.bicommutant) (hqp : q * p = 1) |
| 406 | (s : d → c.S) (hs : ∀ j : d, ↑p ∣ (Q *ᵥ fun i : d ↦ (s i : Ainf)) j) (i : d) : |
| 407 | π (s i).val = 0 := by |
| 408 | -- If `Q s = p w` then `U (Z s / p) = E ^ h w`, so `w = Q s'` and `s = p s'`. |
| 409 | obtain ⟨w, hw⟩ := pi_dvd_iff.mpr hs |
| 410 | have h_mem (l : d) : (Z *ᵥ q • fun i ↦ ainfToBPlus (s i)) l ∈ c.bicommutant := by |
| 411 | refine _root_.sum_mem fun j _ ↦ ?_ |
| 412 | simp [mul_mem, *] |
| 413 | have h_sol : U *ᵥ (Z *ᵥ q • fun i ↦ ainfToBPlus (s i)) = c.E.val ^ h • ainfToBPlus ∘ w := by |
| 414 | ext x |
| 415 | simpa [hUZ, hqp, mulVec_smul, smul_mulVec, comp_def, map_mulVec, ← mul_assoc, |
| 416 | -IsRegular.smul_right_inj, -smul_right_inj] using |
| 417 | congrArg (fun y : Ainf ↦ c.E.val ^ h • (q * ainfToBPlus y)) (congrFun hw x) |
| 418 | obtain ⟨s', rfl⟩ := hspan w _ h_mem h_sol |
| 419 | have h_s_eq : (fun i ↦ (s i : Ainf)) = (p : Ainf) • fun i ↦ (s' i : Ainf) := by |
| 420 | refine mulVec_injective_of_det_ne_zero hQ₀ ?_ |
| 421 | rw [hw, mulVec_smul] |
| 422 | rfl |
| 423 | exact p_dvd_iff.mp ⟨s' i, congrFun h_s_eq i⟩ |
| 424 | |
| 425 | /-- Galois step for `p ∤ det Q`. Let `U Z = E ^ h Q` with `Z` over `S_B` for a period matrix `U`. |
| 426 | For an element `g` of `G_p` that fixes `S` pointwise there is `ρ` over `A_inf` with `Q = ρ g(Q)`; |
| 427 | here `(1, g)` in `FrobGal` acts as `g`. -/ |
| 428 | lemma IsPeriodMatrix.exists_eq_mul_smul_of_forall_smul_eq {U Z : Matrix d d BPlus} |
| 429 | {Q : Matrix d d Ainf} {h : ℕ} {v : Ainfˣ} (hU : c.IsPeriodMatrix U h v) |
| 430 | (hZ : ∀ i j : d, Z i j ∈ c.bicommutant) (hUZ : U * Z = c.E.val ^ h • Q.map ainfToBPlus) |
| 431 | (g : Gp p) (hg : ∀ s : c.S, g • s.val = s) : |
| 432 | ∃ ρ : Matrix d d Ainf, Q = ρ * ((1, g) : FrobGal) • Q := by |
| 433 | -- `g` is an `S`-linear map that keeps `amaxImage`, so it commutes with `S_B` and fixes `Z`. |
| 434 | have hgZ : g • Z = Z := by |
| 435 | ext i j |
| 436 | let gLin : BPlus →ₗ[c.S] BPlus := |
| 437 | ⟨(toRingHom _ _ g).toAddHom, by simp [c.S.smul_def, smul_def, hg]⟩ |
| 438 | -- evaluate at `1`: `g (Z i j) = Z i j * g 1 = Z i j` |
| 439 | simpa [gLin] using LinearMap.congr_fun (hZ i j gLin smul_mem_amaxImage : |
| 440 | gLin * lmul c.S BPlus (Z i j) = lmul c.S BPlus (Z i j) * gLin) 1 |
| 441 | -- The constants and `z` lie in `S`, so `g` satisfies `FixesThetaZ`; cancel `E ^ h` in |
| 442 | -- `exists_mul_smul_eq_of_fixesThetaZ`. |
| 443 | have hg_fixes : c.FixesThetaZ g := by simp [← theta_smul, FixesThetaZ, FixesLambda, hg ⟨_, _⟩] |
| 444 | obtain ⟨ρ, hact⟩ := hU.exists_mul_smul_eq_of_fixesThetaZ hUZ hg_fixes |
| 445 | rw [hgZ, hUZ] at hact |
| 446 | -- `hact` reads `E ^ h Q = E ^ h ρ g(Q)` over `B⁺`; cancel `E ^ h ≠ 0` and the injective map |
| 447 | -- `A_inf → B⁺`, entry by entry. |
| 448 | refine ⟨ρ, Matrix.ext fun i j ↦ ?_⟩ |
| 449 | simpa [smul_def, c.E_ne_zero, -Matrix.map_mul] using congrFun (congrFun hact i) j |
| 450 | |
| 451 | /-- Span step of the frame theorem. Let `p ∤ det Q` and let `hdvd` be as in |
| 452 | `exists_basis`. Then every solution of `U Y = E ^ h X` with `X` over `A_inf` has `X = Q L` for |
| 453 | some `L` over `A_inf`. -/ |
| 454 | lemma exists_mul_eq_of_mul_eq_smul {U : Matrix d d BPlus} {Q : Matrix d d Ainf} {h : ℕ} |
| 455 | (hdvd : ∀ (x : d → Ainf) (y : d → BPlus), U *ᵥ y = c.E.val ^ h • ainfToBPlus ∘ x → |
| 456 | ∀ (δ : Ainf) (l g : d → Ainf), ¬↑p ∣ δ → l ᵥ* Q = δ • g → δ ∣ l ⬝ᵥ x) |
| 457 | (hp : ¬↑p ∣ Q.det) {X : Matrix d d Ainf} {Y : Matrix d d BPlus} |
| 458 | (hY : U * Y = c.E.val ^ h • X.map ainfToBPlus) : |
| 459 | ∃ L : Matrix d d Ainf, Q * L = X := by |
| 460 | -- `det Q` divides the entries of `adjugate Q * X`: apply `hdvd` to the columns of `Y` and the |
| 461 | -- rows of `adjugate Q`, whose product with `Q` is `det Q` times a row of `1`. |
| 462 | have h_dvd_entry (i j : d) : Q.det ∣ Q.adjugate i ⬝ᵥ fun l : d ↦ X l j := |
| 463 | hdvd _ _ (congrFun (congrArg col hY) j) _ _ _ hp (congrFun (adjugate_mul Q) i) |
| 464 | choose L hL using h_dvd_entry |
| 465 | have hadj : Q.adjugate * X = Q.det • of L := ext hL |
| 466 | have hQ₀ : Q.det ≠ 0 := fun h ↦ hp (h ▸ dvd_zero _) |
| 467 | refine ⟨of L, (smul_right_inj hQ₀).mp ?_⟩ |
| 468 | simp [← mul_smul_comm, mul_adjugate, ← hadj, ← mul_assoc] |
| 469 | |
| 470 | /-- The frame theorem. Let `U` be a period matrix of height `h` with Frobenius factor `v`; among |
| 471 | other things, `U` over `B⁺` divides `(E τ) ^ h` with τ = [ε^{1/p}] − 1, and `φ U = v U F` with `F` |
| 472 | over `S_B` = `c.bicommutant`. There are `Q`, `L` over `A_inf`, `Z`, `Z'` over `B⁺` and `B` over `S` |
| 473 | such that: (a) `Q L = τ ^ h`; (b) `Z` has entries in `S_B`; (c) `U Z = E ^ h Q`; (d) `Z' Z = E ^ h`; |
| 474 | (e) `φ Q = v Q B`; (f) if `g` satisfies `c.FixesThetaZ` (fixes Λ and θ(z)), then `g(Z) = Z G` for |
| 475 | some `G` over `A_inf`. Scalars stand for scalar matrices. |
| 476 | |
| 477 | This proves the case of Kisin's theorem on the φ-module of a crystalline lattice over the |
| 478 | Breuil–Kisin ring that is used: it is stated for matrices, starts from a given period matrix over |
| 479 | `B⁺`, and says nothing on finite height. -/ |
| 480 | lemma IsPeriodMatrix.exists_frame {U : Matrix d d BPlus} {h : ℕ} {v : Ainfˣ} |
| 481 | (hU : c.IsPeriodMatrix U h v) : |
| 482 | ∃ (Q L : Matrix d d Ainf) (Z Z' : Matrix d d BPlus) (B : Matrix d d c.S), |
| 483 | Q * L = tau ^ h • 1 ∧ |
| 484 | (∀ (i : d) (j : d), Z i j ∈ c.bicommutant) ∧ |
| 485 | U * Z = c.E.val ^ h • Q.map ainfToBPlus ∧ |
| 486 | Z' * Z = c.E.val ^ h • 1 ∧ |
| 487 | Q.map frobEnd = v • (Q * B.map (↑)) ∧ |
| 488 | ∀ g : Gp p, c.FixesThetaZ g → ∃ G : Matrix d d Ainf, |
| 489 | g • Z = Z * Matrix.map G ainfToBPlus := by |
| 490 | -- Take the basis `Q`, `Z` of `exists_basis`. Frobenius gives `B`; the key point is `p ∤ det Q`, |
| 491 | -- after which every solution of `U Y = E ^ h X` has `X` in the span of `Q` over `Ainf`. |
| 492 | -- `hspan`: if `U y = E ^ h x` with `y` over `S_B`, then `x ∈ Q S ^ d`. |
| 493 | -- `hdvd`: if `U y = E ^ h x`, `p ∤ δ` and `δ` divides the row `l Q`, then `δ ∣ l ⬝ᵥ x`. |
| 494 | obtain ⟨Q, Z, hQ₀, hZ, hUZ, hspan, hdvd⟩ := hU.exists_basis |
| 495 | obtain ⟨U', hUU'⟩ := hU.exists_mul_eq_smul_one |
| 496 | -- `hφU : φ U = v U F` with `F` over `S_B` |
| 497 | obtain ⟨F, -, hF, -, hφU⟩ := hU.exists_frob |
| 498 | -- `φ E` and `p` have inverses `u`, `q` in `S_B`. |
| 499 | obtain ⟨u, hu, huE⟩ := c.exists_bicommutant_mul_phi_E_eq_one |
| 500 | obtain ⟨q, hq, hqp⟩ := c.exists_bicommutant_mul_p_eq_one |
| 501 | -- `hφ : Q B = v⁻¹ φ(Q)` with `B` over `S` |
| 502 | obtain ⟨B, hφ⟩ := exists_mul_map_eq_frobenius_smul hZ hUZ hspan hF hφU hu huE |
| 503 | have h_smul_Q : ((.ofAdd 1, 1) : FrobGal) • Q = Q.map frobEnd := rfl |
| 504 | have hB : Q.map frobEnd = v • (Q * B.map (↑)) := by simp [hφ, ← h_smul_Q] |
| 505 | have hB₀ : π B.det.val ≠ 0 := constantCoeff_det_ne_zero hQ₀ hB |
| 506 | have hp : ¬↑p ∣ Q.det := |
| 507 | not_dvd_det_of_frobenius |
| 508 | (constantCoeff_eq_zero_of_p_dvd_mulVec hQ₀ hUZ hspan hZ hq hqp) hφ hB₀ |
| 509 | (hU.exists_eq_mul_smul_of_forall_smul_eq hZ hUZ) |
| 510 | -- Every solution of `U Y = E ^ h X` has `X = Q L` over `Ainf`, by `hdvd` and `p ∤ det Q`. |
| 511 | have hQ {X : Matrix d d Ainf} {Y : Matrix d d BPlus} |
| 512 | (hY : U * Y = c.E.val ^ h • X.map ainfToBPlus) : ∃ L : Matrix d d Ainf, Q * L = X := |
| 513 | exists_mul_eq_of_mul_eq_smul hdvd hp hY |
| 514 | obtain ⟨L, hL, Y, rfl⟩ := exists_mul_eq_tau_pow_and_map_dvd hUU' hQ |
| 515 | -- Cancel `Q` in `Q Y Z = E ^ h Q`, as `det Q ≠ 0`. |
| 516 | have h_det_eq : (Q.map ainfToBPlus).det = ainfToBPlus Q.det := (ainfToBPlus.map_det Q).symm |
| 517 | have h_regular : IsLeftRegular (Q.map ainfToBPlus).det := by |
| 518 | rw [h_det_eq] |
| 519 | exact mul_right_injective₀ (by simpa using hQ₀) |
| 520 | have h_QYZ : Q.map ainfToBPlus * (Y * Z) = Q.map ainfToBPlus * (c.E.val ^ h • 1) := by |
| 521 | simp [hUZ, ← mul_assoc] |
| 522 | have hYZ : Y * Z = c.E.val ^ h • 1 := (isRegular_of_isLeftRegular_det h_regular).left h_QYZ |
| 523 | refine ⟨Q, L, Z, Y, B, hL, hZ, hUZ, hYZ, hB, fun g hg ↦ ?_⟩ |
| 524 | obtain ⟨ρ, hact⟩ := hU.exists_mul_smul_eq_of_fixesThetaZ hUZ hg |
| 525 | obtain ⟨G, hG⟩ := hQ hact |
| 526 | -- Now `U g(Z) = E ^ h Q G = U Z G`; cancel `U`. |
| 527 | have h_UgZ : |
| 528 | Q.map ainfToBPlus * Y * g • Z = Q.map ainfToBPlus * Y * (Z * G.map ainfToBPlus) := by |
| 529 | rw [hact, ← hG, Matrix.map_mul, ← smul_mul_assoc, ← hUZ, |
| 530 | Matrix.mul_assoc (Q.map ainfToBPlus * Y) Z (G.map ainfToBPlus)] |
| 531 | exact ⟨G, isLeftRegular_iff_mulVec_injective.mpr hU.mulVec_injective h_UgZ⟩ |
| 532 | |
| 533 | end New.Lift.Chart |