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.Azumaya.Basic |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.WeaklyEtale |
| 5 | import Mathlib.AlgebraicGeometry.Sites.Fpqc |
| 6 | import Mathlib.RingTheory.Henselian |
| 7 | import Mathlib.RingTheory.PiTensorProduct |
| 8 | import Mathlib.RingTheory.SimpleRing.Principal |
| 9 | public import TauCeti.AlgebraicGeometry.Frobenius.Iterate |
| 10 | import TauCeti.CategoryTheory.Limits.MorphismProperty |
| 11 | import TauCeti.RingTheory.MvPolynomial.Homogeneous |
| 12 | public import Lib.Shimura.ThetaGroup |
| 13 | public import Lib.Shimura.ThetaNormality.NormalGeneration |
| 14 | public import Lib.General.Algebra.AbsIntegrallyClosed |
| 15 | import Lib.General.Algebra.MultivariatePolynomials |
| 16 | |
| 17 | /-! |
| 18 | # Absolute Frobenius, Serre's theorem on sections of powers, and projective embeddings |
| 19 | |
| 20 | A line bundle (`New.LineBundle`) is an open cover `U i` with a cocycle `g i j`, and `L.picClass` is |
| 21 | its class in the additively written Picard group. `New.LineBundle.IsLinearSystem` says that the |
| 22 | transition functions behave like the affine coordinates `s j / s i` of a map to a projective space. |
| 23 | The file shows that the absolute `l ^ f`-Frobenius multiplies the class of a linear system by |
| 24 | `l ^ f`. |
| 25 | |
| 26 | ## Main definitions and results |
| 27 | |
| 28 | * `New.Variety.absFrobenius f X`: the absolute `l ^ f`-Frobenius of a scheme `X` over a field of |
| 29 | characteristic `l`. It acts on `B`-valued points through `x ↦ x ^ l ^ f` on `B` |
| 30 | (`New.Variety.comp_absFrobenius`), commutes with all morphisms and fixes the underlying space. |
| 31 | * `New.Variety.eventually_span_coordSection`: let `N` be a projective embedding of an integral |
| 32 | scheme over a field and `p` a base change to a noetherian ring. For large `m` the monomials of |
| 33 | degree `m` in the coordinates span the sections of `(p^* N) ^ m`. |
| 34 | * The instance `New.isProper_pi`: the product in `Over S` of a finite family of proper schemes over |
| 35 | `S` is proper over `S`. |
| 36 | * `New.Variety.HasProjEmbedding.of_isClosedImmersion_pi`: if finitely many `S`-schemes have |
| 37 | projective embeddings over `S`, so does every closed subscheme of their fibre product. |
| 38 | |
| 39 | Notions from other files: |
| 40 | * `New.LineBundle.pull`, `New.LineBundle.pow`: the pull-back of a line bundle along a morphism, and |
| 41 | its `m`-th tensor power, whose charts are indexed by `m`-tuples of indices. |
| 42 | * `New.LineBundle.IsProjEmbedding`: a linear system on a proper scheme whose affine coordinates |
| 43 | `g i j` separate the ring-valued points of each chart `U i` over the base. |
| 44 | * `New.Variety.coordSection`: the `j`-th coordinate `s j` of a linear system as a global section. |
| 45 | * `New.ThetaTori.formSpan R x m`: the values at a family `x` of the forms of degree `m` over `R`. |
| 46 | |
| 47 | ## Relation to the literature |
| 48 | |
| 49 | Known result: a case of the surjectivity half of Serre's theorem on sections of powers of a |
| 50 | projective embedding. |
| 51 | -/ |
| 52 | |
| 53 | @[expose] public section |
| 54 | |
| 55 | universe u v |
| 56 | |
| 57 | namespace New.Variety |
| 58 | |
| 59 | /-! ## The absolute Frobenius and classes of linear systems -/ |
| 60 | |
| 61 | section AbsoluteFrobenius |
| 62 | |
| 63 | open CategoryTheory AlgebraicGeometry CommRingCat LineBundle Spec |
| 64 | |
| 65 | /-- If `Spec B` maps to the spectrum of a commutative ring `k` of characteristic `l`, then `l = 0` |
| 66 | in `B`. -/ |
| 67 | lemma natCast_eq_zero_of_over_charP {k : Type} [CommRing k] {l : ℕ} {B : CommRingCat} [CharP k l] |
| 68 | (s : Spec B ⟶ Spec ⟨k⟩) : (l : B) = 0 := by |
| 69 | rw [← map_natCast (preimage s).hom, CharP.cast_eq_zero, map_zero] |
| 70 | |
| 71 | variable {k : Type} {l : ℕ} [Field k] [CharP k l] [Fact l.Prime] (f : ℕ) (X Y : Over (Spec ⟨k⟩)) |
| 72 | |
| 73 | /-- The absolute `l ^ f`-Frobenius of the underlying scheme of `X` over a field of |
| 74 | characteristic `l`, using Tau Ceti's iterated absolute Frobenius. -/ |
| 75 | noncomputable def absFrobenius : X.left ⟶ X.left := |
| 76 | X.left.iterateFrobenius l |
| 77 | (Scheme.natCast_eq_zero_of_hom X.hom (Scheme.natCast_spec_eq_zero (.of k))) f |
| 78 | |
| 79 | /-- On an affine point the absolute Frobenius is precomposition by the spectrum of the |
| 80 | `l ^ f`-power map on its coordinate ring. -/ |
| 81 | lemma comp_absFrobenius {B : CommRingCat} (t : Spec B ⟶ X.left) : |
| 82 | t ≫ absFrobenius f X = |
| 83 | specMap (frobPow (natCast_eq_zero_of_over_charP (B := B) (t ≫ X.hom)) f) ≫ t := by |
| 84 | have hB := natCast_eq_zero_of_over_charP (l := l) (t ≫ X.hom) |
| 85 | have hSpecB : (l : Γ(Spec B, ⊤)) = 0 := by |
| 86 | simpa using congr((Scheme.ΓSpecIso B).inv $hB) |
| 87 | rw [absFrobenius, ← Scheme.iterateFrobenius_naturality hSpecB _] |
| 88 | congr 1 |
| 89 | -- On an affine spectrum, each Frobenius step comes from the p-th power map on its ring. |
| 90 | induction f with |
| 91 | | zero => |
| 92 | rw [Scheme.iterateFrobenius_zero, ← Spec.map_id] |
| 93 | congr 1 |
| 94 | ext x |
| 95 | simp [frobPow_apply] |
| 96 | | succ f ih => |
| 97 | rw [Scheme.iterateFrobenius_succ, ih, ← Scheme.Spec_map_powRingHom B hB, ← Spec.map_comp] |
| 98 | congr 1 |
| 99 | ext x |
| 100 | simp [frobPow_apply, TauCeti.powRingHom_apply, Nat.pow_succ', pow_mul] |
| 101 | |
| 102 | lemma absFrobenius_comm (g : X.left ⟶ Y.left) : absFrobenius f X ≫ g = g ≫ absFrobenius f Y := |
| 103 | Scheme.iterateFrobenius_naturality _ _ g f |
| 104 | |
| 105 | lemma absFrobenius_apply (x : X.left) : absFrobenius f X x = x := |
| 106 | Scheme.iterateFrobenius_apply _ f x |
| 107 | |
| 108 | /-- Let `L` be a linear system (the data of a map to projective space) on a scheme `X` over a field |
| 109 | of characteristic `l`. The pull-back of `L` along the absolute `l ^ f`-Frobenius has class `l ^ f` |
| 110 | times that of `L` in the additively written Picard group. -/ |
| 111 | lemma picClass_pull_absFrobenius {ι : Type} {L : LineBundle X.left ι} (hL : L.IsLinearSystem) : |
| 112 | l ^ f • L.picClass = (L.pull (absFrobenius f X)).picClass := by |
| 113 | -- `L.pow (l ^ f)` is indexed by tuples of indices. On the constant tuples its cover is that of |
| 114 | -- `L` and its cocycle the `l ^ f`-th power of that of `L`. |
| 115 | -- The Frobenius does not move the charts. |
| 116 | have h_opens (a : ι) : (L.pull (absFrobenius f X)).opens a = L.opens a := |
| 117 | SetLike.ext fun _ ↦ by simp [absFrobenius_apply] |
| 118 | refine (picClass_pow ..).symm.trans <| picClass_eq_of_le (fun a _ ↦ a) |
| 119 | (fun a ↦ le_iInf fun _ ↦ (h_opens a).le) fun a b A t ht ↦ ?_ |
| 120 | -- `L.transition a b` is regular on `L.opens a`, so it commutes with `x ↦ x ^ l ^ f`. |
| 121 | have h_frob : L.transition a b A (t ≫ absFrobenius f X) = L.transition a b A t ^ l ^ f := by |
| 122 | rw [comp_absFrobenius] |
| 123 | exact hL.isRegularOn_transition a b _ t (h_opens a ▸ ht) |
| 124 | simpa [pow] using h_frob |
| 125 | |
| 126 | end AbsoluteFrobenius |
| 127 | |
| 128 | /-! ## Saturation and Serre's theorem on sections of powers -/ |
| 129 | |
| 130 | section SerreSaturation |
| 131 | |
| 132 | open MvPolynomial AlgebraicGeometry Scheme CategoryTheory MorphismProperty Filter Set Submodule |
| 133 | ThetaTori LineBundle Spec Limits.pullback |
| 134 | |
| 135 | /-- Multiplying the value at `x` of a form of degree `m` by a member of the family `x` gives the |
| 136 | value of a form of degree `m + 1`. -/ |
| 137 | lemma mul_mem_formSpan_succ {k F : Type*} {ι : Type} [CommRing k] [CommRing F] [Algebra k F] |
| 138 | {x : ι → F} (j : ι) {m : ℕ} {f : F} (hf : f ∈ formSpan k x m) : |
| 139 | f * x j ∈ formSpan k x (m + 1) := |
| 140 | mul_mem_mul hf (subset_span ⟨j, rfl⟩) |
| 141 | |
| 142 | /-- Cancellation: let `k` be a noetherian ring, `F` a commutative `k`-algebra and `x` a finite |
| 143 | family in `F` with `x r = 1`. For all large `D`: if every `f * x j` is the value at `x` of a form of |
| 144 | degree `D + 1`, then `f` is the value at `x` of a form of degree `D`. -/ |
| 145 | lemma eventually_mem_formSpan_of_mul {k F : Type*} {ι : Type} [CommRing k] [IsNoetherianRing k] |
| 146 | [Finite ι] [CommRing F] [Algebra k F] (x : ι → F) {r : ι} (hr : x r = 1) : |
| 147 | ∀ᶠ D : ℕ in atTop, ∀ f : F, |
| 148 | (∀ j : ι, f * x j ∈ formSpan k x (D + 1)) → f ∈ formSpan k x D := by |
| 149 | -- Idea: the ideals `I c` of the polynomial ring defined below increase with `c`, hence stabilise |
| 150 | -- at some `c`. For `D ≥ c`, `f = f * x r` is the value of a homogeneous `p ∈ I (D + 1) = I c`. |
| 151 | let T : ℕ → Submodule k F := formSpan k x |
| 152 | -- The `n`-th coefficient of `φ p = p(X · x)` is the value at `x` of the degree `n` part of `p`. |
| 153 | let φ : MvPolynomial ι k →ₐ[k] Polynomial F := aeval fun i ↦ Polynomial.X * .C (x i) |
| 154 | have φ_mul_X (p : MvPolynomial ι k) (j : ι) : φ (p * X j) = φ p * Polynomial.X * .C (x j) := by |
| 155 | simp [φ, mul_assoc] |
| 156 | -- `p ∈ I c`: for each `n`, this value `g` has all `g * x i` in `T n`, and `g` itself lies in |
| 157 | -- `T (n - 1)` if `c < n`. |
| 158 | let I (c : ℕ) : Ideal (MvPolynomial ι k) := |
| 159 | { carrier := {p | ∀ n : ℕ, |
| 160 | (∀ i : ι, (φ p).coeff n * x i ∈ T n) ∧ (c < n → (φ p).coeff n ∈ T (n - 1))} |
| 161 | add_mem' := by simp_all [add_mul, add_mem] |
| 162 | zero_mem' := by simp |
| 163 | smul_mem' q p hp := by |
| 164 | induction q using MvPolynomial.induction_on with |
| 165 | | C a => simp_all [smul_mem, p.C_mul'] |
| 166 | | add q q' hq hq' => simp_all [add_mul, add_mem] |
| 167 | | mul_X q j hq => |
| 168 | -- Multiplying by a variable shifts the coefficients: the new one in degree `n + 1` is |
| 169 | -- the old one in degree `n` times `x j`. |
| 170 | intro n |
| 171 | rw [smul_eq_mul, mul_right_comm, φ_mul_X, Polynomial.coeff_mul_C] |
| 172 | rcases n with _ | n |
| 173 | · simp |
| 174 | · rw [Polynomial.coeff_mul_X] |
| 175 | exact ⟨fun i ↦ mul_mem_formSpan_succ i ((hq n).1 j), fun _ ↦ (hq n).1 j⟩ } |
| 176 | have I_mono : Monotone I := fun c c' hcc' p hp n ↦ |
| 177 | ⟨(hp n).1, fun hn ↦ (hp n).2 (hcc'.trans_lt hn)⟩ |
| 178 | obtain ⟨c, hc : ∀ m, c ≤ m → I c = I m⟩ := WellFoundedGT.monotone_chain_condition ⟨I, I_mono⟩ |
| 179 | filter_upwards [eventually_ge_atTop c] with D hD f hf |
| 180 | obtain ⟨p, hp_homog, hp_val⟩ : ∃ p : MvPolynomial ι k, p.IsHomogeneous (D + 1) ∧ p.aeval x = f := |
| 181 | (map_homogeneousSubmodule_eq_formSpan k x (D + 1)).ge (by simpa [hr] using hf r) |
| 182 | have hp : φ p = .X ^ (D + 1) * algebraMap F (Polynomial F) f := by |
| 183 | rw [← hp_val, ← p.aeval_algebraMap_apply (Polynomial F)] |
| 184 | exact hp_homog.eval₂_const_mul .. |
| 185 | have hp_mem : p ∈ I (D + 1) := fun n ↦ by |
| 186 | obtain rfl | hn := eq_or_ne n (D + 1) <;> simp [*, T] |
| 187 | rw [← hc (D + 1) (by lia)] at hp_mem |
| 188 | simpa [hp] using (hp_mem (D + 1)).2 (by lia) |
| 189 | |
| 190 | /-- Saturation: let `k` be a noetherian ring, `F` a commutative `k`-algebra and `x` a finite family |
| 191 | in `F` with `x r = 1`. For all large `D`: if for each `i` some `f * x i ^ N` is the value at |
| 192 | `x` of a form of degree `D + N`, then `f` is the value at `x` of a form of degree `D`. -/ |
| 193 | lemma eventually_mem_formSpan_of_mul_pow {k F : Type*} {ι : Type} [CommRing k] |
| 194 | [IsNoetherianRing k] [Finite ι] [CommRing F] [Algebra k F] (x : ι → F) {r : ι} (hr : x r = 1) : |
| 195 | ∀ᶠ D : ℕ in atTop, ∀ f : F, |
| 196 | (∀ i : ι, ∃ N : ℕ, f * x i ^ N ∈ formSpan k x (D + N)) → f ∈ formSpan k x D := by |
| 197 | classical |
| 198 | -- Induction on the exponents `N i` reduces to the case where all of them are `1`. |
| 199 | obtain ⟨c, cancel⟩ : ∃ c : ℕ, ∀ D ≥ c, ∀ f : F, |
| 200 | (∀ j : ι, f * x j ∈ formSpan k x (D + 1)) → f ∈ formSpan k x D := |
| 201 | eventually_atTop.1 (eventually_mem_formSpan_of_mul x hr) |
| 202 | refine eventually_atTop.2 ⟨c, fun D hD f hf ↦ ?_⟩ |
| 203 | -- Choose exponents `N i` with `f * x i ^ N i` a form. |
| 204 | choose N hN using hf |
| 205 | induction N using WellFoundedLT.induction generalizing D f with | ind N ih |
| 206 | refine cancel D hD f fun j ↦ ?_ |
| 207 | rcases h_exp : N j with _ | n |
| 208 | · simpa [h_exp] using mul_mem_formSpan_succ j (hN j) |
| 209 | · -- Apply the induction hypothesis to `f * x j`, with `N j` lowered by one. |
| 210 | refine ih (Function.update N j n) (update_lt_self_iff.2 (by lia)) (D + 1) (by lia) (f * x j) |
| 211 | fun i ↦ ?_ |
| 212 | obtain rfl | hij := eq_or_ne i j |
| 213 | · rw [Function.update_self, mul_assoc, ← pow_succ', add_right_comm, add_assoc, ← h_exp] |
| 214 | exact hN i |
| 215 | · rw [Function.update_of_ne hij, mul_right_comm, add_right_comm] |
| 216 | exact mul_mem_formSpan_succ j (hN i) |
| 217 | |
| 218 | /-- The transition functions of the `m`-th power of `L` are products of `m` transition functions |
| 219 | of `L`. -/ |
| 220 | lemma pow_transition_apply {X : Scheme} {ι : Type} (L : LineBundle X ι) {m : ℕ} (c d : Fin m → ι) |
| 221 | {B : CommRingCat} (ξ : Spec B ⟶ X) : |
| 222 | (L.pow m).transition c d B ξ = ∏ a : Fin m, L.transition (c a) (d a) B ξ := by |
| 223 | simp [LineBundle.pow] |
| 224 | |
| 225 | open scoped Pointwise in |
| 226 | /-- In the chart of `L.pow m` indexed by the constant tuple `i`, the coordinate sections evaluate |
| 227 | at `ξ` to the degree-`m` monomials in the affine coordinates of `ξ` in the chart `i` of `L`. -/ |
| 228 | private lemma span_eval_coordSection_pow_eq_formSpan {k ι : Type} [CommRing k] |
| 229 | {X : Over (Spec (CommRingCat.of k))} {L : LineBundle X.left ι} {m : ℕ} |
| 230 | (h : (L.pow m).IsLinearSystem) {B : CommRingCat} [Algebra k B] (ξ : Spec B ⟶ X.left) (i : ι) : |
| 231 | span k (range fun c ↦ (coordSection (R := k) h c).val (fun _ ↦ i) B ξ) = |
| 232 | formSpan k (fun j ↦ L.transition i j B ξ) m := by |
| 233 | let x (j : ι) : B := L.transition i j B ξ |
| 234 | have h_eval (c : Fin m → ι) : |
| 235 | (coordSection (R := k) h c).val (fun _ ↦ i) B ξ = ∏ a : Fin m, x (c a) := |
| 236 | pow_transition_apply _ _ c ξ |
| 237 | rw [show formSpan k x m = span k (range x ^ m) from span_pow ..] |
| 238 | congr 1 |
| 239 | ext y |
| 240 | rw [mem_pow_iff_prod] |
| 241 | constructor |
| 242 | · rintro ⟨c, rfl⟩ |
| 243 | exact ⟨fun a ↦ x (c a), fun a ↦ mem_range_self (c a), (h_eval c).symm⟩ |
| 244 | · rintro ⟨g, hg, rfl⟩ |
| 245 | choose c hc using hg |
| 246 | exact ⟨c, by simp [h_eval, hc]⟩ |
| 247 | |
| 248 | /-- Let `L` be a projective embedding (finitely many coordinates) of a scheme `X` over a ring `k`, |
| 249 | let `t` be a section of `L ^ m`, given as a value `t c` at `B`-valued points in each chart `c` (an |
| 250 | `m`-tuple of indices), regular and compatible with the transition functions (`IsSection`), and let |
| 251 | `ξ` be a `B`-valued point over `k` in the charts `i` and `j`, with affine coordinates |
| 252 | `x l = L.transition i l (ξ)`. Then for some `N`, the value of `t` at `ξ` in the chart `i` times |
| 253 | `x j ^ N` is the value at `x` of a form of degree `m + N`. -/ |
| 254 | lemma exists_mul_pow_mem_formSpan_of_isSection {k ι : Type} [CommRing k] [Finite ι] |
| 255 | {X : Over (Spec (CommRingCat.of k))} {L : LineBundle X.left ι} (hL : L.IsProjEmbedding X.hom) |
| 256 | {m : ℕ} {t : (Fin m → ι) → PointFn X.left} (ht : (L.pow m).IsSection t) |
| 257 | {B : CommRingCat} [Algebra k B] {ξ : Spec B ⟶ X.left} |
| 258 | (h_alg : algebraMap k B = (Spec.preimage (ξ ≫ X.hom)).hom) {i j : ι} |
| 259 | (hi : LandsIn ξ (L.opens i)) (hj : LandsIn ξ (L.opens j)) : |
| 260 | ∃ N : ℕ, t (fun _ ↦ i) B ξ * L.transition i j B ξ ^ N ∈ |
| 261 | formSpan k (fun l : ι ↦ L.transition i l B ξ) (m + N) := by |
| 262 | obtain ⟨t_reg, t_glue⟩ := ht |
| 263 | let x : ι → B := fun l ↦ L.transition i l B ξ |
| 264 | let y : ι → B := fun l ↦ L.transition j l B ξ |
| 265 | -- The chart `j` is affine and its sections are the polynomials `ψ P` in the coordinates |
| 266 | -- `transition j l`, whose values at `ξ` are the `y l`. |
| 267 | obtain ⟨-, ψ, ψ_surj, -, ψ_ev⟩ := hL.exists_affine_chart j |
| 268 | obtain ⟨P, hP⟩ : ∃ P : MvPolynomial ι k, ∀ (C : CommRingCat) (u : Spec C ⟶ X.left), |
| 269 | LandsIn u (L.opens j) → PointFn.ofSection (ψ P) C u = t (fun _ ↦ j) C u := |
| 270 | ψ_surj.exists.1 ((t_reg fun _ ↦ j).mono le_iInf_const).exists_ofSection |
| 271 | -- The value of `t` in the chart `i` is `x j ^ m` times its value in the chart `j`. |
| 272 | have ht_i : t (fun _ ↦ i) B ξ = x j ^ m * aeval y P := by |
| 273 | rw [t_glue _ (fun _ ↦ j) B ξ ((landsIn_iInf ξ).2 fun _ ↦ hi) ((landsIn_iInf ξ).2 fun _ ↦ hj), |
| 274 | ← hP B ξ hj, ψ_ev hj P, aeval_def, h_alg, pow_transition_apply, Fin.prod_const, coe_eval₂Hom] |
| 275 | -- The `l`-th coordinate is a section: compare its values in the charts `i` and `j`. |
| 276 | have h_cocycle : x = fun l ↦ x j * y l := |
| 277 | funext fun l ↦ (hL.isLinearSystem.isSection l).right i j B ξ hi hj |
| 278 | -- Homogenise `P` to a form `Q` of degree `D = m + deg P`; then `Q(x) = x j ^ D * P(y)`. |
| 279 | obtain ⟨Q, hQ, hQP⟩ := |
| 280 | exists_homogenization (N := m + P.totalDegree) (isHomogeneous_X k j) P le_add_self |
| 281 | have hQ_val : aeval x Q = t (fun _ ↦ i) B ξ * x j ^ P.totalDegree := |
| 282 | calc aeval x Q = aeval (fun l ↦ x j * y l) Q := by rw [← h_cocycle] |
| 283 | _ = x j ^ (m + P.totalDegree) * aeval y Q := hQ.eval₂_const_mul _ y (x j) |
| 284 | _ = t (fun _ ↦ i) B ξ * x j ^ P.totalDegree := by |
| 285 | rw [hQP (aeval y) (by simp [y, transition_self _ _ _ _ hj]), ht_i, pow_add, mul_right_comm] |
| 286 | exact ⟨P.totalDegree, (map_homogeneousSubmodule_eq_formSpan k x _).le ⟨Q, hQ, hQ_val⟩⟩ |
| 287 | |
| 288 | /-- Let `ξ` be a quasi-compact scheme-theoretically dominant ring-valued point of `X` in the chart |
| 289 | `i` of a line bundle `L`. A global section of `L` whose value at `ξ` in this chart is zero is |
| 290 | zero. -/ |
| 291 | lemma eq_zero_of_apply_eq_zero_of_dominant {k ι : Type} [CommRing k] |
| 292 | {X : Over (Spec (CommRingCat.of k))} {L : LineBundle X.left ι} {B : CommRingCat} |
| 293 | (ξ : Spec B ⟶ X.left) [IsSchemeTheoreticallyDominant ξ] [QuasiCompact ξ] {i : ι} |
| 294 | (hi : LandsIn ξ (L.opens i)) (s : L.H0 k) (hs : (s : ι → PointFn X.left) i B ξ = 0) : |
| 295 | s = 0 := by |
| 296 | obtain ⟨s, ⟨s_reg, s_glue⟩, _⟩ := s |
| 297 | refine H0_ext fun {c} h_reg h_zero ↦ |
| 298 | h_reg.ext_of_dominant_of_isOpenCover ξ h_zero isOpenCover_top fun _ C u hu _ ↦ ?_ |
| 299 | -- Over `ξ` the section vanishes in the chart `i`, hence in every chart. |
| 300 | obtain ⟨χ, rfl⟩ := map_surjective u |
| 301 | change s c C (Spec.map χ ≫ ξ) = 0 |
| 302 | rw [s_glue c i C _ hu (hi.comp _), s_reg _ χ ξ hi, show s i B ξ = 0 from hs, map_zero, mul_zero] |
| 303 | |
| 304 | /-- Let `L` be a projective embedding (finitely many coordinates) of a scheme `X` over a noetherian |
| 305 | ring `k`, and let `ξ` be a quasi-compact scheme-theoretically dominant `B`-valued point of `X` in |
| 306 | the chart `i` such that for each index `j`, the affine coordinate `L.transition i j B ξ` is zero |
| 307 | or a unit. For all large `m`, the global sections of `L ^ m` are spanned over `k` by its |
| 308 | coordinates `coordSection h`, where `h` is any proof that `L ^ m` is a linear system. -/ |
| 309 | private lemma eventually_span_coordSection_of_dominant {k ι : Type} [CommRing k] |
| 310 | [IsNoetherianRing k] [Finite ι] {X : Over (Spec (CommRingCat.of k))} {L : LineBundle X.left ι} |
| 311 | (hL : L.IsProjEmbedding X.hom) {B : CommRingCat} (ξ : Spec B ⟶ X.left) |
| 312 | [IsSchemeTheoreticallyDominant ξ] [QuasiCompact ξ] {i : ι} (hi : LandsIn ξ (L.opens i)) |
| 313 | (h_coord : ∀ j : ι, L.transition i j B ξ = 0 ∨ IsUnit (L.transition i j B ξ)) : |
| 314 | ∀ᶠ m : ℕ in atTop, ∀ h : (L.pow m).IsLinearSystem, |
| 315 | span k (range (coordSection h)) = ⊤ := by |
| 316 | -- Evaluation at `ξ` embeds `H⁰` in `B`, and the values of the coordinates span the forms of |
| 317 | -- degree `m` in the `x j = L.transition i j B ξ`. A section times a power of any `x j` is a |
| 318 | -- form, so by `eventually_mem_formSpan_of_mul_pow` the section itself is one. |
| 319 | let : Algebra k B := (Spec.preimage (ξ ≫ X.hom)).hom.toAlgebra |
| 320 | -- `x` gives the affine coordinates of `ξ` in the chart `i`. |
| 321 | let x (j : ι) : B := L.transition i j B ξ |
| 322 | filter_upwards [eventually_mem_formSpan_of_mul_pow (k := k) x (transition_self _ _ _ _ hi)] with |
| 323 | m h_sat h |
| 324 | -- `ev` is evaluation at `ξ` in the chart `i`. |
| 325 | let ev : (L.pow m).H0 k →ₗ[k] B := |
| 326 | { toFun s := (s : (Fin m → ι) → PointFn X.left) (fun _ ↦ i) B ξ |
| 327 | map_add' _ _ := rfl |
| 328 | map_smul' _ _ := rfl } |
| 329 | -- Since `ξ` is scheme-theoretically dominant, a section vanishing at `ξ` is zero. |
| 330 | have ev_inj : Function.Injective ev := (injective_iff_map_eq_zero _).2 |
| 331 | (eq_zero_of_apply_eq_zero_of_dominant ξ ((landsIn_iInf ξ).2 fun _ ↦ hi)) |
| 332 | have h_forms : formSpan k x m ≤ span k (ev '' range (coordSection h)) := by |
| 333 | rw [← range_comp'] |
| 334 | exact (span_eval_coordSection_pow_eq_formSpan h ξ i).ge |
| 335 | refine eq_top_iff'.2 fun ⟨t, ht, _⟩ ↦ ?_ |
| 336 | suffices h_form : t (fun _ ↦ i) B ξ ∈ formSpan k x m from |
| 337 | (apply_mem_span_image_iff_mem_span ev_inj).1 (h_forms h_form) |
| 338 | -- By saturation it is enough that for each `j` some `t(ξ) * x j ^ N` is a form. |
| 339 | refine h_sat _ fun j ↦ ?_ |
| 340 | rcases h_coord j with h_zero | hx_unit |
| 341 | · -- At such `j` we have `x j = 0`. |
| 342 | exact ⟨1, by simp [x, h_zero]⟩ |
| 343 | -- Otherwise `x j` is a unit, so `ξ` lies in the chart `j` as well. |
| 344 | have hj : LandsIn ξ (L.opens j) := |
| 345 | ((hL.isLinearSystem.isHomogeneousCoords_transition hi).landsIn_iff_isUnit j).mpr hx_unit |
| 346 | exact exists_mul_pow_mem_formSpan_of_isSection hL ht rfl hi hj |
| 347 | |
| 348 | /-- A case of Serre's theorem, surjectivity half. Let `N` be a projective embedding (finitely many |
| 349 | coordinates) of an integral scheme `A` over a field `F`, and `p : A' ⟶ A` the base change along |
| 350 | `b : Spec k ⟶ Spec F`, with `k` noetherian. For all large `m`, the global sections of `(p^* N) ^ m` |
| 351 | are spanned over `k` by its coordinates `coordSection h`, where `h` is any proof that it is a linear |
| 352 | system. These coordinates are indexed by `m`-tuples of indices, each giving a monomial of degree `m` |
| 353 | in the coordinates of `p^* N`. -/ |
| 354 | lemma eventually_span_coordSection {k F ι : Type} [CommRing k] [IsNoetherianRing k] [Finite ι] |
| 355 | [Field F] {A : Over (Spec (CommRingCat.of F))} [IsIntegral A.left] {N : LineBundle A.left ι} |
| 356 | (A' : Over (Spec (CommRingCat.of k))) (hN : N.IsProjEmbedding A.hom) {p : A'.left ⟶ A.left} |
| 357 | {b : Spec (CommRingCat.of k) ⟶ Spec (CommRingCat.of F)} (h_pb : IsPullback p A'.hom A.hom b) : |
| 358 | ∀ᶠ m : ℕ in atTop, ∀ h : ((N.pull p).pow m).IsLinearSystem, |
| 359 | span k (range (coordSection h)) = ⊤ := by |
| 360 | -- Let `ξ : Spec B ⟶ A'` be the base change of the generic point `ζ` of `A`, in the chart `i`. |
| 361 | -- Its affine coordinates come from the residue field of `η`, so each is zero or a unit, and |
| 362 | -- `eventually_span_coordSection_of_dominant` applies to `N.pull p` on `A'` at `ξ`. |
| 363 | let η : A.left := genericPoint A.left |
| 364 | let ζ : Spec (A.left.residueField η) ⟶ A.left := A.left.fromSpecResidueField η |
| 365 | have : IsDominant ζ := |
| 366 | ⟨by simp [DenseRange, ζ, η, dense_iff_closure_eq, range_fromSpecResidueField]⟩ |
| 367 | have : IsSchemeTheoreticallyDominant ζ := .of_isDominant ζ |
| 368 | have : IsAffineHom p := of_isPullback h_pb.flip inferInstance |
| 369 | have : Flat p := of_isPullback h_pb.flip inferInstance |
| 370 | obtain ⟨B, φ, ξ, hξ : IsPullback ξ (Spec.map φ) p ζ⟩ := exists_isPullback_SpecMap p ζ |
| 371 | -- `ξ` is scheme-theoretically dominant by flat base change. |
| 372 | have : IsSchemeTheoreticallyDominant ξ := by |
| 373 | rw [← hξ.isoPullback_hom_fst] |
| 374 | infer_instance |
| 375 | have : QuasiCompact ξ := of_isPullback hξ.flip inferInstance |
| 376 | obtain ⟨i, hζi⟩ := N.exists_landsIn ζ |
| 377 | have hi : LandsIn ξ ((N.pull p).opens i) := by |
| 378 | change LandsIn (ξ ≫ p) (N.opens i) |
| 379 | simpa only [hξ.w] using hζi.comp _ |
| 380 | -- Every affine coordinate of `ξ` in chart `i` is the image of an element of the residue field |
| 381 | -- of `η`, hence is either zero or a unit. |
| 382 | have hx (j : ι) : (N.pull p).transition i j B ξ = φ (N.transition i j _ ζ) := |
| 383 | (congrArg (N.transition i j B) hξ.w).trans |
| 384 | (hN.isLinearSystem.isRegularOn_transition i j φ ζ hζi) |
| 385 | have h_coord (j : ι) : |
| 386 | (N.pull p).transition i j B ξ = 0 ∨ IsUnit ((N.pull p).transition i j B ξ) := by |
| 387 | by_cases h_zero : N.transition i j _ ζ = 0 |
| 388 | · exact Or.inl (by rw [hx, h_zero, map_zero]) |
| 389 | · exact Or.inr (by simpa only [hx] using (Ne.isUnit h_zero).map φ.hom) |
| 390 | have hN' : (N.pull p).IsProjEmbedding A'.hom := hN.of_isPullback h_pb |
| 391 | exact eventually_span_coordSection_of_dominant hN' ξ hi h_coord |
| 392 | |
| 393 | end SerreSaturation |
| 394 | |
| 395 | end New.Variety |
| 396 | |
| 397 | /-! ## Finite products of proper schemes -/ |
| 398 | |
| 399 | section ProperProduct |
| 400 | |
| 401 | open CategoryTheory AlgebraicGeometry Limits MorphismProperty |
| 402 | |
| 403 | /-- A finite product of proper schemes over `S` is proper over `S`. -/ |
| 404 | instance New.isProper_pi {S : Scheme} {J : Type*} [Finite J] {A : J → Over S} |
| 405 | [h : ∀ l : J, IsProper (A l).hom] : IsProper (∏ᶜ A).hom := by |
| 406 | -- Proper morphisms are stable under composition and base change, so proper objects over |
| 407 | -- `S` are closed under finite products. |
| 408 | have := Over.isClosedUnderFiniteProducts @IsProper (X := S) |
| 409 | exact (MorphismProperty.overObj @IsProper).prop_product h |
| 410 | |
| 411 | end ProperProduct |
| 412 | |
| 413 | /-! |
| 414 | ## Projective embeddings of composites and products |
| 415 | |
| 416 | The property `New.Variety.HasProjEmbedding` (proper, with a finite linear system that separates |
| 417 | points over the base) passes to composites. |
| 418 | -/ |
| 419 | |
| 420 | namespace New.Variety |
| 421 | |
| 422 | open CategoryTheory AlgebraicGeometry LineBundle Limits |
| 423 | |
| 424 | /-- If `A` has a projective embedding over `X`, and `X` has one over `S`, then `A` has one over `S`, |
| 425 | given by the Segre product of the two linear systems. -/ |
| 426 | instance {X S : Scheme} {s : X ⟶ S} {A : Over X} [hA : HasProjEmbedding A.hom] |
| 427 | [hs : HasProjEmbedding (X := X) (S := S) s] : |
| 428 | HasProjEmbedding ((Over.map s).obj A).hom := by |
| 429 | obtain ⟨⟨hA⟩, ⟨hs⟩⟩ := And.intro hA hs |
| 430 | exact ⟨hA.mul hs⟩ |
| 431 | |
| 432 | /-- If an `S`-scheme `W` has a closed immersion over `S` into the fibre product of finitely many |
| 433 | `S`-schemes `A l`, each with a projective embedding over `S` (proper, with a finite linear system |
| 434 | that separates points), then `W` has a projective embedding over `S`. -/ |
| 435 | lemma HasProjEmbedding.of_isClosedImmersion_pi {S : Scheme} {ι : Type} {W : Over S} [Finite ι] |
| 436 | {A : ι → Over S} |
| 437 | (i : W ⟶ ∏ᶜ A) [IsClosedImmersion i.left] [h : ∀ l : ι, HasProjEmbedding (A l).hom] : |
| 438 | HasProjEmbedding W.hom := by |
| 439 | choose κ N _ hN using fun l ↦ (hasProjEmbedding_iff (A l).hom).1 (h l) |
| 440 | let := Fintype.ofFinite ι |
| 441 | -- The Segre product embeds the fibre product; restrict it to the closed subscheme `W`. |
| 442 | have h_prod : (LineBundle.pi fun l ↦ (N l).pull (Pi.π A l).left).IsProjEmbedding (∏ᶜ A).hom := |
| 443 | isProjEmbedding_pi (Pi.π A) hN (Pi.hom_ext _ _) |
| 444 | rw [← i.w] |
| 445 | exact ⟨h_prod.comp i.left⟩ |
| 446 | |
| 447 | end New.Variety |