Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.Affine |
| 2 | import Mathlib.Topology.Algebra.MvPolynomial |
| 3 | import Mathlib.Analysis.Complex.Basic |
| 4 | import Mathlib.RingTheory.Nullstellensatz |
| 5 | |
| 6 | /-! # Polynomial Zero Locus -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry |
| 9 | |
| 10 | /-! |
| 11 | # Euclidean closedness of complex polynomial zero loci |
| 12 | |
| 13 | The topology on `ι → ℂ` is its usual product topology. In particular, when `ι` is |
| 14 | finite this is the ordinary Euclidean topology on complex affine space, not the |
| 15 | Zariski topology. The ideal zero locus below is mathlib's `MvPolynomial.zeroLocus`. |
| 16 | -/ |
| 17 | |
| 18 | variable {ι : Type*} |
| 19 | |
| 20 | /-- Every level set of a complex multivariable polynomial is Euclidean closed. -/ |
| 21 | theorem ComplexPoints.Analytic.PolynomialZeroLocus.isClosed_mvPolynomial_levelSet (p : MvPolynomial ι ℂ) (z : ℂ) : |
| 22 | IsClosed {x : ι → ℂ | MvPolynomial.eval x p = z} := |
| 23 | isClosed_eq p.continuous_eval continuous_const |
| 24 | |
| 25 | /-- The zero set of a complex multivariable polynomial is Euclidean closed. -/ |
| 26 | theorem ComplexPoints.Analytic.PolynomialZeroLocus.isClosed_mvPolynomial_zeroSet (p : MvPolynomial ι ℂ) : |
| 27 | IsClosed {x : ι → ℂ | MvPolynomial.eval x p = 0} := |
| 28 | ComplexPoints.Analytic.PolynomialZeroLocus.isClosed_mvPolynomial_levelSet p 0 |
| 29 | |
| 30 | /-- Arbitrary simultaneous polynomial equations define a Euclidean closed set. -/ |
| 31 | theorem ComplexPoints.Analytic.PolynomialZeroLocus.isClosed_mvPolynomial_commonZeroSet (S : Set (MvPolynomial ι ℂ)) : |
| 32 | IsClosed {x : ι → ℂ | ∀ p ∈ S, MvPolynomial.eval x p = 0} := by |
| 33 | have hset : {x : ι → ℂ | ∀ p ∈ S, MvPolynomial.eval x p = 0} = |
| 34 | ⋂ p ∈ S, {x : ι → ℂ | MvPolynomial.eval x p = 0} := by |
| 35 | ext x |
| 36 | simp only [Set.mem_ofPred_eq, Set.mem_iInter] |
| 37 | rw [hset] |
| 38 | exact isClosed_biInter fun p _ => ComplexPoints.Analytic.PolynomialZeroLocus.isClosed_mvPolynomial_zeroSet p |
| 39 | |
| 40 | /-- Mathlib's affine algebraic zero locus is also closed for the Euclidean topology. -/ |
| 41 | theorem ComplexPoints.Analytic.PolynomialZeroLocus.isClosed_mvPolynomial_zeroLocus (I : Ideal (MvPolynomial ι ℂ)) : |
| 42 | IsClosed (MvPolynomial.zeroLocus ℂ I) := by |
| 43 | simpa only [MvPolynomial.zeroLocus, MvPolynomial.aeval_eq_eval, SetLike.mem_coe] using |
| 44 | ComplexPoints.Analytic.PolynomialZeroLocus.isClosed_mvPolynomial_commonZeroSet (I : Set (MvPolynomial ι ℂ)) |
| 45 | |
| 46 | /-- Replacing equations by their generated ideal gives the same Euclidean zero set. -/ |
| 47 | theorem ComplexPoints.Analytic.PolynomialZeroLocus.mvPolynomial_zeroLocus_span_eq (S : Set (MvPolynomial ι ℂ)) : |
| 48 | MvPolynomial.zeroLocus ℂ (Ideal.span S) = |
| 49 | {x : ι → ℂ | ∀ p ∈ S, MvPolynomial.eval x p = 0} := by |
| 50 | simpa only [MvPolynomial.aeval_eq_eval] using MvPolynomial.zeroLocus_span (K := ℂ) S |
| 51 | |
| 52 | /-- A polynomial's nonvanishing locus is open in ordinary complex affine space. -/ |
| 53 | theorem ComplexPoints.Analytic.PolynomialZeroLocus.isOpen_mvPolynomial_nonzeroSet (p : MvPolynomial ι ℂ) : |
| 54 | IsOpen {x : ι → ℂ | MvPolynomial.eval x p ≠ 0} := |
| 55 | (ComplexPoints.Analytic.PolynomialZeroLocus.isClosed_mvPolynomial_zeroSet p).isOpen_compl |
| 56 | |
| 57 | /-- Continuous coordinate maps pull polynomial equations back to closed sets. -/ |
| 58 | theorem ComplexPoints.Analytic.PolynomialZeroLocus.isClosed_mvPolynomial_commonZeroSet_preimage {X : Type*} [TopologicalSpace X] |
| 59 | (f : X → ι → ℂ) (hf : Continuous f) (S : Set (MvPolynomial ι ℂ)) : |
| 60 | IsClosed {x : X | ∀ p ∈ S, MvPolynomial.eval (f x) p = 0} := |
| 61 | (ComplexPoints.Analytic.PolynomialZeroLocus.isClosed_mvPolynomial_commonZeroSet S).preimage hf |
| 62 | |
| 63 | variable {A : Type*} [CommRing A] [Algebra ℂ A] |
| 64 | |
| 65 | /-- The zero set of a regular function on affine complex points is closed. -/ |
| 66 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isClosed_zeroSet (a : A) : |
| 67 | IsClosed {x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A | x a = 0} := |
| 68 | isClosed_eq (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.continuous_eval a) continuous_const |
| 69 | |
| 70 | /-- Arbitrary regular-function equations define a closed set of affine complex points. -/ |
| 71 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isClosed_commonZeroSet (S : Set A) : |
| 72 | IsClosed {x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A | ∀ a ∈ S, x a = 0} := by |
| 73 | have hset : {x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A | ∀ a ∈ S, x a = 0} = |
| 74 | ⋂ a ∈ S, {x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A | x a = 0} := by |
| 75 | ext x |
| 76 | simp only [Set.mem_ofPred_eq, Set.mem_iInter] |
| 77 | rw [hset] |
| 78 | exact isClosed_biInter fun a _ => Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isClosed_zeroSet a |
| 79 | |
| 80 | /-- The points whose characters kill a fixed ideal form a closed set. -/ |
| 81 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isClosed_zeroLocus (I : Ideal A) : |
| 82 | IsClosed {x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A | I ≤ RingHom.ker x.toRingHom} := by |
| 83 | have hset : {x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A | I ≤ RingHom.ker x.toRingHom} = |
| 84 | {x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A | ∀ a ∈ (I : Set A), x a = 0} := by |
| 85 | ext x |
| 86 | constructor |
| 87 | · intro hx a ha |
| 88 | exact hx ha |
| 89 | · intro hx a ha |
| 90 | exact hx a ha |
| 91 | rw [hset] |
| 92 | exact Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isClosed_commonZeroSet (I : Set A) |
| 93 | |
| 94 | /-- Principal nonvanishing loci are open for the ordinary affine-point topology. -/ |
| 95 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isOpen_nonzeroSet (a : A) : |
| 96 | IsOpen {x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A | x a ≠ 0} := |
| 97 | (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isClosed_zeroSet a).isOpen_compl |
| 98 | |
| 99 | end OAI.AlgebraicGeometry |