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.RegularInitialIdeal |
| 2 | import Mathlib.RingTheory.Ideal.AssociatedPrime.Finiteness |
| 3 | import Mathlib.RingTheory.Regular.IsSMulRegular |
| 4 | import Mathlib.RingTheory.Polynomial.Basic |
| 5 | import Mathlib.Algebra.Module.Submodule.Union |
| 6 | |
| 7 | /-! # Regular Linear Form -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.RegularLinearForm.GradedHilbert |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | Saturation excludes associated primes containing all linear forms. Over |
| 15 | an infinite field, finite subspace avoidance therefore produces a regular |
| 16 | linear form on the homogeneous coordinate quotient. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.MvPolynomial |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable {K : Type u} [Field K] {n : ℕ} |
| 24 | |
| 25 | theorem saturated_mem_of_linear_multiples (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) |
| 26 | (hSat : Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) |
| 27 | (hf : ∀ g : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n, g.IsHomogeneous 1 → g * f ∈ I.toIdeal) : |
| 28 | f ∈ I.toIdeal := by |
| 29 | apply (Ideal.IsHomogeneous.mem_iff (Hilbert.Polynomial.GradedHilbert.grading K n) I.isHomogeneous).mpr |
| 30 | intro d |
| 31 | apply hSat ((DirectSum.decompose (Hilbert.Polynomial.GradedHilbert.grading K n) f d).val) d |
| 32 | (DirectSum.decompose (Hilbert.Polynomial.GradedHilbert.grading K n) f d).property |
| 33 | refine ⟨1, fun g hg => ?_⟩ |
| 34 | have h := (Ideal.IsHomogeneous.mem_iff (Hilbert.Polynomial.GradedHilbert.grading K n) I.isHomogeneous).mp (hf g hg) (1 + d) |
| 35 | rw [DirectSum.coe_decompose_mul_add_of_left_mem (Hilbert.Polynomial.GradedHilbert.grading K n) hg] at h |
| 36 | exact h |
| 37 | |
| 38 | theorem associatedPrime_linearPart_ne_top (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) |
| 39 | (hSat : Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal) (P : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) |
| 40 | (hP : P ∈ associatedPrimes (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n ⧸ I.toIdeal)) : |
| 41 | (P.restrictScalars K).comap (Hilbert.Polynomial.GradedHilbert.grading K n 1).subtype ≠ ⊤ := by |
| 42 | intro htop |
| 43 | obtain ⟨hprime, x, hPx⟩ := isAssociatedPrime_iff.mp hP |
| 44 | obtain ⟨f, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 45 | have hf : f ∈ I.toIdeal := by |
| 46 | apply saturated_mem_of_linear_multiples I hSat f |
| 47 | intro g hg |
| 48 | have hPg : g ∈ P := by |
| 49 | have hmem : (⟨g, hg⟩ : Hilbert.Polynomial.GradedHilbert.grading K n 1) ∈ |
| 50 | (P.restrictScalars K).comap (Hilbert.Polynomial.GradedHilbert.grading K n 1).subtype := by |
| 51 | rw [htop] |
| 52 | exact Submodule.mem_top |
| 53 | exact hmem |
| 54 | rw [hPx] at hPg |
| 55 | have hz := Submodule.mem_colon_singleton.mp hPg |
| 56 | change g • Ideal.Quotient.mk I.toIdeal f = 0 at hz |
| 57 | exact Ideal.Quotient.eq_zero_iff_mem.mp hz |
| 58 | have hzero := Ideal.Quotient.eq_zero_iff_mem.mpr hf |
| 59 | rw [hzero, Submodule.colon_singleton_zero] at hPx |
| 60 | exact hprime.ne_top hPx |
| 61 | |
| 62 | theorem exists_regular_linear_form [Infinite K] |
| 63 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) (hSat : Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal) : |
| 64 | ∃ l : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n, l.IsHomogeneous 1 ∧ l ≠ 0 ∧ |
| 65 | ∀ f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n, l * f ∈ I.toIdeal → f ∈ I.toIdeal := by |
| 66 | classical |
| 67 | by_cases htop : I.toIdeal = ⊤ |
| 68 | · refine ⟨X 0, isHomogeneous_X K 0, X_ne_zero 0, fun f _ => ?_⟩ |
| 69 | rw [htop] |
| 70 | exact Submodule.mem_top |
| 71 | let Ass := associatedPrimes (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n ⧸ I.toIdeal) |
| 72 | let : Fintype Ass := (associatedPrimes.finite (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) |
| 73 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n ⧸ I.toIdeal)).fintype |
| 74 | let p (P : Ass) : Submodule K (Hilbert.Polynomial.GradedHilbert.grading K n 1) := |
| 75 | (P.val.restrictScalars K).comap (Hilbert.Polynomial.GradedHilbert.grading K n 1).subtype |
| 76 | obtain ⟨l, hl⟩ := Submodule.exists_forall_notMem_of_forall_ne_top p |
| 77 | (fun P => associatedPrime_linearPart_ne_top I hSat P.val P.property) |
| 78 | have hlreg : IsSMulRegular (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n ⧸ I.toIdeal) l.val := by |
| 79 | by_contra hreg |
| 80 | have hmem : l.val ∈ {r : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n | |
| 81 | IsSMulRegular (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n ⧸ I.toIdeal) r}ᶜ := hreg |
| 82 | rw [← biUnion_associatedPrimes_eq_compl_regular] at hmem |
| 83 | obtain ⟨P, hP⟩ := Set.mem_iUnion.mp hmem |
| 84 | obtain ⟨hPass, hPl⟩ := Set.mem_iUnion.mp hP |
| 85 | exact hl ⟨P, hPass⟩ hPl |
| 86 | have hcancel (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) (hf : l.val * f ∈ I.toIdeal) : f ∈ I.toIdeal := by |
| 87 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 88 | apply isSMulRegular_iff_right_eq_zero_of_smul.mp hlreg |
| 89 | exact Ideal.Quotient.eq_zero_iff_mem.mpr hf |
| 90 | refine ⟨l.val, l.property, ?_, hcancel⟩ |
| 91 | intro hlzero |
| 92 | apply htop |
| 93 | apply eq_top_iff.mpr |
| 94 | intro f _ |
| 95 | apply hcancel f |
| 96 | rw [hlzero, zero_mul] |
| 97 | exact I.toIdeal.zero_mem |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.RegularLinearForm.GradedHilbert |