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.Polynomial.Dehomogenization |
| 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.Polynomial.ChartPresentation.PolynomialProjective |
| 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 v |
| 20 | |
| 21 | variable {R : Type u} [CommRing R] {σ : Type v} |
| 22 | |
| 23 | def affineChartIdeal (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) (i : σ) : |
| 24 | Ideal (MvPolynomial σ R) := I.toIdeal ⊔ Ideal.span {X i - 1} |
| 25 | |
| 26 | def affineChartMap (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) (i : σ) : |
| 27 | MvPolynomial σ R →+* |
| 28 | HomogeneousLocalization.Away (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i)) := |
| 29 | (HomogeneousLocalization.Away.map (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I) (X i)).comp (Dehomogenization.PolynomialProjective.dehomogenize i) |
| 30 | |
| 31 | theorem affineChartMap_homogeneous (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) |
| 32 | (i : σ) {f : MvPolynomial σ R} {d : ℕ} (hf : f.IsHomogeneous d) : |
| 33 | affineChartMap I i f = HomogeneousLocalization.Away.mk (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) |
| 34 | ((Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I).map_mem (isHomogeneous_X R i)) d (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I f) |
| 35 | (by rw [smul_eq_mul, mul_one]; exact ⟨f, hf, rfl⟩) := by |
| 36 | change HomogeneousLocalization.Away.map (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I) (X i) (Dehomogenization.PolynomialProjective.dehomogenize i f) = _ |
| 37 | rw [Dehomogenization.PolynomialProjective.dehomogenize_homogeneous i hf] |
| 38 | erw [Dehomogenization.PolynomialProjective.coordinateFraction, HomogeneousLocalization.Away.map_mk] |
| 39 | |
| 40 | theorem affineChartMap_surjective (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) (i : σ) : |
| 41 | Function.Surjective (affineChartMap I i) := |
| 42 | (Homogeneous.ProjectiveQuotient.HomogeneousQuotient.quotient_away_map_surjective I (X i) (isHomogeneous_X R i)).comp (Dehomogenization.PolynomialProjective.dehomogenize_surjective i) |
| 43 | |
| 44 | theorem affineChartIdeal_le_kernel (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) (i : σ) : |
| 45 | affineChartIdeal I i ≤ RingHom.ker (affineChartMap I i) := by |
| 46 | apply sup_le |
| 47 | · intro f hf |
| 48 | classical |
| 49 | change affineChartMap I i f = 0 |
| 50 | rw [← DirectSum.sum_support_decompose (Dehomogenization.PolynomialProjective.polynomialGrading σ R) f, map_sum] |
| 51 | apply Finset.sum_eq_zero |
| 52 | intro d _hd |
| 53 | rw [affineChartMap_homogeneous I i (DirectSum.decompose (Dehomogenization.PolynomialProjective.polynomialGrading σ R) f d).property] |
| 54 | apply HomogeneousLocalization.val_injective |
| 55 | rw [HomogeneousLocalization.Away.val_mk, HomogeneousLocalization.val_zero] |
| 56 | have hz : Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I ((DirectSum.decompose (Dehomogenization.PolynomialProjective.polynomialGrading σ R) f d).val) = 0 := |
| 57 | Ideal.Quotient.eq_zero_iff_mem.mpr (I.isHomogeneous d hf) |
| 58 | simp only [hz, Localization.mk_zero] |
| 59 | · apply Ideal.span_le.mpr |
| 60 | rintro f (rfl : f = X i - 1) |
| 61 | change affineChartMap I i (X i - 1) = 0 |
| 62 | simp only [affineChartMap, RingHom.comp_apply, map_sub, map_one, Dehomogenization.PolynomialProjective.dehomogenize_self, sub_self] |
| 63 | |
| 64 | def affineChartFactor (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) (i : σ) : |
| 65 | (MvPolynomial σ R ⧸ I.toIdeal) →+* (MvPolynomial σ R ⧸ affineChartIdeal I i) := |
| 66 | Ideal.Quotient.factor le_sup_left |
| 67 | |
| 68 | theorem affineChartFactor_variable (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) (i : σ) : |
| 69 | affineChartFactor I i (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i)) = 1 := by |
| 70 | change Ideal.Quotient.mk (affineChartIdeal I i) (X i) = 1 |
| 71 | apply sub_eq_zero.mp |
| 72 | rw [← map_one (Ideal.Quotient.mk (affineChartIdeal I i)), ← map_sub] |
| 73 | apply Ideal.Quotient.eq_zero_iff_mem.mpr |
| 74 | exact (show Ideal.span {X i - 1} ≤ affineChartIdeal I i from le_sup_right) |
| 75 | (Ideal.subset_span (Set.mem_singleton (X i - 1))) |
| 76 | |
| 77 | def affineChartInverse (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) (i : σ) : |
| 78 | HomogeneousLocalization.Away (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i)) →+* |
| 79 | MvPolynomial σ R ⧸ affineChartIdeal I i := |
| 80 | (Localization.awayLift (affineChartFactor I i) (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i)) |
| 81 | (isUnit_iff_exists_inv.mpr ⟨1, by rw [affineChartFactor_variable, one_mul]⟩)).comp |
| 82 | (algebraMap _ _) |
| 83 | |
| 84 | theorem affineChartInverse_homogeneous (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) |
| 85 | (i : σ) {f : MvPolynomial σ R} {d : ℕ} (hf : f.IsHomogeneous d) : |
| 86 | affineChartInverse I i (affineChartMap I i f) = Ideal.Quotient.mk (affineChartIdeal I i) f := by |
| 87 | change (Localization.awayLift (affineChartFactor I i) (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i)) |
| 88 | (isUnit_iff_exists_inv.mpr ⟨1, by rw [affineChartFactor_variable, one_mul]⟩)) |
| 89 | (HomogeneousLocalization.Away.map (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I) (X i) (Dehomogenization.PolynomialProjective.dehomogenize i f)).val = _ |
| 90 | rw [Dehomogenization.PolynomialProjective.dehomogenize_homogeneous i hf] |
| 91 | erw [Dehomogenization.PolynomialProjective.coordinateFraction, HomogeneousLocalization.Away.map_mk, |
| 92 | HomogeneousLocalization.Away.val_mk, |
| 93 | Localization.awayLift_mk (affineChartFactor I i) (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i)) |
| 94 | (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I f) 1 (by rw [affineChartFactor_variable, one_mul]) d] |
| 95 | simp only [one_pow, mul_one] |
| 96 | rfl |
| 97 | |
| 98 | theorem affineChartInverse_comp (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) (i : σ) : |
| 99 | (affineChartInverse I i).comp (affineChartMap I i) = Ideal.Quotient.mk (affineChartIdeal I i) := by |
| 100 | ext x |
| 101 | · exact affineChartInverse_homogeneous I i (isHomogeneous_C _ x) |
| 102 | · exact affineChartInverse_homogeneous I i (isHomogeneous_X R x) |
| 103 | |
| 104 | theorem affineChartMap_kernel (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) (i : σ) : |
| 105 | RingHom.ker (affineChartMap I i) = affineChartIdeal I i := by |
| 106 | apply le_antisymm |
| 107 | · intro f hf |
| 108 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 109 | rw [← affineChartInverse_comp I i] |
| 110 | change affineChartInverse I i (affineChartMap I i f) = 0 |
| 111 | rw [show affineChartMap I i f = 0 from hf, map_zero] |
| 112 | · exact affineChartIdeal_le_kernel I i |
| 113 | |
| 114 | /-- The usual affine chart presentation, valid for every commutative |
| 115 | coefficient ring and every homogeneous ideal. -/ |
| 116 | def affineChartPresentationEquiv (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) (i : σ) : |
| 117 | (MvPolynomial σ R ⧸ affineChartIdeal I i) ≃+* |
| 118 | HomogeneousLocalization.Away (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i)) := |
| 119 | (Ideal.quotEquivOfEq (affineChartMap_kernel I i).symm).trans |
| 120 | (RingHom.quotientKerEquivOfSurjective (affineChartMap_surjective I i)) |
| 121 | |
| 122 | theorem affineChartPresentationEquiv_mk (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) |
| 123 | (i : σ) (f : MvPolynomial σ R) : |
| 124 | affineChartPresentationEquiv I i (Ideal.Quotient.mk (affineChartIdeal I i) f) = |
| 125 | affineChartMap I i f := rfl |
| 126 | |
| 127 | theorem affineChartMap_C (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) (i : σ) (r : R) : |
| 128 | affineChartMap I i (C r) = |
| 129 | algebraMap R (HomogeneousLocalization.Away (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i))) r := by |
| 130 | change HomogeneousLocalization.Away.map (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I) (X i) (Dehomogenization.PolynomialProjective.dehomogenize i (C r)) = _ |
| 131 | rw [Dehomogenization.PolynomialProjective.dehomogenize_homogeneous i (isHomogeneous_C _ r)] |
| 132 | erw [Dehomogenization.PolynomialProjective.coordinateFraction, HomogeneousLocalization.Away.map_mk] |
| 133 | apply HomogeneousLocalization.val_injective |
| 134 | rw [HomogeneousLocalization.Away.val_mk, Algebra.algebraMap_eq_smul_one, |
| 135 | HomogeneousLocalization.val_smul, HomogeneousLocalization.val_one] |
| 136 | change Localization.mk (Ideal.Quotient.mk I.toIdeal (C r)) 1 = |
| 137 | r • (1 : Localization.Away (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i))) |
| 138 | rw [Localization.mk_eq_mk', IsLocalization.mk'_one, Algebra.smul_def, mul_one] |
| 139 | exact (IsScalarTower.algebraMap_apply R (MvPolynomial σ R ⧸ I.toIdeal) |
| 140 | (Localization.Away (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i))) r).symm |
| 141 | |
| 142 | def affineChartPresentationAlgEquiv (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) (i : σ) : |
| 143 | (MvPolynomial σ R ⧸ affineChartIdeal I i) ≃ₐ[R] |
| 144 | HomogeneousLocalization.Away (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i)) where |
| 145 | __ := affineChartPresentationEquiv I i |
| 146 | commutes' r := affineChartMap_C I i r |
| 147 | |
| 148 | theorem affineChartPresentationAlgEquiv_mk (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) |
| 149 | (i : σ) (f : MvPolynomial σ R) : |
| 150 | affineChartPresentationAlgEquiv I i (Ideal.Quotient.mk (affineChartIdeal I i) f) = |
| 151 | affineChartMap I i f := rfl |
| 152 | |
| 153 | theorem affineChartPresentationAlgEquiv_symm_map (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) |
| 154 | (i : σ) (f : MvPolynomial σ R) : |
| 155 | (affineChartPresentationAlgEquiv I i).symm (affineChartMap I i f) = |
| 156 | Ideal.Quotient.mk (affineChartIdeal I i) f := by |
| 157 | rw [← affineChartPresentationAlgEquiv_mk] |
| 158 | exact (affineChartPresentationAlgEquiv I i).symm_apply_apply _ |
| 159 | |
| 160 | end |
| 161 | |
| 162 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.ChartPresentation.PolynomialProjective |