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.QuasiFinite.Basic |
| 2 | import Mathlib.RingTheory.DedekindDomain.PID |
| 3 | import Mathlib.RingTheory.LocalRing.MaximalIdeal.Basic |
| 4 | |
| 5 | /-! # Semilocal PID -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SemilocalPID |
| 8 | |
| 9 | /-! A finite Dedekind algebra over a local ring is semilocal, hence a PID. |
| 10 | This applies to finite normalizations of one-dimensional local domains. -/ |
| 11 | |
| 12 | theorem finite_maximalIdeals (R S : Type*) [CommRing R] [CommRing S] |
| 13 | [IsLocalRing R] [Algebra R S] [Module.Finite R S] : |
| 14 | {P : Ideal S | P.IsMaximal}.Finite := by |
| 15 | apply (Algebra.QuasiFinite.finite_primesOver (R := R) (S := S) |
| 16 | (IsLocalRing.maximalIdeal R)).subset |
| 17 | intro P hP |
| 18 | let : P.IsMaximal := hP |
| 19 | have hunder : P.under R = IsLocalRing.maximalIdeal R := |
| 20 | IsLocalRing.eq_maximalIdeal inferInstance |
| 21 | exact ⟨hP.isPrime, hunder ▸ inferInstanceAs (P.LiesOver (P.under R))⟩ |
| 22 | |
| 23 | theorem isPrincipalIdealRing (R S : Type*) [CommRing R] [CommRing S] |
| 24 | [IsLocalRing R] [IsDedekindDomain S] [Algebra R S] [Module.Finite R S] : |
| 25 | IsPrincipalIdealRing S := |
| 26 | IsPrincipalIdealRing.of_finite_maximals (finite_maximalIdeals R S) |
| 27 | |
| 28 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SemilocalPID |