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.AffineDensity |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.AffineOpenSmooth |
| 3 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.SchemeAffineCover |
| 4 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.SchemeImmersionPointTopology |
| 5 | import Mathlib.RingTheory.Spectrum.Prime.Topology |
| 6 | import Mathlib.Topology.Irreducible |
| 7 | |
| 8 | /-! # Analytic Open Density -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.AnalyticOpenDensity |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! A nonempty open set in the actual analytic points of a smooth |
| 15 | integral complex scheme is Zariski dense. The argument uses density of |
| 16 | affine principal opens, with the original section-algebra characters. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry Set OAI.AlgebraicGeometry.Foundations.Scheme.AffineOpenSmooth |
| 19 | |
| 20 | theorem finiteTypeDomain_ideal_eq_bot_of_open_characters |
| 21 | {A : Type*} [CommRing A] [Algebra ℂ A] [IsDomain A] [Algebra.FiniteType ℂ A] |
| 22 | (I : Ideal A) (U : Set (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A)) (hU : IsOpen U) (hUn : U.Nonempty) |
| 23 | (hvan : ∀ x ∈ U, ∀ a ∈ I, x a = 0) : I = ⊥ := by |
| 24 | apply le_antisymm _ bot_le |
| 25 | intro a ha |
| 26 | change a = 0 |
| 27 | by_contra hane |
| 28 | obtain ⟨x, hx⟩ := hUn |
| 29 | have hd := ComplexPoints.AffineDensity.ClosednessConstruction.dense_affine_principal_open a hane |
| 30 | obtain ⟨y, hy, hya⟩ := mem_closure_iff.mp (hd x) U hU hx |
| 31 | exact hya (hvan y hy a ha) |
| 32 | |
| 33 | theorem smoothIntegral_closed_eq_univ_of_analytic_open |
| 34 | (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) [IsIntegral X.left] [Smooth X.hom] |
| 35 | (U : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) (hU : IsOpen U) (hUn : U.Nonempty) |
| 36 | (C : Set X.left) (hC : IsClosed C) |
| 37 | (hUC : ∀ x ∈ U, ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying x ∈ C) : C = univ := by |
| 38 | obtain ⟨x, hx⟩ := hUn |
| 39 | obtain ⟨V, hV, ψ, hψ⟩ := ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.exists_affineOpenPoint_lift X x |
| 40 | have hxV : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying x ∈ V := by |
| 41 | have hr : x ∈ range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X V hV) := ⟨ψ, hψ⟩ |
| 42 | rw [ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.range_affineOpenPointMap] at hr |
| 43 | exact hr |
| 44 | let : Nonempty V := ⟨⟨ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying x, hxV⟩⟩ |
| 45 | let A := ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X V |
| 46 | let : IsDomain A := ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra_isDomain X V |
| 47 | let : Algebra.Smooth ℂ A := ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra_smooth X V hV |
| 48 | let g : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ A ⟶ X := ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X V hV |
| 49 | let f : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A → ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X := |
| 50 | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X V hV |
| 51 | let S : Set (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) := f ⁻¹' U |
| 52 | have hS : IsOpen S := hU.preimage |
| 53 | (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_affineOpenPointMap X V hV).continuous |
| 54 | have hSn : S.Nonempty := by |
| 55 | refine ⟨ψ, ?_⟩ |
| 56 | change ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X V hV ψ ∈ U |
| 57 | rwa [hψ] |
| 58 | let C' : Set (PrimeSpectrum A) := g.left ⁻¹' C |
| 59 | have hC' : IsClosed C' := hC.preimage g.left.continuous |
| 60 | let I : Ideal A := PrimeSpectrum.vanishingIdeal C' |
| 61 | have hI : I = ⊥ := by |
| 62 | apply finiteTypeDomain_ideal_eq_bot_of_open_characters I S hS hSn |
| 63 | intro χ hχ a ha |
| 64 | have hpoint : Foundations.Scheme.AffineComplexPoints.affineComplexPoints.toPrimeSpectrum χ ∈ C' := by |
| 65 | have h := hUC (f χ) hχ |
| 66 | change ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affinePointMap A g χ) ∈ C at h |
| 67 | rw [ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying_affinePointMap] at h |
| 68 | exact h |
| 69 | change a ∈ (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.toPrimeSpectrum χ).asIdeal |
| 70 | exact (PrimeSpectrum.mem_vanishingIdeal C' a).mp ha _ hpoint |
| 71 | have hC'eq : C' = univ := by |
| 72 | calc |
| 73 | C' = closure C' := hC'.closure_eq.symm |
| 74 | _ = PrimeSpectrum.zeroLocus (I : Set A) := |
| 75 | (PrimeSpectrum.zeroLocus_vanishingIdeal_eq_closure C').symm |
| 76 | _ = univ := by rw [hI]; exact PrimeSpectrum.zeroLocus_bot |
| 77 | have hVC : (V : Set X.left) ⊆ C := by |
| 78 | intro y hy |
| 79 | have hr : y ∈ range g.left := by |
| 80 | change y ∈ range hV.fromSpec |
| 81 | rw [hV.range_fromSpec] |
| 82 | exact hy |
| 83 | obtain ⟨p, rfl⟩ := hr |
| 84 | have hp : p ∈ C' := by rw [hC'eq]; trivial |
| 85 | exact hp |
| 86 | apply Set.eq_univ_of_forall |
| 87 | intro y |
| 88 | exact (closure_minimal hVC hC) ((V.isOpen.dense ⟨_, hxV⟩) y) |
| 89 | |
| 90 | theorem analytic_open_eq_univ_of_closed_image |
| 91 | {X Y Z : Over Foundations.Scheme.ProjectiveSpace.complexBase} [IsIntegral X.left] [Smooth X.hom] |
| 92 | (f : X ⟶ Y) [IsImmersion f.left] |
| 93 | (j : Z ⟶ Y) [IsClosedImmersion j.left] |
| 94 | (U : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) (hU : IsOpen U) (hUn : U.Nonempty) |
| 95 | (himage : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f '' U = range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map j)) : |
| 96 | U = univ := by |
| 97 | let C : Set X.left := f.left ⁻¹' range j.left |
| 98 | have hC : IsClosed C := j.left.isClosedEmbedding.isClosed_range.preimage f.left.continuous |
| 99 | have hUC : ∀ x ∈ U, ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying x ∈ C := by |
| 100 | intro x hx |
| 101 | have h : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f x ∈ range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map j) := |
| 102 | himage ▸ ⟨x, hx, rfl⟩ |
| 103 | rw [ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.range_map_of_isImmersion j] at h |
| 104 | change ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f x) ∈ range j.left at h |
| 105 | rw [ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying_map] at h |
| 106 | exact h |
| 107 | have hCall : C = univ := smoothIntegral_closed_eq_univ_of_analytic_open X U hU hUn C hC hUC |
| 108 | apply Set.eq_univ_of_forall |
| 109 | intro x |
| 110 | have hxC : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying x ∈ C := by rw [hCall]; trivial |
| 111 | have hxj : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f x ∈ range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map j) := by |
| 112 | rw [ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.range_map_of_isImmersion j] |
| 113 | change ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f x) ∈ range j.left |
| 114 | rw [ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying_map] |
| 115 | exact hxC |
| 116 | rw [← himage] at hxj |
| 117 | obtain ⟨y, hy, he⟩ := hxj |
| 118 | have hxy : y = x := (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.isEmbedding_map_of_isImmersion f).injective he |
| 119 | exact hxy ▸ hy |
| 120 | |
| 121 | end |
| 122 | |
| 123 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.AnalyticOpenDensity |