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 Mathlib.RingTheory.Jacobson.Ring |
| 2 | import Mathlib.RingTheory.Localization.Away.AdjoinRoot |
| 3 | import Mathlib.FieldTheory.IsAlgClosed.Basic |
| 4 | |
| 5 | /-! # Closed Points -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.ClosedPoints |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # Algebraic closed points avoiding a nonzero function |
| 12 | |
| 13 | This is a supporting algebraic lemma for preserving the original integral-group |
| 14 | scope when constructing its geometric endomorphism algebra. |
| 15 | -/ |
| 16 | |
| 17 | variable {K A : Type*} [Field K] [IsAlgClosed K] |
| 18 | [CommRing A] [IsDomain A] [Algebra K A] [Algebra.FiniteType K A] |
| 19 | |
| 20 | /-- A nonzero regular function on a finite-type integral algebra over an algebraically |
| 21 | closed field is nonzero at some actual rational point. -/ |
| 22 | theorem exists_algHom_ne_zero (c : A) (hc : c ≠ 0) : |
| 23 | ∃ f : A →ₐ[K] K, f c ≠ 0 := by |
| 24 | let S := Localization.Away c |
| 25 | let : IsDomain S := Localization.Away.isDomain hc |
| 26 | let : Algebra.FiniteType K S := Algebra.FiniteType.trans |
| 27 | (inferInstance : Algebra.FiniteType K A) (inferInstance : Algebra.FiniteType A S) |
| 28 | obtain ⟨I, hI⟩ := Ideal.exists_maximal S |
| 29 | let := hI |
| 30 | let : Field (S ⧸ I) := Ideal.Quotient.field I |
| 31 | let : Module.Finite K (S ⧸ I) := finite_of_finite_type_of_isJacobsonRing K (S ⧸ I) |
| 32 | let q : S →ₐ[K] K := (IsAlgClosed.lift : (S ⧸ I) →ₐ[K] K).comp (Ideal.Quotient.mkₐ K I) |
| 33 | let f : A →ₐ[K] K := q.comp (IsScalarTower.toAlgHom K A S) |
| 34 | refine ⟨f, ?_⟩ |
| 35 | exact ((IsLocalization.Away.algebraMap_isUnit c (S := S)).map q.toRingHom).ne_zero |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.AlgebraicGeometry.ComplexMultiplication.ClosedPoints |