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 Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 4 | public import Mathlib.AlgebraicGeometry.ProjectiveSpectrum.Basic |
| 5 | import Mathlib.AlgebraicGeometry.Modules.Sheaf |
| 6 | import Mathlib.AlgebraicGeometry.ZariskisMainTheorem |
| 7 | import Mathlib.CategoryTheory.EffectiveEpi.Comp |
| 8 | import Mathlib.CategoryTheory.ExtremalEpi |
| 9 | import Mathlib.RingTheory.Henselian |
| 10 | import Mathlib.RingTheory.TotallySplit |
| 11 | import TauCeti.AlgebraicGeometry.ProjectiveSpectrum.Polynomial.Basic |
| 12 | public import Lib.General.Geometry.LineBundles |
| 13 | |
| 14 | /-! |
| 15 | # Projective space, linear systems and projective embeddings, with Segre and Veronese |
| 16 | |
| 17 | This file treats projective space `New.ProjSpace ι = Proj ℤ[X i]` and maps to it through ring-valued |
| 18 | points. A linear system (`New.LineBundle.IsLinearSystem`) is a line bundle given by a cover `U i` |
| 19 | and functions `g i j`. Each `g i j` is regular on all of `U i` and plays the part of `s j / s i`. A |
| 20 | projective embedding is a linear system `L` on `X` with a proper morphism `s : X ⟶ S`. In it, two |
| 21 | points of one chart with the same coordinates and the same image in `S` are equal. The file shows |
| 22 | that such embeddings determine morphisms and pass to closed subschemes and composites. |
| 23 | |
| 24 | ## Main definitions and results |
| 25 | |
| 26 | * `New.ProjSpace.hyperplaneBundle`, `New.ProjSpace.isLinearSystem_hyperplaneBundle`: the standard |
| 27 | charts with `g i j = X j / X i` form a linear system. |
| 28 | * `New.LineBundle.IsHomogeneousCoords`: homogeneous coordinates of a point. Under a projective |
| 29 | embedding, a point that lies in some chart is determined by its coordinates and its image in the |
| 30 | base (`New.LineBundle.IsProjEmbedding.eq_of_isHomogeneousCoords`). A vector with a unit entry is a |
| 31 | vector of coordinates of some point of projective space |
| 32 | (`New.ProjSpace.exists_isHomogeneousCoords`). |
| 33 | * `New.LineBundle.IsProjEmbedding`, `New.isProjEmbedding_projSpace`: projective embeddings, by |
| 34 | linear systems that separate points. Projective space over a base, with a finite index set, is |
| 35 | one. |
| 36 | * `New.LineBundle.exists_picClass_eq_pull_hyperplane`, |
| 37 | `New.LineBundle.IsLinearSystem.exists_hom_projSpace`: finite families of sections without common |
| 38 | zero, and finite linear systems, come from maps to projective space. |
| 39 | * `New.LineBundle.IsProjEmbedding.exists_isClosedImmersion`: for finite `ι`, an embedding is a |
| 40 | closed immersion into ℙ^ι × S. |
| 41 | * `New.LineBundle.isProjEmbedding_pi` (Segre), `New.LineBundle.IsProjEmbedding.pow` (Veronese): a |
| 42 | proper scheme with finitely many jointly separating maps to embedded schemes embeds, and the |
| 43 | `m`-th tensor power of a projective embedding is one for `m ≠ 0`. |
| 44 | |
| 45 | Notions from other files: |
| 46 | * `New.PointFn`: a function on ring-valued points of X attaches an element of A to every point Spec |
| 47 | A → X, for every ring A, with no compatibility required. It is regular on an open U if its value |
| 48 | at Spec φ ≫ t is φ of its value at t, for every t landing in U and every ring map φ. |
| 49 | * `New.LineBundle.IsSection`: the family (s_i) is a global section of L: each s_i is regular on U_i, |
| 50 | and s_i = g_ij s_j at points landing in U_i and U_j. |
| 51 | * `New.LandsIn`: the morphism t : Y → X lands in the open U, that is, t⁻¹U is all of Y. |
| 52 | * `New.PointFn.ofSection`: a section s over U as a function on ring-valued points: its value at t : |
| 53 | Spec A → X is t*s in A if t lands in U, and 0 otherwise. |
| 54 | -/ |
| 55 | |
| 56 | @[expose] public section |
| 57 | |
| 58 | noncomputable section |
| 59 | |
| 60 | namespace New |
| 61 | |
| 62 | /-! ## Projective space, homogeneous coordinates and linear systems -/ |
| 63 | |
| 64 | section ProjectiveSpace |
| 65 | |
| 66 | open CategoryTheory AlgebraicGeometry Limits PointFn Finset Proj Int Algebra CommRingCat |
| 67 | IsLocalization MvPolynomial HomogeneousLocalization Localization MorphismProperty prod Ring |
| 68 | |
| 69 | variable {X Y S : Scheme} {ι κ : Type} {A : CommRingCat} {i j k l : ι} {L M : LineBundle X ι} |
| 70 | {N : LineBundle X κ} {t : Spec A ⟶ X} {v : ι → A} {p : Y ⟶ X} {s : X ⟶ S} |
| 71 | |
| 72 | attribute [local instance] gradedAlgebra |
| 73 | |
| 74 | /-! ### Projective space and its charts -/ |
| 75 | |
| 76 | /-- The variable `X i` is homogeneous of degree one. -/ |
| 77 | lemma ProjSpace.X_mem_homogeneousSubmodule (i : ι) : |
| 78 | MvPolynomial.X i ∈ homogeneousSubmodule ι ℤ 1 := isHomogeneous_X ℤ i |
| 79 | |
| 80 | open ProjSpace |
| 81 | |
| 82 | /-- Projective space over ℤ with homogeneous coordinates X_i, i in ι: the scheme Proj ℤ[X_i]. -/ |
| 83 | abbrev ProjSpace (ι : Type) : Scheme := Proj (homogeneousSubmodule.{0} ι ℤ) |
| 84 | |
| 85 | /-- The fraction X_j/X_i in the degree-zero part of the localization of ℤ[X] at X_i. -/ |
| 86 | abbrev ProjSpace.coordFraction (i j : ι) : |
| 87 | HomogeneousLocalization.Away (homogeneousSubmodule ι ℤ) (MvPolynomial.X i) := |
| 88 | Away.isLocalizationElem (X_mem_homogeneousSubmodule i) (X_mem_homogeneousSubmodule j) |
| 89 | |
| 90 | /-- The fraction X_j/X_i as a section over the standard chart D₊(X_i) of projective space. -/ |
| 91 | abbrev ProjSpace.coordSection (i j : ι) : |
| 92 | Γ(ProjSpace ι, basicOpen (homogeneousSubmodule ι ℤ) (MvPolynomial.X i)) := |
| 93 | awayToSection (homogeneousSubmodule ι ℤ) (MvPolynomial.X i) (coordFraction i j) |
| 94 | |
| 95 | /-- The function X_j/X_i on ring-valued points of projective space landing in D₊(X_i), and zero |
| 96 | at the other points. -/ |
| 97 | abbrev ProjSpace.coordRatio (i j : ι) : PointFn (Proj (homogeneousSubmodule ι ℤ)) := |
| 98 | ofSection (awayToSection (homogeneousSubmodule ι ℤ) (MvPolynomial.X i) |
| 99 | (Away.isLocalizationElem (X_mem_homogeneousSubmodule i) (X_mem_homogeneousSubmodule j))) |
| 100 | |
| 101 | /-- On an open `U` contained in D₊(X_i) and D₊(X_j), the restrictions of the sections X_j/X_i and |
| 102 | X_k/X_j multiply to the restriction of X_k/X_i. -/ |
| 103 | lemma ProjSpace.map_coordSection_mul (i j k : ι) {U : (ProjSpace ι).Opens} |
| 104 | (hi : U ≤ basicOpen (homogeneousSubmodule ι ℤ) (MvPolynomial.X i)) |
| 105 | (hj : U ≤ basicOpen (homogeneousSubmodule ι ℤ) (MvPolynomial.X j)) : |
| 106 | (ProjSpace ι).presheaf.map (homOfLE hi).op (coordSection i j) * |
| 107 | (ProjSpace ι).presheaf.map (homOfLE hj).op (coordSection j k) = |
| 108 | (ProjSpace ι).presheaf.map (homOfLE hi).op (coordSection i k) := by |
| 109 | -- Sections are families of fractions, one at each point `x`, in the localization at `x`. There |
| 110 | -- `coordSection a b` is `X b ^ 1 / X a ^ 1`, and fractions multiply term by term. |
| 111 | refine Subtype.ext (funext fun x ↦ val_injective _ ?_) |
| 112 | change Localization.mk (X j ^ 1 * X k ^ 1) ⟨X i ^ 1 * X j ^ 1, _⟩ = |
| 113 | Localization.mk (X k ^ 1) ⟨X i ^ 1, _⟩ |
| 114 | exact mk_eq_mk_iff.2 (r_of_eq (mul_assoc (X i ^ 1) (X j ^ 1) (X k ^ 1)).symm) |
| 115 | |
| 116 | /-- At a point of projective space that lands in D₊(X_i) ∩ D₊(X_j) the functions X_j/X_i and |
| 117 | X_k/X_j multiply to X_k/X_i. -/ |
| 118 | @[simp] |
| 119 | lemma ProjSpace.coordRatio_mul (i j k : ι) (t : Spec A ⟶ Proj (homogeneousSubmodule ι ℤ)) |
| 120 | (ht : LandsIn t (basicOpen (homogeneousSubmodule ι ℤ) (MvPolynomial.X i) ⊓ |
| 121 | basicOpen (homogeneousSubmodule ι ℤ) (MvPolynomial.X j))) : |
| 122 | coordRatio i j A t * coordRatio j k A t = coordRatio i k A t := by |
| 123 | -- Restrict the three sections to the intersection of the two charts, in which `t` lands. |
| 124 | unfold coordRatio |
| 125 | rw [← ofSection_map (coordSection i j) (homOfLE inf_le_left).op ht, |
| 126 | ← ofSection_map (coordSection j k) (homOfLE inf_le_right).op ht, |
| 127 | ← ofSection_map (coordSection i k) (homOfLE inf_le_left).op ht, |
| 128 | ← map_coordSection_mul i j k inf_le_left inf_le_right] |
| 129 | simp only [ofSection_eq ht, map_mul] |
| 130 | |
| 131 | /-- The line bundle O(1) on projective space, with the standard cover D₊(X_i) and transition |
| 132 | functions X_j/X_i. -/ |
| 133 | def ProjSpace.hyperplaneBundle (ι : Type) : LineBundle (ProjSpace ι) ι where |
| 134 | opens i := basicOpen (homogeneousSubmodule ι ℤ) (MvPolynomial.X i) |
| 135 | transition := coordRatio |
| 136 | cover := by exact iSup_basicOpen_eq_top _ _ (MvPolynomial.irrelevant_eq_span_X ι ℤ).le |
| 137 | regular := by simp [(isRegularOn_ofSection _).mono] |
| 138 | transition_self i := by simp +contextual [ofSection_eq] |
| 139 | |
| 140 | /-- The standard chart D₊(X_i) of projective space is affine. -/ |
| 141 | lemma ProjSpace.isAffineOpen_chart (i : ι) : IsAffineOpen ((hyperplaneBundle ι).opens i) := |
| 142 | isAffineOpen_basicOpen _ _ (X_mem_homogeneousSubmodule i) one_pos |
| 143 | |
| 144 | /-- A point `t` of the chart D₊(X_i) lands in the chart D₊(X_j) exactly when the value of X_j/X_i at |
| 145 | `t` is a unit. -/ |
| 146 | lemma ProjSpace.landsIn_chart_iff_isUnit {t : Spec A ⟶ ProjSpace ι} |
| 147 | (ht : LandsIn t ((hyperplaneBundle ι).opens i)) : |
| 148 | LandsIn t ((hyperplaneBundle ι).opens j) ↔ |
| 149 | IsUnit ((hyperplaneBundle ι).transition i j A t) := by |
| 150 | refine ⟨(hyperplaneBundle ι).isUnit_transition ht, fun h_unit x hx ↦ ?_⟩ |
| 151 | let y : (hyperplaneBundle ι).opens i := ⟨t x, ht hx⟩ |
| 152 | -- The prime ideal of `y` in the ring of sections over the chart does not contain `X j / X i`. |
| 153 | have h_prime : y ∈ Scheme.Opens.toSpecΓ _ ⁻¹ᵁ PrimeSpectrum.basicOpen (coordSection i j) := |
| 154 | (Scheme.Opens.toSpecΓ_preimage_basicOpen _ _).ge |
| 155 | ((landsIn_basicOpen ht (coordSection i j)).2 h_unit hx) |
| 156 | -- A fraction lies in that prime exactly when its numerator lies in the homogeneous prime `y`. |
| 157 | change .X j ∉ (t x).asHomogeneousIdeal |
| 158 | rw [← pow_one (MvPolynomial.X j)] |
| 159 | exact fun h_num ↦ h_prime ((ProjectiveSpectrum.Proj.mk_mem_toSpec_base_apply _ y _).2 h_num) |
| 160 | |
| 161 | namespace LineBundle |
| 162 | |
| 163 | /-- v is a vector of homogeneous coordinates of the point t for L: t lands in U_j exactly when v_j |
| 164 | is a unit, and then g_jk(t) = v_k/v_j. -/ |
| 165 | def IsHomogeneousCoords (L : LineBundle X ι) (t : Spec A ⟶ X) (v : ι → A) : Prop := |
| 166 | ∀ j : ι, (LandsIn t (L.opens j) ↔ IsUnit (v j)) ∧ |
| 167 | ∀ k : ι, IsUnit (v j) → L.transition j k A t = v k * (v j)⁻¹ʳ |
| 168 | |
| 169 | /-- If `v` is a vector of homogeneous coordinates of `t`, then `t` lands in the chart `U_j` |
| 170 | exactly when `v j` is a unit. -/ |
| 171 | lemma IsHomogeneousCoords.landsIn_iff_isUnit (hv : L.IsHomogeneousCoords t v) (j : ι) : |
| 172 | LandsIn t (L.opens j) ↔ IsUnit (v j) := (hv j).1 |
| 173 | |
| 174 | /-- If v is a vector of homogeneous coordinates of t and v_j is a unit, then g_jk(t) = v_k/v_j. -/ |
| 175 | lemma IsHomogeneousCoords.transition_eq_mul_inverse (hv : L.IsHomogeneousCoords t v) |
| 176 | (hj : IsUnit (v j)) (k : ι) : L.transition j k A t = v k * (v j)⁻¹ʳ := (hv j).2 k hj |
| 177 | |
| 178 | /-- Multiplying the transition value by the unit coordinate `v j` gives `v k`. -/ |
| 179 | lemma IsHomogeneousCoords.transition_mul_eq (hv : L.IsHomogeneousCoords t v) |
| 180 | (hj : IsUnit (v j)) (k : ι) : L.transition j k A t * v j = v k := |
| 181 | (Ring.eq_mul_inverse_iff_mul_eq _ _ _ hj).1 (hv.transition_eq_mul_inverse hj k) |
| 182 | |
| 183 | /-- A vector `v` is a vector of homogeneous coordinates of `t` once `t` lands in `U_j` exactly |
| 184 | when `v j` is a unit, and `g_jk(t) = v_k/v_j` whenever `v j` is a unit. -/ |
| 185 | lemma IsHomogeneousCoords.intro (h_lands : ∀ j : ι, LandsIn t (L.opens j) ↔ IsUnit (v j)) |
| 186 | (h_ratio : ∀ j k : ι, IsUnit (v j) → L.transition j k A t = v k * (v j)⁻¹ʳ) : |
| 187 | L.IsHomogeneousCoords t v := fun j ↦ ⟨h_lands j, h_ratio j⟩ |
| 188 | |
| 189 | /-- A point lands in the chart (i, k) of the tensor product of L and N exactly when it lands in the |
| 190 | chart i of L and in the chart k of N. -/ |
| 191 | lemma landsIn_mul_opens_iff {a : ι × κ} : |
| 192 | LandsIn t ((L.mul N).opens a) ↔ LandsIn t (L.opens a.1) ∧ LandsIn t (N.opens a.2) := landsIn_inf |
| 193 | |
| 194 | /-- `L` is a linear system, that is, the data of a map to projective space. The model is |
| 195 | `L.transition i j = s j / s i` on the chart `L.opens i` where `s i` does not vanish, for sections |
| 196 | `s i` without common zero. -/ |
| 197 | structure IsLinearSystem (L : LineBundle X ι) : Prop where |
| 198 | /-- The function `L.transition i j` is regular on the whole chart `L.opens i`. -/ |
| 199 | isRegularOn_transition (i j : ι) : (L.transition i j).IsRegularOn (L.opens i) |
| 200 | /-- The function `L.transition i j` vanishes at the points that do not land in `L.opens i`. -/ |
| 201 | transition_eq_zero {A : CommRingCat} {i : ι} (j : ι) {t : Spec A ⟶ X} |
| 202 | (ht : ¬LandsIn t (L.opens i)) : L.transition i j A t = 0 |
| 203 | /-- The values `L.transition i j A t`, as `j` varies, are homogeneous coordinates of every point |
| 204 | `t` of the chart `L.opens i`. -/ |
| 205 | isHomogeneousCoords_transition {A : CommRingCat} {i : ι} {t : Spec A ⟶ X} |
| 206 | (ht : LandsIn t (L.opens i)) : L.IsHomogeneousCoords t fun j : ι ↦ L.transition i j A t |
| 207 | |
| 208 | /-- The standard charts D₊(X_i) with the functions X_j/X_i form a linear system on projective |
| 209 | space. -/ |
| 210 | lemma _root_.New.ProjSpace.isLinearSystem_hyperplaneBundle : |
| 211 | (hyperplaneBundle ι).IsLinearSystem where |
| 212 | isRegularOn_transition i j := isRegularOn_ofSection (coordSection i j) |
| 213 | transition_eq_zero j t ht := dite_eq_right ht |
| 214 | isHomogeneousCoords_transition {A i t} ht := by |
| 215 | refine .intro (fun j ↦ landsIn_chart_iff_isUnit ht) fun j k h_unit ↦ ?_ |
| 216 | -- On both charts, `transition j k = transition i k / transition i j` is the cocycle condition. |
| 217 | rw [eq_mul_inverse_iff_mul_eq _ _ _ h_unit, mul_comm] |
| 218 | exact coordRatio_mul i j k t (le_inf ht ((landsIn_chart_iff_isUnit ht).2 h_unit)) |
| 219 | |
| 220 | /-- Two linear systems L, M on X with one index set are equal if g^M_jk = g^M_ji · g^L_ik for all k |
| 221 | at every point landing in U_i of L and in U_j of M. -/ |
| 222 | lemma IsLinearSystem.ext_of_transition_eq_mul (hL : L.IsLinearSystem) (hM : M.IsLinearSystem) |
| 223 | (h_mul : ∀ (i j k : ι) (A : CommRingCat) (t : Spec A ⟶ X), LandsIn t (L.opens i) → |
| 224 | LandsIn t (M.opens j) → M.transition j k A t = M.transition j i A t * L.transition i k A t) : |
| 225 | M = L := by |
| 226 | -- At a point of the i-th chart of L and the j-th chart of M, h_mul with k = j exhibits both |
| 227 | -- M.transition j i and L.transition i j as units, so the covers agree. |
| 228 | have h_one (i j : ι) {A : CommRingCat} {t : Spec A ⟶ X} (hLt : LandsIn t (L.opens i)) |
| 229 | (hMt : LandsIn t (M.opens j)) : M.transition j i A t * L.transition i j A t = 1 := by |
| 230 | rw [← h_mul i j j A t hLt hMt, M.transition_self j A t hMt] |
| 231 | have hU : M.opens = L.opens := by |
| 232 | refine le_antisymm (fun i ↦ le_of_cover L.isOpenCover fun j A t hLt hMt ↦ ?_) |
| 233 | fun i ↦ le_of_cover M.isOpenCover fun j A t hMt hLt ↦ ?_ |
| 234 | · exact ((hL.isHomogeneousCoords_transition hLt).landsIn_iff_isUnit i).2 |
| 235 | (.of_mul_eq_one_right _ (h_one j i hLt hMt)) |
| 236 | · exact ((hM.isHomogeneousCoords_transition hMt).landsIn_iff_isUnit i).2 |
| 237 | (.of_mul_eq_one _ (h_one i j hLt hMt)) |
| 238 | refine LineBundle.ext hU ?_ |
| 239 | funext i k A t |
| 240 | by_cases hMt : LandsIn t (M.opens i) |
| 241 | · rw [h_mul i i k A t (by rwa [← hU]) hMt, M.transition_self i A t hMt, one_mul] |
| 242 | · rw [hM.transition_eq_zero k hMt, hL.transition_eq_zero k (by rwa [← hU])] |
| 243 | |
| 244 | /-- For a linear system L with transition functions g_ij and a fixed j, the family (g_ij)_i is a |
| 245 | global section of L: each g_ij is regular on U_i, and g_ij = g_ik g_kj on U_i ∩ U_k. -/ |
| 246 | lemma IsLinearSystem.isSection (j : ι) {L : LineBundle X ι} (hL : L.IsLinearSystem) : |
| 247 | L.IsSection fun i : ι ↦ L.transition i j := by |
| 248 | refine ⟨fun i ↦ hL.isRegularOn_transition i j, fun i k A t hi hk ↦ ?_⟩ |
| 249 | change L.transition i j A t = L.transition i k A t * L.transition k j A t |
| 250 | exact ((hL.isHomogeneousCoords_transition hi).transition_mul_eq |
| 251 | (L.isUnit_transition hi hk) j).symm.trans (mul_comm ..) |
| 252 | |
| 253 | /-- The pull-back of a linear system along a morphism is a linear system. -/ |
| 254 | lemma IsLinearSystem.pull (p : Y ⟶ X) (hL : L.IsLinearSystem) : (L.pull p).IsLinearSystem where |
| 255 | isRegularOn_transition i j := (hL.isRegularOn_transition i j).pull p |
| 256 | transition_eq_zero j t ht := hL.transition_eq_zero j (t := t ≫ p) ht |
| 257 | isHomogeneousCoords_transition {_A _i t} ht := hL.isHomogeneousCoords_transition (t := t ≫ p) ht |
| 258 | |
| 259 | /-- The products v_i w_k of homogeneous coordinates v and w of a point t for L and for N are |
| 260 | homogeneous coordinates of t for the tensor product of L and N. -/ |
| 261 | lemma IsHomogeneousCoords.mul (hv : L.IsHomogeneousCoords t v) {w : κ → A} |
| 262 | (hw : N.IsHomogeneousCoords t w) : |
| 263 | (L.mul N).IsHomogeneousCoords t fun i : ι × κ ↦ v i.1 * w i.2 := by |
| 264 | refine .intro (fun a ↦ ?_) fun a k h_unit ↦ ?_ |
| 265 | · rw [landsIn_mul_opens_iff, hv.landsIn_iff_isUnit, hw.landsIn_iff_isUnit, IsUnit.mul_iff] |
| 266 | · obtain ⟨ha, hb⟩ : IsUnit (v a.1) ∧ IsUnit (w a.2) := IsUnit.mul_iff.1 h_unit |
| 267 | simp [hv.transition_eq_mul_inverse ha, hw.transition_eq_mul_inverse hb, mul_inverse_rev, |
| 268 | mul_mul_mul_comm, mul_comm] |
| 269 | |
| 270 | /-- The tensor product of two linear systems is a linear system. -/ |
| 271 | lemma IsLinearSystem.mul (hL : L.IsLinearSystem) (hN : N.IsLinearSystem) : |
| 272 | (L.mul N).IsLinearSystem where |
| 273 | isRegularOn_transition i j := |
| 274 | (hL.isRegularOn_transition i.1 j.1).mul (hN.isRegularOn_transition i.2 j.2) |
| 275 | transition_eq_zero {A i} j t ht := by |
| 276 | obtain hLt | hNt := not_and_or.1 (landsIn_mul_opens_iff.not.1 ht) |
| 277 | · simp [hL.transition_eq_zero j.1 hLt] |
| 278 | · simp [hN.transition_eq_zero j.2 hNt] |
| 279 | isHomogeneousCoords_transition {A i t} ht := by |
| 280 | obtain ⟨hLt, hNt⟩ := landsIn_mul_opens_iff.1 ht |
| 281 | exact (hL.isHomogeneousCoords_transition hLt).mul (hN.isHomogeneousCoords_transition hNt) |
| 282 | |
| 283 | namespace IsHomogeneousCoords |
| 284 | |
| 285 | /-- A vector v gives homogeneous coordinates of t for the pull-back of L along p exactly when it |
| 286 | gives homogeneous coordinates of t ≫ p for L. -/ |
| 287 | lemma pull_iff {t : Spec A ⟶ Y} : |
| 288 | (L.pull p).IsHomogeneousCoords t v ↔ L.IsHomogeneousCoords (t ≫ p) v := .rfl |
| 289 | |
| 290 | /-- Multiplying a vector of homogeneous coordinates of `t` by a unit gives another one. -/ |
| 291 | lemma smul (hv : L.IsHomogeneousCoords t v) {u : A} (hu : IsUnit u) : |
| 292 | L.IsHomogeneousCoords t (u • v) := by |
| 293 | refine .intro (fun j ↦ by simp [hu, hv.landsIn_iff_isUnit]) fun j k h_unit ↦ ?_ |
| 294 | have hj : IsUnit (v j) := by simpa [hu] using h_unit |
| 295 | simp only [Pi.smul_apply, smul_eq_mul, hv.transition_eq_mul_inverse hj, mul_inverse_rev] |
| 296 | linear_combination (-(v k * (v j)⁻¹ʳ)) * Ring.mul_inverse_cancel u hu |
| 297 | |
| 298 | /-- Let v be homogeneous coordinates of the point t for a linear system L, with a unit entry v_i. |
| 299 | For a ring map φ from A to R, the vector φ(v) gives homogeneous coordinates of the induced |
| 300 | R-valued point. -/ |
| 301 | lemma map (hv : L.IsHomogeneousCoords t v) {R : CommRingCat} (hL : L.IsLinearSystem) |
| 302 | (hi : IsUnit (v i)) (φ : A ⟶ R) : |
| 303 | L.IsHomogeneousCoords (Spec.map (R := A) (S := R) φ ≫ t) (φ ∘ v) := by |
| 304 | -- In the chart i the vector v is v i times the coordinates g_ij, which are regular there. |
| 305 | have h_chart : LandsIn t (L.opens i) := (hv.landsIn_iff_isUnit i).2 hi |
| 306 | have h_scale (j : ι) : v j = v i * L.transition i j A t := |
| 307 | (hv.transition_mul_eq hi j).symm.trans (mul_comm ..) |
| 308 | have h_eq : φ ∘ v = φ (v i) • fun j : ι ↦ L.transition i j R (Spec.map φ ≫ t) := |
| 309 | funext fun j ↦ by simp [hL.isRegularOn_transition i j φ t h_chart, h_scale j] |
| 310 | rw [h_eq] |
| 311 | exact (hL.isHomogeneousCoords_transition (h_chart.comp _)).smul (hi.map φ.hom) |
| 312 | |
| 313 | /-- Over a local ring, a vector of homogeneous coordinates has a nonzero entry. -/ |
| 314 | lemma exists_ne_zero [IsLocalRing A] (hv : L.IsHomogeneousCoords t v) : ∃ i : ι, v i ≠ 0 := by |
| 315 | obtain ⟨i, hi⟩ := L.exists_landsIn t |
| 316 | exact ⟨i, ((hv.landsIn_iff_isUnit i).1 hi).ne_zero⟩ |
| 317 | |
| 318 | /-- Over a local ring, a vector of homogeneous coordinates is nonzero. -/ |
| 319 | lemma ne_zero [IsLocalRing A] (hv : L.IsHomogeneousCoords t v) : v ≠ 0 := |
| 320 | Function.ne_iff.2 hv.exists_ne_zero |
| 321 | |
| 322 | end IsHomogeneousCoords |
| 323 | |
| 324 | /-- For a vector `v` in `A ^ ι` with a unit entry `v i` there is a ring map `φ` from the sections |
| 325 | over the chart D₊(X_i) to `A` that sends X_j/X_i to `v j / v i`. -/ |
| 326 | lemma _root_.New.ProjSpace.exists_hom_mul_coordSection_eq (hi : IsUnit (v i)) : |
| 327 | ∃ φ : Γ(ProjSpace ι, basicOpen (homogeneousSubmodule ι ℤ) (MvPolynomial.X i)) ⟶ A, |
| 328 | ∀ j : ι, v i * φ (coordSection i j) = v j := by |
| 329 | -- Substituting `v` makes `X i` a unit, so it lifts to the degree-zero localization at `X i`. |
| 330 | let ev : MvPolynomial ι ℤ →+* A := eval₂Hom (castRingHom A) v |
| 331 | have hv : IsUnit (ev (X i)) := by simpa [ev] using hi |
| 332 | let e := basicOpenIsoAway _ _ (X_mem_homogeneousSubmodule i) one_pos |
| 333 | refine ⟨e.inv ≫ ofHom (Away.lift (homogeneousSubmodule ι ℤ) ev hv), fun j ↦ ?_⟩ |
| 334 | change v i * Away.lift _ ev hv (e.inv (e.hom (coordFraction i j))) = v j |
| 335 | rw [show e.inv (e.hom (coordFraction i j)) = TauCeti.MvPolynomial.awayXRatio i j by simp, |
| 336 | TauCeti.MvPolynomial.awayXRatio_def, Away.lift_mk, pow_one, mul_left_comm, |
| 337 | show v i = ↑hv.unit by simp [ev], Units.mul_inv, mul_one] |
| 338 | simp [ev] |
| 339 | |
| 340 | /-- A vector `v` in `A ^ ι` with a unit entry `v i` is a vector of homogeneous coordinates of an |
| 341 | `A`-valued point of projective space over `S` lying over any given point `b` of `S`. -/ |
| 342 | lemma _root_.New.ProjSpace.exists_isHomogeneousCoords (b : Spec A ⟶ S) (hi : IsUnit (v i)) : |
| 343 | ∃ s : Spec A ⟶ ProjSpace ι ⨯ S, s ≫ snd = b ∧ |
| 344 | ((hyperplaneBundle ι).pull fst).IsHomogeneousCoords s v := by |
| 345 | obtain ⟨φ, hφ⟩ := exists_hom_mul_coordSection_eq hi |
| 346 | let x : Spec A ⟶ ProjSpace ι := Spec.map φ ≫ (isAffineOpen_chart i).fromSpec |
| 347 | have hx : LandsIn x ((hyperplaneBundle ι).opens i) := landsIn_fromSpec (isAffineOpen_chart i) _ |
| 348 | have h_coord (j : ι) : (hyperplaneBundle ι).transition i j A x = φ (coordSection i j) := |
| 349 | ofSection_map_fromSpec (isAffineOpen_chart i) (coordSection i j) φ |
| 350 | -- The `transition i j` are coordinates of `x`; scale them by `v i`. |
| 351 | have h_v : v = v i • fun j : ι ↦ (hyperplaneBundle ι).transition i j A x := |
| 352 | funext fun j ↦ by rw [Pi.smul_apply, smul_eq_mul, h_coord, hφ] |
| 353 | refine ⟨lift x b, lift_snd x b, ?_⟩ |
| 354 | rw [IsHomogeneousCoords.pull_iff, lift_fst, h_v] |
| 355 | exact (isLinearSystem_hyperplaneBundle.isHomogeneousCoords_transition hx).smul hi |
| 356 | |
| 357 | /-- `L` embeds `X` in projective space over `S`: it is a linear system that separates the |
| 358 | ring-valued points of `X` over `S` chart by chart, and `s : X ⟶ S` is proper. -/ |
| 359 | structure IsProjEmbedding (L : LineBundle X ι) (s : X ⟶ S) : Prop where |
| 360 | /-- `L` is a linear system. -/ |
| 361 | isLinearSystem : L.IsLinearSystem |
| 362 | /-- `X` is proper over `S`. -/ |
| 363 | isProper : IsProper s |
| 364 | /-- Two points of one chart with the same affine coordinates and the same image in `S` are |
| 365 | equal. -/ |
| 366 | eq_of_transition_eq {i : ι} {A : CommRingCat} {a b : Spec A ⟶ X} (ha : LandsIn a (L.opens i)) |
| 367 | (hb : LandsIn b (L.opens i)) (h_coord : ∀ j : ι, L.transition i j A a = L.transition i j A b) |
| 368 | (h_base : a ≫ s = b ≫ s) : a = b |
| 369 | |
| 370 | /-- Under a projective embedding, two points a and t with the same homogeneous coordinates v and the |
| 371 | same image in the base are equal, provided a lands in some chart (as it does when A is a local |
| 372 | ring). -/ |
| 373 | lemma IsProjEmbedding.eq_of_isHomogeneousCoords {a : Spec A ⟶ X} (hL : L.IsProjEmbedding s) |
| 374 | (h_base : a ≫ s = t ≫ s) (ha : L.IsHomogeneousCoords a v) (ht : L.IsHomogeneousCoords t v) |
| 375 | (h_chart : ∃ i : ι, LandsIn a (L.opens i)) : a = t := by |
| 376 | obtain ⟨i, ha_chart⟩ := h_chart |
| 377 | -- `v i` is a unit, so `t` lands in the same chart and both have affine coordinates `v j / v i`. |
| 378 | have h_unit : IsUnit (v i) := (ha.landsIn_iff_isUnit i).1 ha_chart |
| 379 | refine hL.eq_of_transition_eq ha_chart ((ht.landsIn_iff_isUnit i).2 h_unit) (fun j ↦ ?_) h_base |
| 380 | rw [ha.transition_eq_mul_inverse h_unit, ht.transition_eq_mul_inverse h_unit] |
| 381 | |
| 382 | /-- Base change: if L embeds X over S and Y is the fibre product of s : X ⟶ S and |
| 383 | b : T ⟶ S, with projections p : Y ⟶ X and t : Y ⟶ T, then the pull-back of L along p |
| 384 | embeds Y over T. -/ |
| 385 | protected lemma IsProjEmbedding.of_isPullback {T : Scheme} {p : Y ⟶ X} {t : Y ⟶ T} {b : T ⟶ S} |
| 386 | (hL : L.IsProjEmbedding s) (h_sq : IsPullback p t s b) : (L.pull p).IsProjEmbedding t where |
| 387 | isLinearSystem := hL.isLinearSystem.pull p |
| 388 | isProper := of_isPullback h_sq hL.isProper |
| 389 | eq_of_transition_eq {i A x y} hx hy h_coord h_base := by |
| 390 | -- Two points of the fibre product agree if they agree in X and in T. |
| 391 | have h_over : (x ≫ p) ≫ s = (y ≫ p) ≫ s := by simp [h_sq.w, reassoc_of% h_base] |
| 392 | exact h_sq.hom_ext (hL.eq_of_transition_eq hx hy h_coord h_over) h_base |
| 393 | |
| 394 | /-- The degree-zero localization of `ℤ[X]` at `X i` is generated as a ring by the fractions |
| 395 | `X j / X i` (`coordFraction i j`). -/ |
| 396 | lemma _root_.New.ProjSpace.surjective_eval₂Hom_coordFraction (i : ι) : |
| 397 | Function.Surjective (eval₂Hom |
| 398 | (castRingHom (HomogeneousLocalization.Away (homogeneousSubmodule ι ℤ) (MvPolynomial.X i))) |
| 399 | fun j : ι ↦ coordFraction i j) := by |
| 400 | have h := TauCeti.MvPolynomial.adjoin_range_awayXRatio (R := ℤ) i |
| 401 | rw [Algebra.adjoin_range_eq_range_aeval] at h |
| 402 | intro x |
| 403 | obtain ⟨p, rfl⟩ := (SetLike.ext_iff.1 h x).2 trivial |
| 404 | refine ⟨p, ?_⟩ |
| 405 | simp only [AlgHom.toRingHom_eq_coe, RingHom.coe_coe, aeval_eq_eval₂Hom, coordFraction, |
| 406 | TauCeti.MvPolynomial.isLocalizationElem_X] |
| 407 | exact congrArg (eval₂Hom · _ p) (Subsingleton.elim _ _) |
| 408 | |
| 409 | /-- Two ring maps from the sections over the chart D₊(X_i) that agree on all X_j/X_i are equal. -/ |
| 410 | lemma _root_.New.ProjSpace.hom_ext_of_coordSection_eq |
| 411 | {f g : Γ(ProjSpace ι, basicOpen (homogeneousSubmodule ι ℤ) (MvPolynomial.X i)) ⟶ A} |
| 412 | (h_coord : ∀ j : ι, f (coordSection i j) = g (coordSection i j)) : f = g := by |
| 413 | -- The ring of sections is the degree-zero localization at `X i`, generated by the `X j / X i`. |
| 414 | rw [← cancel_epi (basicOpenIsoAway _ _ (X_mem_homogeneousSubmodule i) one_pos).hom, |
| 415 | CommRingCat.hom_ext_iff, ← RingHom.cancel_right (surjective_eval₂Hom_coordFraction i)] |
| 416 | ext j |
| 417 | · simp |
| 418 | · simpa [basicOpenIsoAway_hom, -TauCeti.MvPolynomial.isLocalizationElem_X] using h_coord j |
| 419 | |
| 420 | /-- Projective space with a finite index set is proper over `Spec ℤ`. -/ |
| 421 | lemma _root_.New.ProjSpace.isProper_specZIsTerminal_from [Finite κ] : |
| 422 | IsProper (specZIsTerminal.from (ProjSpace κ)) := by |
| 423 | rw [specZIsTerminal.hom_ext (specZIsTerminal.from _) (ProjSpace κ ↘ Spec (.of ℤ))] |
| 424 | infer_instance |
| 425 | |
| 426 | /-- For a finite index set κ and a scheme S, the pull-back of O(1) to ℙ^κ × S is a projective |
| 427 | embedding over S for the second projection. -/ |
| 428 | lemma _root_.New.isProjEmbedding_projSpace {κ : Type} [Finite κ] {S : Scheme} : |
| 429 | IsProjEmbedding (S := S) ((hyperplaneBundle κ).pull fst) snd := by |
| 430 | -- It is the base change of projective space over `Spec ℤ`, the terminal scheme. |
| 431 | suffices h : (hyperplaneBundle κ).IsProjEmbedding (specZIsTerminal.from (ProjSpace κ)) from |
| 432 | h.of_isPullback (.of_is_product' (prodIsProd (ProjSpace κ) S) specZIsTerminal) |
| 433 | refine ⟨isLinearSystem_hyperplaneBundle, isProper_specZIsTerminal_from, ?_⟩ |
| 434 | rintro i A a b ha hb h_coord - |
| 435 | -- The chart is affine, so `a` and `b` are determined by their evaluation maps on its sections, |
| 436 | -- and the values of these maps at the `X j / X i` are the affine coordinates. |
| 437 | have h_eval : evalSection a ha = evalSection b hb := |
| 438 | hom_ext_of_coordSection_eq fun j ↦ |
| 439 | calc _ = (hyperplaneBundle κ).transition i j A a := (ofSection_eq ha _).symm |
| 440 | _ = (hyperplaneBundle κ).transition i j A b := h_coord j |
| 441 | _ = evalSection b hb (coordSection i j) := ofSection_eq hb _ |
| 442 | rw [← map_evalSection_fromSpec (isAffineOpen_chart i) ha, h_eval, map_evalSection_fromSpec] |
| 443 | |
| 444 | /-! ### Maps to projective space -/ |
| 445 | |
| 446 | /-- Gluing of points with given coordinates. Let `s j` (`j : κ`, with `κ` finite) be sections of |
| 447 | the line bundle `L`, where `s j i` is the function of `s j` on `L.opens i`. Let `C` be a line bundle |
| 448 | indexed by pairs, used only for its cover, such that `C.opens (i, j)` lies in `L.opens i` and |
| 449 | `s j i` is a unit on it. Then there is a map `f` from `X` to projective space such that, at each |
| 450 | point `t` of `C.opens (i, j)`, the values `s k i (t)` are homogeneous coordinates of `t ≫ f`. -/ |
| 451 | lemma exists_hom_isHomogeneousCoords_of_cover [Finite κ] {s : κ → ι → PointFn X} |
| 452 | (hs : ∀ j : κ, L.IsSection (s j)) (C : LineBundle X (ι × κ)) |
| 453 | (hC_le : ∀ {a : ι × κ} {A : CommRingCat} {t : Spec A ⟶ X}, |
| 454 | LandsIn t (C.opens a) → LandsIn t (L.opens a.1)) |
| 455 | (hC_unit : ∀ {a : ι × κ} {A : CommRingCat} {t : Spec A ⟶ X}, |
| 456 | LandsIn t (C.opens a) → IsUnit (s a.2 a.1 A t)) : |
| 457 | ∃ f : X ⟶ ProjSpace κ, ∀ (a : ι × κ) (A : CommRingCat) (t : Spec A ⟶ X), LandsIn t (C.opens a) → |
| 458 | (hyperplaneBundle κ).IsHomogeneousCoords (t ≫ f) fun k : κ ↦ s k a.1 A t := by |
| 459 | obtain ⟨h_reg, h_trans⟩ := forall_and.1 hs |
| 460 | let H : LineBundle (ProjSpace κ ⨯ X) κ := (hyperplaneBundle κ).pull fst |
| 461 | have hH : H.IsProjEmbedding snd := isProjEmbedding_projSpace |
| 462 | have h_local (a : ι × κ) (A : CommRingCat) (t : Spec A ⟶ X) (ht : LandsIn t (C.opens a)) : |
| 463 | ∃ x : Spec A ⟶ ProjSpace κ ⨯ X, x ≫ snd = t ∧ H.IsHomogeneousCoords x fun k ↦ s k a.1 A t := |
| 464 | exists_isHomogeneousCoords (i := a.2) t (hC_unit ht) |
| 465 | choose F hF_snd hF using h_local |
| 466 | -- On overlaps the coordinate vectors differ by the unit `L.transition`, so the points agree. |
| 467 | have h_compat (a b : ι × κ) (A B : CommRingCat) (φ : A ⟶ B) (t : Spec A ⟶ X) |
| 468 | (ha : LandsIn t (C.opens a)) (hb : LandsIn (Spec.map φ ≫ t) (C.opens b)) : |
| 469 | F b B (Spec.map φ ≫ t) hb = Spec.map φ ≫ F a A t ha := by |
| 470 | have haL : LandsIn (Spec.map φ ≫ t) (L.opens a.1) := (hC_le ha).comp _ |
| 471 | have h_scale : (fun k ↦ s k b.1 B (Spec.map φ ≫ t)) = |
| 472 | L.transition b.1 a.1 B (Spec.map φ ≫ t) • (φ ∘ fun k ↦ s k a.1 A t) := |
| 473 | funext fun k ↦ by simp [h_trans k b.1 a.1 B _ (hC_le hb) haL, h_reg k a.1 φ t (hC_le ha)] |
| 474 | refine hH.eq_of_isHomogeneousCoords (by simp [hF_snd]) (hF b B _ hb) ?_ |
| 475 | ⟨b.2, ((hF b B _ hb).landsIn_iff_isUnit b.2).2 (hC_unit hb)⟩ |
| 476 | simpa only [h_scale] using ((hF a A t ha).map hH.isLinearSystem (hC_unit ha) φ).smul |
| 477 | (L.isUnit_transition (hC_le hb) haL) |
| 478 | obtain ⟨f, hf⟩ := exists_hom_of_cover C.isOpenCover F h_compat |
| 479 | refine ⟨f ≫ fst, fun a A t ht ↦ ?_⟩ |
| 480 | simpa only [← Category.assoc, hf a A t ht] using IsHomogeneousCoords.pull_iff.1 (hF a A t ht) |
| 481 | |
| 482 | /-- Let `s j` (`j : κ`) be sections of the line bundle `L` on `X`, where `s j i` is the function of |
| 483 | `s j` on the chart `L.opens i`. Suppose that they have no common zero at the field-valued points |
| 484 | that factor through a surjective `p : Y ⟶ X`. Then the opens of the `L.opens i` where `s j i` is a |
| 485 | unit cover `X`; the cover is given as that of a line bundle `C` indexed by the pairs `(i, j)`. -/ |
| 486 | lemma exists_landsIn_opens_iff_isUnit (p : Y ⟶ X) [hp : Surjective p] {s : κ → ι → PointFn X} |
| 487 | (hs : ∀ j : κ, L.IsSection (s j)) |
| 488 | (h_nz : ∀ (i : ι) (K : Type) [Field K] (t : Spec (of K) ⟶ Y), |
| 489 | LandsIn (t ≫ p) (L.opens i) → ∃ j : κ, s j i (of K) (t ≫ p) ≠ 0) : |
| 490 | ∃ C : LineBundle X (ι × κ), ∀ {a : ι × κ} {A : CommRingCat} {t : Spec A ⟶ X}, |
| 491 | LandsIn t (C.opens a) ↔ LandsIn t (L.opens a.1) ∧ IsUnit (s a.2 a.1 A t) := by |
| 492 | have h_open (i : ι) (j : κ) : ∃ W : X.Opens, ∀ {A : CommRingCat} {t : Spec A ⟶ X}, |
| 493 | LandsIn t W ↔ LandsIn t (L.opens i) ∧ IsUnit (s j i A t) := by |
| 494 | obtain ⟨σ, hσ⟩ := ((hs j).1 i).exists_ofSection |
| 495 | -- On `L.opens i` the function `s j i` is that of the section `σ`; take its basic open. |
| 496 | refine ⟨X.basicOpen σ, fun {A t} ↦ ?_⟩ |
| 497 | rw [← and_iff_right_of_imp fun ht : LandsIn t _ ↦ ht.mono (X.basicOpen_le σ)] |
| 498 | exact and_congr_right fun ht ↦ by rw [landsIn_basicOpen ht, hσ A t ht] |
| 499 | choose W hW using h_open |
| 500 | -- At the residue field of a point `y` of `Y` some `s j i` is nonzero, so a unit. |
| 501 | have h_mem (y : Y) : ∃ (i : ι) (j : κ), p y ∈ W i j := by |
| 502 | obtain ⟨i, hi⟩ := L.exists_landsIn (Y.fromSpecResidueField y ≫ p) |
| 503 | obtain ⟨j, hj⟩ := h_nz i _ _ hi |
| 504 | have h_in : ⊤ ≤ (Y.fromSpecResidueField y ≫ p) ⁻¹ᵁ W i j := (hW i j).2 ⟨hi, hj.isUnit⟩ |
| 505 | exact ⟨i, j, by simpa using h_in (x := default) trivial⟩ |
| 506 | have h_top : ⨆ a : ι × κ, W a.1 a.2 = ⊤ := by simpa [SetLike.ext_iff, hp.surj.forall] using h_mem |
| 507 | -- The trivial line bundle carries this cover. |
| 508 | exact ⟨{ opens := fun a ↦ W a.1 a.2, transition := 1, cover := h_top }, hW _ _⟩ |
| 509 | |
| 510 | /-- Let `s j` (`j : κ`) be sections of the line bundle `L` on `X` such that, at each point `t` of |
| 511 | `L.opens i`, the values `s j i (t)` are homogeneous coordinates of `t` for the line bundle `N`. Then |
| 512 | `L` and `N` have the same class in the Picard group. -/ |
| 513 | lemma picClass_eq_of_isHomogeneousCoords {N : LineBundle X κ} {s : κ → ι → PointFn X} |
| 514 | (hs : ∀ j : κ, L.IsSection (s j)) |
| 515 | (h_coords : ∀ (i : ι) (A : CommRingCat) (t : Spec A ⟶ X), LandsIn t (L.opens i) → |
| 516 | N.IsHomogeneousCoords t fun j : κ ↦ s j i A t) : |
| 517 | L.picClass = N.picClass := by |
| 518 | obtain ⟨h_reg, h_trans⟩ := forall_and.1 hs |
| 519 | -- The `s j i` form a nowhere vanishing section of `L ⊗ N⁻¹`, which is thus trivial. |
| 520 | have h_unit (a : ι × κ) (A : CommRingCat) (t : Spec A ⟶ X) |
| 521 | (ht : LandsIn t (L.opens a.1 ⊓ N.opens a.2)) : IsUnit (s a.2 a.1 A t) := |
| 522 | ((h_coords a.1 A t (ht.mono inf_le_left)).landsIn_iff_isUnit a.2).1 (ht.mono inf_le_right) |
| 523 | refine picClass_eq_iff.2 ⟨fun a ↦ s a.2 a.1, |
| 524 | ⟨fun a ↦ (h_reg a.2 a.1).mono inf_le_left, fun a b A t ha hb ↦ ?_⟩, h_unit⟩ |
| 525 | -- `s a.2 a.1 = L.transition a.1 b.1 * s a.2 b.1`, and `s a.2 b.1 / s b.2 b.1` is |
| 526 | -- `N.transition b.2 a.2`. |
| 527 | change s a.2 a.1 A t = L.transition a.1 b.1 A t * N.transition b.2 a.2 A t * s b.2 b.1 A t |
| 528 | have hbL : LandsIn t (L.opens b.1) := hb.mono inf_le_left |
| 529 | rw [mul_assoc, (h_coords b.1 A t hbL).transition_mul_eq (h_unit b A t hb), |
| 530 | h_trans a.2 _ _ A t (ha.mono inf_le_left) hbL] |
| 531 | |
| 532 | /-- Let `s j` (`j : κ`, with `κ` finite) be sections of the line bundle `L` on `X`, where `s j i` is |
| 533 | the function of `s j` on the chart `L.opens i`. Suppose that they have no common zero at the |
| 534 | field-valued points that factor through a surjective `p : Y ⟶ X`. Then there is a map `f` from `X` |
| 535 | to projective space such that (a) `L` has the same class in the Picard group as the pull-back of |
| 536 | O(1) = `New.ProjSpace.hyperplaneBundle κ` along `f` and (b) at each point `t` of `L.opens i` the |
| 537 | values `s j i (t)` are homogeneous coordinates of `t` for that pull-back. -/ |
| 538 | lemma exists_picClass_eq_pull_hyperplane (p : Y ⟶ X) [Finite κ] [hp : Surjective p] |
| 539 | {s : κ → ι → PointFn X} (hs : ∀ j : κ, L.IsSection (s j)) |
| 540 | (h_nz : ∀ (i : ι) (K : Type) [Field K] (t : Spec (of K) ⟶ Y), |
| 541 | LandsIn (t ≫ p) (L.opens i) → ∃ j : κ, s j i (of K) (t ≫ p) ≠ 0) : |
| 542 | ∃ f : X ⟶ ProjSpace κ, |
| 543 | L.picClass = ((hyperplaneBundle κ).pull f).picClass ∧ |
| 544 | ∀ (i : ι) (A : CommRingCat) (t : Spec A ⟶ X), LandsIn t (L.opens i) → |
| 545 | ((hyperplaneBundle κ).pull f).IsHomogeneousCoords t fun j : κ ↦ s j i A t := by |
| 546 | -- The opens `C.opens (i, j)` of `L.opens i` where `s j i` is a unit cover `X`. On them the |
| 547 | -- vectors `(s · i)` give points of projective space, which glue to a map `f`. |
| 548 | obtain ⟨C, hC⟩ := exists_landsIn_opens_iff_isUnit p hs h_nz |
| 549 | obtain ⟨f, hf⟩ := |
| 550 | exists_hom_isHomogeneousCoords_of_cover hs C (fun ht ↦ (hC.1 ht).1) fun ht ↦ (hC.1 ht).2 |
| 551 | let H : LineBundle X κ := (hyperplaneBundle κ).pull f |
| 552 | -- The points of `L.opens i` that `f` sends to the `j`-th chart lie in `C.opens (i, j)`, as one |
| 553 | -- checks on the cover. |
| 554 | have h_le (i : ι) (j : κ) : L.opens i ⊓ H.opens j ≤ C.opens (i, j) := by |
| 555 | refine le_of_cover C.isOpenCover fun b A t hb ht ↦ ?_ |
| 556 | obtain ⟨hi, hj⟩ := landsIn_inf.1 ht |
| 557 | -- `s j i = L.transition i b.1 * s j b.1` is a product of two units. |
| 558 | have h_unit : IsUnit (s j b.1 A t) := ((hf b A t hb).landsIn_iff_isUnit j).1 hj |
| 559 | grind [IsSection, isUnit_transition, IsUnit.mul] |
| 560 | have h_coords (i : ι) (A : CommRingCat) (t : Spec A ⟶ X) (ht : LandsIn t (L.opens i)) : |
| 561 | H.IsHomogeneousCoords t fun j : κ ↦ s j i A t := by |
| 562 | -- Where `s j i` is a unit the point lies in `C.opens (i, j)`, so `hf` applies. |
| 563 | have h_of_unit {j : κ} (h : IsUnit (s j i A t)) : |
| 564 | H.IsHomogeneousCoords t fun k : κ ↦ s k i A t := hf (i, j) A t (hC.2 ⟨ht, h⟩) |
| 565 | refine .intro (fun j ↦ ⟨fun hj ↦ ?_, fun h ↦ ((h_of_unit h).landsIn_iff_isUnit j).2 h⟩) |
| 566 | fun j k h ↦ (h_of_unit h).transition_eq_mul_inverse h k |
| 567 | exact (hC.1 ((landsIn_inf.2 ⟨ht, hj⟩).mono (h_le i j))).2 |
| 568 | exact ⟨f, picClass_eq_of_isHomogeneousCoords hs h_coords, h_coords⟩ |
| 569 | |
| 570 | /-- Let `N` be a linear system on `X` indexed by a finite set `κ`, and let `s : X ⟶ S` be any |
| 571 | morphism. Then `N` is the pull-back of O(1), cover and transition functions included, along some |
| 572 | morphism `j` from `X` to `ProjSpace κ ⨯ S` over `S`. -/ |
| 573 | lemma IsLinearSystem.exists_hom_projSpace [Finite κ] (hN : N.IsLinearSystem) (s : X ⟶ S) : |
| 574 | ∃ j : X ⟶ ProjSpace κ ⨯ S, j ≫ snd = s ∧ ((hyperplaneBundle κ).pull fst).pull j = N := by |
| 575 | -- The sections `N.transition · j` have no common zero, since `N.transition i i = 1` on the |
| 576 | -- `i`-th chart; the map they define pulls `hyperplaneBundle κ` back to `N`. |
| 577 | obtain ⟨f, -, hf⟩ := exists_picClass_eq_pull_hyperplane (𝟙 X) hN.isSection |
| 578 | fun i K _ t ht ↦ ⟨i, (N.transition_self i _ _ ht).trans_ne one_ne_zero⟩ |
| 579 | have h_pull : (hyperplaneBundle κ).pull f = N := by |
| 580 | refine hN.ext_of_transition_eq_mul (isLinearSystem_hyperplaneBundle.pull f) |
| 581 | fun i j k A t hi hj ↦ ?_ |
| 582 | -- Both transition functions of the pull-back are ratios of the coordinates given by `hf`. |
| 583 | have h_unit : IsUnit (N.transition i j A t) := ((hf i A t hi).landsIn_iff_isUnit j).1 hj |
| 584 | grind [(hf i A t hi).transition_eq_mul_inverse h_unit, N.transition_self i A t hi] |
| 585 | exact ⟨lift f s, lift_snd f s, by rw [← pull_comp, lift_fst, h_pull]⟩ |
| 586 | |
| 587 | /-- The morphism `s : X ⟶ S` has a projective embedding with finitely many coordinates; then `X` is |
| 588 | a closed subscheme of a projective space over `S` |
| 589 | (`New.LineBundle.IsProjEmbedding.exists_isClosedImmersion`). -/ |
| 590 | @[mk_iff] |
| 591 | class inductive _root_.New.Variety.HasProjEmbedding (s : X ⟶ S) : Prop |
| 592 | /-- A projective embedding with finitely many coordinates. -/ |
| 593 | | mk {I : Type} {P : LineBundle X I} [Finite I] (h : P.IsProjEmbedding s) |
| 594 | |
| 595 | end LineBundle |
| 596 | |
| 597 | end ProjectiveSpace |
| 598 | |
| 599 | /-! |
| 600 | ## Properties of projective embeddings |
| 601 | |
| 602 | `New.LineBundle.IsProjEmbedding L s` says three things. The line bundle `L` on `X` is a linear |
| 603 | system, so that `L.transition i j` is the affine coordinate `x_j / x_i` on the chart `L.opens i`. |
| 604 | The morphism `s : X ⟶ S` is proper. Two ring-valued points of one chart with the same coordinates |
| 605 | and the same image in `S` are equal. |
| 606 | |
| 607 | * `New.LineBundle.IsProjEmbedding.exists_affine_chart`: over an affine base the charts are affine, |
| 608 | with coordinate rings generated by the coordinates. |
| 609 | -/ |
| 610 | |
| 611 | section Embeddings |
| 612 | |
| 613 | open CategoryTheory AlgebraicGeometry Spec CommRingCat Limits prod PointFn MvPolynomial ProjSpace |
| 614 | Function MorphismProperty |
| 615 | |
| 616 | variable {X Y S : Scheme} {ι κ : Type} {L : LineBundle X ι} {s : X ⟶ S} |
| 617 | |
| 618 | /-- A morphism with a projective embedding is proper. -/ |
| 619 | instance [h : Variety.HasProjEmbedding s] : IsProper s := by |
| 620 | obtain ⟨h_emb⟩ := h |
| 621 | exact h_emb.isProper |
| 622 | |
| 623 | namespace LineBundle.IsProjEmbedding |
| 624 | |
| 625 | /-- If `L` embeds `X` over `S`, two morphisms `a b : Y ⟶ X` that agree over `S` and pull `L` back |
| 626 | to the same cover and transition functions are equal. -/ |
| 627 | lemma ext (h : L.IsProjEmbedding s) {a b : Y ⟶ X} (h_pull : L.pull a = L.pull b) |
| 628 | (h_base : a ≫ s = b ≫ s) : a = b := by |
| 629 | -- Test on ring-valued points `t` of a chart: `t ≫ a` and `t ≫ b` have the same coordinates. |
| 630 | refine hom_ext_of_isOpenCover (L.pull a).isOpenCover fun i A t ha ↦ ?_ |
| 631 | refine h.eq_of_transition_eq ha (by rwa [h_pull] at ha) (fun j ↦ ?_) (by simp [h_base]) |
| 632 | exact congrArg (fun M : LineBundle Y ι ↦ M.transition i j A t) h_pull |
| 633 | |
| 634 | /-- If `L` embeds `X` projectively over `S` along `s` and `p : Y ⟶ X` is a closed immersion, then |
| 635 | the pull-back of `L` along `p` embeds `Y` projectively over `S` along `p ≫ s`. -/ |
| 636 | lemma comp (h : L.IsProjEmbedding s) (p : Y ⟶ X) [IsClosedImmersion p] : |
| 637 | (L.pull p).IsProjEmbedding (p ≫ s) := |
| 638 | ⟨h.isLinearSystem.pull p, comp_mem _ p s inferInstance h.isProper, fun ha hb h_coord h_base ↦ |
| 639 | (cancel_mono p).1 (h.eq_of_transition_eq ha hb h_coord (by simpa using h_base))⟩ |
| 640 | |
| 641 | /-- Segre embedding of a tower: if `L` embeds `X` over `S` along `s`, and `N` embeds `S` over `Y` |
| 642 | along `b`, then the tensor product of `L` with the pull-back of `N` along `s` embeds `X` over `Y` |
| 643 | along `s ≫ b`. -/ |
| 644 | lemma mul {N : LineBundle S κ} {b : S ⟶ Y} (hL : L.IsProjEmbedding s) (hN : N.IsProjEmbedding b) : |
| 645 | (L.mul (N.pull s)).IsProjEmbedding (s ≫ b) := by |
| 646 | refine ⟨hL.isLinearSystem.mul (hN.isLinearSystem.pull s), |
| 647 | comp_mem _ s b hL.isProper hN.isProper, ?_⟩ |
| 648 | rintro ⟨i, k⟩ A x y hx hy h_coord h_over |
| 649 | obtain ⟨hxL, hxN⟩ : LandsIn x (L.opens i) ∧ LandsIn (x ≫ s) (N.opens k) := by simpa using hx |
| 650 | obtain ⟨hyL, hyN⟩ : LandsIn y (L.opens i) ∧ LandsIn (y ≫ s) (N.opens k) := by simpa using hy |
| 651 | -- A Segre coordinate with one index on the diagonal is a coordinate of the other factor. |
| 652 | have hN_coord (j : κ) : N.transition k j A (x ≫ s) = N.transition k j A (y ≫ s) := by |
| 653 | simpa [transition_self, hxL, hyL] using h_coord (i, j) |
| 654 | have hL_coord (j : ι) : L.transition i j A x = L.transition i j A y := by |
| 655 | simpa [transition_self, hxN, hyN] using h_coord (j, k) |
| 656 | exact hL.eq_of_transition_eq hxL hyL hL_coord (hN.eq_of_transition_eq hxN hyN hN_coord (by simpa)) |
| 657 | |
| 658 | variable [Finite ι] |
| 659 | |
| 660 | /-- If `L`, with a finite set `ι` of coordinates, is a projective embedding for `s : X ⟶ S`, then |
| 661 | `L` is the pull-back of O(1), cover and transition functions included, along a closed immersion `j` |
| 662 | of `X` into `ProjSpace ι ⨯ S` over `S`. -/ |
| 663 | lemma exists_isClosedImmersion (h : L.IsProjEmbedding s) : |
| 664 | ∃ j : X ⟶ ProjSpace ι ⨯ S, |
| 665 | IsClosedImmersion j ∧ j ≫ snd = s ∧ ((hyperplaneBundle ι).pull fst).pull j = L := by |
| 666 | obtain ⟨j, hj_snd, hj_pull⟩ := h.isLinearSystem.exists_hom_projSpace s |
| 667 | -- `j ≫ snd = s` is proper and `snd` is proper, so separated. |
| 668 | have h_comp : IsProper (j ≫ snd) := by simpa only [hj_snd] using h.isProper |
| 669 | have h_snd : IsProper (snd : ProjSpace ι ⨯ S ⟶ S) := isProjEmbedding_projSpace.isProper |
| 670 | -- If `a ≫ j = b ≫ j`, then `a` and `b` pull `L` back alike and agree over `S`. |
| 671 | have h_mono : Mono j := ⟨fun a b hab ↦ |
| 672 | h.ext (by simp only [← hj_pull, ← pull_comp _ j, hab]) (by rw [← hj_snd, reassoc_of% hab])⟩ |
| 673 | exact ⟨j, (IsClosedImmersion.iff_isProper_and_mono j).2 ⟨.of_comp j snd, h_mono⟩, hj_snd, hj_pull⟩ |
| 674 | |
| 675 | /-- Let `L`, with finitely many coordinates, embed `X` projectively over `Spec R`. Then each chart |
| 676 | `L.opens i` is affine and there is a ring map `φ` from `R[X_j]` to the sections over it that (a) |
| 677 | is surjective, (b) induces the structure map of the chart on constants (`specMap` is `Spec` of a |
| 678 | ring map), and (c) sends `P` to a section whose value at each ring-valued point `t` of the chart is |
| 679 | `P` evaluated at the coordinates `X_j = L.transition i j (t)`, the coefficients of `P` being mapped |
| 680 | by the ring map `preimage (t ≫ s)` that induces `t ≫ s`. -/ |
| 681 | lemma exists_affine_chart {R : CommRingCat} {s : X ⟶ Spec R} (h : L.IsProjEmbedding s) (i : ι) : |
| 682 | ∃ (hU : IsAffineOpen (L.opens i)) (φ : MvPolynomial ι R →+* Γ(X, L.opens i)), |
| 683 | Function.Surjective φ ∧ |
| 684 | specMap (φ.comp C) = hU.fromSpec ≫ s ∧ |
| 685 | ∀ {A : CommRingCat} {t : Spec A ⟶ X}, LandsIn t (L.opens i) → ∀ P : MvPolynomial ι R, |
| 686 | ofSection (φ P) A t = |
| 687 | eval₂Hom (preimage (t ≫ s)).hom (fun j : ι ↦ L.transition i j A t) P := by |
| 688 | classical |
| 689 | -- By `exists_isClosedImmersion`, `X` is closed in `ℙ × Spec R` and `L.opens i` is the preimage of |
| 690 | -- the standard chart `N.opens i`, which is affine. |
| 691 | let N : LineBundle (ProjSpace ι ⨯ Spec R) ι := (hyperplaneBundle ι).pull fst |
| 692 | have hN : N.IsProjEmbedding snd := isProjEmbedding_projSpace |
| 693 | have h_fst : IsAffineHom (fst : ProjSpace ι ⨯ Spec R ⟶ ProjSpace ι) := |
| 694 | of_isPullback (.flip (.of_hasBinaryProduct' (ProjSpace ι) (Spec R))) inferInstance |
| 695 | have hW : IsAffineOpen (N.opens i) := (isAffineOpen_chart i).preimage fst |
| 696 | obtain ⟨f, hf_closed, hf_snd, rfl⟩ := h.exists_isClosedImmersion |
| 697 | set L : LineBundle X ι := N.pull f |
| 698 | have hU : IsAffineOpen (L.opens i) := hW.preimage f |
| 699 | have hU_in : LandsIn hU.fromSpec (L.opens i) := by simpa using landsIn_fromSpec hU (𝟙 _) |
| 700 | -- `φ` sends `X j` to the coordinate `L.transition i j` of the tautological point `hU.fromSpec`. |
| 701 | let φ : of (MvPolynomial ι R) ⟶ Γ(X, L.opens i) := |
| 702 | ofHom (eval₂Hom (preimage (hU.fromSpec ≫ s)).hom fun j ↦ L.transition i j _ hU.fromSpec) |
| 703 | refine ⟨hU, φ.hom, ?_, by simp [φ, specMap], fun {A t} ht P ↦ ?_⟩ |
| 704 | · -- Let `t` be the point of `N.opens i` over `R[X]` with coordinates `X j` (and `1` at `i`). |
| 705 | obtain ⟨t, ht_snd, ht⟩ : ∃ t : Spec (of (MvPolynomial ι R)) ⟶ ProjSpace ι ⨯ Spec R, |
| 706 | t ≫ snd = specMap C ∧ N.IsHomogeneousCoords t (update .X i 1) := |
| 707 | exists_isHomogeneousCoords (i := i) _ (by simp) |
| 708 | have ht_in : LandsIn t (N.opens i) := (ht.landsIn_iff_isUnit i).2 (by simp) |
| 709 | -- Its image under `φ` is the tautological point of `L.opens i`, followed by `f`: both points |
| 710 | -- have the affine coordinates `φ (update X i 1 k)` in the chart `N.opens i`. |
| 711 | have h_eq (k : ι) : N.transition i k _ (Spec.map φ ≫ t) = L.transition i k _ hU.fromSpec := by |
| 712 | rw [hN.isLinearSystem.isRegularOn_transition i k φ t ht_in, |
| 713 | ht.transition_eq_mul_inverse (by simp) k] |
| 714 | obtain rfl | hk := eq_or_ne k i |
| 715 | · simp [L.transition_self k _ _ hU_in] |
| 716 | · simp [φ, hk] |
| 717 | have h_image : Spec.map φ ≫ t = hU.fromSpec ≫ f := hN.eq_of_transition_eq (ht_in.comp _) hU_in |
| 718 | h_eq (by simp [φ, ht_snd, hf_snd, ← map_comp, ← ofHom_comp]) |
| 719 | -- Sections over `L.opens i` lift to sections `r` over `N.opens i`, and `φ (r t)` is the |
| 720 | -- pull-back of `r`. |
| 721 | refine (f.app_surjective _ hW).forall.2 fun r ↦ ⟨ofSection r _ t, ?_⟩ |
| 722 | change φ (ofSection r _ t) = f.app (N.opens i) r |
| 723 | rw [← isRegularOn_ofSection r φ t ht_in, h_image, ← Category.id_comp hU.fromSpec, ← Spec.map_id] |
| 724 | exact ofSection_map_fromSpec hU (f.app (N.opens i) r) (𝟙 _) |
| 725 | · -- A point of `L.opens i` factors through `hU.fromSpec`, and the coordinates are regular. |
| 726 | rw [← map_evalSection_fromSpec hU ht] |
| 727 | simp [φ, hom_eval₂, |
| 728 | fun j ↦ h.isLinearSystem.isRegularOn_transition i j (evalSection t ht) _ hU_in] |
| 729 | |
| 730 | end LineBundle.IsProjEmbedding |
| 731 | |
| 732 | end Embeddings |
| 733 | |
| 734 | end New |
| 735 | |
| 736 | /-! |
| 737 | ## Tensor products and powers of line bundles |
| 738 | |
| 739 | `New.LineBundle` is a line bundle given by a cover with a cocycle. `New.LineBundle.picClass` is its |
| 740 | class in the Picard group, written additively. |
| 741 | |
| 742 | * `New.LineBundle.pi`, `New.LineBundle.pow`: the product of a family, and the `m`-th power, indexed |
| 743 | by tuples. |
| 744 | -/ |
| 745 | |
| 746 | namespace New.LineBundle |
| 747 | |
| 748 | open CategoryTheory AlgebraicGeometry PointFn Finset Over Function TopologicalSpace |
| 749 | |
| 750 | variable {X Y S : Scheme} {ι Λ : Type} [Fintype Λ] {ν : Λ → Type} |
| 751 | (N : ∀ l : Λ, LineBundle X (ν l)) (L : LineBundle X ι) (m : ℕ) (p : Y ⟶ X) |
| 752 | |
| 753 | /-- The tensor product of the line bundles `N a` over `a` in `s` (by default all `a`), on the common |
| 754 | refinement of all covers; for linear systems and `s` the set of all `a`, the Segre product. -/ |
| 755 | @[simps -fullyApplied] |
| 756 | noncomputable def pi (s : Finset Λ := univ) : LineBundle X (∀ l : Λ, ν l) where |
| 757 | opens i := ⨅ a : Λ, (N a).opens (i a) |
| 758 | transition i j := ∏ a ∈ s, (N a).transition (i a) (j a) |
| 759 | regular i j := by simp_all [PointFn.IsRegularOn, LineBundle.regular _ _ _ _, landsIn_iInf] |
| 760 | transition_self := by simp +contextual [transition_self, landsIn_iInf] |
| 761 | transition_trans i j k A t hi hj hk := by |
| 762 | simp_all [landsIn_iInf, ← prod_mul_distrib, (N _).transition_trans] |
| 763 | |
| 764 | /-- The `m`-th tensor power of `L`, indexed by `m`-tuples of indices; for a linear system, the |
| 765 | Veronese system of all monomials of degree `m`. -/ |
| 766 | noncomputable def pow : LineBundle X (Fin m → ι) := pi fun _ : Fin m ↦ L |
| 767 | |
| 768 | variable {N L} |
| 769 | |
| 770 | /-- The class in the Picard group of the product of the `N l`, `l ∈ s`, is the sum of their |
| 771 | classes. -/ |
| 772 | @[simp] |
| 773 | lemma picClass_pi (s : Finset Λ) : (pi N s).picClass = ∑ l ∈ s, (N l).picClass := by |
| 774 | -- Induction on `s`. The trivial bundle, and the product of one factor with the rest, are compared |
| 775 | -- with `pi N _` on its cover, which refines theirs and carries the same transition functions; |
| 776 | -- such a refinement has the same class (`picClass_eq_of_le`). |
| 777 | symm |
| 778 | induction s using cons_induction with |
| 779 | | empty => exact picClass_eq_of_le (fun _ ↦ ()) (by simp) (by simp) |
| 780 | | cons a s ha ih => |
| 781 | rw [sum_cons, ih, ← picClass_mul] |
| 782 | exact picClass_eq_of_le (fun i ↦ (i a, i)) (by simp [iInf_le]) (by simp) |
| 783 | |
| 784 | /-- Homogeneous coordinates for a product line bundle are the products of the coordinates for |
| 785 | its factors, with one coordinate index chosen for each factor. -/ |
| 786 | lemma IsHomogeneousCoords.pi {A : CommRingCat} {t : Spec A ⟶ X} {v : (a : Λ) → ν a → A} |
| 787 | (h : ∀ a : Λ, (N a).IsHomogeneousCoords t (v a)) : |
| 788 | (pi N).IsHomogeneousCoords t fun j ↦ ∏ a : Λ, v a (j a) := by |
| 789 | refine .intro (fun j ↦ ?_) fun j k h_unit ↦ ?_ |
| 790 | · simp [landsIn_iInf, fun a : Λ ↦ (h a).landsIn_iff_isUnit] |
| 791 | · have h_factor (a : Λ) : IsUnit (v a (j a)) := IsUnit.prod_univ_iff.1 h_unit a |
| 792 | rw [Ring.eq_mul_inverse_iff_mul_eq _ _ _ h_unit] |
| 793 | simp [← prod_mul_distrib, fun a : Λ ↦ (h a).transition_mul_eq (h_factor a) (k a)] |
| 794 | |
| 795 | /-- The Segre product of a finite family of linear systems is a linear system. -/ |
| 796 | lemma IsLinearSystem.pi (h : ∀ a : Λ, (N a).IsLinearSystem) : (pi N).IsLinearSystem where |
| 797 | isRegularOn_transition i j A B φ t ht := by |
| 798 | -- A product of regular functions is regular. |
| 799 | have h_reg (a : Λ) : (N a).transition (i a) (j a) B (Spec.map φ ≫ t) = |
| 800 | φ ((N a).transition (i a) (j a) A t) := |
| 801 | (h a).isRegularOn_transition (i a) (j a) φ t ((landsIn_iInf t).1 ht a) |
| 802 | simp [h_reg] |
| 803 | transition_eq_zero {A i} j t ht := by |
| 804 | -- Off `⨅ a, (N a).opens (i a)` one of the factors vanishes. |
| 805 | obtain ⟨a, ha⟩ : ∃ a : Λ, ¬LandsIn t ((N a).opens (i a)) := by simpa [landsIn_iInf] using ht |
| 806 | simpa using prod_eq_zero (mem_univ a) ((h a).transition_eq_zero (j a) ha) |
| 807 | isHomogeneousCoords_transition {A i t} ht := by |
| 808 | simpa using IsHomogeneousCoords.pi |
| 809 | (fun a ↦ (h a).isHomogeneousCoords_transition ((landsIn_iInf t).1 ht a)) |
| 810 | |
| 811 | /-- The pull-back of the Segre product `pi N` along `p` is the Segre product of the pull-backs |
| 812 | of the `N l`. -/ |
| 813 | lemma pull_pi : (pi N).pull p = pi fun l : Λ ↦ (N l).pull p := by ext <;> simp [Opens.coe_iInf] |
| 814 | |
| 815 | /-- Segre embedding: let `W` be proper over `S`, with finitely many `S`-maps `π l : W ⟶ Z l` that |
| 816 | jointly separate morphisms into `W` over `S`. If each `N l` is a projective embedding of `Z l` over |
| 817 | `S`, then the product of the pull-backs of the `N l` along the `π l` is a projective embedding of |
| 818 | `W` over `S`. -/ |
| 819 | lemma isProjEmbedding_pi {W : Over S} [IsProper W.hom] {Z : Λ → Over S} (π : ∀ l : Λ, W ⟶ Z l) |
| 820 | {N : (l : Λ) → LineBundle (Z l).left (ν l)} (hN : ∀ l : Λ, (N l).IsProjEmbedding (Z l).hom) |
| 821 | (h_sep : ∀ {T : Over S} {x y : T ⟶ W}, (∀ l : Λ, x ≫ π l = y ≫ π l) → x = y) : |
| 822 | (pi fun l : Λ ↦ (N l).pull (π l).left).IsProjEmbedding W.hom := by |
| 823 | classical |
| 824 | refine ⟨.pi fun l ↦ (hN l).isLinearSystem.pull (π l).left, inferInstance, ?_⟩ |
| 825 | intro c A a b ha hb h_coord h_base |
| 826 | have ha_in (l : Λ) : LandsIn (a ≫ (π l).left) ((N l).opens (c l)) := (landsIn_iInf a).1 ha l |
| 827 | have hb_in (l : Λ) : LandsIn (b ≫ (π l).left) ((N l).opens (c l)) := (landsIn_iInf b).1 hb l |
| 828 | -- The coordinate `j` of the factor `l` is the Segre coordinate `update c l j`, as the other |
| 829 | -- factors of the product are `1`. |
| 830 | have h_factor (l : Λ) (j : ν l) : (N l).transition (c l) j A (a ≫ (π l).left) = |
| 831 | (N l).transition (c l) j A (b ≫ (π l).left) := by |
| 832 | simpa +contextual [prod_eq_single l, transition_self, ha_in, hb_in] using h_coord (update c l j) |
| 833 | -- So `a` and `b` have the same image in each `Z l`. View them over `S` and apply `h_sep`. |
| 834 | have h_over : homMk (U := .mk (b ≫ W.hom)) a h_base = homMk b := |
| 835 | h_sep fun l ↦ OverMorphism.ext <| |
| 836 | (hN l).eq_of_transition_eq (ha_in l) (hb_in l) (h_factor l) (by simpa using h_base) |
| 837 | exact congrArg CommaMorphism.left h_over |
| 838 | |
| 839 | /-- The class of the `m`-th power of `L` in the Picard group is `m` times the class of `L`. -/ |
| 840 | @[simp] |
| 841 | lemma picClass_pow : (L.pow m).picClass = m • L.picClass := by simp [pow] |
| 842 | |
| 843 | /-- Veronese embedding: if `L` is a projective embedding of `X` over `S`, so is its `m`-th tensor |
| 844 | power for `m ≠ 0`. -/ |
| 845 | lemma IsProjEmbedding.pow {s : X ⟶ S} (h : L.IsProjEmbedding s) {m : ℕ} (hm : m ≠ 0) : |
| 846 | (L.pow m).IsProjEmbedding s := by |
| 847 | -- The case of `isProjEmbedding_pi` where all the maps are the identity of `X`. |
| 848 | have h_proper : IsProper (Over.mk s).hom := h.isProper |
| 849 | exact isProjEmbedding_pi (W := .mk s) (fun _ : Fin m ↦ 𝟙 _) (fun _ ↦ h) |
| 850 | fun hxy ↦ by simpa using hxy ⟨0, hm.pos⟩ |
| 851 | |
| 852 | end New.LineBundle |
| 853 | |
| 854 | end |