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.MatrixRank.AmbientPullback |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixRank.FiniteType |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Immersion |
| 4 | |
| 5 | /-! # Immersion -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixRank.Immersion.Grassmannian |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The flat fixed-rank cokernel locus is a locally closed immersion: on each |
| 12 | ambient pivot-determinant open it is the corresponding closed pivot chart. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | variable {ι μ ν : Type u} [Fintype ι] [DecidableEq ι] |
| 18 | variable {S : Scheme.{u}} (M : Over S) (A : Matrix ν μ Γ(M.left, ⊤)) |
| 19 | |
| 20 | theorem matrixRank_restrict_minor_closed (p : MatrixPivot.Charts.Grassmannian.MatrixPivotIndex ι μ ν) : |
| 21 | IsClosedImmersion (Data.Grassmannian.matrixRankStructureMap (ι := ι) M A ∣_ M.left.basicOpen (A.submatrix p.2 p.1).det) := by |
| 22 | let U := M.left.basicOpen (A.submatrix p.2 p.1).det |
| 23 | let f := Data.Grassmannian.matrixRankStructureMap (ι := ι) M A |
| 24 | have hp : IsPullback (Data.Grassmannian.matrixRankChartMap M A p) (MatrixPivot.AmbientOpen.Grassmannian.matrixPivotChartToAmbientOpen M A p).left f U.ι := |
| 25 | AmbientPullback.Grassmannian.matrixPivotAmbientOpen_isPullback M A p |
| 26 | have hq := (isPullback_morphismRestrict f U).flip |
| 27 | let e := hp.isoIsPullback _ _ hq |
| 28 | have he : e.inv ≫ (MatrixPivot.AmbientOpen.Grassmannian.matrixPivotChartToAmbientOpen M A p).left = f ∣_ U := |
| 29 | hp.isoIsPullback_inv_snd _ _ hq |
| 30 | have : IsIso e.inv := e.isIso_inv |
| 31 | have hc : IsClosedImmersion (e.inv ≫ (MatrixPivot.AmbientOpen.Grassmannian.matrixPivotChartToAmbientOpen M A p).left) := inferInstance |
| 32 | exact he ▸ hc |
| 33 | |
| 34 | theorem matrixRank_range_subset_minor_opens : |
| 35 | Set.range (Data.Grassmannian.matrixRankStructureMap (ι := ι) M A) ⊆ |
| 36 | (⨆ p : MatrixPivot.Charts.Grassmannian.MatrixPivotIndex ι μ ν, M.left.basicOpen (A.submatrix p.2 p.1).det : M.left.Opens) := by |
| 37 | rintro _ ⟨x, rfl⟩ |
| 38 | obtain ⟨p, y, rfl⟩ := Data.Grassmannian.matrixRankCharts_cover M A x |
| 39 | rw [← Scheme.Hom.comp_apply, Data.Grassmannian.matrixRankChartMap_structureMap] |
| 40 | apply (le_iSup (fun q : MatrixPivot.Charts.Grassmannian.MatrixPivotIndex ι μ ν => M.left.basicOpen (A.submatrix q.2 q.1).det) p) |
| 41 | exact (OpenUnitLocus.isUnit_appTop_iff_range_subset (MatrixPivot.Charts.Grassmannian.matrixPivotChartInclusion M A p).left _).mp |
| 42 | (MatrixPivot.AmbientOpen.Grassmannian.matrixPivotChart_unit M A p) ⟨y, rfl⟩ |
| 43 | |
| 44 | instance matrixRankStructureMap_isImmersion : IsImmersion (Data.Grassmannian.matrixRankStructureMap (ι := ι) M A) := by |
| 45 | have : MorphismProperty.RespectsRight @IsImmersion.{u} @IsOpenImmersion.{u} := { |
| 46 | postcomp := by |
| 47 | intro X Y Z g hg f hf |
| 48 | let := hg |
| 49 | let := hf |
| 50 | infer_instance } |
| 51 | apply IsZariskiLocalAtTarget.of_range_subset_iSup (P := @IsImmersion) |
| 52 | (fun p : MatrixPivot.Charts.Grassmannian.MatrixPivotIndex ι μ ν => M.left.basicOpen (A.submatrix p.2 p.1).det) |
| 53 | (matrixRank_range_subset_minor_opens M A) |
| 54 | intro p |
| 55 | let := matrixRank_restrict_minor_closed M A p |
| 56 | infer_instance |
| 57 | |
| 58 | instance matrixRankParameterMap_isImmersion : IsImmersion (Data.Grassmannian.matrixRankParameterMap (ι := ι) M A).left := |
| 59 | matrixRankStructureMap_isImmersion M A |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixRank.Immersion.Grassmannian |