File size: 4,347 Bytes
4a56cd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import OAI.AlgebraicGeometry.ComplexPoints.OpenIntegralMap
import Mathlib.RingTheory.NoetherNormalization
import Mathlib.RingTheory.Polynomial.UniqueFactorization
import Mathlib.RingTheory.Polynomial.RationalRoot
import Mathlib.Analysis.Analytic.Polynomial
import Mathlib.Analysis.Analytic.Uniqueness
import Mathlib.Algebra.MvPolynomial.Funext

/-! # Affine Density -/

namespace OAI.AlgebraicGeometry.ComplexPoints.AffineDensity.ClosednessConstruction

/-! Closedness: analytic density of principal open subsets of affine complex varieties. -/

open Set _root_.Polynomial
open scoped _root_.Topology

/-- A nonzero complex multivariate polynomial has analytically dense nonvanishing locus. -/
theorem dense_polynomial_nonzero {n : β„•} (p : MvPolynomial (Fin n) β„‚) (hp : p β‰  0) :
    Dense {x : Fin n β†’ β„‚ | MvPolynomial.eval x p β‰  0} := by
  intro x
  rw [mem_closure_iff]
  intro U hU hx
  by_contra hn
  have hzero : (fun y => MvPolynomial.eval y p) =αΆ [𝓝 x] 0 := by
    filter_upwards [hU.mem_nhds hx] with y hy
    by_contra h
    exact hn ⟨y, hy, h⟩
  have ha : AnalyticOnNhd β„‚ (fun y : Fin n β†’ β„‚ => MvPolynomial.eval y p) univ :=
    AnalyticOnNhd.eval_continuousLinearMap (ContinuousLinearMap.id β„‚ (Fin n β†’ β„‚)) p
  have he := ha.eqOn_zero_of_preconnected_of_eventuallyEq_zero
    isPreconnected_univ (mem_univ x) hzero
  apply hp
  apply MvPolynomial.funext
  intro y
  simpa using he (mem_univ y)

theorem dense_polynomial_character_nonzero {n : β„•}
    (p : MvPolynomial (Fin n) β„‚) (hp : p β‰  0) :
    Dense {x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints (MvPolynomial (Fin n) β„‚) | x p β‰  0} := by
  have h := (dense_polynomial_nonzero p hp).preimage
    (ComplexPoints.Analytic.PolynomialEvaluation.polynomialPointHomeomorph (Fin n)).isOpenMap
  change Dense {x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints (MvPolynomial (Fin n) β„‚) |
    MvPolynomial.eval (ComplexPoints.Analytic.PolynomialEvaluation.polynomialPointEquiv (Fin n) x) p β‰  0} at h
  simpa only [ComplexPoints.Analytic.PolynomialEvaluation.polynomialPointEquiv_eval] using h

/-- For an integral nonzero element in a domain extension, the constant
coefficient of its minimal polynomial is nonzero. -/
theorem integral_minpoly_constant_ne_zero
    {R B : Type*} [CommRing R] [CommRing B] [IsDomain R] [IsDomain B]
    [Algebra R B] (b : B) (hb : IsIntegral R b) (hb0 : b β‰  0) :
    (minpoly R b).coeff 0 β‰  0 := by
  intro h
  have hd : minpoly R b ∣ (X : R[X]) :=
    irreducible_X.dvd_symm (minpoly.irreducible hb) (X_dvd_iff.mpr h)
  have he := Polynomial.aeval_eq_zero_of_dvd_aeval_eq_zero hd (minpoly.aeval R b)
  exact hb0 (by simpa using he)

/-- Every nonempty principal open in an integral finite-type complex affine
scheme is dense in the ordinary analytic topology. -/
theorem dense_affine_principal_open
    {B : Type*} [CommRing B] [Algebra β„‚ B] [IsDomain B] [Algebra.FiniteType β„‚ B]
    (b : B) (hb0 : b β‰  0) : Dense {x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints B | x b β‰  0} := by
  obtain ⟨n, f, hinj, hint⟩ := exists_integral_inj_algHom_of_fg β„‚ B
  let R := MvPolynomial (Fin n) β„‚
  let : Algebra R B := f.toAlgebra
  let : IsScalarTower β„‚ R B := IsScalarTower.of_algHom f
  let : Algebra.IsIntegral R B := ⟨hint⟩
  let : Module.IsTorsionFree R B :=
    (Module.isTorsionFree_iff_algebraMap_injective).mpr hinj
  have hb : IsIntegral R b := Algebra.IsIntegral.isIntegral b
  let c : R := (minpoly R b).coeff 0
  have hc : c β‰  0 := integral_minpoly_constant_ne_zero b hb hb0
  have hbase := dense_polynomial_character_nonzero c hc
  have hopen : IsOpenMap (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.comap f) := OpenIntegralMap.ClosednessConstruction.normal_integral_comap_isOpenMap (R := R) (B := B)
  apply (hbase.preimage hopen).mono
  intro x hx
  change Foundations.Scheme.AffineComplexPoints.affineComplexPoints.comap f x c β‰  0 at hx
  intro hxb
  apply hx
  have h := congrArg x.toRingHom (minpoly.aeval R b)
  change x.toRingHom ((minpoly R b).evalβ‚‚ f.toRingHom b) = x.toRingHom 0 at h
  rw [Polynomial.hom_evalβ‚‚] at h
  change x.toRingHom b = 0 at hxb
  rw [hxb, Polynomial.evalβ‚‚_at_zero, x.toRingHom.map_zero] at h
  exact h

end OAI.AlgebraicGeometry.ComplexPoints.AffineDensity.ClosednessConstruction