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.RegularLocalRing.Defs |
| 4 | import Mathlib.RingTheory.SimpleRing.Principal |
| 5 | public import Lib.Cohomology.Hodge.GrothendieckSymbol |
| 6 | |
| 7 | /-! |
| 8 | # The Hodge class of the diagonal of a variety with an atlas, with its local description |
| 9 | |
| 10 | The class of the diagonal in Hodge cohomology, for a functor of points `X` on `k`-algebras. |
| 11 | |
| 12 | * `New.Variety.exists_diagonal_class`: if `k` has characteristic zero and `X` has an atlas of |
| 13 | dimension `d`, there is a class `δ` of degree `d` on `X × X` relative to the complement of the |
| 14 | diagonal that is, near the diagonal, the symbol `[df / f]` of the differences of chart |
| 15 | coordinates. It is glued from such symbols. |
| 16 | |
| 17 | `New.Variety.HasAtlas d X`: `X` is separated and its field points lie in finitely many affine charts |
| 18 | `New.Variety.EtaleChart d X` with `d` étale coordinates. `HodgeH (relFreeAb U) q` is Hodge |
| 19 | cohomology relative to the subfunctor `U`. `New.Variety.IsLocalSymbol ξ y P g m` says three things: |
| 20 | `g` cuts out `P` at the point `y`; `y` maps the part of `Spec R` off the preimage of `P` into `U`; |
| 21 | and `ξ` pulls back along `y` to `m • [dg / g]`. Here `[dg / g]` is the pull-back of |
| 22 | `New.Variety.symbolClass` along `g`. `P` is a predicate on points, not the subfunctor that `ξ` is |
| 23 | relative to; that subfunctor is the implicit `U`. For the diagonal class, `P` is the diagonal |
| 24 | `x.1 = x.2`, while `δ` is relative to its complement. |
| 25 | |
| 26 | Notions from other files: |
| 27 | * `New.Variety.CutsOutLocus`: The elements `f i` of `R` cut out the locus where the point `x` of |
| 28 | `X(R)` satisfies `P`: a map `α : R ⟶ C` kills every `f i` exactly when the image of `x` in `X(C)` |
| 29 | satisfies `P`. |
| 30 | * `New.Variety.IsOpenSubfunctor`: V is an open subfunctor of X: each x ∈ X(A) has an ideal I of A |
| 31 | such that, for φ: A → B, φ(x) ∈ V(B) iff φ(I)B = B. |
| 32 | * `New.Variety.EtaleChart`: A chart of X: a k-algebra R with finitely many étale coordinates and a |
| 33 | point y in X(R) that embeds Spec R as an open subfunctor, its `locus`. |
| 34 | * `New.Variety.offDiagonal`: The complement of the diagonal in X × X: pairs of points whose values |
| 35 | in every field are distinct. |
| 36 | * `New.Variety.relFreeAb`: For a subfunctor U of a set-valued functor V, the functor to abelian |
| 37 | groups ℤ[V]/ℤ[U]. |
| 38 | * `New.Variety.HodgeH`: Hodge cohomology: for a functor N from k-algebras to abelian groups, Ext^q |
| 39 | from (A, M) ↦ N(A ⊕ M) to (A, M) ↦ ⋀_A M, in functors on pairs. |
| 40 | |
| 41 | ## Relation to the literature |
| 42 | |
| 43 | Known; see `Lib.Cohomology.Hodge.FixedPointFormula` for sources. |
| 44 | -/ |
| 45 | |
| 46 | @[expose] public section |
| 47 | |
| 48 | namespace New.Variety |
| 49 | |
| 50 | open CategoryTheory MonoidalCategory Ideal Set EtaleChart |
| 51 | |
| 52 | variable {k : Type} [Field k] {X : CommAlg k ⥤ Type 1} {d : ℕ} |
| 53 | |
| 54 | /-- Excision to a chart. Let `c` be a chart of `X` whose image `c.locus` is `W`, and `U` a |
| 55 | subfunctor of `X`. Pull-back along the point of `c`, seen as a point of `W`, is a bijection on Hodge |
| 56 | cohomology relative to `U`: classes on `W` relative to `U` are determined by, and may be prescribed |
| 57 | through, their pull-back to `c.point`. `pointMap` sends `χ : c.coordRing ⟶ B` to the image of |
| 58 | `c.point`; `IsCohomEquiv hodgeCoeff` (on functors whiskered by `HodgeTest.sqZeroExt`) means |
| 59 | bijective in every degree. -/ |
| 60 | lemma EtaleChart.isCohomEquiv_relFreeAb_map_pointMap (c : EtaleChart d X) (U : Subfunctor X) |
| 61 | {W : Subfunctor X} (hc : c.locus = W) : |
| 62 | IsCohomEquiv hodgeCoeff (HodgeTest.sqZeroExt.whiskerLeft (relFreeAb.map (U := U.preimage W.ι) |
| 63 | (pointMap (A := c.coordRing) ⟨c.point, hc.le c.coordRing c.point_mem_locus⟩) le_rfl)) := by |
| 64 | refine hodge_excision (c.comap W.ι ⟨c.point, hc.le c.coordRing c.point_mem_locus⟩ |
| 65 | rfl).isOpenSubfunctor ?_ |
| 66 | rfl |
| 67 | -- every point of `W` lies in the range of the chart |
| 68 | subst hc |
| 69 | rintro K - ⟨_, χ, rfl⟩ h_not_mem |
| 70 | exact absurd ⟨χ, rfl⟩ h_not_mem |
| 71 | |
| 72 | /-- Let `c` be a chart of `X × X` on which the differences of the first `d` and the last `d` |
| 73 | coordinates cut out the diagonal. Then the Hodge cohomology of its image relative to the |
| 74 | complement of the diagonal vanishes in degrees below `d`. -/ |
| 75 | lemma EtaleChart.subsingleton_hodgeH_offDiagonal (c : EtaleChart (d + d) (X ⊗ X)) |
| 76 | (h_cut : CutsOutLocus (X ⊗ X) (fun (C : CommAlg k) (p : (X ⊗ X).obj C) ↦ p.fst = p.snd) c.point |
| 77 | (c.coordinate ∘ Fin.castAdd d - c.coordinate ∘ Fin.natAdd d)) |
| 78 | {m : ℕ} (hm : m < d) : |
| 79 | Subsingleton (HodgeH (relFreeAb ((offDiagonal X).preimage c.locus.ι)) m) := by |
| 80 | -- pull-back to the universal point of `c` is injective, and there the cohomology vanishes |
| 81 | obtain ⟨μ, -, hμ⟩ := c.exists_section_isCohomEquiv |
| 82 | -- `h_univ`: pull-back along `μ` and restriction to where some difference is a unit is a bijection |
| 83 | -- on cohomology |
| 84 | obtain ⟨h_le, h_univ⟩ := hμ h_cut.preimage_fieldLocus_not |
| 85 | have h_vanish : Subsingleton (H (relFreeAb (someUnitLocus (c := ⟨c.coordRing, Fin (d + d)⟩) |
| 86 | (c.coordinate ∘ Fin.castAdd d - c.coordinate ∘ Fin.natAdd d))) hodgeCoeff m) := |
| 87 | hodge_vanishing_along_diagonal c.etale hm |
| 88 | -- `h_vanish` enters as the instance that makes the target of this injection subsingleton |
| 89 | exact (h_univ.comp_iff.mpr (c.isCohomEquiv_relFreeAb_map_pointMap (offDiagonal X) rfl) |
| 90 | m).injective.subsingleton |
| 91 | |
| 92 | /-- On the subfunctor `O` of `X × X`, the class `δ` is the symbol of the differences of the |
| 93 | coordinates of the chart `a`: every point of `O` is a pair of points `φ`, `ψ` of the chart, the |
| 94 | differences `f i = φ (a.coordinate i) - ψ (a.coordinate i)` cut out the diagonal there, and `δ` |
| 95 | pulls back to `[df / f]`. -/ |
| 96 | structure IsDiagonalSymbolOn [CharZero k] |
| 97 | (δ : HodgeH (relFreeAb (offDiagonal X)) d) (a : EtaleChart d X) |
| 98 | (O : Subfunctor (X ⊗ X)) : Prop where |
| 99 | /-- The first component of a point of `O` lies in the chart `a`. -/ |
| 100 | fst_mem_locus {B : CommAlg k} {p : (X ⊗ X).obj B} (hp : p ∈ O.obj B) : p.fst ∈ a.locus.obj B |
| 101 | /-- The second component of a point of `O` lies in the chart `a`. -/ |
| 102 | snd_mem_locus {B : CommAlg k} {p : (X ⊗ X).obj B} (hp : p ∈ O.obj B) : p.snd ∈ a.locus.obj B |
| 103 | /-- At a point `p` of `O` given by `φ` and `ψ` in the chart, the differences of the coordinates |
| 104 | cut out the diagonal and `δ` is their symbol. -/ |
| 105 | isLocalSymbol {B : CommAlg k} {p : (X ⊗ X).obj B} (hp : p ∈ O.obj B) {φ ψ : a.coordRing ⟶ B} |
| 106 | (hφ : X.map φ a.point = p.fst) (hψ : X.map ψ a.point = p.snd) : |
| 107 | IsLocalSymbol δ p (fun (C : CommAlg k) (q : (X ⊗ X).obj C) ↦ q.fst = q.snd) |
| 108 | (fun i : Fin d ↦ φ (a.coordinate i) - ψ (a.coordinate i)) 1 |
| 109 | |
| 110 | /-- A chart `a` of `X` gives a chart `V` of `X × X` near the diagonal. The point of `V` is a pair of |
| 111 | points `φ`, `ψ` of `a`, its coordinates are those of `φ` and `ψ`, their differences cut out the |
| 112 | diagonal, and `V` contains `(z, z)` for every point `z` of `a`. -/ |
| 113 | lemma EtaleChart.exists_chart_near_diagonal (a : EtaleChart d X) : |
| 114 | ∃ (V : EtaleChart (d + d) (X ⊗ X)) (φ ψ : a.coordRing ⟶ V.coordRing), |
| 115 | V.point = (X.map φ a.point, X.map ψ a.point) ∧ |
| 116 | V.coordinate ∘ Fin.castAdd d = φ ∘ a.coordinate ∧ |
| 117 | V.coordinate ∘ Fin.natAdd d = ψ ∘ a.coordinate ∧ |
| 118 | CutsOutLocus (X ⊗ X) (fun (C : CommAlg k) (p : (X ⊗ X).obj C) ↦ p.fst = p.snd) V.point |
| 119 | (V.coordinate ∘ Fin.castAdd d - V.coordinate ∘ Fin.natAdd d) ∧ |
| 120 | ∀ (K : CommAlg k), ∀ z ∈ a.locus.obj K, (z, z) ∈ V.locus.obj K := by |
| 121 | -- `h_eq_iff`: a pair of points of `a` is diagonal iff `e` is a unit at it and the two points |
| 122 | -- have the same coordinates. Take for `V` the part of `a × a` where `e` is a unit. |
| 123 | obtain ⟨e, h_eq_iff⟩ := a.exists_eq_iff_coordinate_eq |
| 124 | let V : EtaleChart (d + d) (X ⊗ X) := (a.prod a).away e |
| 125 | let l : a.coordRing ⊗ a.coordRing ⟶ V.coordRing := CommAlg.toAway e |
| 126 | have h_fst : V.coordinate ∘ Fin.castAdd d = (tensorInl ≫ l : a.coordRing ⟶ V.coordRing) ∘ |
| 127 | a.coordinate := |
| 128 | funext fun j ↦ congrArg l |
| 129 | (Fin.append_left (fun i ↦ a.coordinate i ⊗ₜ 1) (fun i ↦ 1 ⊗ₜ a.coordinate i) j) |
| 130 | have h_snd : V.coordinate ∘ Fin.natAdd d = (tensorInr ≫ l : a.coordRing ⟶ V.coordRing) ∘ |
| 131 | a.coordinate := |
| 132 | funext fun j ↦ congrArg l |
| 133 | (Fin.append_right (fun i ↦ a.coordinate i ⊗ₜ 1) (fun i ↦ 1 ⊗ₜ a.coordinate i) j) |
| 134 | refine ⟨V, tensorInl ≫ l, tensorInr ≫ l, ?_, h_fst, h_snd, fun C α ↦ ?_, fun K z hz ↦ ?_⟩ |
| 135 | · rw [X.map_comp_apply, X.map_comp_apply] |
| 136 | -- the point of `V` is the image under `l` of the pair of points of `a × a` |
| 137 | rfl |
| 138 | · -- `e` is a unit on `V`, so there equal coordinates mean equal points |
| 139 | have h_unit : IsUnit ((l ≫ α) e) := (CommAlg.exists_toAway_comp_iff e (l ≫ α)).mp ⟨α, rfl⟩ |
| 140 | have h_diff : V.coordinate ∘ Fin.castAdd d - V.coordinate ∘ Fin.natAdd d = |
| 141 | fun j ↦ l (a.coordinate j ⊗ₜ 1 - 1 ⊗ₜ a.coordinate j) := by |
| 142 | rw [h_fst, h_snd] |
| 143 | exact funext fun j ↦ (map_sub l.hom _ _).symm |
| 144 | rw [h_diff, span_le, range_subset_iff] |
| 145 | change (∀ i : Fin d, (l ≫ α) (a.coordinate i ⊗ₜ 1 - 1 ⊗ₜ a.coordinate i) = 0) ↔ |
| 146 | X.map α (X.map l (X.map tensorInl a.point)) = X.map α (X.map l (X.map tensorInr a.point)) |
| 147 | rw [← X.map_comp_apply l α, ← X.map_comp_apply l α] |
| 148 | exact ((h_eq_iff C (l ≫ α)).trans (and_iff_right h_unit)).symm |
| 149 | · -- `e` is a unit at a diagonal pair |
| 150 | obtain ⟨⟨χ : a.coordRing ⊗ a.coordRing ⟶ K⟩, hχ : (X ⊗ X).map χ (a.prod a).point = (z, z)⟩ : |
| 151 | (z, z) ∈ (a.prod a).locus.obj K := |
| 152 | (range_pointMap_prod a a).ge K ⟨hz, hz⟩ |
| 153 | have h_eq : X.map χ (a.prod a).point.fst = X.map χ (a.prod a).point.snd := |
| 154 | (congrArg Prod.fst hχ).trans (congrArg Prod.snd hχ).symm |
| 155 | have h_unit : IsUnit (χ e) := ((h_eq_iff K χ).mp h_eq).left |
| 156 | rw [← hχ] |
| 157 | exact ((a.prod a).mem_locus_away e χ).mpr h_unit |
| 158 | |
| 159 | /-- Restricting a relative Hodge class from a subfunctor `W₂` to `W₁ ≤ W₂` preserves its |
| 160 | local-symbol description at a point of `W₁`. -/ |
| 161 | private lemma IsLocalSymbol.restrict {U W₁ W₂ : Subfunctor X} (hW : W₁ ≤ W₂) |
| 162 | {ξ : HodgeH (relFreeAb (U.preimage W₂.ι)) d} {R : CommAlg k} {y : W₂.toFunctor.obj R} |
| 163 | {P : (K : CommAlg k) → X.obj K → Prop} {g : Fin d → R} {m : k} |
| 164 | (hξ : IsLocalSymbol ξ y (fun C q ↦ P C q.val) g m) (hy : y.val ∈ W₁.obj R) : |
| 165 | IsLocalSymbol (ξ.map (relFreeAb.restrict U hW)) ⟨y.val, hy⟩ (fun C q ↦ P C q.val) g m := by |
| 166 | obtain ⟨h_cut, h_le, h_symb⟩ := hξ |
| 167 | refine ⟨id h_cut, id h_le, ?_⟩ |
| 168 | refine (HodgeH.map_comp _ (relFreeAb.restrict U hW) ξ).symm.trans ?_ |
| 169 | rw [relFreeAb.map_comp_map] |
| 170 | exact h_symb |
| 171 | |
| 172 | /-- Let `X` be a separated functor (`IsSeparatedFunctor X`) on algebras over a field `k`, and let |
| 173 | `V : Fin r → EtaleChart (d + d) (X ⊗ X)` be finitely many étale charts of `X ⊗ X` such that every |
| 174 | field-valued diagonal point `(z, z)` lies in some `(V i).locus`. Given degree-`d` relative Hodge |
| 175 | classes `ξ i : HodgeH (relFreeAb ((offDiagonal X).preimage (V i).locus.ι)) d` such that each `ξ i` |
| 176 | is a local symbol (`IsLocalSymbol`) with multiplicity `1` at `(V i).point` for the coordinate |
| 177 | differences `(V i).coordinate ∘ Fin.castAdd d - (V i).coordinate ∘ Fin.natAdd d` cutting out the |
| 178 | diagonal, there is a global class `δ : HodgeH (relFreeAb (offDiagonal X)) d` restricting to `ξ i` |
| 179 | on each `(V i).locus`. -/ |
| 180 | private lemma exists_glued_hodgeH_of_isLocalSymbol [IsSeparatedFunctor X] {r : ℕ} |
| 181 | (V : Fin r → EtaleChart (d + d) (X ⊗ X)) |
| 182 | (h_near : ∀ K : CommAlg k, IsField K.carrier → |
| 183 | ∀ z : X.obj K, ∃ i : Fin r, (z, z) ∈ (V i).locus.obj K) |
| 184 | (ξ : ∀ i : Fin r, HodgeH (relFreeAb ((offDiagonal X).preimage (V i).locus.ι)) d) |
| 185 | (hξ : ∀ i : Fin r, |
| 186 | IsLocalSymbol (ξ i) ⟨(V i).point, (V i).point_mem_locus⟩ |
| 187 | (fun C (p : (V i).locus.toFunctor.obj C) ↦ p.val.fst = p.val.snd) |
| 188 | ((V i).coordinate ∘ Fin.castAdd d - (V i).coordinate ∘ Fin.natAdd d) 1) : |
| 189 | ∃ δ : HodgeH (relFreeAb (offDiagonal X)) d, |
| 190 | ∀ i : Fin r, δ.map (relFreeAb.map (V i).locus.ι le_rfl) = ξ i := by |
| 191 | -- The symbols of the `f i` agree on overlaps and lower cohomology vanishes, so |
| 192 | -- `relFreeAb.exists_glued_class` glues them to a class on `X ⊗ X`. |
| 193 | let f (i : Fin r) : Fin d → (V i).coordRing := |
| 194 | (V i).coordinate ∘ Fin.castAdd d - (V i).coordinate ∘ Fin.natAdd d |
| 195 | -- by `hξ`, the same description of `ξ i` holds at every point of `V i` |
| 196 | have h_local {i : Fin r} {B : CommAlg k} {p : (X ⊗ X).obj B} {χ : (V i).coordRing ⟶ B} |
| 197 | (hp : (pointMap (V i).point).app B ⟨χ⟩ = p) : |
| 198 | IsLocalSymbol (ξ i) ⟨p, ⟨χ⟩, hp⟩ |
| 199 | (fun C (q : (V i).locus.toFunctor.obj C) ↦ q.val.fst = q.val.snd) (χ ∘ f i) 1 := by |
| 200 | subst hp |
| 201 | exact (hξ i).map χ |
| 202 | refine relFreeAb.exists_glued_class ((offDiagonal X).whisker HodgeTest.sqZeroExt) |
| 203 | {W | ∃ i, ∃ c : EtaleChart (d + d) (X ⊗ X), |
| 204 | c.locus.whisker HodgeTest.sqZeroExt = W ∧ c.locus ≤ (V i).locus} |
| 205 | ?_ ?_ (fun i ↦ (V i).locus.whisker HodgeTest.sqZeroExt) (fun i ↦ ⟨i, V i, rfl, le_rfl⟩) ?_ ξ |
| 206 | fun i j ↦ ?_ |
| 207 | · -- the charts inside some `V i` are closed under intersection |
| 208 | rintro _ ⟨i, c, rfl, hc⟩ _ ⟨_, b, rfl, -⟩ |
| 209 | obtain ⟨c', hc'⟩ := c.exists_locus_eq_inf b |
| 210 | refine ⟨i, c', ?_, hc'.trans_le (inf_le_left.trans hc)⟩ |
| 211 | rw [hc'] |
| 212 | rfl |
| 213 | · -- such a chart `c`, with the coordinates of `V i`, has differences that cut out the diagonal |
| 214 | rintro _ ⟨i, c, rfl, hc⟩ m hm |
| 215 | obtain ⟨⟨χ : (V i).coordRing ⟶ c.coordRing⟩, hχ⟩ := hc c.coordRing c.point_mem_locus |
| 216 | have h_diff : χ ∘ f i = |
| 217 | (χ ∘ (V i).coordinate) ∘ Fin.castAdd d - (χ ∘ (V i).coordinate) ∘ Fin.natAdd d := |
| 218 | funext fun j ↦ map_sub χ.hom _ _ |
| 219 | obtain ⟨h_cut_c, -, -⟩ := h_local hχ |
| 220 | rw [h_diff] at h_cut_c |
| 221 | exact ((V i).restrict hχ c.injective c.isOpenSubfunctor).subsingleton_hodgeH_offDiagonal |
| 222 | h_cut_c hm |
| 223 | · -- the `V i` and the complement of the diagonal are open and cover all field points |
| 224 | refine hasZariskiDescent_hodgeCoeff (isZariskiLocallyTop_of_open_cover fun K hK ⟨z, w⟩ ↦ ?_) |
| 225 | obtain rfl | h_ne := eq_or_ne z w |
| 226 | · obtain ⟨i, hi⟩ := h_near K hK z |
| 227 | exact ⟨(V i).locus, (V i).isOpenSubfunctor, hi, le_sup_of_le_left (le_sSup ⟨i, rfl⟩)⟩ |
| 228 | · exact ⟨offDiagonal X, isOpenSubfunctor_offDiagonal, mem_offDiagonal_of_ne hK h_ne, |
| 229 | le_sup_right⟩ |
| 230 | · -- the overlap is a chart `c`; restricting `ξ i` and `ξ j` to the overlap gives two local |
| 231 | -- symbols at `c.point`, which agree there (`EtaleChart.symbolClass_eq_of_cutsOutLocus`) |
| 232 | obtain ⟨c, hc⟩ := (V i).exists_locus_eq_inf (V j) |
| 233 | have hc_mem := hc.le c.coordRing c.point_mem_locus |
| 234 | obtain ⟨⟨χ⟩, hχ⟩ := hc_mem.1 |
| 235 | obtain ⟨⟨χ'⟩, hχ'⟩ := hc_mem.2 |
| 236 | let diag (C : CommAlg k) (p : (X ⊗ X).obj C) := p.fst = p.snd |
| 237 | obtain ⟨h_cut_i, _, h_eq_i⟩ := (h_local hχ).restrict (P := diag) inf_le_left hc_mem |
| 238 | obtain ⟨h_cut_j, _, h_eq_j⟩ := (h_local hχ').restrict (P := diag) inf_le_right hc_mem |
| 239 | -- a class on the overlap is determined by its value at `c.point` |
| 240 | exact (c.isCohomEquiv_relFreeAb_map_pointMap (offDiagonal X) hc d).injective <| |
| 241 | h_eq_i.trans <| |
| 242 | (congrArg ((1 : k) • ·) (c.symbolClass_eq_of_cutsOutLocus h_cut_i h_cut_j)).trans |
| 243 | h_eq_j.symm |
| 244 | |
| 245 | /-- Let `X` be separated (`IsSeparatedFunctor`; here it makes `offDiagonal X` open), and let `V i` |
| 246 | be finitely many étale charts of `X ⊗ X` with `d + d` coordinates, such that every diagonal point |
| 247 | `(z, z)` with values in a field lies in some `V i`. Suppose that on each `V i` the differences of |
| 248 | the first `d` and last `d` coordinates cut out the diagonal. Then there is a class `δ` in degree-`d` |
| 249 | Hodge cohomology of `X ⊗ X` relative to `offDiagonal X` which, for every `i`, is a local symbol |
| 250 | (`IsLocalSymbol`) with multiplicity `1` at the point of `V i` for these coordinate differences. -/ |
| 251 | lemma exists_isLocalSymbol_of_charts_near_diagonal [IsSeparatedFunctor X] {r : ℕ} |
| 252 | (V : Fin r → EtaleChart (d + d) (X ⊗ X)) |
| 253 | (h_cut : ∀ i : Fin r, |
| 254 | CutsOutLocus (X ⊗ X) (fun (C : CommAlg k) (p : (X ⊗ X).obj C) ↦ p.fst = p.snd) |
| 255 | (V i).point ((V i).coordinate ∘ Fin.castAdd d - (V i).coordinate ∘ Fin.natAdd d)) |
| 256 | (h_near : ∀ K : CommAlg k, IsField K.carrier → |
| 257 | ∀ z : X.obj K, ∃ i : Fin r, (z, z) ∈ (V i).locus.obj K) : |
| 258 | ∃ δ : HodgeH (relFreeAb (offDiagonal X)) d, ∀ i : Fin r, |
| 259 | IsLocalSymbol δ (V i).point (fun (C : CommAlg k) (p : (X ⊗ X).obj C) ↦ p.fst = p.snd) |
| 260 | ((V i).coordinate ∘ Fin.castAdd d - (V i).coordinate ∘ Fin.natAdd d) 1 := by |
| 261 | -- Construct local symbol classes on each `V i` by excision, then glue them using |
| 262 | -- `exists_glued_hodgeH_of_isLocalSymbol`. |
| 263 | -- for each `i`, a class `ξ` on `V i` whose value at the point of the chart is the symbol of |
| 264 | -- the coordinate differences |
| 265 | have h_class (i : Fin r) : ∃ ξ : HodgeH (relFreeAb ((offDiagonal X).preimage (V i).locus.ι)) d, |
| 266 | IsLocalSymbol ξ ⟨(V i).point, (V i).point_mem_locus⟩ |
| 267 | (fun C (p : (V i).locus.toFunctor.obj C) ↦ p.val.fst = p.val.snd) |
| 268 | ((V i).coordinate ∘ Fin.castAdd d - (V i).coordinate ∘ Fin.natAdd d) 1 := by |
| 269 | -- by excision, a class on `V i` may be prescribed through its pull-back to the point |
| 270 | obtain ⟨ξ, hξ⟩ := ((V i).isCohomEquiv_relFreeAb_map_pointMap (offDiagonal X) rfl d).surjective |
| 271 | ((1 : k) • symbolClass.map (relFreeAb.map _ (h_cut i).preimage_fieldLocus_not.le)) |
| 272 | exact ⟨ξ, h_cut i, le_rfl, hξ⟩ |
| 273 | choose ξ hξ using h_class |
| 274 | obtain ⟨δ, hδ⟩ := exists_glued_hodgeH_of_isLocalSymbol V h_near ξ hξ |
| 275 | -- `δ` restricts to `ξ i` on `V i`, so it has the local description of `ξ i` there |
| 276 | refine ⟨δ, fun i ↦ ⟨h_cut i, le_rfl, ?_⟩⟩ |
| 277 | obtain ⟨h_cut_i, h_le, h_symb⟩ := hξ i |
| 278 | rwa [← hδ, ← δ.map_comp _ (relFreeAb.map _ le_rfl), relFreeAb.map_comp_map] at h_symb |
| 279 | |
| 280 | /-- The class of the diagonal. If `X` has an atlas of dimension `d`, there is a Hodge class `δ` of |
| 281 | degree `d` on `X × X` relative to the complement of the diagonal, such that every point `z` of |
| 282 | `X` in a field has a chart `a` and an open `O ∋ (z, z)` on which `δ` is the symbol of the |
| 283 | differences of the coordinates of `a`. -/ |
| 284 | lemma exists_diagonal_class [CharZero k] (hX : HasAtlas d X) : |
| 285 | ∃ δ : HodgeH (relFreeAb (offDiagonal X)) d, |
| 286 | ∀ (K : CommAlg k) (z : X.obj K), IsField K.carrier → |
| 287 | ∃ (a : EtaleChart d X) (O : Subfunctor (X ⊗ X)), |
| 288 | IsOpenSubfunctor O ∧ |
| 289 | (z, z) ∈ O.obj K ∧ |
| 290 | IsDiagonalSymbolOn δ a O := by |
| 291 | -- Each chart `a i` of the atlas gives a chart `V i` of `X × X` near the diagonal. Glue the |
| 292 | -- symbols of the differences of the coordinates on the `V i`. |
| 293 | obtain ⟨r, a, h_cover⟩ := hX.exists_finite_charts |
| 294 | choose V φ₀ ψ₀ h_point h_fst h_snd h_cut h_diag using fun i ↦ (a i).exists_chart_near_diagonal |
| 295 | have h_near (K : CommAlg k) (hK : IsField K.carrier) (z : X.obj K) : |
| 296 | ∃ i, (z, z) ∈ (V i).locus.obj K := |
| 297 | (h_cover K hK z).imp fun i hz ↦ h_diag i K z hz |
| 298 | obtain ⟨δ, hδ⟩ := exists_isLocalSymbol_of_charts_near_diagonal V h_cut h_near |
| 299 | refine ⟨δ, fun K z hK ↦ ?_⟩ |
| 300 | obtain ⟨i, hi⟩ := h_near K hK z |
| 301 | -- a point `χ` of `V i` is the pair of the points `φ₀ i ≫ χ` and `ψ₀ i ≫ χ` of `a i` |
| 302 | have h_pair {B : CommAlg k} (χ : (V i).coordRing ⟶ B) : (pointMap (V i).point).app B ⟨χ⟩ = |
| 303 | (X.map (φ₀ i ≫ χ) (a i).point, X.map (ψ₀ i ≫ χ) (a i).point) := by |
| 304 | rw [h_point, X.map_comp_apply, X.map_comp_apply] |
| 305 | rfl |
| 306 | refine ⟨a i, (V i).locus, (V i).isOpenSubfunctor, hi, ?_, ?_, ?_⟩ |
| 307 | · rintro B _ ⟨⟨χ⟩, rfl⟩ |
| 308 | exact ⟨⟨φ₀ i ≫ χ⟩, (congrArg Prod.fst (h_pair χ)).symm⟩ |
| 309 | · rintro B _ ⟨⟨χ⟩, rfl⟩ |
| 310 | exact ⟨⟨ψ₀ i ≫ χ⟩, (congrArg Prod.snd (h_pair χ)).symm⟩ |
| 311 | · rintro B _ ⟨⟨χ : (V i).coordRing ⟶ B⟩, rfl⟩ φ ψ hφ hψ |
| 312 | obtain rfl : φ = φ₀ i ≫ χ := (a i).injective B (hφ.trans (congrArg Prod.fst (h_pair χ))) |
| 313 | obtain rfl : ψ = ψ₀ i ≫ χ := (a i).injective B (hψ.trans (congrArg Prod.snd (h_pair χ))) |
| 314 | have h_diff : (fun j ↦ (φ₀ i ≫ χ) ((a i).coordinate j) - (ψ₀ i ≫ χ) ((a i).coordinate j)) = |
| 315 | χ ∘ ((V i).coordinate ∘ Fin.castAdd d - (V i).coordinate ∘ Fin.natAdd d) := by |
| 316 | rw [h_fst, h_snd] |
| 317 | exact funext fun j ↦ (map_sub χ.hom _ _).symm |
| 318 | rw [h_diff] |
| 319 | exact (hδ i).map χ |
| 320 | |
| 321 | end New.Variety |