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.HilbertScheme.Presentations.Affine.QuotientClassifyingMap |
| 2 | import Mathlib.RingTheory.LocalProperties.Submodule |
| 3 | |
| 4 | /-! # Quotient Injectivity -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The global Grassmannian classifying map recovers the original quotient submodule. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {ι ν : Type u} [Fintype ι] [Fintype ν] [DecidableEq ι] [DecidableEq ν] |
| 17 | variable {R : CommRingCat.{u}} {N : Module.Grassmannian R (ν → R) (Fintype.card ι)} |
| 18 | |
| 19 | def QuotientClassifyingCharts.Grassmannian.PrincipalQuotientChart.atPrimeMap (D : QuotientClassifyingCharts.Grassmannian.PrincipalQuotientChart R N) |
| 20 | (p : PrimeSpectrum R) (hr : D.denominator ∉ p.asIdeal) : |
| 21 | Relative.AffinePoints.relativeAffineScheme R (Localization.AtPrime p.asIdeal) ⟶ D.scheme := by |
| 22 | let φ : Localization.Away D.denominator →ₐ[R] Localization.AtPrime p.asIdeal := |
| 23 | IsLocalization.Away.liftAlgHom D.denominator |
| 24 | (f := Algebra.ofId R (Localization.AtPrime p.asIdeal)) |
| 25 | (IsLocalization.map_units (M := p.asIdeal.primeCompl) |
| 26 | (Localization.AtPrime p.asIdeal) ⟨D.denominator, hr⟩) |
| 27 | exact (algSpec R).map (CommAlgCat.ofHom φ).op |
| 28 | |
| 29 | theorem QuotientInjectivity.Grassmannian.quotientClassifyingMap_local_kernel_eq |
| 30 | (N M : Module.Grassmannian R (ν → R) (Fintype.card ι)) |
| 31 | (h : QuotientClassifyingMap.Grassmannian.quotientClassifyingMap R N = QuotientClassifyingMap.Grassmannian.quotientClassifyingMap R M) (p : PrimeSpectrum R) : |
| 32 | Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension (algebraMap R (Localization.AtPrime p.asIdeal)) N.toSubmodule = |
| 33 | Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension (algebraMap R (Localization.AtPrime p.asIdeal)) M.toSubmodule := by |
| 34 | let D := (QuotientClassifyingCharts.Grassmannian.principalQuotientChartAt R N p).val |
| 35 | let E := (QuotientClassifyingCharts.Grassmannian.principalQuotientChartAt R M p).val |
| 36 | let T := Relative.AffinePoints.relativeAffineScheme R (Localization.AtPrime p.asIdeal) |
| 37 | let f : T ⟶ D.scheme := D.atPrimeMap p (QuotientClassifyingCharts.Grassmannian.principalQuotientChartAt R N p).property |
| 38 | let g : T ⟶ E.scheme := E.atPrimeMap p (QuotientClassifyingCharts.Grassmannian.principalQuotientChartAt R M p).property |
| 39 | have he : f ≫ D.classifyingMap = g ≫ E.classifyingMap := by |
| 40 | apply (Over.forget (Spec R)).map_injective |
| 41 | change f.left ≫ D.classifyingMap.left = g.left ≫ E.classifyingMap.left |
| 42 | have hN : f.left ≫ D.classifyingMap.left = T.hom ≫ QuotientClassifyingMap.Grassmannian.quotientClassifyingMap R N := |
| 43 | (congrArg (fun k => f.left ≫ k) (QuotientClassifyingMap.Grassmannian.quotientClassifyingMap_on_chart R N D).symm).trans |
| 44 | ((Category.assoc _ _ _).symm.trans (congrArg (fun k => k ≫ QuotientClassifyingMap.Grassmannian.quotientClassifyingMap R N) f.w)) |
| 45 | have hM : g.left ≫ E.classifyingMap.left = T.hom ≫ QuotientClassifyingMap.Grassmannian.quotientClassifyingMap R M := |
| 46 | (congrArg (fun k => g.left ≫ k) (QuotientClassifyingMap.Grassmannian.quotientClassifyingMap_on_chart R M E).symm).trans |
| 47 | ((Category.assoc _ _ _).symm.trans (congrArg (fun k => k ≫ QuotientClassifyingMap.Grassmannian.quotientClassifyingMap R M) g.w)) |
| 48 | exact hN.trans ((congrArg (fun k => T.hom ≫ k) h).trans hM.symm) |
| 49 | rw [D.classifyingMap_comp, E.classifyingMap_comp, Quotient.ChartClassifyingMap.Grassmannian.normalizedMatrixClassifyingMap_eq_iff, |
| 50 | D.pointMatrix_kernel, E.pointMatrix_kernel] at he |
| 51 | let e := Relative.AffinePoints.relativeAffineGlobalEquiv R (Localization.AtPrime p.asIdeal) |
| 52 | have hc : e.toRingHom.comp (algebraMap R (Localization.AtPrime p.asIdeal)) = |
| 53 | algebraMap R (Relative.AffinePoints.relativeGlobalAlgebra R T) := by |
| 54 | ext r |
| 55 | exact e.commutes r |
| 56 | change Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension (algebraMap R (Relative.AffinePoints.relativeGlobalAlgebra R T)) N.toSubmodule = |
| 57 | Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension (algebraMap R (Relative.AffinePoints.relativeGlobalAlgebra R T)) M.toSubmodule at he |
| 58 | rw [← hc, Coordinate.SubmoduleExtension.Grassmannian.coordinateSubmoduleExtension_comp, Coordinate.SubmoduleExtension.Grassmannian.coordinateSubmoduleExtension_comp] at he |
| 59 | exact Coordinate.SubmoduleExtension.Grassmannian.coordinateSubmoduleExtension_injective e.toRingEquiv he |
| 60 | |
| 61 | theorem QuotientInjectivity.Grassmannian.quotientClassifyingMap_injective : |
| 62 | Function.Injective (QuotientClassifyingMap.Grassmannian.quotientClassifyingMap (ι := ι) (ν := ν) R) := by |
| 63 | intro N M h |
| 64 | apply Module.Grassmannian.ext |
| 65 | apply Submodule.eq_of_localization_maximal |
| 66 | (fun p _ => Localization.AtPrime p) |
| 67 | (fun p _ => ν → Localization.AtPrime p) |
| 68 | (fun p _ => Localized.QuotientCoordinates.Grassmannian.coordinateLocalization (ν := ν) p.primeCompl) |
| 69 | intro p _ |
| 70 | rw [Submodule.localized'_eq_span, Submodule.localized'_eq_span] |
| 71 | exact QuotientInjectivity.Grassmannian.quotientClassifyingMap_local_kernel_eq N M h ⟨p, inferInstance⟩ |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine |