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.AbelianModuli.HilbertConstruction.Segre.ProjectiveCharts |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.Projective |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.AffinePoints |
| 4 | |
| 5 | /-! # Projective Scheme -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Segre.ProjectiveScheme |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The projective Segre equation scheme and its explicit affine open charts. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.AffinePoints |
| 15 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.Projective.PolynomialProjective |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R : CommRingCat.{u}) {σ τ : Type u} |
| 20 | |
| 21 | def segreProjectiveScheme : Scheme.{u} := |
| 22 | HilbertScheme.Presentations.Homogeneous.ProjectiveQuotient.HomogeneousQuotient.projectiveQuotient (HomogeneousRelations.segreHomogeneousIdeal (σ := σ) (τ := τ) R) |
| 23 | |
| 24 | def segreProjectiveOver : Over (Spec R) := |
| 25 | Over.mk (HilbertScheme.Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap |
| 26 | (HilbertScheme.Presentations.Homogeneous.Quotient.HomogeneousQuotient.quotientGrading (HomogeneousRelations.segreHomogeneousIdeal (σ := σ) (τ := τ) R))) |
| 27 | |
| 28 | def segreProjectiveInclusion : segreProjectiveScheme (σ := σ) (τ := τ) R ⟶ |
| 29 | Proj (HilbertScheme.Presentations.Polynomial.Dehomogenization.PolynomialProjective.polynomialGrading (σ × τ) R) := |
| 30 | HilbertScheme.Presentations.Homogeneous.ProjectiveQuotient.HomogeneousQuotient.projectiveQuotientInclusion (HomogeneousRelations.segreHomogeneousIdeal R) |
| 31 | |
| 32 | instance segreProjectiveInclusion_isClosedImmersion : |
| 33 | IsClosedImmersion (segreProjectiveInclusion (σ := σ) (τ := τ) R) := |
| 34 | HilbertScheme.Presentations.Homogeneous.ProjectiveQuotient.HomogeneousQuotient.projectiveQuotientInclusion_isClosedImmersion (HomogeneousRelations.segreHomogeneousIdeal R) |
| 35 | |
| 36 | instance segreProjectiveOver_isProper [Finite σ] [Finite τ] : |
| 37 | IsProper (segreProjectiveOver (σ := σ) (τ := τ) R).hom := |
| 38 | HilbertScheme.Presentations.Polynomial.Projective.PolynomialProjective.projectiveQuotient_proper (HomogeneousRelations.segreHomogeneousIdeal R) |
| 39 | |
| 40 | variable (i : σ) (j : τ) |
| 41 | |
| 42 | def segreHomogeneousChartScheme : Over (Spec R) := |
| 43 | HilbertScheme.Presentations.Relative.AffinePoints.relativeAffineScheme R (ProjectiveCharts.SegreHomogeneousChart R i j) |
| 44 | |
| 45 | def segreAffineChartScheme : Over (Spec R) := |
| 46 | HilbertScheme.Presentations.Relative.AffinePoints.relativeAffineScheme R (NormalizedCoordinates.SegreChartRing R i j) |
| 47 | |
| 48 | def segreAffineChartSchemeIso : |
| 49 | segreAffineChartScheme R i j ≅ segreHomogeneousChartScheme R i j := |
| 50 | (algSpec R).mapIso (Iso.op |
| 51 | { hom := CommAlgCat.ofHom (ProjectiveCharts.segreHomogeneousChartEquiv R i j).toAlgHom |
| 52 | inv := CommAlgCat.ofHom (ProjectiveCharts.segreHomogeneousChartEquiv R i j).symm.toAlgHom |
| 53 | hom_inv_id := by |
| 54 | apply ConcreteCategory.hom_ext |
| 55 | intro x |
| 56 | exact (ProjectiveCharts.segreHomogeneousChartEquiv R i j).symm_apply_apply x |
| 57 | inv_hom_id := by |
| 58 | apply ConcreteCategory.hom_ext |
| 59 | intro x |
| 60 | exact (ProjectiveCharts.segreHomogeneousChartEquiv R i j).apply_symm_apply x }) |
| 61 | |
| 62 | def segreHomogeneousChartMap : |
| 63 | segreHomogeneousChartScheme R i j ⟶ segreProjectiveOver (σ := σ) (τ := τ) R := by |
| 64 | let I := HomogeneousRelations.segreHomogeneousIdeal (σ := σ) (τ := τ) R |
| 65 | let h := (HilbertScheme.Presentations.Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I).map_mem (isHomogeneous_X R (i, j)) |
| 66 | exact Over.homMk (Proj.awayι (HilbertScheme.Presentations.Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) (HilbertScheme.Presentations.Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X (i, j))) |
| 67 | h Nat.zero_lt_one) (HilbertScheme.Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap_away (HilbertScheme.Presentations.Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) h) |
| 68 | |
| 69 | instance segreHomogeneousChartMap_isOpenImmersion : |
| 70 | IsOpenImmersion (segreHomogeneousChartMap R i j).left := by |
| 71 | change IsOpenImmersion (Proj.awayι _ _ _ _) |
| 72 | infer_instance |
| 73 | |
| 74 | def segreAffineChartMap : |
| 75 | segreAffineChartScheme R i j ⟶ segreProjectiveOver (σ := σ) (τ := τ) R := |
| 76 | (segreAffineChartSchemeIso R i j).hom ≫ segreHomogeneousChartMap R i j |
| 77 | |
| 78 | instance segreAffineChartMap_isOpenImmersion : |
| 79 | IsOpenImmersion (segreAffineChartMap R i j).left := by |
| 80 | have : IsIso (segreAffineChartSchemeIso R i j).hom.left := |
| 81 | ((Over.forget (Spec R)).mapIso (segreAffineChartSchemeIso R i j)).isIso_hom |
| 82 | change IsOpenImmersion ((segreAffineChartSchemeIso R i j).hom.left ≫ |
| 83 | (segreHomogeneousChartMap R i j).left) |
| 84 | infer_instance |
| 85 | |
| 86 | theorem segreHomogeneousCharts_cover (x : segreProjectiveScheme (σ := σ) (τ := τ) R) : |
| 87 | ∃ i : σ, ∃ j : τ, ∃ y : (segreHomogeneousChartScheme R i j).left, |
| 88 | (segreHomogeneousChartMap R i j).left y = x := by |
| 89 | obtain ⟨⟨i, j⟩, y, hy⟩ := |
| 90 | (HilbertScheme.Presentations.Polynomial.Projective.PolynomialProjective.projectiveQuotientAffineCover (HomogeneousRelations.segreHomogeneousIdeal R)).openCover.exists_eq x |
| 91 | exact ⟨i, j, y, hy⟩ |
| 92 | |
| 93 | theorem segreAffineCharts_cover (x : segreProjectiveScheme (σ := σ) (τ := τ) R) : |
| 94 | ∃ i : σ, ∃ j : τ, ∃ y : (segreAffineChartScheme R i j).left, |
| 95 | (segreAffineChartMap R i j).left y = x := by |
| 96 | obtain ⟨i, j, y, hy⟩ := segreHomogeneousCharts_cover R x |
| 97 | refine ⟨i, j, (segreAffineChartSchemeIso R i j).inv.left y, ?_⟩ |
| 98 | change (segreHomogeneousChartMap R i j).left |
| 99 | ((segreAffineChartSchemeIso R i j).hom.left |
| 100 | ((segreAffineChartSchemeIso R i j).inv.left y)) = x |
| 101 | have h := congrArg (fun f => f.left y) (segreAffineChartSchemeIso R i j).inv_hom_id |
| 102 | change (segreAffineChartSchemeIso R i j).hom.left |
| 103 | ((segreAffineChartSchemeIso R i j).inv.left y) = y at h |
| 104 | rw [h] |
| 105 | exact hy |
| 106 | |
| 107 | end |
| 108 | |
| 109 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Segre.ProjectiveScheme |