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 Aesop.BuiltinRules |
| 4 | public import Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 5 | public import Lib.Cohomology.Etale.EllAdicCohomology |
| 6 | public import Lib.General.Geometry.EtaleCharts |
| 7 | import Lib.Cohomology.Etale.DenseSubfunctors |
| 8 | import Lib.Cohomology.SmoothBaseChange |
| 9 | import Lib.General.Geometry.PointsOfProperSchemes |
| 10 | |
| 11 | /-! |
| 12 | # The congruence relation and the trivial action of inertia on ℓ-adic cohomology |
| 13 | |
| 14 | The Eichler–Shimura argument: a relation between Frobenius twists of points in characteristic p |
| 15 | gives a relation between pull-backs and Galois action on ℓ-adic cohomology. |
| 16 | |
| 17 | * `New.Variety.ellAdicCohom.ellAdicPull_frobEnd`: the absolute Frobenius acts trivially on |
| 18 | cohomology. |
| 19 | * `New.Variety.ellAdicCohom.congruence_relation`: the congruence relation |
| 20 | `New.Variety.CongruenceRelation` on points gives ∑ mᵢ uᵢ^* g^(−eᵢ) = 0 on Vⁿ(Y), for a Frobenius |
| 21 | element g. |
| 22 | * `New.Variety.ellAdicCohom.galoisAction_eq_one_of_inertia`: inertia acts trivially (the case q = 1 |
| 23 | of the relation). |
| 24 | |
| 25 | The idea: extend classes from Ω to the valuation ring A, then restrict to the special fibre. |
| 26 | `New.Variety.ellAdicCohom` is X ↦ Vⁿ(X) = ℚ_ℓ ⊗ Hⁿ(X_Ω, ℤ_ℓ), with the action |
| 27 | `New.Variety.ellAdicCohom.galoisAction` of Γ; `New.Variety.ellAdicPull` is the pull-back along a map |
| 28 | of free abelian functors (`freeAb` sends a functor to its pointwise free abelian group); |
| 29 | `New.Variety.IsCharted` is the hypothesis on Y that stands in for smoothness: it gives smooth base |
| 30 | change, so that pull-back from A to Ω is bijective on the cohomology of Y. |
| 31 | |
| 32 | Notions from other files: |
| 33 | * `New.IsFrob`: σ stabilises the valuation subring A and σx ≡ x^q modulo the maximal ideal for all x |
| 34 | in A; for q = 1 this is membership in the inertia group. |
| 35 | * `New.Variety.mapOnTests`: For a map u: X → Y of set-valued functors on rings, its restriction to a |
| 36 | map of functors on test rings. |
| 37 | * `New.Variety.ellAdicCoeff`: The coefficient `ℤ_ℓ`: a test ring `A` goes to the Witt vectors of the |
| 38 | ring of locally constant functions `Spec A → 𝔽_ℓ`. |
| 39 | |
| 40 | ## Relation to the literature |
| 41 | |
| 42 | Known result: Smooth proper reduction gives unramified ℓ-adic cohomology, and Frobenius relations |
| 43 | pass to it. Here the base is the valuation ring of a place. Source: Stacks project, Tags 0GKD (SGA4 |
| 44 | XVI 2.2) and 03SN (SGA5 XV); Deligne, Formes modulaires et représentations ℓ-adiques, Sém. Bourbaki |
| 45 | 355 (1969). |
| 46 | -/ |
| 47 | |
| 48 | @[expose] public section |
| 49 | |
| 50 | namespace New.Variety.ellAdicCohom |
| 51 | |
| 52 | open CategoryTheory AlgebraicGeometry CommRingCat ellAdicPull Comparison |
| 53 | |
| 54 | variable {ℓ : ℕ} [ThePrime ℓ] |
| 55 | {R : CommRingCat} [Algebra R Ω] |
| 56 | {Γ : Type*} [Group Γ] [MulSemiringAction Γ Ω] [SMulCommClass Γ R Ω] |
| 57 | {A : ClosurePlace} (hR : ∀ r : R, algebraMap R Ω r ∈ A) (hℓ : IsUnit (ℓ : A)) |
| 58 | {W Y : Over (Spec R)} [IsCharted Y R] [IsProper Y.hom] |
| 59 | {n p f : ℕ} [Fact p.Prime] (hp : A.valuation p < 1) |
| 60 | {U : PointFunctor} (hU_char : ∀ B : CommRingCat, U B → (p : B) = 0) (j : ℕ) |
| 61 | |
| 62 | /-- For a functor U on rings with points only in rings where p = 0, the endomorphism sending x |
| 63 | in U(B) to its image under b ↦ b^(p^j). -/ |
| 64 | def frobEnd : U ⟶ U where |
| 65 | app B := ↾fun x ↦ U.map (ofHom (frobPow (hU_char B x) j)) x |
| 66 | naturality X Y f := by |
| 67 | ext x |
| 68 | change U.map (ofHom (frobPow (hU_char Y (U.map f x)) j)) (U.map f x) = |
| 69 | U.map f (U.map (ofHom (frobPow (hU_char X x) j)) x) |
| 70 | rw [← U.map_comp_apply, ← U.map_comp_apply] |
| 71 | have h_hom : f ≫ ofHom (frobPow (hU_char Y (U.map f x)) j) = |
| 72 | ofHom (frobPow (hU_char X x) j) ≫ f := |
| 73 | CommRingCat.hom_ext <| RingHom.ext fun b ↦ (map_pow f.hom b (p ^ j)).symm |
| 74 | rw [h_hom] |
| 75 | |
| 76 | /-- The absolute Frobenius acts trivially on ℓ-adic cohomology. Let p = 0 in every ring B in which |
| 77 | U has a point (`hU_char`). Then the endomorphism `New.Variety.ellAdicCohom.frobEnd` of U, which |
| 78 | moves a point x ∈ U(B) along the ring map b ↦ b^(p^j) of B, pulls back to the identity of |
| 79 | ℚ_ℓ ⊗ Hⁿ(U, ℤ_ℓ). -/ |
| 80 | lemma ellAdicPull_frobEnd (hU_char : ∀ B : CommRingCat, U B → (p : B) = 0) (j : ℕ) : |
| 81 | ellAdicPull n (freeAb.map (mapOnTests (frobEnd hU_char j))) = 1 := by |
| 82 | ext x |
| 83 | refine congrArg (1 ⊗ₜ ·) ?_ |
| 84 | -- Frobenius as an endomorphism `η` of the functor `(A, x) ↦ A` on the category of points of `U` |
| 85 | let η : elementsProj (testIncl ⋙ U) ⟶ elementsProj (testIncl ⋙ U) := |
| 86 | { app A := ⟨ofHom (frobPow (hU_char _ A.val) j)⟩ |
| 87 | naturality _ _ _ := by |
| 88 | ext |
| 89 | exact (map_pow ..).symm } |
| 90 | -- it acts trivially on the coefficients, since it fixes every prime ideal |
| 91 | have h_coef : Functor.whiskerRight η (ellAdicCoeff (ℓ := ℓ)) ≫ 𝟙 _ = 𝟙 _ := by |
| 92 | ext A ⟨⟨y⟩⟩ |
| 93 | -- the coefficients at `A` are functions on `Spec A`, moved along `comap` of `η` |
| 94 | congrm ⟨WittVector.mk _ fun i ↦ ⟨_ ∘ ?_, _⟩⟩ |
| 95 | change PrimeSpectrum.comap (Hom.hom (testIncl.map (η.app A))) = fun q ↦ q |
| 96 | ext q |
| 97 | simp [η, q.isPrime.pow_mem_iff_mem, NeZero.pos] |
| 98 | -- pulling back to the category of points along the tautological point is injective |
| 99 | refine (hasUniversalPoints_elements.isBijective n).injective ?_ |
| 100 | -- `frobEnd` moves the tautological point as `η` does |
| 101 | have h_square : 𝟙 (freeAb.obj (onePointFunctor (testIncl ⋙ U).Elements)) ≫ |
| 102 | freeAbMap tautologicalSection ≫ Functor.whiskerRight η (freeAb.obj (testIncl ⋙ U)) = |
| 103 | freeAbMap tautologicalSection ≫ (restrict (elementsProj (testIncl ⋙ U)) |
| 104 | ellAdicCoeff).functor.whiskerLeft (freeAb.map (mapOnTests (frobEnd hU_char j))) := |
| 105 | rfl |
| 106 | calc |
| 107 | _ = (Comparison.restrict (elementsProj _) ellAdicCoeff).pull |
| 108 | (freeAbMap tautologicalSection ≫ Functor.whiskerRight η _) n x := |
| 109 | (map_pull_eq_pull_map h_square n x).symm.trans (H.map_id _) |
| 110 | -- `η` can be moved from the point to the coefficients, where it is trivial |
| 111 | _ = pull ⟨_, Functor.whiskerRight η ellAdicCoeff ≫ 𝟙 _⟩ (freeAbMap tautologicalSection) n x := |
| 112 | (DFunLike.congr_fun (pull_whiskerRight η ..) x).symm |
| 113 | _ = _ := congrArg (fun c ↦ pull ⟨_, c⟩ (freeAbMap tautologicalSection) n x) h_coef |
| 114 | |
| 115 | /-- The `R`-algebra structure on `A` induced by `hR : ∀ r, algebraMap R Ω r ∈ A`. -/ |
| 116 | private noncomputable abbrev valRingAlgebra (hR : ∀ r : R, algebraMap R Ω r ∈ A) : Algebra R A := |
| 117 | (RingHom.codRestrict _ A hR).toAlgebra |
| 118 | |
| 119 | /-- The restriction of `g⁻¹ ^ k` to `A`, for a Frobenius `g` at `A`. -/ |
| 120 | private noncomputable abbrev frobInvPow {g : Γ} (hg : IsFrob A (p ^ f) g) (k : ℕ) : A →+* A := |
| 121 | (MulSemiringAction.toRingHom ..).restrict A A fun a ↦ |
| 122 | (mem_decompGroup_iff.mp (pow_mem (inv_mem hg.left) k) a).mpr |
| 123 | |
| 124 | /-- The special fibre of `W` over `A`: points of `W_A` whose base ring map kills the maximal ideal |
| 125 | `{a : A | A.valuation a < 1}` of `A`. -/ |
| 126 | private noncomputable abbrev specialFibre [Algebra R A] (W : Over (Spec R)) : |
| 127 | Subfunctor (geomPoints R A W) := |
| 128 | zeroPoints (fiberProd.snd (pointsToBase W.hom) (reprMap (ofHom (algebraMap R A)))) |
| 129 | {a : A | A.valuation a < 1} |
| 130 | |
| 131 | omit [SMulCommClass Γ R Ω] [IsCharted Y R] in |
| 132 | /-- On the special fibre `U₀ = specialFibre W` over `A` (with the `R`-algebra structure |
| 133 | `valRingAlgebra hR`), suppose `g ∈ Γ` is a Frobenius for `p ^ f` at `A`, and the morphisms |
| 134 | `u i : W → Y`, exponents `e i`, and weights `m i` satisfy `CongruenceRelation` modulo the preimage |
| 135 | in `R` of `A.nonunits`. Writing `μ i` for `(geomPoints R A).map (u i)` followed by base change |
| 136 | along `frobInvPow hg (e i)` (sending `(x, ω)` to `(u i x, ω ∘ frobInvPow hg (e i))`), and given |
| 137 | `h_char` showing points of `U₀` have characteristic `p`, the locus where the Frobenius-twisted maps |
| 138 | `frobEnd h_char (e i * f) ≫ U₀.ι ≫ μ i` cancel with weights `m` is cohomologically dense for |
| 139 | `ℤ/ℓ`-coefficients. -/ |
| 140 | private lemma isCohomDense_relationLocus {g : Γ} |
| 141 | (hg : IsFrob A (p ^ f) g) {I : Type} [Fintype I] (u : I → (W ⟶ Y)) (e : I → ℕ) (m : I → ℤ) |
| 142 | (h_cong : CongruenceRelation m (algebraMap R Ω ⁻¹' A.nonunits) p (fun i : I ↦ e i * f) u) : |
| 143 | letI := valRingAlgebra hR |
| 144 | ∀ (h_σ_alg : ∀ i : I, |
| 145 | ofHom (algebraMap R A) ≫ ofHom (frobInvPow hg (e i)) = ofHom (algebraMap R A)) |
| 146 | (h_char : ∀ (B : CommRingCat), (specialFibre (A := A) W).toFunctor.obj B → (p : B) = 0), |
| 147 | IsCohomDense (locConstCoeff ⟨ZMod ℓ⟩) |
| 148 | (relationLocus m fun i ↦ mapOnTests |
| 149 | (frobEnd h_char (e i * f) ≫ (specialFibre (A := A) W).ι ≫ |
| 150 | (geomPoints R A).map (u i) ≫ |
| 151 | baseChangeTransition _ (ofHom (frobInvPow hg (e i))) (h_σ_alg i))) := by |
| 152 | let := valRingAlgebra hR |
| 153 | intro h_σ_alg h_char |
| 154 | let σ (i : I) : A →+* A := frobInvPow hg (e i) |
| 155 | let s₀ : geomPoints R A W ⟶ reprBy (of A) := |
| 156 | fiberProd.snd (pointsToBase W.hom) (reprMap (ofHom (algebraMap R A))) |
| 157 | let U₀ : Subfunctor (geomPoints R A W) := specialFibre (A := A) W |
| 158 | let μ (i : I) : geomPoints R A W ⟶ geomPoints R A Y := |
| 159 | (geomPoints R A).map (u i) ≫ baseChangeTransition _ (ofHom (σ i)) (h_σ_alg i) |
| 160 | let F (i : I) : U₀.toFunctor ⟶ geomPoints R A Y := frobEnd h_char (e i * f) ≫ U₀.ι ≫ μ i |
| 161 | -- By properness of `Y`, it is enough to treat points `x` at which the `F i` coincide |
| 162 | -- whenever they do at some geometric point `z` (`h_coinc`) |
| 163 | refine ((isProperOver_pointsToBase _).baseChange _).isCohomDense_of_coincidences F |
| 164 | fun {k} hk_field hk_closed z B x h_coinc ↦ ?_ |
| 165 | -- at `z = (w, ω)`, with `w` the `W`-component `z.val.val.fst`: |
| 166 | -- `ω a = ω (σ i a) ^ p ^ (e i * f)`, as `g` is a Frobenius |
| 167 | let ω : of A ⟶ of k := baseRingMap s₀ z.val |
| 168 | have h_frob (i : I) (a : A) : ω a = ω (σ i a) ^ p ^ (e i * f) := by |
| 169 | have h_act : g ^ e i • (σ i a : Ω) = (a : Ω) := by |
| 170 | change g ^ e i • (g⁻¹ ^ e i • (a : Ω)) = (a : Ω) |
| 171 | rw [← mul_smul, inv_pow, mul_inv_cancel, one_smul] |
| 172 | have h_val : A.valuation ((a : Ω) - (σ i a : Ω) ^ (p ^ f) ^ e i) < 1 := by |
| 173 | have h' := (hg.pow (e i)).right (σ i a) (A.valuation_le_one (σ i a)) |
| 174 | rwa [h_act] at h' |
| 175 | have h_zero : ω (a - σ i a ^ (p ^ f) ^ e i) = 0 := z.property _ <| by |
| 176 | change A.valuation ((a : Ω) - ((σ i a ^ (p ^ f) ^ e i : A) : Ω)) < 1 |
| 177 | rw [Subring.coe_pow] |
| 178 | exact h_val |
| 179 | rw [map_sub, map_pow, sub_eq_zero, ← pow_mul'] at h_zero |
| 180 | exact h_zero |
| 181 | -- so `F i z = (Frob (u i w), ω)`, and these points cancel by the congruence relation |
| 182 | have hk_char : CharP k p := (CharP.charP_iff_prime_eq_zero Fact.out).mpr (h_char _ z) |
| 183 | have h_fst (i : I) : ((F i).app (of k) z).val.fst = |
| 184 | ULift.up (Spec.map (ofHom (iterateFrobenius k p (e i * f))) ≫ |
| 185 | z.val.val.fst.down ≫ (u i).left) := |
| 186 | congrArg ULift.up (Category.assoc _ _ _) |
| 187 | have h_cancel : Cancels m fun i ↦ |
| 188 | Spec.map (ofHom (iterateFrobenius k p (e i * f))) ≫ z.val.val.fst.down ≫ (u i).left := |
| 189 | h_cong k _ fun r hr ↦ |
| 190 | (congrArg (fun t ↦ t.down.hom r) z.val.property).trans (z.property _ hr) |
| 191 | refine h_cancel.mono fun i i' hij ↦ |
| 192 | h_coinc i i' (baseChangeOf.ext ((h_fst i).trans ((congrArg ULift.up hij).trans (h_fst i').symm)) |
| 193 | fun a ↦ ?_) |
| 194 | -- the ring map of `F i z` is `ω ∘ σ i` followed by the Frobenius of exponent `p ^ (e i * f)` |
| 195 | change ω (σ i a) ^ p ^ (e i * f) = ω (σ i' a) ^ p ^ (e i' * f) |
| 196 | rw [← h_frob i, ← h_frob i'] |
| 197 | |
| 198 | include hR hℓ hp |
| 199 | |
| 200 | /-- The Eichler–Shimura relation. Let A ⊂ Ω (an algebraic closure of ℚ) be a valuation ring |
| 201 | containing the image of R (`hR`), with p in its maximal ideal (`hp`) and ℓ a unit (`hℓ`); let Γ act |
| 202 | on Ω by R-algebra automorphisms, and let g ∈ Γ be a Frobenius for p^f at A, i.e. g stabilises A and |
| 203 | acts as x ↦ x^(p^f) modulo its maximal ideal. Let W, Y be proper over R with Y charted over R |
| 204 | (`New.Variety.IsCharted`); if uᵢ : W → Y satisfy ∑ mᵢ [Frob_(p^(f eᵢ)) uᵢ(w)] = 0 (in the sense of |
| 205 | `Cancels`; Frob_q composes a k-point with Spec of the map x ↦ x^q of k) at the field points w of W |
| 206 | of characteristic p killing the preimage in R of A's maximal ideal |
| 207 | (`New.Variety.CongruenceRelation`), then ∑ mᵢ uᵢ^*(g^(−eᵢ) x) = 0 for every x in Vⁿ(Y) = ℚ_ℓ ⊗ Hⁿ(Y |
| 208 | ×_R Ω, ℤ_ℓ), with Γ acting through Ω. -/ |
| 209 | lemma congruence_relation [IsProper W.hom] {g : Γ} (hg : IsFrob A (p ^ f) g) {I : Type} [Fintype I] |
| 210 | (u : I → (W ⟶ Y)) (e : I → ℕ) (m : I → ℤ) |
| 211 | (h_cong : CongruenceRelation m (algebraMap R Ω ⁻¹' A.nonunits) p (fun i : I ↦ e i * f) u) |
| 212 | (x : (ellAdicCohom R Ω n).obj (Opposite.op Y)) : |
| 213 | ∑ i : I, |
| 214 | m i • (ellAdicCohom R Ω n).map (u i).op (galoisAction R Ω Γ Y n (g⁻¹ ^ e i) x) = 0 := by |
| 215 | -- Lift `x` to a class `y` over the valuation ring `A`, restrict to the special fibre `U₀`, where |
| 216 | -- `g⁻¹ ^ e i` is undone by Frobenius, and use the relation at geometric points of `U₀`. |
| 217 | let := valRingAlgebra hR |
| 218 | -- smooth base change: pull-back from `A` to `Ω` is bijective on the cohomology of `Y` |
| 219 | obtain ⟨y, rfl⟩ := (isTestCohomEquiv_baseChangeTransition hp hℓ |
| 220 | Y).bijective_ellAdicPull.surjective x |
| 221 | -- `σ i` is `g⁻¹ ^ e i` on `A`, and `μ i` sends `(x, ω)` to `(u i x, ω ∘ σ i)` |
| 222 | let σ (i : I) : A →+* A := frobInvPow hg (e i) |
| 223 | -- `σ i` fixes the image of `R` |
| 224 | have h_σ_alg (i : I) : ofHom (algebraMap R A) ≫ ofHom (σ i) = ofHom (algebraMap R A) := |
| 225 | CommRingCat.hom_ext <| RingHom.ext fun r ↦ Subtype.ext <| smul_algebraMap _ r |
| 226 | let μ (i : I) : geomPoints R A W ⟶ geomPoints R A Y := |
| 227 | (geomPoints R A).map (u i) ≫ baseChangeTransition _ (ofHom (σ i)) (h_σ_alg i) |
| 228 | -- it suffices that the sum vanishes over `A`, before passing to `Ω` |
| 229 | suffices h_sum : ∑ i, m i • ellAdicPull n (freeAb.map (mapOnTests (μ i))) y = 0 by |
| 230 | let toA_W : testIncl ⋙ geomPoints R Ω W ⟶ testIncl ⋙ geomPoints R A W := |
| 231 | mapOnTests (X := geomPoints R Ω W) (Y := geomPoints R A W) |
| 232 | (baseChangeTransition (pointsToBase W.hom) (ofHom A.subtype) rfl) |
| 233 | let toA_Y : testIncl ⋙ geomPoints R Ω Y ⟶ testIncl ⋙ geomPoints R A Y := |
| 234 | mapOnTests (X := geomPoints R Ω Y) (Y := geomPoints R A Y) |
| 235 | (baseChangeTransition (pointsToBase Y.hom) (ofHom A.subtype) rfl) |
| 236 | let pullToA : _ →ₗ[ℚ_[ℓ]] ((ellAdicCohom R Ω n).obj (Opposite.op W)) := |
| 237 | ellAdicPull (ℓ := ℓ) n (freeAb.map toA_W) |
| 238 | -- each term is the pull-back along `toA_W` of the matching term over `A` |
| 239 | have h_term (i : I) : |
| 240 | (ellAdicCohom R Ω n).map (u i).op (galoisAction R Ω Γ Y n (g⁻¹ ^ e i) |
| 241 | (ellAdicPull n (freeAb.map toA_Y) y)) = |
| 242 | pullToA (ellAdicPull n (freeAb.map (mapOnTests (μ i))) y) := by |
| 243 | let g_aut := MulSemiringAction.toAlgAut Γ R Ω (g⁻¹ ^ e i) |
| 244 | let fm := mapOnTests ((geomPoints R Ω).map (u i)) |
| 245 | let tr := mapOnTests (X := geomPoints R Ω Y) (Y := geomPoints R Ω Y) |
| 246 | (baseChangeTransition (pointsToBase Y.hom) (ofHom g_aut) (by ext r; exact g_aut.commutes r)) |
| 247 | have h_lhs : (ellAdicCohom R Ω n).map (u i).op (galoisAction R Ω Γ Y n (g⁻¹ ^ e i) |
| 248 | (ellAdicPull n (freeAb.map toA_Y) y)) = |
| 249 | ellAdicPull n (freeAb.map fm) (ellAdicPull n (freeAb.map tr) |
| 250 | (ellAdicPull n (freeAb.map toA_Y) y)) := rfl |
| 251 | have h_eq : (fm ≫ tr) ≫ toA_Y = toA_W ≫ mapOnTests (μ i) := by |
| 252 | ext B p |
| 253 | exact baseChangeOf.ext rfl fun _ ↦ rfl |
| 254 | rw [h_lhs, comp, ← freeAb.map_comp, comp, ← freeAb.map_comp, h_eq, freeAb.map_comp, ← comp] |
| 255 | rfl |
| 256 | exact (Finset.sum_congr rfl fun i _ ↦ |
| 257 | (congrArg (m i • ·) (h_term i)).trans (map_zsmul pullToA ..).symm).trans <| |
| 258 | (map_sum pullToA ..).symm.trans <| (congrArg pullToA h_sum).trans (map_zero pullToA) |
| 259 | -- the special fibre: the points that kill the maximal ideal of `A`; they have characteristic `p` |
| 260 | let U₀ : Subfunctor (geomPoints R A W) := specialFibre (A := A) W |
| 261 | have h_char (B : CommRingCat) (x : U₀.toFunctor.obj B) : (p : B) = 0 := by |
| 262 | simpa using x.property p hp |
| 263 | -- restriction to `U₀` is injective by proper base change |
| 264 | have h_res : IsCohomEquiv (locConstCoeff ⟨ZMod ℓ⟩) (freeAb.map (mapOnTests U₀.ι)) := by |
| 265 | have h_max : (IsLocalRing.maximalIdeal A : Set A) = {a : A | A.valuation a < 1} := |
| 266 | Set.ext A.valuation_lt_one_iff |
| 267 | unfold U₀ specialFibre |
| 268 | rw [← h_max] |
| 269 | exact ((isProperOver_pointsToBase _).baseChange _).proper_base_change hℓ |
| 270 | refine h_res.bijective_ellAdicPull.injective ?_ |
| 271 | -- `F i` is `μ i` after the Frobenius of exponent `p ^ (e i * f)` on `U₀`, which acts trivially |
| 272 | let F (i : I) : U₀.toFunctor ⟶ geomPoints R A Y := frobEnd h_char (e i * f) ≫ U₀.ι ≫ μ i |
| 273 | trans ellAdicPull n (∑ i, m i • freeAb.map (mapOnTests (F i))) y |
| 274 | · let pullU := ellAdicPull (ℓ := ℓ) n (freeAb.map (mapOnTests U₀.ι)) |
| 275 | rw [map_sum pullU, map_sum (ellAdicPull n), LinearMap.sum_apply] |
| 276 | refine Finset.sum_congr rfl fun i _ ↦ ?_ |
| 277 | rw [map_zsmul pullU, map_zsmul (ellAdicPull n), LinearMap.smul_apply] |
| 278 | refine congrArg (m i • ·) ?_ |
| 279 | have hF : freeAb.map (mapOnTests (F i)) = |
| 280 | freeAb.map (mapOnTests (frobEnd h_char (e i * f))) ≫ |
| 281 | freeAb.map (mapOnTests U₀.ι) ≫ freeAb.map (mapOnTests (μ i)) := by |
| 282 | dsimp only [F, mapOnTests] |
| 283 | rw [Functor.whiskerLeft_comp, Functor.whiskerLeft_comp, freeAb.map_comp, freeAb.map_comp] |
| 284 | rw [hF, ← comp, ← comp, ellAdicPull_frobEnd, one_apply_eq_self] |
| 285 | · -- the sum vanishes on the locus where the points `F i x` cancel; it is enough that this locus |
| 286 | -- is dense |
| 287 | have h_dense : IsCohomDense (locConstCoeff ⟨ZMod ℓ⟩) |
| 288 | (relationLocus m fun i ↦ mapOnTests (F i)) := |
| 289 | isCohomDense_relationLocus hR hg u e m h_cong h_σ_alg h_char |
| 290 | refine h_dense.isCohomEquiv.bijective_ellAdicPull.injective ((comp ..).trans ?_) |
| 291 | simp [relationLocus_sum_eq_zero] |
| 292 | |
| 293 | /-- Inertia acts trivially. Let Ω be an algebraic closure of ℚ and an R-algebra, A ⊂ Ω a valuation |
| 294 | ring that contains the image of R (`hR`), with a prime p in its maximal ideal (`hp`) and ℓ a unit |
| 295 | (`hℓ`). For Y proper over R and as in `New.Variety.IsCharted`, the inertia group of A acts |
| 296 | trivially on Vⁿ(Y). -/ |
| 297 | lemma galoisAction_eq_one_of_inertia {g : Γ} (hg : g ∈ inertiaGroup Γ A) : |
| 298 | galoisAction R Ω Γ Y n g = 1 := by |
| 299 | ext x |
| 300 | -- apply `congruence_relation` to `g⁻¹`, a Frobenius for `p ^ 0`: the relation on points reads |
| 301 | -- `-[y] + [y] = 0` |
| 302 | have h_cong : CongruenceRelation ![-1, 1] (algebraMap R Ω ⁻¹' A.nonunits) p |
| 303 | (fun i : Fin 2 ↦ i * 0) ![𝟙 Y, 𝟙 Y] := by simp [CongruenceRelation, Cancels] |
| 304 | have h := congruence_relation hR hℓ hp (f := 0) (inv_mem hg) ![𝟙 Y, 𝟙 Y] Fin.val ![-1, 1] h_cong x |
| 305 | rw [Fin.sum_univ_two] at h |
| 306 | simp only [Fin.isValue, Matrix.cons_val_zero, Matrix.cons_val_one, Fin.val_zero, Fin.val_one, |
| 307 | pow_zero, pow_one, inv_inv, op_id, map_one, one_apply_eq_self, neg_smul, one_smul] at h |
| 308 | rw [(ellAdicCohom R Ω n).map_id, ModuleCat.id_apply, ModuleCat.id_apply, neg_add_eq_zero] at h |
| 309 | rw [one_apply_eq_self] |
| 310 | exact h.symm |
| 311 | |
| 312 | end New.Variety.ellAdicCohom |