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.Projective.IdealEquivalence |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.LocalizationFlat |
| 3 | import Mathlib.RingTheory.Localization.Away.Basic |
| 4 | |
| 5 | /-! # Chart Presentation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.ChartPresentation.GradedHilbert |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | The standard projective chart of a homogeneous quotient has the concrete |
| 13 | affine presentation obtained by adding the equation X_i = 1. This ring |
| 14 | presentation is suitable for arbitrary coefficient-ring base change. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.MvPolynomial _root_.HomogeneousLocalization |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {R : Type u} [CommRing R] {n : ℕ} |
| 22 | |
| 23 | def affineChartIdeal (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (i : Fin (n + 1)) : |
| 24 | Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) := I.toIdeal ⊔ Ideal.span {X i - 1} |
| 25 | |
| 26 | def affineChartMap (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (i : Fin (n + 1)) : |
| 27 | Hilbert.Polynomial.GradedHilbert.CoordinateRing R n →+* |
| 28 | HomogeneousLocalization.Away (Graded.Quotient.GradedHilbert.quotientGrading I) (Graded.Quotient.GradedHilbert.gradedQuotientMap I (X i)) := |
| 29 | (HomogeneousLocalization.Away.map (Graded.Quotient.GradedHilbert.gradedQuotientMap I) (X i)).comp (Dehomogenization.GradedHilbert.dehomogenize i) |
| 30 | |
| 31 | theorem affineChartMap_homogeneous (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 32 | (i : Fin (n + 1)) {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n} {d : ℕ} (hf : f.IsHomogeneous d) : |
| 33 | affineChartMap I i f = HomogeneousLocalization.Away.mk (Graded.Quotient.GradedHilbert.quotientGrading I) |
| 34 | ((Graded.Quotient.GradedHilbert.gradedQuotientMap I).map_mem (isHomogeneous_X R i)) d (Graded.Quotient.GradedHilbert.gradedQuotientMap I f) |
| 35 | (by rw [smul_eq_mul, mul_one]; exact ⟨f, hf, rfl⟩) := by |
| 36 | change HomogeneousLocalization.Away.map (Graded.Quotient.GradedHilbert.gradedQuotientMap I) (X i) (Dehomogenization.GradedHilbert.dehomogenize i f) = _ |
| 37 | rw [Dehomogenization.GradedHilbert.dehomogenize_homogeneous i hf] |
| 38 | erw [Projective.IdealRecovery.GradedHilbert.coordinateFraction, HomogeneousLocalization.Away.map_mk] |
| 39 | |
| 40 | theorem affineChartMap_surjective (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (i : Fin (n + 1)) : |
| 41 | Function.Surjective (affineChartMap I i) := |
| 42 | (Projective.Quotient.GradedHilbert.quotient_away_map_surjective I (X i) (isHomogeneous_X R i)).comp (Dehomogenization.GradedHilbert.dehomogenize_surjective i) |
| 43 | |
| 44 | theorem affineChartIdeal_le_kernel (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (i : Fin (n + 1)) : |
| 45 | affineChartIdeal I i ≤ RingHom.ker (affineChartMap I i) := by |
| 46 | apply sup_le |
| 47 | · intro f hf |
| 48 | change Dehomogenization.GradedHilbert.dehomogenize i f ∈ RingHom.ker (HomogeneousLocalization.Away.map (Graded.Quotient.GradedHilbert.gradedQuotientMap I) (X i)) |
| 49 | rw [Projective.IdealEquivalence.GradedHilbert.quotient_chart_kernel_eq_map] |
| 50 | exact Ideal.mem_map_of_mem _ hf |
| 51 | · apply Ideal.span_le.mpr |
| 52 | rintro f (rfl : f = X i - 1) |
| 53 | change affineChartMap I i (X i - 1) = 0 |
| 54 | simp only [affineChartMap, RingHom.comp_apply, map_sub, map_one, Dehomogenization.GradedHilbert.dehomogenize_self, sub_self] |
| 55 | |
| 56 | def affineChartFactor (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (i : Fin (n + 1)) : |
| 57 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) →+* (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ affineChartIdeal I i) := |
| 58 | Ideal.Quotient.factor le_sup_left |
| 59 | |
| 60 | theorem affineChartFactor_variable (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (i : Fin (n + 1)) : |
| 61 | affineChartFactor I i (Graded.Quotient.GradedHilbert.gradedQuotientMap I (X i)) = 1 := by |
| 62 | change Ideal.Quotient.mk (affineChartIdeal I i) (X i) = 1 |
| 63 | apply sub_eq_zero.mp |
| 64 | rw [← map_one (Ideal.Quotient.mk (affineChartIdeal I i)), ← map_sub] |
| 65 | apply Ideal.Quotient.eq_zero_iff_mem.mpr |
| 66 | exact (show Ideal.span {X i - 1} ≤ affineChartIdeal I i from le_sup_right) |
| 67 | (Ideal.subset_span (Set.mem_singleton (X i - 1))) |
| 68 | |
| 69 | def affineChartInverse (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (i : Fin (n + 1)) : |
| 70 | HomogeneousLocalization.Away (Graded.Quotient.GradedHilbert.quotientGrading I) (Graded.Quotient.GradedHilbert.gradedQuotientMap I (X i)) →+* |
| 71 | Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ affineChartIdeal I i := |
| 72 | (Localization.awayLift (affineChartFactor I i) (Graded.Quotient.GradedHilbert.gradedQuotientMap I (X i)) |
| 73 | (isUnit_iff_exists_inv.mpr ⟨1, by rw [affineChartFactor_variable, one_mul]⟩)).comp |
| 74 | (algebraMap _ _) |
| 75 | |
| 76 | theorem affineChartInverse_homogeneous (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 77 | (i : Fin (n + 1)) {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n} {d : ℕ} (hf : f.IsHomogeneous d) : |
| 78 | affineChartInverse I i (affineChartMap I i f) = Ideal.Quotient.mk (affineChartIdeal I i) f := by |
| 79 | change (Localization.awayLift (affineChartFactor I i) (Graded.Quotient.GradedHilbert.gradedQuotientMap I (X i)) |
| 80 | (isUnit_iff_exists_inv.mpr ⟨1, by rw [affineChartFactor_variable, one_mul]⟩)) |
| 81 | (HomogeneousLocalization.Away.map (Graded.Quotient.GradedHilbert.gradedQuotientMap I) (X i) (Dehomogenization.GradedHilbert.dehomogenize i f)).val = _ |
| 82 | rw [Dehomogenization.GradedHilbert.dehomogenize_homogeneous i hf] |
| 83 | erw [Projective.IdealRecovery.GradedHilbert.coordinateFraction, HomogeneousLocalization.Away.map_mk, |
| 84 | HomogeneousLocalization.Away.val_mk, |
| 85 | Localization.awayLift_mk (affineChartFactor I i) (Graded.Quotient.GradedHilbert.gradedQuotientMap I (X i)) |
| 86 | (Graded.Quotient.GradedHilbert.gradedQuotientMap I f) 1 (by rw [affineChartFactor_variable, one_mul]) d] |
| 87 | simp only [one_pow, mul_one] |
| 88 | rfl |
| 89 | |
| 90 | theorem affineChartInverse_comp (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (i : Fin (n + 1)) : |
| 91 | (affineChartInverse I i).comp (affineChartMap I i) = Ideal.Quotient.mk (affineChartIdeal I i) := by |
| 92 | ext x |
| 93 | · exact affineChartInverse_homogeneous I i (isHomogeneous_C _ x) |
| 94 | · exact affineChartInverse_homogeneous I i (isHomogeneous_X R x) |
| 95 | |
| 96 | theorem affineChartMap_kernel (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (i : Fin (n + 1)) : |
| 97 | RingHom.ker (affineChartMap I i) = affineChartIdeal I i := by |
| 98 | apply le_antisymm |
| 99 | · intro f hf |
| 100 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 101 | rw [← affineChartInverse_comp I i] |
| 102 | change affineChartInverse I i (affineChartMap I i f) = 0 |
| 103 | rw [show affineChartMap I i f = 0 from hf, map_zero] |
| 104 | · exact affineChartIdeal_le_kernel I i |
| 105 | |
| 106 | /-- The usual affine chart presentation, valid for every commutative |
| 107 | coefficient ring and every homogeneous ideal. -/ |
| 108 | def affineChartPresentationEquiv (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (i : Fin (n + 1)) : |
| 109 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ affineChartIdeal I i) ≃+* |
| 110 | HomogeneousLocalization.Away (Graded.Quotient.GradedHilbert.quotientGrading I) (Graded.Quotient.GradedHilbert.gradedQuotientMap I (X i)) := |
| 111 | (Ideal.quotEquivOfEq (affineChartMap_kernel I i).symm).trans |
| 112 | (RingHom.quotientKerEquivOfSurjective (affineChartMap_surjective I i)) |
| 113 | |
| 114 | theorem affineChartPresentationEquiv_mk (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 115 | (i : Fin (n + 1)) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) : |
| 116 | affineChartPresentationEquiv I i (Ideal.Quotient.mk (affineChartIdeal I i) f) = |
| 117 | affineChartMap I i f := rfl |
| 118 | |
| 119 | theorem affineChartMap_C (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (i : Fin (n + 1)) (r : R) : |
| 120 | affineChartMap I i (C r) = |
| 121 | algebraMap R (HomogeneousLocalization.Away (Graded.Quotient.GradedHilbert.quotientGrading I) (Graded.Quotient.GradedHilbert.gradedQuotientMap I (X i))) r := by |
| 122 | change HomogeneousLocalization.Away.map (Graded.Quotient.GradedHilbert.gradedQuotientMap I) (X i) (Dehomogenization.GradedHilbert.dehomogenize i (C r)) = _ |
| 123 | rw [Dehomogenization.GradedHilbert.dehomogenize_homogeneous i (isHomogeneous_C _ r)] |
| 124 | erw [Projective.IdealRecovery.GradedHilbert.coordinateFraction, HomogeneousLocalization.Away.map_mk] |
| 125 | apply HomogeneousLocalization.val_injective |
| 126 | rw [HomogeneousLocalization.Away.val_mk, Algebra.algebraMap_eq_smul_one, |
| 127 | HomogeneousLocalization.val_smul, HomogeneousLocalization.val_one] |
| 128 | change Localization.mk (Ideal.Quotient.mk I.toIdeal (C r)) 1 = |
| 129 | r • (1 : Localization.Away (Graded.Quotient.GradedHilbert.gradedQuotientMap I (X i))) |
| 130 | rw [Localization.mk_eq_mk', IsLocalization.mk'_one, Algebra.smul_def, mul_one] |
| 131 | exact (IsScalarTower.algebraMap_apply R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) |
| 132 | (Localization.Away (Graded.Quotient.GradedHilbert.gradedQuotientMap I (X i))) r).symm |
| 133 | |
| 134 | def affineChartPresentationAlgEquiv (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (i : Fin (n + 1)) : |
| 135 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ affineChartIdeal I i) ≃ₐ[R] |
| 136 | HomogeneousLocalization.Away (Graded.Quotient.GradedHilbert.quotientGrading I) (Graded.Quotient.GradedHilbert.gradedQuotientMap I (X i)) where |
| 137 | __ := affineChartPresentationEquiv I i |
| 138 | commutes' r := affineChartMap_C I i r |
| 139 | |
| 140 | theorem affineChartPresentationAlgEquiv_mk (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 141 | (i : Fin (n + 1)) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) : |
| 142 | affineChartPresentationAlgEquiv I i (Ideal.Quotient.mk (affineChartIdeal I i) f) = |
| 143 | affineChartMap I i f := rfl |
| 144 | |
| 145 | theorem affineChartPresentationAlgEquiv_symm_map (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 146 | (i : Fin (n + 1)) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) : |
| 147 | (affineChartPresentationAlgEquiv I i).symm (affineChartMap I i f) = |
| 148 | Ideal.Quotient.mk (affineChartIdeal I i) f := by |
| 149 | rw [← affineChartPresentationAlgEquiv_mk] |
| 150 | exact (affineChartPresentationAlgEquiv I i).symm_apply_apply _ |
| 151 | |
| 152 | end |
| 153 | |
| 154 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.ChartPresentation.GradedHilbert |