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.Polynomial.Place |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ResidueDegree |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LocalizationStalks |
| 4 | |
| 5 | /-! # Residue Degree -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.ResidueDegree |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The zero place has residue degree one over the ground field in the |
| 12 | native scheme pushforward, including the localization and residue maps. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Polynomial.Place OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CyclePushforward |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | theorem residueDegree_over_field (k A : Type u) [Field k] [CommRing A] [Algebra k A] |
| 23 | (a : PrimeSpectrum A) : |
| 24 | (Spec.map (CommRingCat.ofHom (algebraMap k A))).residueDegree a = |
| 25 | Module.finrank k a.asIdeal.ResidueField := by |
| 26 | let p := a.asIdeal.under k |
| 27 | let := Localization.AtPrime.algebraOfLiesOver p a.asIdeal |
| 28 | rw [Affine.ResidueDegree.residueDegree_eq_inertiaDeg, Ideal.inertiaDeg_def] |
| 29 | have he : Module.finrank k p.ResidueField = 1 := by |
| 30 | rw [← (p.algEquivResidueFieldOfField).toLinearEquiv.finrank_eq, Module.finrank_self] |
| 31 | have ht := Module.finrank_mul_finrank k p.ResidueField a.asIdeal.ResidueField |
| 32 | simpa only [he, one_mul] using ht |
| 33 | |
| 34 | theorem zero_place_residueDegree (k : Type u) [Field k] : |
| 35 | (Spec.map (CommRingCat.ofHom (algebraMap k (ProjectionFormula.Polynomial.Place.localRing k)))).residueDegree |
| 36 | (IsLocalRing.closedPoint (ProjectionFormula.Polynomial.Place.localRing k)) = 1 := by |
| 37 | let j := Spec.map (CommRingCat.ofHom (algebraMap (Polynomial k) (ProjectionFormula.Polynomial.Place.localRing k))) |
| 38 | let f := Spec.map (CommRingCat.ofHom (algebraMap k (Polynomial k))) |
| 39 | have hc : j ≫ f = Spec.map (CommRingCat.ofHom (algebraMap k (ProjectionFormula.Polynomial.Place.localRing k))) := by |
| 40 | rw [← Spec.map_comp, ← CommRingCat.ofHom_comp, ← IsScalarTower.algebraMap_eq] |
| 41 | have hp : j (IsLocalRing.closedPoint (ProjectionFormula.Polynomial.Place.localRing k)) = |
| 42 | (⟨ProjectionFormula.Polynomial.Place.zeroIdeal k, inferInstance⟩ : PrimeSpectrum (Polynomial k)) := by |
| 43 | apply PrimeSpectrum.ext |
| 44 | exact IsLocalization.AtPrime.under_maximalIdeal (ProjectionFormula.Polynomial.Place.localRing k) (ProjectionFormula.Polynomial.Place.zeroIdeal k) |
| 45 | rw [← hc, CyclePushforward.residueDegree_comp, hp, |
| 46 | LocalizationStalks.localization_residueDegree (Polynomial k) (ProjectionFormula.Polynomial.Place.localRing k) |
| 47 | (ProjectionFormula.Polynomial.Place.zeroIdeal k).primeCompl, mul_one] |
| 48 | exact (residueDegree_over_field k (Polynomial k) ⟨ProjectionFormula.Polynomial.Place.zeroIdeal k, inferInstance⟩).trans |
| 49 | (ProjectionFormula.Polynomial.Place.residue_finrank k) |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.ResidueDegree |