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.Principal.QuotientMatrices |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Quotient.ChartClassifyingMap |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.AffinePoints |
| 4 | |
| 5 | /-! # Quotient Classifying Charts -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.QuotientClassifyingCharts.Grassmannian |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | Principal affine charts of an actual quotient module give compatible maps |
| 13 | into the constructed Grassmannian. Compatibility holds on every test |
| 14 | scheme over the coefficient ring. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {ι ν : Type u} [Fintype ι] [Fintype ν] [DecidableEq ι] [DecidableEq ν] |
| 22 | variable (R : CommRingCat.{u}) |
| 23 | |
| 24 | structure PrincipalQuotientChart (N : Module.Grassmannian R (ν → R) (Fintype.card ι)) where |
| 25 | denominator : R |
| 26 | columns : ι → ν |
| 27 | matrix : Matrix ι ν (Localization.Away denominator) |
| 28 | normalized : Normalized.Matrices.Grassmannian.IsNormalized columns matrix |
| 29 | kernel : (Matrix.toLin' matrix).ker = |
| 30 | Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension (algebraMap R (Localization.Away denominator)) N.toSubmodule |
| 31 | |
| 32 | def principalQuotientChartAt (N : Module.Grassmannian R (ν → R) (Fintype.card ι)) |
| 33 | (p : PrimeSpectrum R) : {D : PrincipalQuotientChart R N // D.denominator ∉ p.asIdeal} := by |
| 34 | apply Classical.choice |
| 35 | obtain ⟨r, a, Q, hr, _ha, hQ, hker⟩ := Principal.QuotientMatrices.Grassmannian.quotient_principal_normalized_matrix N p |
| 36 | exact ⟨⟨⟨r, a, Q, hQ, hker⟩, hr⟩⟩ |
| 37 | |
| 38 | variable {R} {N : Module.Grassmannian R (ν → R) (Fintype.card ι)} |
| 39 | |
| 40 | def PrincipalQuotientChart.scheme (D : PrincipalQuotientChart R N) : Over (Spec R) := |
| 41 | Relative.AffinePoints.relativeAffineScheme R (Localization.Away D.denominator) |
| 42 | |
| 43 | def PrincipalQuotientChart.pointMatrix (D : PrincipalQuotientChart R N) {T : Over (Spec R)} |
| 44 | (f : T ⟶ D.scheme) : Matrix ι ν Γ(T.left, ⊤) := |
| 45 | D.matrix.map (Relative.AffinePoints.relativeAffinePointEquiv R (Localization.Away D.denominator) T f).toRingHom |
| 46 | |
| 47 | theorem PrincipalQuotientChart.pointMatrix_normalized (D : PrincipalQuotientChart R N) |
| 48 | {T : Over (Spec R)} (f : T ⟶ D.scheme) : Normalized.Matrices.Grassmannian.IsNormalized D.columns (D.pointMatrix f) := |
| 49 | D.normalized.map (Relative.AffinePoints.relativeAffinePointEquiv R (Localization.Away D.denominator) T f).toRingHom |
| 50 | |
| 51 | theorem PrincipalQuotientChart.pointMatrix_kernel (D : PrincipalQuotientChart R N) |
| 52 | {T : Over (Spec R)} (f : T ⟶ D.scheme) : |
| 53 | (Matrix.toLin' (D.pointMatrix f)).ker = |
| 54 | Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension (algebraMap R (Relative.AffinePoints.relativeGlobalAlgebra R T)) N.toSubmodule := by |
| 55 | let φ := Relative.AffinePoints.relativeAffinePointEquiv R (Localization.Away D.denominator) T f |
| 56 | change (Matrix.toLin' (D.matrix.map φ.toRingHom)).ker = _ |
| 57 | rw [← Normalized.KernelBaseChange.Grassmannian.normalizedKernel_baseChange φ.toRingHom D.columns D.matrix D.normalized, |
| 58 | D.kernel, ← Coordinate.SubmoduleExtension.Grassmannian.coordinateSubmoduleExtension_comp] |
| 59 | have hc : φ.toRingHom.comp (algebraMap R (Localization.Away D.denominator)) = |
| 60 | algebraMap R (Relative.AffinePoints.relativeGlobalAlgebra R T) := by |
| 61 | ext r |
| 62 | exact φ.commutes r |
| 63 | exact congrArg (fun α => Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension α N.toSubmodule) hc |
| 64 | |
| 65 | theorem PrincipalQuotientChart.pointMatrix_comp (D : PrincipalQuotientChart R N) |
| 66 | {T U : Over (Spec R)} (f : T ⟶ U) (g : U ⟶ D.scheme) : |
| 67 | D.pointMatrix (f ≫ g) = (D.pointMatrix g).map f.left.appTop.hom := by |
| 68 | exact congrArg |
| 69 | (fun φ : Localization.Away D.denominator →ₐ[R] Relative.AffinePoints.relativeGlobalAlgebra R T => D.matrix.map φ.toRingHom) |
| 70 | (Relative.AffinePoints.relativeAffinePointEquiv_natural R (Localization.Away D.denominator) f g) |
| 71 | |
| 72 | def PrincipalQuotientChart.classifyingMap (D : PrincipalQuotientChart R N) : |
| 73 | D.scheme ⟶ Presentations.Grassmannian.Gluing.grassmannianOver (ι := ι) (ν := ν) (Spec R) := |
| 74 | Quotient.ChartClassifyingMap.Grassmannian.normalizedMatrixClassifyingMap D.columns (D.pointMatrix (𝟙 _)) (D.pointMatrix_normalized (𝟙 _)) |
| 75 | |
| 76 | theorem PrincipalQuotientChart.classifyingMap_comp (D : PrincipalQuotientChart R N) |
| 77 | {T : Over (Spec R)} (f : T ⟶ D.scheme) : |
| 78 | f ≫ D.classifyingMap = |
| 79 | Quotient.ChartClassifyingMap.Grassmannian.normalizedMatrixClassifyingMap D.columns (D.pointMatrix f) (D.pointMatrix_normalized f) := by |
| 80 | rw [PrincipalQuotientChart.classifyingMap, ← Quotient.ChartClassifyingMap.Grassmannian.normalizedMatrixClassifyingMap_natural] |
| 81 | have hm := D.pointMatrix_comp f (𝟙 _) |
| 82 | rw [Category.comp_id] at hm |
| 83 | congr 1 |
| 84 | |
| 85 | theorem PrincipalQuotientChart.classifyingMaps_agree (D E : PrincipalQuotientChart R N) |
| 86 | {T : Over (Spec R)} (f : T ⟶ D.scheme) (g : T ⟶ E.scheme) : |
| 87 | f ≫ D.classifyingMap = g ≫ E.classifyingMap := by |
| 88 | rw [D.classifyingMap_comp, E.classifyingMap_comp, Quotient.ChartClassifyingMap.Grassmannian.normalizedMatrixClassifyingMap_eq_iff, |
| 89 | D.pointMatrix_kernel, E.pointMatrix_kernel] |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.QuotientClassifyingCharts.Grassmannian |