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.ChartOverlap |
| 2 | |
| 3 | /-! # Ideal Equivalence -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.IdealEquivalence.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | The correspondence between ideal sheaves on projective space and saturated |
| 11 | homogeneous ideals of its polynomial coordinate ring. |
| 12 | -/ |
| 13 | |
| 14 | open _root_.MvPolynomial _root_.CategoryTheory _root_.AlgebraicGeometry _root_.HomogeneousLocalization |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {R : Type u} [CommRing R] {n : ℕ} |
| 19 | |
| 20 | theorem projective_ideal_chart_map (J : (Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).IdealSheafData) |
| 21 | {d e : ℕ} {s t x : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n} |
| 22 | (hs : s ∈ Hilbert.Polynomial.GradedHilbert.grading R n d) (ht : t ∈ Hilbert.Polynomial.GradedHilbert.grading R n e) |
| 23 | (hd : 0 < d) (hx : x = s * t) : |
| 24 | ((J.ideal ⟨Proj.basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) s, |
| 25 | Proj.isAffineOpen_basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) s hs hd⟩).comap |
| 26 | (Proj.awayToSection (Hilbert.Polynomial.GradedHilbert.grading R n) s).hom).map |
| 27 | (HomogeneousLocalization.awayMap (Hilbert.Polynomial.GradedHilbert.grading R n) ht hx) = |
| 28 | (J.ideal ⟨Proj.basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) x, |
| 29 | Proj.isAffineOpen_basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) x |
| 30 | (hx ▸ SetLike.mul_mem_graded hs ht) (Nat.add_pos_left hd e)⟩).comap |
| 31 | (Proj.awayToSection (Hilbert.Polynomial.GradedHilbert.grading R n) x).hom := by |
| 32 | let U : (Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).affineOpens := |
| 33 | ⟨Proj.basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) s, Proj.isAffineOpen_basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) s hs hd⟩ |
| 34 | let V : (Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).affineOpens := |
| 35 | ⟨Proj.basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) x, Proj.isAffineOpen_basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) x |
| 36 | (hx ▸ SetLike.mul_mem_graded hs ht) (Nat.add_pos_left hd e)⟩ |
| 37 | let a := (Proj.awayToSection (Hilbert.Polynomial.GradedHilbert.grading R n) s).hom |
| 38 | let b := (Proj.awayToSection (Hilbert.Polynomial.GradedHilbert.grading R n) x).hom |
| 39 | let r := HomogeneousLocalization.awayMap (Hilbert.Polynomial.GradedHilbert.grading R n) ht hx |
| 40 | have hVU : V ≤ U := Proj.basicOpen_mono _ _ _ ⟨t, hx⟩ |
| 41 | let ρ := ((Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).presheaf.map (homOfLE hVU).op).hom |
| 42 | have ha : Function.Bijective a := |
| 43 | (Proj.basicOpenIsoAway (Hilbert.Polynomial.GradedHilbert.grading R n) s hs hd).commRingCatIsoToRingEquiv.bijective |
| 44 | have hb : Function.Bijective b := |
| 45 | (Proj.basicOpenIsoAway (Hilbert.Polynomial.GradedHilbert.grading R n) x (hx ▸ SetLike.mul_mem_graded hs ht) |
| 46 | (Nat.add_pos_left hd e)).commRingCatIsoToRingEquiv.bijective |
| 47 | have hdiag : b.comp r = ρ.comp a := by |
| 48 | exact congrArg CommRingCat.Hom.hom (Proj.awayMap_awayToSection (Hilbert.Polynomial.GradedHilbert.grading R n) ht hx) |
| 49 | change ((J.ideal U).comap a).map r = (J.ideal V).comap b |
| 50 | rw [← Ideal.comap_map_of_bijective b hb (I := ((J.ideal U).comap a).map r), |
| 51 | Ideal.map_map, hdiag, ← Ideal.map_map, Ideal.map_comap_of_surjective a ha.2, |
| 52 | J.map_ideal hVU] |
| 53 | |
| 54 | theorem projectiveChartIdeal_compatible (J : (Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).IdealSheafData) : |
| 55 | ChartOverlap.GradedHilbert.CompatibleChartIdeals (ChartHomogeneousIdeal.GradedHilbert.projectiveChartIdeal J) := by |
| 56 | intro i j |
| 57 | rw [ChartHomogeneousIdeal.GradedHilbert.projectiveChartIdeal, ChartHomogeneousIdeal.GradedHilbert.projectiveChartIdeal, ChartOverlap.GradedHilbert.chartOverlapLeft, ChartOverlap.GradedHilbert.chartOverlapRight, |
| 58 | projective_ideal_chart_map J (isHomogeneous_X R i) (isHomogeneous_X R j) |
| 59 | Nat.zero_lt_one rfl, |
| 60 | projective_ideal_chart_map J (isHomogeneous_X R j) (isHomogeneous_X R i) |
| 61 | Nat.zero_lt_one (mul_comm _ _)] |
| 62 | |
| 63 | theorem quotient_chart_kernel_eq_map (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 64 | (i : Fin (n + 1)) : |
| 65 | RingHom.ker (HomogeneousLocalization.Away.map (Graded.Quotient.GradedHilbert.gradedQuotientMap I) (X i)) = |
| 66 | I.toIdeal.map (Dehomogenization.GradedHilbert.dehomogenize i) := by |
| 67 | classical |
| 68 | apply le_antisymm |
| 69 | · intro z hz |
| 70 | obtain ⟨d, f, hf, rfl⟩ := |
| 71 | HomogeneousLocalization.Away.mk_surjective (Hilbert.Polynomial.GradedHilbert.grading R n) (isHomogeneous_X R i) z |
| 72 | have hf' : f ∈ Hilbert.Polynomial.GradedHilbert.grading R n d := by simpa only [smul_eq_mul, mul_one] using hf |
| 73 | obtain ⟨k, hk⟩ := (IdealRecovery.GradedHilbert.quotient_coordinateFraction_eq_zero_iff I i d ⟨f, hf'⟩).mp hz |
| 74 | have hmem := Ideal.mem_map_of_mem (Dehomogenization.GradedHilbert.dehomogenize i) hk |
| 75 | change IdealRecovery.GradedHilbert.coordinateFraction i d ⟨f, hf'⟩ ∈ I.toIdeal.map (Dehomogenization.GradedHilbert.dehomogenize i) |
| 76 | simpa only [map_mul, map_pow, Dehomogenization.GradedHilbert.dehomogenize_self, one_pow, one_mul, |
| 77 | Dehomogenization.GradedHilbert.dehomogenize_homogeneous i hf'] using hmem |
| 78 | · apply Ideal.map_le_iff_le_comap.mpr |
| 79 | intro f hf |
| 80 | rw [← DirectSum.sum_support_decompose (Hilbert.Polynomial.GradedHilbert.grading R n) f] |
| 81 | apply Ideal.sum_mem |
| 82 | intro d _ |
| 83 | change HomogeneousLocalization.Away.map (Graded.Quotient.GradedHilbert.gradedQuotientMap I) (X i) |
| 84 | (Dehomogenization.GradedHilbert.dehomogenize i (DirectSum.decompose (Hilbert.Polynomial.GradedHilbert.grading R n) f d).val) = 0 |
| 85 | rw [Dehomogenization.GradedHilbert.dehomogenize_homogeneous i (DirectSum.decompose (Hilbert.Polynomial.GradedHilbert.grading R n) f d).property] |
| 86 | apply (IdealRecovery.GradedHilbert.quotient_coordinateFraction_eq_zero_iff I i d _).mpr |
| 87 | exact ⟨0, by simpa only [pow_zero, one_mul] using I.isHomogeneous d hf⟩ |
| 88 | |
| 89 | theorem coordinateBasicOpen_cover : |
| 90 | (⨆ i : Fin (n + 1), Proj.basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) (X i)) = ⊤ := by |
| 91 | apply Proj.iSup_basicOpen_eq_top |
| 92 | apply (HomogeneousIdeal.toIdeal_irrelevant_le (Hilbert.Polynomial.GradedHilbert.grading R n)).mpr |
| 93 | intro d hd f hf |
| 94 | change f ∈ Ideal.span (Set.range (X : Fin (n + 1) → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n)) |
| 95 | rw [← Set.image_univ, mem_ideal_span_X_image] |
| 96 | intro a ha |
| 97 | have had : a.degree = d := (Hilbert.MonomialBasis.GradedHilbert.mem_degreeSpace_iff_support f d).mp hf a ha |
| 98 | have hex : ∃ i, a i ≠ 0 := by |
| 99 | by_contra! h |
| 100 | have haz : a = 0 := Finsupp.ext h |
| 101 | rw [haz] at had |
| 102 | simp only [map_zero] at had |
| 103 | omega |
| 104 | obtain ⟨i, hi⟩ := hex |
| 105 | exact ⟨i, Set.mem_univ i, hi⟩ |
| 106 | |
| 107 | theorem projectiveQuotient_homogeneousIdealOfSheaf |
| 108 | (J : (Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).IdealSheafData) : |
| 109 | (Quotient.GradedHilbert.projectiveQuotientInclusion (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf J)).ker = J := by |
| 110 | let U (i : Fin (n + 1)) : (Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).affineOpens := |
| 111 | ⟨Proj.basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) (X i), |
| 112 | Proj.isAffineOpen_basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) (X i) (isHomogeneous_X R i) Nat.zero_lt_one⟩ |
| 113 | apply Scheme.IdealSheafData.ext_of_iSup_eq_top U coordinateBasicOpen_cover |
| 114 | intro i |
| 115 | apply Ideal.comap_injective_of_surjective (Proj.awayToSection (Hilbert.Polynomial.GradedHilbert.grading R n) (X i)).hom |
| 116 | (Proj.basicOpenIsoAway (Hilbert.Polynomial.GradedHilbert.grading R n) (X i) (isHomogeneous_X R i) |
| 117 | Nat.zero_lt_one).commRingCatIsoToRingEquiv.surjective |
| 118 | rw [← IdealRecovery.GradedHilbert.projective_chart_kernel_eq (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf J) Nat.zero_lt_one (X i) |
| 119 | (isHomogeneous_X R i), quotient_chart_kernel_eq_map] |
| 120 | exact ChartOverlap.GradedHilbert.chartHomogeneousIdeal_map (ChartHomogeneousIdeal.GradedHilbert.projectiveChartIdeal J) (projectiveChartIdeal_compatible J) i |
| 121 | |
| 122 | /-- Closed subschemes of projective space are represented uniquely by |
| 123 | saturated homogeneous ideals of the polynomial coordinate ring. -/ |
| 124 | def saturatedProjectiveIdealEquiv : |
| 125 | {I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n) // Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal} ≃ |
| 126 | (Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).IdealSheafData where |
| 127 | toFun I := (Quotient.GradedHilbert.projectiveQuotientInclusion I.val).ker |
| 128 | invFun J := ⟨ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf J, ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf_saturated J⟩ |
| 129 | left_inv I := Subtype.ext (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf_projectiveQuotient I.val I.property) |
| 130 | right_inv := projectiveQuotient_homogeneousIdealOfSheaf |
| 131 | |
| 132 | end |
| 133 | |
| 134 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.IdealEquivalence.GradedHilbert |