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 Mathlib.RingTheory.MvPolynomial.Ideal |
| 3 | import Mathlib.RingTheory.Noetherian.Basic |
| 4 | import Mathlib.Data.Fintype.Option |
| 5 | import Mathlib.Data.Fintype.EquivFin |
| 6 | |
| 7 | /-! # Projective Ideal Generators -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.ProjectiveIdealGenerators.Construction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Common-degree homogeneous generators for ideal sheaves on projective space. -/ |
| 14 | |
| 15 | open _root_.MvPolynomial _root_.AlgebraicGeometry |
| 16 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.IdealEquivalence.GradedHilbert |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] {n : ℕ} |
| 21 | |
| 22 | /-- A homogeneous ideal has finitely many homogeneous generators, each |
| 23 | with its actual degree. -/ |
| 24 | theorem exists_finite_homogeneous_ideal_generators (I : HomogeneousIdeal (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.grading R n)) : |
| 25 | ∃ (s : Finset (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.CoordinateRing R n)) (d : s → ℕ), |
| 26 | (∀ p : s, p.val.IsHomogeneous (d p)) ∧ Ideal.span (s : Set (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.CoordinateRing R n)) = I.toIdeal := by |
| 27 | classical |
| 28 | obtain ⟨H, hH⟩ := (Ideal.IsHomogeneous.iff_exists (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.grading R n) I.toIdeal).mp I.isHomogeneous |
| 29 | have hfg : (Ideal.span (Subtype.val '' H)).FG := hH ▸ IsNoetherian.noetherian I.toIdeal |
| 30 | obtain ⟨s, hs, hspan⟩ := (Submodule.fg_span_iff_fg_span_finset_subset (Subtype.val '' H)).mp hfg |
| 31 | have hhom : ∀ p : s, ∃ d : ℕ, p.val.IsHomogeneous d := by |
| 32 | intro p |
| 33 | obtain ⟨v, _, hv⟩ := hs p.property |
| 34 | obtain ⟨d, hd⟩ := v.property |
| 35 | exact ⟨d, hv ▸ hd⟩ |
| 36 | choose d hd using hhom |
| 37 | exact ⟨s, d, hd, hspan.symm.trans hH.symm⟩ |
| 38 | |
| 39 | /-- Raising each generator to a common degree with powers of each chart |
| 40 | coordinate retains all dehomogenized ideals on every standard chart. -/ |
| 41 | theorem exists_common_degree_projective_generators (I : HomogeneousIdeal (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.grading R n)) : |
| 42 | ∃ (ι : Type u) (_ : Fintype ι) (D : ℕ) (p : ι → HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.CoordinateRing R n), |
| 43 | 0 < D ∧ (∀ j, (p j).IsHomogeneous D) ∧ (∀ j, p j ∈ I.toIdeal) ∧ |
| 44 | ∀ i : Fin (n + 1), Ideal.span (Set.range (fun j => HilbertScheme.Presentations.Dehomogenization.GradedHilbert.dehomogenize i (p j))) = |
| 45 | I.toIdeal.map (HilbertScheme.Presentations.Dehomogenization.GradedHilbert.dehomogenize i) := by |
| 46 | classical |
| 47 | obtain ⟨s, d, hhom, hgen⟩ := exists_finite_homogeneous_ideal_generators I |
| 48 | let D := (Finset.univ.sup d) + 1 |
| 49 | have hd : ∀ j : s, d j ≤ D := fun j => |
| 50 | (Finset.le_sup (f := d) (Finset.mem_univ j)).trans (Nat.le_succ _) |
| 51 | let p : Fin (n + 1) × s → HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.CoordinateRing R n := fun j => |
| 52 | X j.1 ^ (D - d j.2) * j.2.val |
| 53 | have hmem : ∀ j, p j ∈ I.toIdeal := by |
| 54 | intro j |
| 55 | apply I.toIdeal.mul_mem_left |
| 56 | rw [← hgen] |
| 57 | exact Ideal.subset_span j.2.property |
| 58 | refine ⟨Fin (n + 1) × s, inferInstance, D, p, Nat.zero_lt_succ _, ?_, hmem, ?_⟩ |
| 59 | · intro j |
| 60 | simpa only [Nat.one_mul, Nat.sub_add_cancel (hd j.2)] using |
| 61 | ((isHomogeneous_X R j.1).pow (D - d j.2)).mul (hhom j.2) |
| 62 | · intro i |
| 63 | apply le_antisymm |
| 64 | · apply Ideal.span_le.mpr |
| 65 | rintro _ ⟨j, rfl⟩ |
| 66 | exact Ideal.mem_map_of_mem _ (hmem j) |
| 67 | · rw [← hgen, Ideal.map_span] |
| 68 | apply Ideal.span_le.mpr |
| 69 | rintro _ ⟨q, hq, rfl⟩ |
| 70 | have he : HilbertScheme.Presentations.Dehomogenization.GradedHilbert.dehomogenize i (p (i, ⟨q, hq⟩)) = HilbertScheme.Presentations.Dehomogenization.GradedHilbert.dehomogenize i q := by |
| 71 | simp only [p, map_mul, map_pow, HilbertScheme.Presentations.Dehomogenization.GradedHilbert.dehomogenize_self, one_pow, one_mul] |
| 72 | rw [← he] |
| 73 | exact Ideal.subset_span ⟨(i, ⟨q, hq⟩), rfl⟩ |
| 74 | |
| 75 | /-- Every projective ideal sheaf is generated on every standard affine |
| 76 | chart by the dehomogenizations of a finite family of forms of one positive degree. -/ |
| 77 | theorem projective_idealSheaf_exists_common_degree_generators |
| 78 | (J : (Proj (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.grading R n)).IdealSheafData) : |
| 79 | ∃ (ι : Type u) (_ : Fintype ι) (D : ℕ) (p : ι → HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.CoordinateRing R n), |
| 80 | 0 < D ∧ (∀ j, (p j).IsHomogeneous D) ∧ |
| 81 | ∀ i : Fin (n + 1), Ideal.span (Set.range (fun j => HilbertScheme.Presentations.Dehomogenization.GradedHilbert.dehomogenize i (p j))) = |
| 82 | HilbertScheme.Presentations.ChartHomogeneousIdeal.GradedHilbert.projectiveChartIdeal J i := by |
| 83 | obtain ⟨ι, hι, D, p, hD, hhom, _, hgen⟩ := |
| 84 | exists_common_degree_projective_generators (HilbertScheme.Presentations.ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf J) |
| 85 | refine ⟨ι, hι, D, p, hD, hhom, ?_⟩ |
| 86 | intro i |
| 87 | exact (hgen i).trans (HilbertScheme.Presentations.Projective.ChartOverlap.GradedHilbert.chartHomogeneousIdeal_map (HilbertScheme.Presentations.ChartHomogeneousIdeal.GradedHilbert.projectiveChartIdeal J) |
| 88 | (HilbertScheme.Presentations.Projective.IdealEquivalence.GradedHilbert.projectiveChartIdeal_compatible J) i) |
| 89 | |
| 90 | /-- Padding by a zero form gives an ordinary nonempty finite projective |
| 91 | coordinate family, including when the ideal sheaf is zero. -/ |
| 92 | theorem projective_idealSheaf_exists_fin_common_degree_generators |
| 93 | (J : (Proj (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.grading R n)).IdealSheafData) : |
| 94 | ∃ (m D : ℕ) (p : Fin (m + 1) → HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.CoordinateRing R n), |
| 95 | 0 < D ∧ (∀ j, (p j).IsHomogeneous D) ∧ |
| 96 | ∀ i : Fin (n + 1), Ideal.span (Set.range (fun j => HilbertScheme.Presentations.Dehomogenization.GradedHilbert.dehomogenize i (p j))) = |
| 97 | HilbertScheme.Presentations.ChartHomogeneousIdeal.GradedHilbert.projectiveChartIdeal J i := by |
| 98 | classical |
| 99 | obtain ⟨ι, hι, D, p, hD, hhom, hgen⟩ := |
| 100 | projective_idealSheaf_exists_common_degree_generators J |
| 101 | let e : Option ι ≃ Fin (Fintype.card ι + 1) := |
| 102 | Fintype.equivFinOfCardEq Fintype.card_option |
| 103 | let q : Option ι → HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.CoordinateRing R n := fun j => j.elim 0 p |
| 104 | refine ⟨Fintype.card ι, D, q ∘ e.symm, hD, ?_, ?_⟩ |
| 105 | · intro j |
| 106 | change (q (e.symm j)).IsHomogeneous D |
| 107 | cases e.symm j with |
| 108 | | none => exact (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.grading R n D).zero_mem |
| 109 | | some j => exact hhom j |
| 110 | · intro i |
| 111 | change Ideal.span (Set.range ((fun j => HilbertScheme.Presentations.Dehomogenization.GradedHilbert.dehomogenize i (q j)) ∘ e.symm)) = _ |
| 112 | rw [e.symm.surjective.range_comp] |
| 113 | apply le_antisymm |
| 114 | · apply Ideal.span_le.mpr |
| 115 | rintro _ ⟨j, rfl⟩ |
| 116 | cases j with |
| 117 | | none => |
| 118 | change HilbertScheme.Presentations.Dehomogenization.GradedHilbert.dehomogenize i 0 ∈ HilbertScheme.Presentations.ChartHomogeneousIdeal.GradedHilbert.projectiveChartIdeal J i |
| 119 | rw [map_zero] |
| 120 | exact (HilbertScheme.Presentations.ChartHomogeneousIdeal.GradedHilbert.projectiveChartIdeal J i).zero_mem |
| 121 | | some j => |
| 122 | rw [← hgen i] |
| 123 | exact Ideal.subset_span ⟨j, rfl⟩ |
| 124 | · rw [← hgen i] |
| 125 | apply Ideal.span_le.mpr |
| 126 | rintro _ ⟨j, rfl⟩ |
| 127 | exact Ideal.subset_span ⟨some j, rfl⟩ |
| 128 | |
| 129 | end |
| 130 | |
| 131 | end OAI.AlgebraicGeometry.Resolution.Blowups.ProjectiveIdealGenerators.Construction |