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.Divisors.LineBundles.Polynomial.ZeroMultiplicity |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.AffineLine.ZeroLocus |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.DivisorRestriction |
| 4 | |
| 5 | /-! # Zero Divisor -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.AffineLine.ZeroDivisor.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # LineBundleCycles: the global coordinate divisor is the reduced zero section with coefficient one -/ |
| 12 | |
| 13 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 14 | |
| 15 | variable (X : Scheme.{0}) [IsIntegral X] |
| 16 | |
| 17 | theorem affineLineCoordinate_ne_zero : Space.BundleCycles.affineLineCoordinate X ≠ 0 := by |
| 18 | let x : X := genericPoint X |
| 19 | obtain ⟨U, hU, hx, _⟩ := exists_isAffineOpen_mem_and_subset (Opens.mem_top x) |
| 20 | let V : X.affineOpens := ⟨U, hU⟩ |
| 21 | have : Nonempty U := ⟨⟨x, hx⟩⟩ |
| 22 | intro h |
| 23 | apply Polynomial.ZeroMultiplicity.BundleCycles.polynomialCoordinateSection_ne_zero Γ(X, U) |
| 24 | exact (Space.BundleCycles.affineLineCoordinate_on_chart X V).symm.trans |
| 25 | ((congrArg (Charts.BundleCycles.affineLinePolynomialChart X V).appTop h).trans (map_zero _)) |
| 26 | |
| 27 | theorem affineLineZeroPrime_on_chart (U : X.affineOpens) [Nonempty U.1] : |
| 28 | Charts.BundleCycles.affineLinePolynomialChart X U (Polynomial.ZeroPrime.BundleCycles.polynomialZeroPrime Γ(X, U.1)) = Space.BundleCycles.affineLineZeroSection X (genericPoint X) := by |
| 29 | have h := congrArg (fun k => k (genericPoint (Spec Γ(X, U.1)))) |
| 30 | (ZeroLocus.BundleCycles.affineLineZeroSection_chart_isPullback X U).w |
| 31 | exact h.symm.trans (congrArg (Space.BundleCycles.affineLineZeroSection X) (genericPoint_eq_of_isOpenImmersion U.2.fromSpec)) |
| 32 | |
| 33 | variable [AlgebraicGeometry.IsNoetherian X] |
| 34 | |
| 35 | theorem affineLineZeroDivisor_eq_single : |
| 36 | RegularDivisor.BundleCycles.regularFunctionDivisor (Charts.BundleCycles.affineLine X) (Space.BundleCycles.affineLineCoordinate X) = |
| 37 | Finsupp.single (Space.BundleCycles.affineLineZeroSection X (genericPoint X)) 1 := by |
| 38 | ext y |
| 39 | obtain ⟨U, P, rfl⟩ := Charts.BundleCycles.affineLinePolynomialChart_covers X y |
| 40 | have hu : U.2.fromSpec (Polynomial.Projection.BundleCycles.polynomialProjection Γ(X, U.1) P) ∈ (U.1 : Set X) := |
| 41 | U.2.range_fromSpec ▸ Set.mem_range_self (Polynomial.Projection.BundleCycles.polynomialProjection Γ(X, U.1) P) |
| 42 | have : Nonempty U.1 := ⟨⟨_, hu⟩⟩ |
| 43 | have h := DivisorRestriction.BundleCycles.regularFunctionDivisor_openImmersion (Charts.BundleCycles.affineLinePolynomialChart X U) |
| 44 | (Space.BundleCycles.affineLineCoordinate X) (affineLineCoordinate_ne_zero X) P |
| 45 | rw [Space.BundleCycles.affineLineCoordinate_on_chart, Polynomial.ZeroMultiplicity.BundleCycles.polynomialZeroDivisor_eq_single] at h |
| 46 | rw [← h, ← affineLineZeroPrime_on_chart X U] |
| 47 | have hm := Finsupp.mapDomain_apply_of_injective (Charts.BundleCycles.affineLinePolynomialChart X U).isOpenEmbedding.injective |
| 48 | (Finsupp.single (Polynomial.ZeroPrime.BundleCycles.polynomialZeroPrime Γ(X, U.1)) (1 : ℤ)) P |
| 49 | simpa only [Finsupp.mapDomain_single] using hm.symm |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.Divisors.LineBundles.AffineLine.ZeroDivisor.BundleCycles |