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.AffinePointMaps |
| 2 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.PolynomialZeroLocus |
| 3 | import Mathlib.Topology.ContinuousOn |
| 4 | |
| 5 | /-! # Principal Open -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry |
| 8 | |
| 9 | /-! |
| 10 | # Principal open subsets of ordinary affine complex points |
| 11 | |
| 12 | Nonvanishing loci of regular functions are open for the evaluation topology. |
| 13 | Their intersections and inverse images have the expected algebraic formulas. |
| 14 | Functions generating the unit ideal give an open cover, on which continuity |
| 15 | can be checked locally. These are genuine subsets of the complex-character |
| 16 | space, with its ordinary topology. |
| 17 | -/ |
| 18 | |
| 19 | universe u v w |
| 20 | |
| 21 | variable {A : Type u} [CommRing A] [Algebra ℂ A] |
| 22 | |
| 23 | /-- The principal open subset of complex characters where a regular function is nonzero. -/ |
| 24 | def Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen (a : A) : Set (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) := {x | x a ≠ 0} |
| 25 | |
| 26 | @[simp] |
| 27 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.mem_principalOpen (a : A) (x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) : |
| 28 | x ∈ Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen a ↔ x a ≠ 0 := Iff.rfl |
| 29 | |
| 30 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isOpen_principalOpen (a : A) : IsOpen (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen a) := |
| 31 | Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isOpen_nonzeroSet a |
| 32 | |
| 33 | @[simp] |
| 34 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen_zero : Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen (0 : A) = ∅ := by |
| 35 | ext x |
| 36 | simp [Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen] |
| 37 | |
| 38 | @[simp] |
| 39 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen_one : Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen (1 : A) = Set.univ := by |
| 40 | ext x |
| 41 | simp [Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen] |
| 42 | |
| 43 | @[simp] |
| 44 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen_mul (a b : A) : |
| 45 | Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen (a * b) = Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen a ∩ Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen b := by |
| 46 | ext x |
| 47 | simp [Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen] |
| 48 | |
| 49 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen_pow (a : A) {n : ℕ} (hn : n ≠ 0) : |
| 50 | Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen (a ^ n) = Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen a := by |
| 51 | ext x |
| 52 | simp [Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen, hn] |
| 53 | |
| 54 | @[simp] |
| 55 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen_neg (a : A) : Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen (-a) = Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen a := by |
| 56 | ext x |
| 57 | simp [Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen] |
| 58 | |
| 59 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen_add_subset (a b : A) : |
| 60 | Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen (a + b) ⊆ Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen a ∪ Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen b := by |
| 61 | intro x hx |
| 62 | by_contra h |
| 63 | have hz : x a = 0 ∧ x b = 0 := by |
| 64 | simpa only [Set.mem_union, Foundations.Scheme.AffineComplexPoints.affineComplexPoints.mem_principalOpen, not_or, not_not] using h |
| 65 | exact hx (by simp [hz.1, hz.2]) |
| 66 | |
| 67 | /-- Pullback of a principal open is the principal open of the pulled-back function. -/ |
| 68 | @[simp] |
| 69 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.comap_preimage_principalOpen {B : Type v} [CommRing B] [Algebra ℂ B] |
| 70 | (f : A →ₐ[ℂ] B) (a : A) : |
| 71 | (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.comap f) ⁻¹' Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen a = Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen (f a) := rfl |
| 72 | |
| 73 | /-- Functions generating the unit ideal cannot all vanish at a complex point. -/ |
| 74 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.exists_mem_principalOpen_of_span_eq_top {ι : Type v} |
| 75 | (g : ι → A) (hg : Ideal.span (Set.range g) = ⊤) (x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) : |
| 76 | ∃ i, x ∈ Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen (g i) := by |
| 77 | by_contra h |
| 78 | have hz : ∀ i, x (g i) = 0 := by |
| 79 | simpa only [not_exists, Foundations.Scheme.AffineComplexPoints.affineComplexPoints.mem_principalOpen, not_not] using h |
| 80 | have hle : Ideal.span (Set.range g) ≤ RingHom.ker x.toRingHom := by |
| 81 | apply Ideal.span_le.mpr |
| 82 | rintro a ⟨i, rfl⟩ |
| 83 | exact hz i |
| 84 | have hone : (1 : A) ∈ RingHom.ker x.toRingHom := hle (by simp [hg]) |
| 85 | simp at hone |
| 86 | |
| 87 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.iUnion_principalOpen_eq_univ {ι : Type v} |
| 88 | (g : ι → A) (hg : Ideal.span (Set.range g) = ⊤) : |
| 89 | (⋃ i, Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen (g i)) = Set.univ := by |
| 90 | ext x |
| 91 | simp only [Set.mem_iUnion, Set.mem_univ, iff_true] |
| 92 | exact Foundations.Scheme.AffineComplexPoints.affineComplexPoints.exists_mem_principalOpen_of_span_eq_top g hg x |
| 93 | |
| 94 | /-- Continuity can be checked on a principal open cover from a unit-ideal generating family. -/ |
| 95 | theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.continuous_iff_principalOpen_cover {ι : Type v} {X : Type w} [TopologicalSpace X] |
| 96 | (g : ι → A) (hg : Ideal.span (Set.range g) = ⊤) (F : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A → X) : |
| 97 | Continuous F ↔ ∀ i, Continuous (fun x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen (g i) => F x.1) := by |
| 98 | constructor |
| 99 | · intro h i |
| 100 | exact h.comp continuous_subtype_val |
| 101 | · intro h |
| 102 | apply continuous_of_cover_nhds (s := fun i => Foundations.Scheme.AffineComplexPoints.affineComplexPoints.principalOpen (g i)) |
| 103 | · intro x |
| 104 | obtain ⟨i, hi⟩ := Foundations.Scheme.AffineComplexPoints.affineComplexPoints.exists_mem_principalOpen_of_span_eq_top g hg x |
| 105 | exact ⟨i, (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isOpen_principalOpen (g i)).mem_nhds hi⟩ |
| 106 | · intro i |
| 107 | exact continuousOn_iff_continuous_domRestrict.mpr (h i) |
| 108 | |
| 109 | end OAI.AlgebraicGeometry |