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.IntersectionTheory.ProjectionFormula.Local.PrimePrincipal |
| 2 | import Mathlib.RingTheory.Ideal.UFD |
| 3 | import Mathlib.RingTheory.DiscreteValuationRing.TFAE |
| 4 | |
| 5 | /-! # Factorial Two -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.FactorialTwo |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A normal noetherian local domain with a residue-field projective |
| 12 | dimension bound of two is a unique factorization domain. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory IsLocalRing |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (R : Type u) [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 19 | [IsLocalRing R] [IsIntegrallyClosed R] |
| 20 | |
| 21 | theorem dedekind_of_maximal_height_one (hm : (maximalIdeal R).height = 1) : |
| 22 | IsDedekindDomain R := by |
| 23 | let : Ring.DimensionLEOne R := ⟨by |
| 24 | intro p hp hprime |
| 25 | let := hprime |
| 26 | have hheight : 1 ≤ p.height := |
| 27 | Order.one_le_iff_ne_zero.mpr (Ideal.height_eq_zero_iff_eq_bot.not.mpr hp) |
| 28 | have he : p = maximalIdeal R := p.eq_of_le_of_height_le |
| 29 | (le_maximalIdeal hprime.ne_top) (by rw [hm]; exact hheight) |
| 30 | exact he ▸ maximalIdeal.isMaximal R⟩ |
| 31 | exact |
| 32 | { toIsDomain := inferInstance |
| 33 | toIsDedekindRing := |
| 34 | { toIsNoetherian := inferInstance |
| 35 | toDimensionLEOne := inferInstance |
| 36 | toIsIntegralClosure := inferInstance } } |
| 37 | |
| 38 | theorem factorial |
| 39 | [HasProjectiveDimensionLE (ModuleCat.of R (ResidueField R)) 2] : |
| 40 | UniqueFactorizationMonoid R := by |
| 41 | apply UniqueFactorizationMonoid.of_forall_isPrincipal_of_height_eq_one |
| 42 | intro p hp hheight |
| 43 | by_cases he : p = maximalIdeal R |
| 44 | · let : IsDedekindDomain R := dedekind_of_maximal_height_one R (he ▸ hheight) |
| 45 | exact IsPrincipalIdealRing.principal p |
| 46 | · exact PrimePrincipal.prime_principal R p he |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.FactorialTwo |