Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | public import Aesop.BuiltinRules |
| 4 | public import Mathlib.RingTheory.Invariant.Defs |
| 5 | import Mathlib.FieldTheory.PurelyInseparable.Exponent |
| 6 | import Mathlib.GroupTheory.CosetCover |
| 7 | import Mathlib.RingTheory.Henselian |
| 8 | import Mathlib.RingTheory.Invariant.Galois |
| 9 | import Mathlib.RingTheory.PicardGroup |
| 10 | import TauCeti.RingTheory.MvPolynomial.Homogeneous |
| 11 | import TauCeti.AlgebraicGeometry.Morphisms.SchemeTheoreticallyDominant |
| 12 | public import Lib.General.Geometry.ProjectiveSpace |
| 13 | public import Lib.General.Geometry.EtaleCharts |
| 14 | import Lib.General.Algebra.MultivariatePolynomials |
| 15 | import Lib.General.Algebra.ValuativeIntegrality |
| 16 | import Lib.General.Geometry.PointsOfProperSchemes |
| 17 | import Lib.PadicComparison.Descent.TestCategory |
| 18 | |
| 19 | /-! |
| 20 | # Projective Noether normalisation and homogeneous coordinates of embedded points |
| 21 | |
| 22 | Let k be a field. For a tuple `g : ι → L`, `New.Variety.CutsOutLocus.IsHomogeneousSolution k g w` |
| 23 | says that every homogeneous polynomial over k that vanishes at g also vanishes at w. The file proves |
| 24 | projective Noether normalisation by linear forms in characteristic zero and constructs its Galois |
| 25 | closure. |
| 26 | |
| 27 | ## Main definitions and results |
| 28 | |
| 29 | * `New.Variety.CutsOutLocus.IsNoetherNormalization Λ g`: the linear forms `Λ₀, …, Λ_d` are a Noether |
| 30 | normalisation of the cone, that is, their values at `g` are independent and the cone is integral |
| 31 | over them. |
| 32 | * `New.Variety.CutsOutLocus.exists_isNoetherNormalization`: such forms exist for a non-zero finite |
| 33 | tuple `g` over a field `k` of characteristic zero. |
| 34 | * `New.Variety.CutsOutLocus.IsNoetherNormalization.GaloisClosure`, |
| 35 | `New.Variety.CutsOutLocus.IsNoetherNormalization.nonempty_galoisClosure`: the Galois closure of |
| 36 | the normalisation, a finite algebra `B` over `k[X₀, …, X_d]` with points `b σ` of the cone, |
| 37 | indexed by a finite group. |
| 38 | * `New.Variety.IsCoordsWithUnit.exists_universal_chart`, |
| 39 | `New.Variety.IsCoordsWithUnit.exists_mem_open_of_isUnit`: a point ξ over a field F with |
| 40 | coordinates g spreads out and specialises to the vectors w with w i (resp. aeval w b) a unit that |
| 41 | satisfy the homogeneous relations of g. |
| 42 | * `New.Variety.IsCoordsWithUnit.exists_app_eq_algebraMap_of_isHomogeneousSolution`: over an |
| 43 | algebraically closed k, a global function takes one constant value on all such specialisations. |
| 44 | |
| 45 | Notions from other files: |
| 46 | * `New.LineBundle.IsHomogeneousCoords`: v is a vector of homogeneous coordinates of the point t for |
| 47 | L: t lands in U_j exactly when v_j is a unit, and then g_jk(t) = v_k/v_j. |
| 48 | * `New.Variety.IsOpenSubfunctor`: V is an open subfunctor of X: each x ∈ X(A) has an ideal I of A |
| 49 | such that, for φ: A → B, φ(x) ∈ V(B) iff φ(I)B = B. |
| 50 | |
| 51 | ## Relation to the literature |
| 52 | |
| 53 | Known; see `Lib.Cohomology.PointClass.LinearIndependence` for sources. |
| 54 | -/ |
| 55 | |
| 56 | @[expose] public section |
| 57 | |
| 58 | /-! |
| 59 | ## Noether normalisation of a cone by linear forms |
| 60 | |
| 61 | Noether normalisation is stated for coordinate vectors instead of varieties. A tuple `g : ι → L` |
| 62 | stands for the cone cut out by the homogeneous polynomials over `k` that vanish at `g`. |
| 63 | -/ |
| 64 | |
| 65 | section NoetherNormalization |
| 66 | |
| 67 | open Fin MvPolynomial Finset Function Finite IsScalarTower FaithfulSMul Algebra Ideal RingHom |
| 68 | |
| 69 | namespace New.Variety.CutsOutLocus |
| 70 | |
| 71 | variable {k L ι A B C : Type} [Field k] [Field L] [Algebra k L] [CommRing A] [Algebra k A] |
| 72 | {u : A} [CommRing B] [Algebra k B] [CommRing C] [Algebra k C] |
| 73 | {g : ι → B} {v : ι → A} {d : ℕ} (Λ : Fin (d + 1) → homogeneousSubmodule ι k 1) |
| 74 | {F : MvPolynomial ι k} (φ : A →ₐ[k] C) (ψ : A →ₐ[k] L) |
| 75 | |
| 76 | /-! ### The cone of a coordinate vector -/ |
| 77 | |
| 78 | variable (k g v) in |
| 79 | /-- The point `v` lies on the cone of `g`: every homogeneous polynomial over `k` that vanishes at |
| 80 | `g` vanishes at `v`. The two tuples may have entries in different `k`-algebras. -/ |
| 81 | def IsHomogeneousSolution : Prop := |
| 82 | ∀ ⦃n : ℕ⦄ ⦃F : MvPolynomial ι k⦄, F.IsHomogeneous n → F.aeval g = 0 → F.aeval v = 0 |
| 83 | |
| 84 | /-- The tuple of values of the polynomials `Λ j` at `v`. -/ |
| 85 | noncomputable abbrev evalForms (v : ι → A) (j : Fin (d + 1)) : A := ((Λ j).val.aeval v : A) |
| 86 | |
| 87 | /-- A homogeneous polynomial of degree `n` takes at `u • v` the value `u ^ n` times that at `v`. -/ |
| 88 | @[grind =>] |
| 89 | lemma aeval_smul_of_isHomogeneous {n : ℕ} (hF : F.IsHomogeneous n) : |
| 90 | aeval (u • v) F = u ^ n * aeval v F := |
| 91 | hF.eval₂_const_mul (algebraMap k A) v u |
| 92 | |
| 93 | /-- If `χ` kills the kernel of `φ` and `φ ∘ v` lies on the cone of `g`, then so does `χ ∘ v`. -/ |
| 94 | lemma IsHomogeneousSolution.of_ker {D : Type} [CommRing D] [Algebra k D] (χ : A →ₐ[k] D) |
| 95 | (h_ker : ∀ r : A, φ r = 0 → χ r = 0) (h_sol : IsHomogeneousSolution k g (φ ∘ v)) : |
| 96 | IsHomogeneousSolution k g (χ ∘ v) := fun _ F hF h_g ↦ |
| 97 | -- `F (χ ∘ v) = χ (F v)`, and `φ (F v) = F (φ ∘ v) = 0` |
| 98 | (comp_aeval_apply v χ F).symm.trans (h_ker _ ((comp_aeval_apply v φ F).trans (h_sol hF h_g))) |
| 99 | |
| 100 | lemma IsHomogeneousSolution.map : IsHomogeneousSolution k g v → IsHomogeneousSolution k g (φ ∘ v) := |
| 101 | of_ker 1 φ (by simp) |
| 102 | |
| 103 | lemma IsHomogeneousSolution.smul (u : C) (h : IsHomogeneousSolution k g v) : |
| 104 | IsHomogeneousSolution k g (u • φ ∘ v) := by |
| 105 | intro n F hF h_g |
| 106 | have h_map : aeval (φ ∘ v) F = 0 := h.map φ hF h_g |
| 107 | rw [aeval_smul_of_isHomogeneous hF, h_map, mul_zero] |
| 108 | |
| 109 | @[simp] |
| 110 | lemma evalForms_map (v : ι → A) : evalForms Λ (φ ∘ v) = φ ∘ evalForms Λ v := by |
| 111 | simp [comp_aeval_apply, comp_def] |
| 112 | |
| 113 | @[simp] |
| 114 | lemma evalForms_smul : evalForms Λ (u • v) = u • evalForms Λ v := by |
| 115 | simp [funext_iff, aeval_smul_of_isHomogeneous (Λ _).prop] |
| 116 | |
| 117 | /-- If `t` is transcendental over the ring `B` of the entries of `g`, every polynomial that |
| 118 | vanishes at `t • g`, homogeneous or not, vanishes at each point `v` of the cone of `g`. -/ |
| 119 | lemma IsHomogeneousSolution.aeval_eq_zero_of_transcendental [Algebra B L] [IsScalarTower k B L] |
| 120 | {t : L} (ht : Transcendental B t) (h_sol : IsHomogeneousSolution k g v) |
| 121 | (h_zero : aeval (t • algebraMap B L ∘ g) F = 0) : |
| 122 | aeval v F = 0 := by |
| 123 | -- Split `F` into homogeneous components `F_n`. The values `F_n(g)` are the coefficients of a |
| 124 | -- polynomial over `B` that vanishes at `t`, so they are zero. |
| 125 | let P : Polynomial B := |
| 126 | ∑ n ∈ range (F.totalDegree + 1), .monomial n (aeval g (homogeneousComponent n F)) |
| 127 | rw [← F.sum_homogeneousComponent, map_sum] at h_zero ⊢ |
| 128 | -- `P (t)` is the sum in `h_zero`, by homogeneity of the `F_n` |
| 129 | have h_sum : P.aeval t = ∑ n ∈ range (F.totalDegree + 1), |
| 130 | aeval (t • algebraMap B L ∘ g) (homogeneousComponent n F) := by |
| 131 | simp [P, Polynomial.aeval_monomial, mul_comm, aeval_algebraMap_apply, |
| 132 | aeval_smul_of_isHomogeneous (homogeneousComponent_mem _ F)] |
| 133 | have hP : P = 0 := transcendental_iff.mp ht P (h_sum.trans h_zero) |
| 134 | refine sum_eq_zero fun n hn ↦ h_sol (homogeneousComponent_mem n F) ?_ |
| 135 | -- the value `F_n(g)` is the `n`-th coefficient of `P = 0` |
| 136 | simpa [P, Polynomial.coeff_monomial, Finsupp.single_apply, hn] using |
| 137 | congrArg (fun p : Polynomial B ↦ p.coeff n) hP |
| 138 | |
| 139 | lemma IsHomogeneousSolution.refl : IsHomogeneousSolution k v v := by tauto |
| 140 | |
| 141 | /-! ### Noether normalisation -/ |
| 142 | |
| 143 | /-- Λ is a Noether normalisation of g: the Λ_0, …, Λ_d are linear forms, the values Λ_j(g) have no |
| 144 | non-zero homogeneous relation, and every field-valued point v of the cone of g is integral over |
| 145 | any image of a `k`-algebra that contains the values Λ_j(v). -/ |
| 146 | def IsNoetherNormalization (g : ι → L) : Prop := |
| 147 | -- the values of the forms `Λ j` at `g` satisfy no non-zero homogeneous relation over `k` |
| 148 | IsHomogeneousSolution k (evalForms Λ g) (X (R := k)) ∧ |
| 149 | -- a solution `v` of the homogeneous equations of `g` is integral over every ring `R` whose |
| 150 | -- image contains the values of `Λ` at `v` |
| 151 | ∀ {K R : Type} [Field K] [Algebra k K] [CommRing R] [Algebra k R] (φ : R →ₐ[k] K) |
| 152 | (p : Fin (d + 1) → R) (v : ι → K), |
| 153 | IsHomogeneousSolution k g v → evalForms Λ v = φ ∘ p → ∀ i : ι, |
| 154 | φ.IsIntegralElem (v i) |
| 155 | |
| 156 | /-- Let `φ : A → C` be integral and `ψ : A → L` a map to an algebraically closed field whose |
| 157 | kernel contains that of `φ`. Then `ψ = χ ∘ φ` for some map `χ : C → L` of `k`-algebras. -/ |
| 158 | lemma exists_algHom_comp_eq_of_integral [IsAlgClosed L] (hφ_int : φ.IsIntegral) |
| 159 | (h_ker : ker φ ≤ ker ψ) : |
| 160 | ∃ χ : C →ₐ[k] L, χ.comp φ = ψ := by |
| 161 | -- Take a prime `q` of `C` over the kernel of `ψ`. Then `C ⧸ q` is an algebraic extension of the |
| 162 | -- domain `A ⧸ ker ψ`, whose embedding in `L` extends. |
| 163 | algebraize [φ.toRingHom, (kerLiftAlg ψ).toRingHom] |
| 164 | have h_prime : (ker ψ).IsPrime := ker_isPrime ψ |
| 165 | obtain ⟨q, -, hq_prime, hq⟩ : |
| 166 | ∃ q ≥ (⊥ : Ideal C), q.IsPrime ∧ q.comap (algebraMap A C) = ker ψ := |
| 167 | exists_ideal_over_prime_of_isIntegral (ker ψ) (⊥ : Ideal C) h_ker |
| 168 | have : q.LiesOver (ker ψ) := ⟨hq.symm⟩ |
| 169 | have h_alg : Algebra.IsAlgebraic (A ⧸ ker ψ) (C ⧸ q) := |
| 170 | (Algebra.IsIntegral.tower_top A).isAlgebraic |
| 171 | have : Module.IsTorsionFree (A ⧸ ker ψ) L := |
| 172 | Module.isTorsionFree_iff_algebraMap_injective.mpr (kerLiftAlg_injective ψ) |
| 173 | have : Module.IsTorsionFree (A ⧸ ker ψ) (C ⧸ q) := |
| 174 | FaithfulSMul.to_isTorsionFree (A ⧸ ker ψ) (C ⧸ q) |
| 175 | let χ : C ⧸ q →ₐ[A ⧸ ker ψ] L := IsAlgClosed.lift |
| 176 | exact ⟨(χ.restrictScalars k).comp (toAlgHom k C _), AlgHom.ext fun a ↦ χ.commutes ⟦a⟧⟩ |
| 177 | |
| 178 | variable {Λ} {g : ι → L} |
| 179 | |
| 180 | open IsIntegralClosure FiniteGaloisIntermediateField in |
| 181 | /-- Finitely many elements of an algebraically closed field, integral over a noetherian normal |
| 182 | domain `A` of characteristic zero, lie in a finite `A`-algebra `B` whose ring of invariants is |
| 183 | `A`. -/ |
| 184 | lemma exists_galois_hull [Finite ι] |
| 185 | [IsDomain A] [IsNoetherianRing A] [CharZero A] [IsIntegrallyClosed A] |
| 186 | [IsAlgClosed L] [Algebra A L] [FaithfulSMul A L] (hg : ∀ i : ι, IsIntegral A (g i)) : |
| 187 | ∃ B : CommAlgCat.{0} A, ∃ _ : Fintype Gal(B/A), ∃ j : B →ₐ[A] L, ∃ x : ι → B, |
| 188 | Algebra.IsInvariant A B Gal(B/A) ∧ (algebraMap A B).Finite ∧ Injective j ∧ j ∘ x = g := by |
| 189 | -- `B` is the integral closure of `A` in a finite Galois extension `N` of `Frac A` in `L` that |
| 190 | -- contains the `g i`. |
| 191 | let K : Type := FractionRing A |
| 192 | let algebraKL : Algebra K L := FractionRing.liftAlgebra A L |
| 193 | let g' (i : ι) : algebraicClosure K L := ⟨g i, (hg i).tower_top⟩ |
| 194 | let N : IntermediateField K (algebraicClosure K L) := |
| 195 | (FiniteGaloisIntermediateField.adjoin K (.range g')).toIntermediateField |
| 196 | let B : Subalgebra A N := integralClosure A N |
| 197 | have h_frac : IsFractionRing B N := isFractionRing_of_finite_extension A K N B |
| 198 | let x (i : ι) : B := |
| 199 | ⟨⟨g' i, subset_adjoin K _ ⟨i, rfl⟩⟩, .of_map (algebraMap_injective N L) (hg i)⟩ |
| 200 | let j : B →ₐ[A] L := ⟨algebraMap B L, fun _ ↦ rfl⟩ |
| 201 | exact ⟨.of A B, .ofEquiv _ (galRestrict A K N B).toEquiv, j, x, isInvariant_of_isGalois' A K N B, |
| 202 | finite_algebraMap.mpr (finite A K N B), algebraMap_injective B L, rfl⟩ |
| 203 | |
| 204 | /-- Elimination step of Noether normalisation. If the values of the linear forms `Λ` at `g` satisfy |
| 205 | a homogeneous relation `f`, and `a` is a point with `f a ≠ 0` and `a 0 ≠ 0`, then on the cone of `g` |
| 206 | a common zero with entries in a field `K` of the forms `Λ (j + 1) - (a (j + 1) / a 0) • Λ 0` is a |
| 207 | common zero of `Λ`. -/ |
| 208 | lemma aeval_eq_zero_of_eliminated_forms {m : ℕ} {f : MvPolynomial (Fin (d + 1)) k} |
| 209 | (hf : f.IsHomogeneous m) (h_rel : aeval (evalForms Λ g) f = 0) {a : Fin (d + 1) → k} |
| 210 | (hfa : MvPolynomial.eval a f ≠ 0) (ha₀ : a 0 ≠ 0) {K : Type} [Field K] [Algebra k K] {x : ι → K} |
| 211 | (hx : IsHomogeneousSolution k g x) |
| 212 | (h_zero : ∀ j : Fin d, (Λ j.succ - (a j.succ / a 0) • Λ 0).val.aeval x = 0) (j : Fin (d + 1)) : |
| 213 | (Λ j).val.aeval x = 0 := by |
| 214 | -- the relation is a homogeneous equation of `g`, so it holds at `x` |
| 215 | have h_relx : aeval (evalForms Λ x) f = 0 := by |
| 216 | simpa [comp_aeval_apply, h_rel] using hx (hf.aeval _ fun j ↦ (Λ j).prop) |
| 217 | -- the values of `Λ` at `x` are proportional to `a` |
| 218 | obtain ⟨c, h_prop⟩ : ∃ c : K, evalForms Λ x = c • algebraMap k K ∘ a := by |
| 219 | refine ⟨(a 0)⁻¹ • evalForms Λ x 0, funext (forall_fin_succ.mpr ?_)⟩ |
| 220 | simpa [ha₀, algebraMap_eq_smul_one, smul_smul, div_eq_mul_inv, sub_eq_zero] using h_zero |
| 221 | -- by homogeneity `c ^ m * f a = 0`, so `c = 0` |
| 222 | have h_pow : c ^ m * algebraMap k K (MvPolynomial.eval a f) = 0 := by |
| 223 | simpa [h_prop, aeval_smul_of_isHomogeneous hf, aeval_algebraMap_apply] using h_relx |
| 224 | have hc : c = 0 := |
| 225 | eq_zero_of_pow_eq_zero ((mul_eq_zero.mp h_pow).resolve_right (by simpa using hfa)) |
| 226 | simpa [hc] using congrFun h_prop j |
| 227 | |
| 228 | /-- Let `g` be a tuple, `χ : R →ₐ[k] K` a `k`-algebra map to a field `K` and `p` a tuple in `R`, |
| 229 | let linear forms `Λ` have no non-trivial common zero on the cone of `g` over any field, and let |
| 230 | `w` be a point of the cone with `Λ w = χ ∘ p`. If a valuation ring `V` contains the image of `χ` |
| 231 | and each `w l` is a multiple of `w j` by an element of `V`, then `w j` has valuation at most one in |
| 232 | `V`. -/ |
| 233 | private lemma valuation_le_one_of_no_common_zero |
| 234 | (h_no_common_zero : ∀ {K : Type} [Field K] [Algebra k K] (v : ι → K), |
| 235 | IsHomogeneousSolution k g v → |
| 236 | (∀ j : Fin (d + 1), (Λ j).val.aeval v = (0 : K)) → v = 0) |
| 237 | {K R : Type} [Field K] [Algebra k K] [CommRing R] [Algebra k R] (χ : R →ₐ[k] K) |
| 238 | (p : Fin (d + 1) → R) (w : ι → K) (hv : IsHomogeneousSolution k g w) |
| 239 | (h_val : evalForms Λ w = χ ∘ p) {V : ValuationSubring K} |
| 240 | (hV : ∀ a : R, χ.toRingHom a ∈ V) {j : ι} (x : ι → V) (hx : ∀ l : ι, x l • w j = w l) : |
| 241 | V.valuation (w j) ≤ 1 := by |
| 242 | -- Divide `w` by `w j`. If `w j ∉ V`, the quotient reduces to a common zero of `Λ` over the |
| 243 | -- residue field whose `j`-th coordinate is `1`, against `h_no_common_zero`. |
| 244 | algebraize [(χ.toRingHom.codRestrict V hV).comp (algebraMap k _)] |
| 245 | let incl : V →ₐ[k] K := AlgHom.mk V.subtype χ.commutes' |
| 246 | by_contra! h_big |
| 247 | have hvj : w j ≠ 0 := ne_zero_of_map h_big.ne_zero |
| 248 | have h_quot : incl ∘ x = (w j)⁻¹ • w := |
| 249 | (eq_inv_smul_iff₀ hvj).mpr <| funext fun l ↦ (mul_comm _ _).trans (hx l) |
| 250 | let red : V →ₐ[k] IsLocalRing.ResidueField V := |
| 251 | IsScalarTower.toAlgHom k V (IsLocalRing.ResidueField V) |
| 252 | have h_res {y : V} : red y = 0 ↔ V.valuation y < 1 := by simp [red, V.valuation_lt_one_iff] |
| 253 | -- the reduction of `x` lies on the cone, since `incl ∘ x` is a multiple of `w` |
| 254 | have h_ker (r : V) (hr : incl r = 0) : red r = 0 := by |
| 255 | rw [show r = 0 from Subtype.ext hr, map_zero] |
| 256 | have h_incl : IsHomogeneousSolution k g (incl ∘ x) := by |
| 257 | rw [h_quot] |
| 258 | exact hv.smul (AlgHom.id k K) (w j)⁻¹ |
| 259 | have h_cone : IsHomogeneousSolution k g (red ∘ x) := .of_ker incl red h_ker h_incl |
| 260 | -- `Λ l x = (w j)⁻¹ * χ (p l)` has valuation less than one |
| 261 | have h_zero (l : Fin (d + 1)) : (Λ l).val.aeval (red ∘ x) = 0 := by |
| 262 | have h_incl_l : (((Λ l).val.aeval x : V) : K) = (w j)⁻¹ * χ (p l) := by |
| 263 | calc (((Λ l).val.aeval x : V) : K) = evalForms Λ (incl ∘ x) l := |
| 264 | comp_aeval_apply x incl (Λ l).val |
| 265 | _ = ((w j)⁻¹ • evalForms Λ w) l := by rw [h_quot, evalForms_smul] |
| 266 | _ = (w j)⁻¹ * χ (p l) := by simp [h_val] |
| 267 | have h_le : V.valuation (χ (p l)) ≤ 1 := V.valuation_le_one ⟨χ (p l), hV (p l)⟩ |
| 268 | have h_lt_one : V.valuation ((w j)⁻¹ * χ (p l)) < 1 := by |
| 269 | simpa [inv_mul_lt_one₀ h_big.pos] using h_le.trans_lt h_big |
| 270 | -- `Λ l (red ∘ x) = red (Λ l x)` |
| 271 | refine (comp_aeval_apply x red (Λ l).val).symm.trans ?_ |
| 272 | rw [h_res, h_incl_l] |
| 273 | exact h_lt_one |
| 274 | have h_lt : V.valuation (x j) < 1 := h_res.mp (congrFun (h_no_common_zero _ h_cone h_zero) j) |
| 275 | -- but `x j = (w j)⁻¹ * w j = 1` |
| 276 | have h_xj : ((x j : V) : K) = 1 := (congrFun h_quot j).trans (inv_mul_cancel₀ hvj) |
| 277 | simp [h_xj] at h_lt |
| 278 | |
| 279 | /-- If linear forms `Λ` have no non-trivial common zero on the cone of a finite tuple `g` over any |
| 280 | field, then a point `v` of the cone with `Λ v = φ ∘ p` has coordinates integral over the image of |
| 281 | `φ`. -/ |
| 282 | lemma isIntegralElem_of_no_common_zero [Finite ι] |
| 283 | (h_no_common_zero : ∀ {K : Type} [Field K] [Algebra k K] (v : ι → K), |
| 284 | IsHomogeneousSolution k g v → |
| 285 | (∀ j : Fin (d + 1), (Λ j).val.aeval v = (0 : K)) → v = 0) |
| 286 | {K R : Type} [Field K] [Algebra k K] [CommRing R] [Algebra k R] (φ : R →ₐ[k] K) |
| 287 | (p : Fin (d + 1) → R) (v : ι → K) (hv : IsHomogeneousSolution k g v) |
| 288 | (h_val : evalForms Λ v = φ ∘ p) (i : ι) : |
| 289 | φ.IsIntegralElem (v i) := by |
| 290 | -- Show `v i ∈ V` for each valuation ring `V` that contains the image of `φ`. Divide `v` by a |
| 291 | -- coordinate `v j` of largest valuation. If `v j ∉ V`, the quotient reduces to a common zero |
| 292 | -- of `Λ` over the residue field whose `j`-th coordinate is `1`, against `h_no_common_zero`. |
| 293 | refine (RingHom.isIntegralElem_iff_forall_valuationSubring _ _).2 fun V hV ↦ ?_ |
| 294 | -- largest valuation says that each `v l` is a multiple of `v j` by some `x l ∈ V` |
| 295 | have h_nonempty : Nonempty ι := ⟨i⟩ |
| 296 | obtain ⟨j, hj⟩ : ∃ j : ι, ∀ l : ι, ∃ x : V, x • v j = v l := exists_max (V.valuation ∘ v) |
| 297 | choose x hx using hj |
| 298 | rw [← hx i] |
| 299 | exact mul_mem (x i).prop ((V.valuation_le_one_iff _).mp |
| 300 | (valuation_le_one_of_no_common_zero h_no_common_zero φ p v hv h_val hV x hx)) |
| 301 | |
| 302 | /-- Noether normalisation. Let `g` be a non-zero tuple, indexed by a finite type `ι`, in a field `L` |
| 303 | over a field `k` of characteristic zero. Then there are linear forms `Λ₀, …, Λ_d` over `k` with |
| 304 | `Λ₀(g) ≠ 0` that form a Noether normalisation of `u • g` for every unit `u` of `L`. This means the |
| 305 | values `Λ_j(u • g)` satisfy no non-zero homogeneous polynomial relation over `k`, and every |
| 306 | field-valued point `v` on the cone of `u • g` is integral over any image of a `k`-algebra that |
| 307 | contains the values `Λ_j(v)`. -/ |
| 308 | lemma exists_isNoetherNormalization [CharZero k] [Finite ι] (hg : g ≠ 0) : |
| 309 | ∃ (d : ℕ) (Λ : Fin (d + 1) → homogeneousSubmodule ι k 1), |
| 310 | evalForms Λ g 0 ≠ 0 ∧ ∀ u : Lˣ, IsNoetherNormalization (k := k) (d := d) Λ (u • g) := by |
| 311 | -- Start from the coordinates, linear forms without a non-trivial common zero on the cone of |
| 312 | -- `g`. While the values at `g` satisfy a homogeneous relation, one form can be dropped; once |
| 313 | -- they satisfy none, the forms are a Noether normalisation. |
| 314 | obtain ⟨n, Λ, h_base⟩ : |
| 315 | ∃ (n : ℕ) (Λ : Fin n → homogeneousSubmodule ι k 1), |
| 316 | ∀ {K : Type} [Field K] [Algebra k K] (v : ι → K), IsHomogeneousSolution k g v → |
| 317 | (∀ j : Fin n, (Λ j).val.aeval v = (0 : K)) → v = 0 := by |
| 318 | refine ⟨Nat.card ι, fun j ↦ ⟨X ((equivFin ι).symm j), isHomogeneous_X k _⟩, |
| 319 | fun v _ h_zero ↦ funext fun i ↦ ?_⟩ |
| 320 | simpa using h_zero (equivFin ι i) |
| 321 | induction n with |
| 322 | | zero => cases hg (h_base g .refl nofun) |
| 323 | | succ n ih => |
| 324 | by_cases h_ind : IsHomogeneousSolution k (evalForms Λ g) (X (R := k)) |
| 325 | · -- no relation: in particular `X 0` is none, so `Λ 0` does not vanish at `g` |
| 326 | have h_ne : evalForms Λ g 0 ≠ 0 := by simpa using h_ind (isHomogeneous_X k 0) |
| 327 | refine ⟨n, Λ, h_ne, fun u ↦ ⟨fun m F hF h_rel ↦ h_ind hF ?_, fun φ p v hv ↦ ?_⟩⟩ |
| 328 | · -- no relation at `u • g` either: it would be one at `g`, up to a power of `u` |
| 329 | simpa [u.smul_def, aeval_smul_of_isHomogeneous hF] using h_rel |
| 330 | · -- a point of the cone of `u • g` lies on the cone of `g` |
| 331 | have hv_g : IsHomogeneousSolution k g v := by grind [IsHomogeneousSolution, Units.smul_def] |
| 332 | exact isIntegralElem_of_no_common_zero h_base φ p v hv_g |
| 333 | · obtain ⟨m, f, hf, h_rel, hf₀⟩ : ∃ (m : ℕ) (f : MvPolynomial (Fin (n + 1)) k), |
| 334 | f.IsHomogeneous m ∧ aeval (evalForms Λ g) f = 0 ∧ f ≠ 0 := by |
| 335 | simpa [IsHomogeneousSolution, aeval_X_left_apply] using h_ind |
| 336 | -- `k` is infinite, so the non-zero polynomial `f * X 0` has a non-zero value |
| 337 | obtain ⟨a, ha⟩ : ∃ a : Fin (n + 1) → k, MvPolynomial.eval a (f * X 0) ≠ 0 := by |
| 338 | by_contra! h_all |
| 339 | exact mul_ne_zero hf₀ (X_ne_zero 0) (MvPolynomial.funext fun a ↦ by simpa using h_all a) |
| 340 | obtain ⟨hfa, ha₀⟩ : MvPolynomial.eval a f ≠ 0 ∧ a 0 ≠ 0 := by simpa [not_or] using ha |
| 341 | -- eliminate `Λ 0`: the `n` new forms still have no non-trivial common zero on the cone |
| 342 | exact ih (fun j ↦ Λ j.succ - (a j.succ / a 0) • Λ 0) fun x hx h_zero ↦ |
| 343 | h_base x hx (aeval_eq_zero_of_eliminated_forms hf h_rel hfa ha₀ hx h_zero) |
| 344 | |
| 345 | /-- Let `A` be the ring of invariants of the finite group of `A`-automorphisms of `B`. Two maps |
| 346 | of `k`-algebras from `B` to a field (`k` of characteristic zero) that agree on `A` differ by such an |
| 347 | automorphism. -/ |
| 348 | lemma exists_algEquiv_of_comp_eq [CharZero k] [Algebra A B] [IsScalarTower k A B] [Fintype Gal(B/A)] |
| 349 | (hinv : Algebra.IsInvariant A B Gal(B/A)) {χ ψ : B →ₐ[k] L} |
| 350 | (h_agree : χ.comp (toAlgHom k A B) = ψ.comp (toAlgHom k A B)) : |
| 351 | ∃ τ : Gal(B/A), ∀ a : B, ψ a = χ (τ a) := by |
| 352 | -- A vector space over the infinite field `k` is not a finite union of proper subspaces, so it |
| 353 | -- is enough to find, for each `a`, some `τ` with `ψ a = χ (τ a)`. |
| 354 | suffices hcover : ∀ a : B, ∃ τ : Gal(B/A), ψ a = χ (τ a) by |
| 355 | have h_mem (a : B) : |
| 356 | a ∈ ⋃ τ : Gal(B/A), ((ψ.equalizer (χ.comp (τ.restrictScalars k))).toSubmodule : Set B) := by |
| 357 | simpa using hcover a |
| 358 | simpa [Submodule.eq_top_iff'] using Subspace.exists_eq_top_of_iUnion_eq_univ |
| 359 | (p := fun τ : Gal(B/A) ↦ (ψ.equalizer (χ.comp (τ.restrictScalars k))).toSubmodule) |
| 360 | (Set.eq_univ_of_forall h_mem) |
| 361 | intro a |
| 362 | -- The polynomial `∏ τ, (X - τ a)` comes from some `P` over `A`. |
| 363 | obtain ⟨P, hP : P.map (algebraMap A B) = MulSemiringAction.charpoly Gal(B/A) a⟩ : |
| 364 | MulSemiringAction.charpoly (B ≃ₐ[A] B) a ∈ Polynomial.lifts (algebraMap A B) := |
| 365 | hinv.charpoly_mem_lifts (b := a) |
| 366 | have hroot (θ : B →ₐ[k] L) : |
| 367 | P.eval₂ (θ.comp (toAlgHom k A B)).toRingHom (ψ a) = 0 ↔ ∃ τ : Gal(B/A), ψ a = θ (τ a) := by |
| 368 | rw [show (θ.comp (toAlgHom k A B)).toRingHom = θ.toRingHom.comp (algebraMap A B) from rfl, |
| 369 | ← P.eval₂_map, hP, MulSemiringAction.charpoly_eq, Polynomial.eval₂_finsetProd, |
| 370 | prod_eq_zero_iff] |
| 371 | simp [sub_eq_zero] |
| 372 | -- `ψ a` is a root of the image of `P` under `ψ`, which is also its image under `χ`. |
| 373 | rw [← hroot χ, h_agree, hroot ψ] |
| 374 | exact ⟨1, rfl⟩ |
| 375 | |
| 376 | /-- Let `t` be transcendental over `L`, `j : B → Ω` a map of `k`-algebras with zero kernel, and `b` |
| 377 | a tuple over `B` with `j ∘ b = t • w` for a tuple `w` of elements of `Ω` integral over `L`. Every |
| 378 | polynomial relation of `b` holds for `u • φ ∘ b`, for every map `φ` of `k`-algebras from `B` to a |
| 379 | field `K` and every `u`: the relation splits into homogeneous relations of `w`, which `b` |
| 380 | satisfies. -/ |
| 381 | private lemma ker_aeval_le_ker_aeval_smul_of_transcendental {κ B K Ω : Type} [CommRing B] |
| 382 | [Algebra k B] [Field K] [Algebra k K] [Field Ω] [Algebra L Ω] [Algebra k Ω] |
| 383 | [IsScalarTower k L Ω] {t : Ω} (ht : Transcendental L t) (j : B →ₐ[k] Ω) |
| 384 | (hj_ker : ∀ r : B, j r = 0 → r = 0) (b : κ → B) (w : κ → integralClosure L Ω) |
| 385 | (hw : t • toAlgHom k (integralClosure L Ω) Ω ∘ w = j ∘ b) (φ : B →ₐ[k] K) (u : K) : |
| 386 | ker (aeval (R := k) b) ≤ ker (aeval (R := k) (u • φ ∘ b)) := by |
| 387 | have h_tw : IsHomogeneousSolution k w (t • toAlgHom k (integralClosure L Ω) Ω ∘ w) := |
| 388 | .smul _ t .refl |
| 389 | rw [hw] at h_tw |
| 390 | have hwb : IsHomogeneousSolution k w b := |
| 391 | .of_ker j (AlgHom.id k B) (fun r hr ↦ by rw [hj_ker r hr, map_zero]) h_tw |
| 392 | refine fun F hF ↦ (hwb.smul φ u).aeval_eq_zero_of_transcendental ht.integralClosure ?_ |
| 393 | change aeval (t • toAlgHom k (integralClosure L Ω) Ω ∘ w) F = 0 |
| 394 | rw [hw] |
| 395 | exact (comp_aeval_apply b j F).symm.trans (by rw [RingHom.mem_ker.mp hF, map_zero]) |
| 396 | |
| 397 | /-- Let `f : k[X₀, …, X_d] → B` be finite and `b` a family of tuples over `B` such that `Λ` takes |
| 398 | the tuple `b σ₀` to `f ∘ X`. Then `aeval b` is integral: composed with the substitution of the |
| 399 | forms `Λ` in the variables `(σ₀, i)`, it is `f`. -/ |
| 400 | private lemma isIntegral_aeval_of_evalForms_eq {G B : Type} [CommRing B] [Algebra k B] |
| 401 | (f : MvPolynomial (Fin (d + 1)) k →ₐ[k] B) (hf_fin : f.toRingHom.Finite) (b : G → ι → B) |
| 402 | (σ₀ : G) (hΛb : evalForms Λ (b σ₀) = f ∘ X) : |
| 403 | (aeval (R := k) ↿b).IsIntegral := by |
| 404 | let θ : MvPolynomial (Fin (d + 1)) k →ₐ[k] MvPolynomial (G × ι) k := |
| 405 | aeval fun l ↦ rename (Prod.mk σ₀) (Λ l).val |
| 406 | have hfactor : (aeval (R := k) ↿b).comp θ = f := by |
| 407 | refine algHom_ext fun l ↦ ?_ |
| 408 | simp only [θ, AlgHom.comp_apply, aeval_X, aeval_rename] |
| 409 | exact congrFun hΛb l |
| 410 | refine .tower_top θ.toRingHom _ ?_ |
| 411 | change ((aeval (R := k) ↿b).comp θ).toRingHom.IsIntegral |
| 412 | rw [hfactor] |
| 413 | exact hf_fin.to_isIntegral |
| 414 | |
| 415 | /-- Let `t` be transcendental over `L`, `j : B → Ω` a map of `k`-algebras with zero kernel, and each |
| 416 | tuple `t⁻¹ • j ∘ b σ` integral over `L`. Let `B` be finite over `k[X₀, …, X_d]` by `f`, with |
| 417 | `Λ` taking `b σ₀` to `f ∘ X`. Then for every map `φ` from `B` to an algebraically closed field |
| 418 | and every `u`, some map `χ` from `B` has `χ ∘ b σ = u • φ ∘ b σ` for all `σ`. -/ |
| 419 | private lemma exists_algHom_comp_eq_smul {G B K Ω : Type} [CommRing B] [Algebra k B] [Field K] |
| 420 | [IsAlgClosed K] [Algebra k K] [Field Ω] [Algebra L Ω] [Algebra k Ω] [IsScalarTower k L Ω] |
| 421 | {t : Ω} (ht : Transcendental L t) (ht_ne : t ≠ 0) (j : B →ₐ[k] Ω) |
| 422 | (hj_ker : ∀ r : B, j r = 0 → r = 0) (b : G → ι → B) |
| 423 | (hw_int : ∀ (σ : G) (i : ι), IsIntegral L ((t⁻¹ • j ∘ b σ) i)) |
| 424 | (f : MvPolynomial (Fin (d + 1)) k →ₐ[k] B) (hf_fin : f.toRingHom.Finite) (σ₀ : G) |
| 425 | (hΛb : evalForms Λ (b σ₀) = f ∘ X) (φ : B →ₐ[k] K) (u : K) : |
| 426 | ∃ χ : B →ₐ[k] K, ∀ σ : G, χ ∘ b σ = u • φ ∘ b σ := by |
| 427 | -- `j ∘ b = t • w` with `w` integral over `L`, so every relation of `b` holds for `u • φ ∘ b`; |
| 428 | -- as `B` is integral over the polynomials `Λ` in the `b σ₀ i`, `χ` extends `u • φ ∘ b`. |
| 429 | let w : G × ι → integralClosure L Ω := fun (σ, i) ↦ ⟨_, hw_int σ i⟩ |
| 430 | have hw : t • toAlgHom k (integralClosure L Ω) Ω ∘ w = j ∘ ↿b := by |
| 431 | funext ⟨σ, i⟩ |
| 432 | exact mul_inv_cancel_left₀ ht_ne _ |
| 433 | have hker : ker (aeval (R := k) ↿b) ≤ ker (aeval (R := k) (u • φ ∘ ↿b)) := |
| 434 | ker_aeval_le_ker_aeval_smul_of_transcendental ht j hj_ker ↿b w hw φ u |
| 435 | obtain ⟨χ, hχ⟩ : ∃ χ : B →ₐ[k] K, χ.comp (aeval ↿b) = aeval (u • φ ∘ ↿b) := |
| 436 | exists_algHom_comp_eq_of_integral _ _ (isIntegral_aeval_of_evalForms_eq f hf_fin b σ₀ hΛb) hker |
| 437 | refine ⟨χ, fun σ ↦ funext fun i ↦ ?_⟩ |
| 438 | simpa [Function.HasUncurry.uncurry] using DFunLike.congr_fun hχ (X (σ, i)) |
| 439 | |
| 440 | variable [CharZero k] [Finite ι] |
| 441 | |
| 442 | /-- The Galois closure of a Noether normalisation `Λ` of a finite tuple `g`: a finite group `G`, a |
| 443 | finite injective map `f : k[X₀, …, X_d] → B` of `k`-algebras and tuples `b σ` over `B`, `σ ∈ G`, on |
| 444 | the cone of `g`, that `Λ` takes to the variables and that `G` permutes up to proportionality. -/ |
| 445 | structure IsNoetherNormalization.GaloisClosure (Λ : Fin (d + 1) → homogeneousSubmodule ι k 1) |
| 446 | (g : ι → L) where |
| 447 | /-- The finite group that permutes the tuples `b σ`. -/ |
| 448 | G : GrpCat.{0} |
| 449 | /-- The algebra over `k[X₀, …, X_d]` in which the tuples lie. -/ |
| 450 | B : CommAlgCat k |
| 451 | /-- The group `G` is finite. -/ |
| 452 | fintype : Fintype G |
| 453 | /-- The map from `k[X₀, …, X_d]`. -/ |
| 454 | f : MvPolynomial (Fin (d + 1)) k →ₐ[k] B |
| 455 | /-- The tuples, indexed by `G`. -/ |
| 456 | b : G → ι → B |
| 457 | /-- Each `b σ` lies on the cone of `g`. -/ |
| 458 | isHomogeneousSolution (σ : G) : IsHomogeneousSolution k g (b σ) |
| 459 | /-- The forms `Λ` take each `b σ` to the variables: `Λ j (b σ) = f (X j)`. -/ |
| 460 | evalForms_eq (σ : G) : evalForms Λ (b σ) = f ∘ X |
| 461 | /-- The map `f` is finite. -/ |
| 462 | finite : f.toRingHom.Finite |
| 463 | /-- The map `f` is injective. -/ |
| 464 | injective : Injective f |
| 465 | /-- If `φ`, `ψ` map `B` to an algebraically closed field and `ψ (f (X j)) = u φ (f (X j))` for |
| 466 | all `j`, then for some `τ ∈ G`, `ψ (b σ) = u φ (b (τ σ))` for all `σ`. -/ |
| 467 | exists_shift {K : Type} [Field K] [IsAlgClosed K] [Algebra k K] (φ ψ : B →ₐ[k] K) (u : K) : |
| 468 | u • φ ∘ f ∘ X = ψ ∘ f ∘ X → ∃ τ : G, ∀ σ : G, ψ ∘ b σ = u • φ ∘ b (τ * σ) |
| 469 | |
| 470 | /-- A Noether normalisation `Λ` of a finite tuple `g` with entries in a field `L`, over a field `k` |
| 471 | of characteristic zero, has a Galois closure |
| 472 | (`New.Variety.CutsOutLocus.IsNoetherNormalization.GaloisClosure`). -/ |
| 473 | lemma IsNoetherNormalization.nonempty_galoisClosure (hΛ : IsNoetherNormalization Λ g) : |
| 474 | Nonempty (IsNoetherNormalization.GaloisClosure Λ g) := by |
| 475 | -- Take `t` transcendental over `L`. The values of `Λ` at `t • g` are algebraically independent, |
| 476 | -- so they embed `A = k[X]` in an algebraically closed field `Ω`, and `t • g` is integral over |
| 477 | -- `A`. `B` is a Galois hull of `t • g` over `A` and the `b σ` are the conjugates of `t • g`. |
| 478 | obtain ⟨h_no_rel, h_integral⟩ := hΛ |
| 479 | let Ω : Type := AlgebraicClosure (RatFunc L) |
| 480 | let inc : L →ₐ[k] Ω := toAlgHom k L Ω |
| 481 | let A : Type := MvPolynomial (Fin (d + 1)) k |
| 482 | obtain ⟨t, ht⟩ : ∃ t : Ω, Transcendental L t := |
| 483 | ⟨_, (transcendental_algebraMap_iff (algebraMap_injective _ Ω)).mpr RatFunc.transcendental_X⟩ |
| 484 | have ht_ne : t ≠ 0 := by simpa using not_exists.mp ht .X |
| 485 | have h_tg : IsHomogeneousSolution k g (t • inc ∘ g) := .smul inc t .refl |
| 486 | algebraize [(aeval (R := k) (evalForms Λ (t • inc ∘ g))).toRingHom] |
| 487 | -- The values of `Λ` at `t • g` are `t` times those at `g`, which satisfy no nonzero homogeneous |
| 488 | -- relation. (`using!`: the algebra instance comes from `algebraize`.) |
| 489 | have h_faithful : FaithfulSMul A Ω := by |
| 490 | refine (faithfulSMul_iff_algebraMap_injective A Ω).mpr |
| 491 | (algebraicIndependent_iff.mpr fun F ↦ ?_) |
| 492 | simpa [aeval_X_left_apply] using! h_no_rel.aeval_eq_zero_of_transcendental ht |
| 493 | have h_forms_X : evalForms Λ (t • inc ∘ g) = aeval (R := k) (evalForms Λ (t • inc ∘ g)) ∘ X := |
| 494 | funext fun l ↦ (aeval_X _ l).symm |
| 495 | have h_int (i : ι) : IsIntegral A ((t • inc ∘ g) i) := h_integral (aeval _) X _ h_tg h_forms_X i |
| 496 | -- `incA : B → Ω` is an injective `A`-algebra map with `incA ∘ x = t • inc ∘ g` |
| 497 | obtain ⟨B, fintypeGal, incA, x, hinv, hfin, h_incA_inj, h_incA_x⟩ := exists_galois_hull h_int |
| 498 | algebraize [(algebraMap A B).comp C] |
| 499 | let j : B →ₐ[k] Ω := incA.restrictScalars k |
| 500 | let f : A →ₐ[k] B := toAlgHom k A B |
| 501 | have hjf : j ∘ f ∘ X = evalForms Λ (t • inc ∘ g) := |
| 502 | funext fun i ↦ (incA.commutes _).trans (aeval_X _ i) |
| 503 | let b (σ : Gal(B/A)) : ι → B := σ.toAlgHom.restrictScalars k ∘ x |
| 504 | -- `h_incA_x` with `j`, the form that the rewrites below need |
| 505 | have h_jx : j ∘ x = t • inc ∘ g := h_incA_x |
| 506 | have hj_ker : ∀ r : B, j r = 0 → r = 0 := fun r hr ↦ h_incA_inj (hr.trans (map_zero incA).symm) |
| 507 | have hb (σ : Gal(B/A)) : IsHomogeneousSolution k g (b σ) := |
| 508 | .of_ker j _ (fun r hr ↦ by rw [hj_ker r hr, map_zero]) (by rwa [h_jx]) |
| 509 | have hx_forms : evalForms Λ x = f ∘ X := by |
| 510 | apply h_incA_inj.comp_left |
| 511 | calc incA ∘ evalForms Λ x = evalForms Λ (j ∘ x) := (evalForms_map Λ j x).symm |
| 512 | _ = incA ∘ f ∘ X := by rw [h_jx]; exact hjf.symm |
| 513 | -- `σ` fixes the image of `A` |
| 514 | have hΛb (σ : Gal(B/A)) : evalForms Λ (b σ) = f ∘ X := by |
| 515 | rw [evalForms_map, hx_forms] |
| 516 | exact funext fun i ↦ σ.commutes (X i) |
| 517 | have hf_inj : Injective f := .of_comp (f := incA) fun a a' h ↦ |
| 518 | algebraMap_injective A Ω <| by simpa [f] using h |
| 519 | refine ⟨{ |
| 520 | G := .of Gal(B/A), B := .of k B, fintype := inferInstance, f := f, b := b, |
| 521 | isHomogeneousSolution := hb, evalForms_eq := hΛb, finite := hfin, injective := hf_inj, |
| 522 | exists_shift := fun {K _ _ _} φ ψ u hu ↦ ?_ }⟩ |
| 523 | -- Dividing by `t`: `t⁻¹ • j ∘ b σ` is integral over `L`, since `Λ` has values in `L` there. |
| 524 | have hw_int (σ : Gal(B/A)) (i : ι) : IsIntegral L ((t⁻¹ • j ∘ b σ) i) := by |
| 525 | refine h_integral inc (evalForms Λ g) _ ((hb σ).smul j t⁻¹) ?_ i |
| 526 | simp [hΛb, hjf, ht_ne] |
| 527 | -- So scaling `φ ∘ b` by `u` is induced by a map `χ` on `B`; it agrees with `ψ` on `A`. |
| 528 | obtain ⟨χ, hχb⟩ : ∃ χ : B →ₐ[k] K, ∀ σ : Gal(B/A), χ ∘ b σ = u • φ ∘ b σ := |
| 529 | exists_algHom_comp_eq_smul ht ht_ne j hj_ker b hw_int f hfin 1 (hΛb 1) φ u |
| 530 | have hχf : χ ∘ f ∘ X = u • φ ∘ f ∘ X := by |
| 531 | simpa [hΛb] using congrArg (evalForms Λ) (hχb 1) |
| 532 | have h_agree : χ.comp f = ψ.comp f := algHom_ext (congrFun (hχf.trans hu)) |
| 533 | obtain ⟨τ, hτ⟩ : ∃ τ : Gal(B/A), ∀ a : B, ψ a = χ (τ a) := exists_algEquiv_of_comp_eq hinv h_agree |
| 534 | refine ⟨τ, fun σ ↦ ?_⟩ |
| 535 | rw [← hχb (τ * σ)] |
| 536 | exact funext fun i ↦ hτ (b σ i) |
| 537 | |
| 538 | /-- The Galois closure of a Noether normalisation `Λ` of a finite tuple `g` with entries in a field |
| 539 | `L`, over a field `k` of characteristic zero. There are a finite group `G`, a map of `k`-algebras |
| 540 | `f : k[X₀, …, X_d] → B` and tuples `b σ` over `B`, `σ ∈ G`, such that: (a) each `b σ` lies on the |
| 541 | cone of `g`, and `Λ j` takes the value `f (X j)` at it; (b) `f` is finite and injective; (c) if `φ`, |
| 542 | `ψ` map `B` to an algebraically closed field and `ψ (f (X j)) = u φ (f (X j))` for all `j`, then for |
| 543 | some `τ ∈ G` we have `ψ (b σ) = u φ (b (τ σ))` for all `σ`. -/ |
| 544 | lemma IsNoetherNormalization.exists_galois_closure (hΛ : IsNoetherNormalization Λ g) : |
| 545 | ∃ (G : GrpCat.{0}) (B : CommAlgCat k) (_ : Fintype G) |
| 546 | (f : MvPolynomial (Fin (d + 1)) k →ₐ[k] B) |
| 547 | (b : G → ι → B), |
| 548 | -- (a) |
| 549 | (∀ σ : G, IsHomogeneousSolution k g (b σ) ∧ evalForms Λ (b σ) = f ∘ X) ∧ |
| 550 | -- (b) |
| 551 | f.toRingHom.Finite ∧ Injective f ∧ |
| 552 | -- (c) |
| 553 | ∀ {K : Type} [Field K] [IsAlgClosed K] [Algebra k K] (φ ψ : B →ₐ[k] K) (u : K), |
| 554 | u • φ ∘ f ∘ X = ψ ∘ f ∘ X → ∃ τ : G, ∀ σ : G, ψ ∘ b σ = u • φ ∘ b (τ * σ) := by |
| 555 | obtain ⟨⟨G, B, fintypeG, f, b, hb_hom, hb_lv, h_fin, h_inj, h_conj⟩⟩ := |
| 556 | hΛ.nonempty_galoisClosure |
| 557 | exact ⟨G, B, fintypeG, f, b, fun σ ↦ ⟨hb_hom σ, hb_lv σ⟩, h_fin, h_inj, h_conj⟩ |
| 558 | |
| 559 | end New.Variety.CutsOutLocus |
| 560 | |
| 561 | end NoetherNormalization |
| 562 | |
| 563 | /-! |
| 564 | ## Homogeneous coordinates of points of an embedded variety |
| 565 | |
| 566 | Points of a scheme Y over Spec R with values in k-algebras A (`New.Variety.PointsIn`) are described |
| 567 | by homogeneous coordinates for a line bundle L that embeds Y (`New.LineBundle.IsProjEmbedding`, |
| 568 | finite index set ι). |
| 569 | -/ |
| 570 | |
| 571 | namespace New.Variety |
| 572 | |
| 573 | open CategoryTheory Function AlgebraicGeometry MvPolynomial CutsOutLocus CommAlgCat ProjSpace Ideal |
| 574 | Over Category |
| 575 | |
| 576 | variable {k ι : Type} {F : Type} [Field k] |
| 577 | {R : CommRingCat} [Algebra R.carrier k] {Y : Over (Spec R)} |
| 578 | (L : LineBundle Y.left ι) {A B : CommAlg k} (x x' : PointsIn Y A) |
| 579 | (v : ι → A) [Field F] [Algebra k F] [hL : Fact (L.IsProjEmbedding Y.hom)] |
| 580 | |
| 581 | /-- The vector v in A^ι is a vector of homogeneous coordinates, for L, of the A-point x of Y, |
| 582 | and some coordinate v_i is a unit. -/ |
| 583 | abbrev IsCoordsWithUnit : Prop := L.IsHomogeneousCoords x.down.left v ∧ ∃ i : ι, IsUnit (v i) |
| 584 | |
| 585 | /-- If étale charts of dimension d cover Y (`IsChartCovered`), a point x over a field comes, along |
| 586 | some κ, from the universal point of such a chart that has coordinates with a unit entry. -/ |
| 587 | lemma IsCoordsWithUnit.exists_chart_coords (hK : IsField A) {d : ℕ} |
| 588 | [IsChartCovered d (algPointsOf k R Y)] : |
| 589 | ∃ (c : EtaleChart d (algPointsOf k R Y)) (κ : c.coordRing ⟶ A) (w : ι → c.coordRing), |
| 590 | PointsIn.map κ c.point = x ∧ IsCoordsWithUnit L c.point w := by |
| 591 | -- `x` lands in some `L.opens i`. Shrink a chart around `x` into that open set; there the |
| 592 | -- functions `L.transition i j` are homogeneous coordinates whose `i`-th entry is a unit. |
| 593 | let fieldA : Field A := hK.toField |
| 594 | obtain ⟨i, hi⟩ : ∃ i : ι, LandsIn x.down.left (L.opens i) := L.exists_landsIn x.down.left |
| 595 | -- The points that land in `L.opens i` form an open subfunctor `U`, which contains `x`. |
| 596 | let U : Subfunctor (algPointsOf k R Y) := |
| 597 | ⟨fun _ ↦ {y | LandsIn y.down.left (L.opens i)}, by tauto⟩ |
| 598 | -- Along `ψ : A ⟶ B` the point `PointsIn.map ψ y` is `Spec ψ` followed by `y`. |
| 599 | have h_map_left : ∀ (A B : CommAlg k) (ψ : A ⟶ B) (y : PointsIn Y A), |
| 600 | (PointsIn.map ψ y).down.left = specMap ψ.hom ≫ y.down.left := by tauto |
| 601 | have hU : IsOpenSubfunctor U := |
| 602 | isOpenSubfunctor_of_landsIn (fun y ↦ y.down.left) h_map_left U fun _ _ ↦ .rfl |
| 603 | obtain ⟨c, ⟨κ, hκ⟩, hc⟩ := hU.exists_mem_locus_and_point_mem hK hi |
| 604 | have h_coords : L.IsHomogeneousCoords c.point.down.left |
| 605 | (fun j : ι ↦ L.transition i j _ c.point.down.left) := |
| 606 | hL.out.isLinearSystem.isHomogeneousCoords_transition hc |
| 607 | exact ⟨c, _, fun j ↦ L.transition i j _ c.point.down.left, hκ, h_coords, i, |
| 608 | L.isUnit_transition hc hc⟩ |
| 609 | |
| 610 | variable {L x x' v} {ξ : PointsIn Y (of k F)} {g : ι → of k F} {i : ι} |
| 611 | |
| 612 | omit [Fact (L.IsProjEmbedding Y.hom)] in |
| 613 | /-- Two vectors of coordinates with a unit entry of the same point `x` differ by a unit of `A`. -/ |
| 614 | lemma IsCoordsWithUnit.exists_unit_smul_eq {w : ι → A} (hv : IsCoordsWithUnit L x v) |
| 615 | (hw : IsCoordsWithUnit L x w) : |
| 616 | ∃ u : Aˣ, u • v = w := by |
| 617 | -- The unit is `w i / v i`, for a coordinate `v i` that is a unit; `w i` is a unit too, as `x` |
| 618 | -- lands in `L.opens i`. |
| 619 | obtain ⟨hv_coords, i, hvi⟩ := hv |
| 620 | obtain ⟨hv_lands_iff, hv_transition⟩ := hv_coords i |
| 621 | obtain ⟨hw_lands_iff, hw_transition⟩ := hw.left i |
| 622 | have hwi : IsUnit (w i) := hw_lands_iff.mp (hv_lands_iff.mpr hvi) |
| 623 | refine ⟨(hvi.ringInverse.mul hwi).unit, funext fun j ↦ ?_⟩ |
| 624 | -- Both `v j / v i` and `w j / w i` are the value of the chart function `L.transition i j` at `x`. |
| 625 | have h_chart : v j * Ring.inverse (v i) = w j * Ring.inverse (w i) := |
| 626 | (hv_transition j hvi).symm.trans (hw_transition j hwi) |
| 627 | calc Ring.inverse (v i) * w i * v j = v j * Ring.inverse (v i) * w i := by ring |
| 628 | _ = w j := by rw [h_chart, Ring.inverse_mul_cancel_right _ _ hwi] |
| 629 | |
| 630 | /-- If `v` is a vector of coordinates with a unit entry of `x`, `φ : A ⟶ B` is a map of |
| 631 | `k`-algebras and `u` is a unit of `B`, then `u • φ ∘ v` is a vector of coordinates with a unit entry |
| 632 | of the image of `x` under `φ`. -/ |
| 633 | lemma IsCoordsWithUnit.map_unit_smul (hv : IsCoordsWithUnit L x v) (φ : A ⟶ B) (u : Bˣ) : |
| 634 | IsCoordsWithUnit L (x.map φ) (u • φ ∘ v) := by |
| 635 | obtain ⟨h_lifts, i, hi⟩ := hv |
| 636 | -- the coordinates map along `φ` and scale by `u`; the entry `i` stays a unit |
| 637 | have h_coords : L.IsHomogeneousCoords (x.map φ).down.left (u • φ ∘ v) := |
| 638 | (h_lifts.map hL.out.isLinearSystem hi _).smul u.isUnit |
| 639 | exact ⟨h_coords, i, u.isUnit.mul (hi.map φ.hom)⟩ |
| 640 | |
| 641 | lemma IsCoordsWithUnit.comp (h : IsCoordsWithUnit L x v) (φ : A ⟶ B) : |
| 642 | IsCoordsWithUnit L (x.map φ) (φ ∘ v) := by |
| 643 | simpa using h.map_unit_smul φ 1 |
| 644 | |
| 645 | /-- Two `A`-points of `Y` with the same vector `v` of coordinates with a unit entry are equal. -/ |
| 646 | lemma IsCoordsWithUnit.ext (h : IsCoordsWithUnit L x v) (H : IsCoordsWithUnit L x' v) : |
| 647 | x = x' := by |
| 648 | -- `L` is an embedding: two points over the base with the same coordinates agree. |
| 649 | obtain ⟨hx_coords, i, hvi⟩ := h |
| 650 | obtain ⟨hx'_coords, -⟩ := H |
| 651 | have h_base : x.down.left ≫ Y.hom = x'.down.left ≫ Y.hom := |
| 652 | (Over.w x.down).trans (Over.w x'.down).symm |
| 653 | have h_lands : LandsIn x.down.left (L.opens i) := ((hx_coords i).left).mpr hvi |
| 654 | have h_left : x.down.left = x'.down.left := |
| 655 | hL.out.eq_of_isHomogeneousCoords h_base hx_coords hx'_coords ⟨i, h_lands⟩ |
| 656 | exact ULift.down_injective (OverMorphism.ext h_left) |
| 657 | |
| 658 | /-! ### Points over a field: descent, spreading out and specialisation -/ |
| 659 | |
| 660 | variable [Finite ι] |
| 661 | |
| 662 | /-- Descent. Let ξ be a point over a field F with coordinates g, and φ : A → F injective. If |
| 663 | g = g_i φ(v) for a vector v over A, then ξ comes from a point over A with coordinates v. -/ |
| 664 | lemma IsCoordsWithUnit.exists_descend_of_injective (hξ : IsCoordsWithUnit L ξ g) (φ : A ⟶ of k F) |
| 665 | (φ_inj : Function.Injective φ) (h_coord : g i • φ ∘ v = g) : |
| 666 | ∃ x : PointsIn Y A, IsCoordsWithUnit L x v ∧ ξ = x.map φ := by |
| 667 | -- View `Y` as a closed subscheme of projective space. The vector `v` gives a point `t` of |
| 668 | -- projective space over `A` with image `ξ` under `φ`; as `φ` is injective, `t` lies in `Y`. |
| 669 | -- Some entry `g l = g i * φ (v l)` is a unit, so `g i` is a unit; then `g i * φ (v i) = g i` |
| 670 | -- gives `v i = 1`. |
| 671 | obtain ⟨l, hgl_unit⟩ : ∃ l : ι, IsUnit (g l) := hξ.right |
| 672 | have hgi_unit : IsUnit (g i) := by |
| 673 | rw [← congrFun h_coord l] at hgl_unit |
| 674 | exact isUnit_of_mul_isUnit_left hgl_unit |
| 675 | have hvi : v i = 1 := |
| 676 | (map_eq_one_iff _ φ_inj).mp (hgi_unit.mul_eq_left.mp (congrFun h_coord i)) |
| 677 | have hv : IsUnit (v i) := by simp [hvi] |
| 678 | obtain ⟨j, _, hj, rfl⟩ := hL.out.exists_isClosedImmersion |
| 679 | obtain ⟨t, ht_over, ht⟩ := exists_isHomogeneousCoords (Opposite.unop ((specAlg k R).obj A)).hom hv |
| 680 | let q := Spec.map (CommRingCat.ofHom φ.hom.toRingHom) |
| 681 | -- `ξ` and the image of `t` both have coordinates `g` and lie over the same point of `Spec R`. |
| 682 | have h_image : ξ.down.left ≫ j = q ≫ t := by |
| 683 | have h_coords_image : LineBundle.IsHomogeneousCoords ((hyperplaneBundle ι).pull Limits.prod.fst) |
| 684 | (q ≫ t) g := |
| 685 | h_coord ▸ (ht.map (isLinearSystem_hyperplaneBundle.pull _) hv _).smul hgi_unit |
| 686 | refine isProjEmbedding_projSpace.eq_of_isHomogeneousCoords ?_ hξ.left h_coords_image |
| 687 | (LineBundle.exists_landsIn _ _) |
| 688 | let u := ((specAlg k R).map φ).unop |
| 689 | change (ξ.down.left ≫ j) ≫ Limits.prod.snd = (u.left ≫ t) ≫ Limits.prod.snd |
| 690 | calc |
| 691 | _ = ξ.down.left ≫ Y.hom := |
| 692 | (assoc ..).trans (congrArg (ξ.down.left ≫ ·) hj) |
| 693 | _ = u.left ≫ (t ≫ Limits.prod.snd) := |
| 694 | ξ.down.w.trans (u.w.symm.trans (congrArg (u.left ≫ ·) ht_over).symm) |
| 695 | _ = _ := (assoc ..).symm |
| 696 | -- Schematic dominance of `q` implies that `t` and `q ≫ t` have the same kernel ideal sheaf. |
| 697 | have : IsSchemeTheoreticallyDominant q := (isSchemeTheoreticallyDominant_SpecMap_iff _).mpr φ_inj |
| 698 | have h_ker : j.ker ≤ t.ker := by |
| 699 | rw [← q.ker_comp_of_isSchemeTheoreticallyDominant t, ← h_image] |
| 700 | exact Scheme.Hom.le_ker_comp _ _ |
| 701 | obtain ⟨x, rfl⟩ : ∃ x : Spec (CommRingCat.of A) ⟶ Y.left, x ≫ j = t := |
| 702 | ⟨IsClosedImmersion.lift j t h_ker, IsClosedImmersion.lift_fac j t h_ker⟩ |
| 703 | -- `x` lies over `Spec R`, since `x ≫ j` does |
| 704 | have h_x_over : x ≫ Y.hom = (Opposite.unop ((specAlg k R).obj A)).hom := by |
| 705 | rw [← hj, ← Category.assoc] |
| 706 | exact ht_over |
| 707 | let y : PointsIn Y A := ⟨homMk x h_x_over⟩ |
| 708 | refine ⟨y, ⟨ht, i, hv⟩, ULift.down_injective (OverMorphism.ext ?_)⟩ |
| 709 | -- The two points have the same image under the closed immersion. |
| 710 | apply (cancel_mono j).mp |
| 711 | change ξ.down.left ≫ j = (q ≫ x) ≫ j |
| 712 | rwa [Category.assoc] |
| 713 | |
| 714 | /-- Spreading out. Let ξ be a point over a field F with coordinates g, and let v_i ≠ 0 for some v |
| 715 | satisfying the homogeneous relations of g. Then there are a k-algebra D, a point y over D, a map j : |
| 716 | D → F and polynomials G_d (d ∈ D) with two properties. (a) j is injective and ξ = j(y). (b) Let w |
| 717 | over a k-algebra C satisfy the homogeneous relations of g, with w_i a unit. Then some φ : D → C has |
| 718 | φ(d) associated to G_d(w) for all d, and φ(y) has coordinates w. -/ |
| 719 | lemma IsCoordsWithUnit.exists_universal_chart (hξ : IsCoordsWithUnit L ξ g) |
| 720 | (hv : CutsOutLocus.IsHomogeneousSolution k g v) (hvi : v i ≠ 0) : |
| 721 | ∃ (D : CommAlgCat k) (y : PointsIn Y D), ∃ (j : D ⟶ of k F) (G : D → MvPolynomial ι k), |
| 722 | -- (a) |
| 723 | (Function.Injective j ∧ ξ = PointsIn.map j y) ∧ |
| 724 | -- (b) |
| 725 | ∀ {C : CommAlgCat k} {w : ι → C}, |
| 726 | CutsOutLocus.IsHomogeneousSolution k g w → |
| 727 | IsUnit (w i) → |
| 728 | ∃ φ : D ⟶ C, |
| 729 | (∀ d : D, Associated (aeval w (G d)) (φ d)) ∧ IsCoordsWithUnit L (y.map φ) w := by |
| 730 | -- `D` is the coordinate ring of the affine chart `X i = 1`: polynomials modulo those vanishing at |
| 731 | -- `(g i)⁻¹ • g`. Homogeneous relations of `g` hold for `w`, so evaluation at `(w i)⁻¹ • w` |
| 732 | -- factors through `D`. |
| 733 | have hgi : IsUnit (g i) := by simpa [hvi] using hv (isHomogeneous_X _ i) |
| 734 | -- `homog P` is homogeneous (`h_homog_deg`) and agrees with `P` under algebra maps with `X i ↦ 1` |
| 735 | -- (`h_chart`). |
| 736 | have h_homog (P : MvPolynomial ι k) : ∃ G : MvPolynomial ι k, G.IsHomogeneous P.totalDegree ∧ |
| 737 | ∀ {A : Type} [CommRing A] [Algebra k A] (φ : MvPolynomial ι k →ₐ[k] A), |
| 738 | φ (X i) = 1 → φ G = φ P := |
| 739 | exists_homogenization (isHomogeneous_X k i) P le_rfl |
| 740 | choose homog h_homog_deg h_chart using h_homog |
| 741 | -- Evaluation at `(w i)⁻¹ • w` agrees up to a unit with evaluating the homogenisation at `w`. |
| 742 | have h_eval {C : CommAlg k} {w : ι → C} (u : IsUnit (w i)) : |
| 743 | ∃ φ : MvPolynomial ι k →ₐ[k] C, |
| 744 | w i • φ ∘ X = w ∧ ∀ P, Associated ((homog P).aeval w) (φ P) := by |
| 745 | refine ⟨aeval (u.unit⁻¹.val • w), by simp [← mul_assoc, funext_iff], fun P ↦ ?_⟩ |
| 746 | simp [← h_chart P, aeval_smul_of_isHomogeneous (h_homog_deg _), associated_unit_mul_right, |
| 747 | IsUnit.pow] |
| 748 | -- (`@` keeps `C` and `w` implicit in the chosen functions) |
| 749 | choose φ hφX hφG using @h_eval |
| 750 | -- `D = k[X] / ker (φ hgi)` embeds in `F`, so `ξ` descends to `y` with coordinates `X` mod kernel. |
| 751 | obtain ⟨y, hy, hξy⟩ := |
| 752 | hξ.exists_descend_of_injective (ofHom _) (kerLiftAlg_injective (φ hgi)) (v := fun l ↦ ⟦X l⟧) |
| 753 | (hφX hgi) |
| 754 | refine ⟨.of k (MvPolynomial ι k ⧸ RingHom.ker (φ hgi)), y, ofHom (kerLiftAlg (φ hgi)), |
| 755 | fun d ↦ homog d.out, ⟨kerLiftAlg_injective _, hξy⟩, fun hw u ↦ ?_⟩ |
| 756 | have h_ker (P : MvPolynomial ι k) (hP : P ∈ RingHom.ker (φ hgi)) : φ u P = 0 := |
| 757 | (hφG u P).eq_zero_iff.mp (hw (h_homog_deg P) ((hφG hgi P).eq_zero_iff.mpr hP)) |
| 758 | refine ⟨ofHom (Quotient.liftₐ _ (φ u) h_ker), fun d ↦ ?_, ?_⟩ |
| 759 | · conv_rhs => rw [← Quotient.out_eq d] |
| 760 | exact hφG u d.out |
| 761 | · -- The image of `y` has coordinates `w i • φ u ∘ X = w`. (`rw` cannot replace `w` here, as |
| 762 | -- `φ u` depends on it.) |
| 763 | exact (hφX u).subst (hy.map_unit_smul _ u.unit) |
| 764 | |
| 765 | /-- Let `Y` be a scheme over `Spec R` with a line bundle `L` embedding it in projective space, and |
| 766 | let `k` be an algebraically closed `R`-algebra. Let `ξ` be an `F`-point of `Y` over a field `F ⊇ k` |
| 767 | with `L`-coordinates `g`, one of them a unit, and let `f` be a map from the functor `A ↦ Y(A)` on |
| 768 | `k`-algebras to the affine line. Then there is `c ∈ k` such that `f(x) = c` for every point |
| 769 | `x ∈ Y(A)` over a nonzero `k`-algebra `A` whose `L`-coordinates `v` have a unit entry and lie on the |
| 770 | cone of `g`, i.e. every homogeneous polynomial over `k` vanishing at `g` vanishes at `v`. -/ |
| 771 | lemma IsCoordsWithUnit.exists_app_eq_algebraMap_of_isHomogeneousSolution |
| 772 | (hξ : IsCoordsWithUnit L ξ g) [IsAlgClosed k] (f : algPointsOf k R Y ⟶ affineSpace k 1) : |
| 773 | ∃ c : k, ∀ {A : CommAlg k} [Nontrivial A] {x : PointsIn Y A} {v : ι → A}, |
| 774 | IsCoordsWithUnit L x v → |
| 775 | CutsOutLocus.IsHomogeneousSolution k g v → (f A x).down 0 = algebraMap k A c := by |
| 776 | have h_nonempty : Nonempty ι := hξ.right.nonempty |
| 777 | have h_f_map {A B : CommAlg k} (φ : A ⟶ B) (y : PointsIn Y A) : |
| 778 | (f.app B (PointsIn.map φ y)).down 0 = φ ((f.app A y).down 0) := |
| 779 | congrArg (fun a ↦ a.down 0) (f.naturality_apply φ y) |
| 780 | -- The value at `ξ` lies in every valuation ring `V` over `k`: dividing by the coordinate of |
| 781 | -- largest valuation shows that `ξ` comes from a point over `V`. So it is integral over `k`. |
| 782 | have h_integral : (algebraMap k F).IsIntegralElem ((f.app _ ξ).down 0) := by |
| 783 | refine (RingHom.isIntegralElem_iff_forall_valuationSubring _ _).2 fun V hV ↦ ?_ |
| 784 | have h_max : ∃ i : ι, ∀ l : ι, ∃ x : V, x • g i = g l := Finite.exists_max (V.valuation ∘ g) |
| 785 | choose i w hw using h_max |
| 786 | -- the inclusion of `V`, as a subalgebra of `F` |
| 787 | let toF : of k (⟨V.toSubsemiring, hV⟩ : Subalgebra k F) ⟶ of k F := |
| 788 | ofHom (Subalgebra.val ⟨V.toSubsemiring, hV⟩) |
| 789 | have h_scaled : g i • ⇑toF ∘ w = g := funext fun l ↦ (mul_comm _ _).trans (hw l) |
| 790 | obtain ⟨y, -, rfl⟩ := hξ.exists_descend_of_injective toF Subtype.val_injective h_scaled |
| 791 | rw [h_f_map] |
| 792 | exact Subtype.prop _ |
| 793 | -- As `k` is algebraically closed, this value is a constant `c`. |
| 794 | obtain ⟨c, hc⟩ : ∃ c, algebraMap k F c = (f.app _ ξ).down 0 := |
| 795 | IsAbsIntegrallyClosed.mem_range_of_isIntegralElem h_integral |
| 796 | refine ⟨c, fun {A} _ {x v} hx hv ↦ ?_⟩ |
| 797 | -- Both `ξ` and `x` are images of one point `y` over `D`, and `j : D ⟶ F` is injective. |
| 798 | obtain ⟨i, hvi⟩ : ∃ i : ι, IsUnit (v i) := hx.right |
| 799 | obtain ⟨D, y, j, G, ⟨j_inj, rfl⟩, h_spec⟩ := hξ.exists_universal_chart hv hvi.ne_zero |
| 800 | obtain ⟨φ, -, hφ⟩ := h_spec hv hvi |
| 801 | have h_f_y : (f.app D y).down 0 = algebraMap k D c := |
| 802 | j_inj ((h_f_map j y).symm.trans <| hc.symm.trans (j.hom.commutes c).symm) |
| 803 | rw [hx.ext hφ, h_f_map, h_f_y] |
| 804 | exact φ.hom.commutes c |
| 805 | |
| 806 | /-- Let ξ be a point over a field F with coordinates g, lying in an open subfunctor V. Some |
| 807 | polynomial b with b(g) ≠ 0 has the property: every w that satisfies the homogeneous relations |
| 808 | of g and makes b(w) a unit is a vector of coordinates of a point of V. -/ |
| 809 | lemma IsCoordsWithUnit.exists_mem_open_of_isUnit (hξ : IsCoordsWithUnit L ξ g) |
| 810 | {V : Subfunctor (algPointsOf k R Y)} (hV : IsOpenSubfunctor V) (hξV : ξ ∈ V (of k F)) : |
| 811 | ∃ b : MvPolynomial ι k, |
| 812 | aeval g b ≠ 0 ∧ |
| 813 | ∀ {C : CommAlg k} {w : ι → C}, |
| 814 | CutsOutLocus.IsHomogeneousSolution k g w → |
| 815 | IsUnit (aeval w b) → |
| 816 | ∃ z ∈ V C, IsCoordsWithUnit L z w := by |
| 817 | -- Spread `ξ` out to a point `z` over a subalgebra `D` of `F`; openness of `V` gives `b ∈ D` whose |
| 818 | -- invertibility forces the specialisations of `z` into `V`. Take the polynomial `G b * X i`. |
| 819 | obtain ⟨i, hi⟩ : ∃ i : ι, IsUnit (g i) := hξ.right |
| 820 | obtain ⟨D, z, -, G, -, h_spec⟩ := hξ.exists_universal_chart .refl hi.ne_zero |
| 821 | -- `z` specialises to `ξ` itself along `φ₀`, so this specialisation lies in `V` |
| 822 | obtain ⟨φ₀, hφ₀, h_gen⟩ := h_spec .refl hi |
| 823 | have h_eq : z.map φ₀ = ξ := h_gen.ext hξ |
| 824 | have hz : z.map φ₀ ∈ V.obj _ := by rwa [h_eq] |
| 825 | obtain ⟨b, hb, h_open⟩ := hV.exists_basicOpen φ₀ z (Field.toIsField _) hz |
| 826 | refine ⟨G b * X i, ?_, fun hw h_unit ↦ ?_⟩ |
| 827 | · have h_Gb : aeval g (G b) ≠ 0 := (hφ₀ b).ne_zero_iff.mpr hb |
| 828 | simpa using mul_ne_zero h_Gb hi.ne_zero |
| 829 | · rw [map_mul, aeval_X, IsUnit.mul_iff] at h_unit |
| 830 | obtain ⟨h_Gb_unit, h_wi_unit⟩ := h_unit |
| 831 | obtain ⟨φ, hφ, h_coord⟩ := h_spec hw h_wi_unit |
| 832 | exact ⟨z.map φ, h_open _ φ ((hφ b).isUnit h_Gb_unit), h_coord⟩ |
| 833 | |
| 834 | end New.Variety |