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.ZeroPrime |
| 2 | |
| 3 | /-! # Principal Prime Stalk -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.PrincipalPrimeStalk.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! # LineBundleCycles: a principal prime generator generates the actual affine stalk maximal ideal -/ |
| 10 | |
| 11 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 12 | |
| 13 | theorem affinePrincipalPrime_stalk_maximalIdeal {R : Type} [CommRing R] |
| 14 | (p : Spec (.of R)) (a : R) (hp : p.asIdeal = Ideal.span {a}) : |
| 15 | Ideal.span {(Spec (.of R)).presheaf.germ ⊤ p (by trivial) ((Scheme.ΓSpecIso (.of R)).inv a)} = |
| 16 | IsLocalRing.maximalIdeal ((Spec (.of R)).presheaf.stalk p) := by |
| 17 | let : p.asIdeal.IsPrime := (show PrimeSpectrum R from p).isPrime |
| 18 | let e := Spec.stalkIso (.of R) p |
| 19 | have hg := ConcreteCategory.congr_hom (Spec.germ_stalkMapIso_hom (R := .of R) p) |
| 20 | ((Scheme.ΓSpecIso (.of R)).inv a) |
| 21 | change e.hom ((Spec (.of R)).presheaf.germ ⊤ p (by trivial) ((Scheme.ΓSpecIso (.of R)).inv a)) = |
| 22 | algebraMap R (Localization.AtPrime p.asIdeal) ((Scheme.ΓSpecIso (.of R)).hom ((Scheme.ΓSpecIso (.of R)).inv a)) at hg |
| 23 | rw [Iso.inv_hom_id_apply] at hg |
| 24 | have hL : (Ideal.span {(Spec (.of R)).presheaf.germ ⊤ p (by trivial) ((Scheme.ΓSpecIso (.of R)).inv a)}).map e.hom.hom = |
| 25 | IsLocalRing.maximalIdeal (Localization.AtPrime p.asIdeal) := by |
| 26 | rw [Ideal.map_span, Set.image_singleton, hg, ← Set.image_singleton, ← Ideal.map_span, ← hp] |
| 27 | exact Localization.AtPrime.map_eq_maximalIdeal |
| 28 | have hM : (IsLocalRing.maximalIdeal ((Spec (.of R)).presheaf.stalk p)).map e.hom.hom = |
| 29 | IsLocalRing.maximalIdeal (Localization.AtPrime p.asIdeal) := |
| 30 | IsLocalRing.map_ringEquiv_maximalIdeal e.commRingCatIsoToRingEquiv |
| 31 | have h := congrArg (Ideal.comap e.hom.hom) (hL.trans hM.symm) |
| 32 | have he : Function.Bijective e.hom.hom := e.commRingCatIsoToRingEquiv.bijective |
| 33 | rw [Ideal.comap_map_of_bijective e.hom.hom he, |
| 34 | Ideal.comap_map_of_bijective e.hom.hom he] at h |
| 35 | exact h |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.PrincipalPrimeStalk.BundleCycles |