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.Hilbert.MonomialBasis |
| 2 | import Mathlib.RingTheory.Localization.Ideal |
| 3 | |
| 4 | /-! # Localization -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Homogeneous saturation can be checked one projective coordinate chart at |
| 12 | a time. Powers of the individual variables suffice, by the pigeonhole |
| 13 | bound on monomials of a fixed degree. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.MvPolynomial |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {R : Type u} [CommRing R] {n : ℕ} |
| 21 | |
| 22 | theorem Saturation.Localization.GradedHilbert.monomial_degree_pigeonhole (k : Fin (n + 1) → ℕ) |
| 23 | (a : Fin (n + 1) →₀ ℕ) (ha : a.degree = ∑ i, k i) : ∃ i, k i ≤ a i := by |
| 24 | classical |
| 25 | by_contra! h |
| 26 | have hlt : (∑ i, a i) < ∑ i, k i := by |
| 27 | apply Finset.sum_lt_sum |
| 28 | · intro i _ |
| 29 | exact (h i).le |
| 30 | · exact ⟨0, Finset.mem_univ 0, h 0⟩ |
| 31 | rw [← Finsupp.degree_eq_sum, ha] at hlt |
| 32 | exact lt_irrefl _ hlt |
| 33 | |
| 34 | theorem Hilbert.Polynomial.GradedHilbert.IsSaturated.mem_of_variable_powers {I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n)} |
| 35 | (hI : Hilbert.Polynomial.GradedHilbert.IsSaturated I) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (d : ℕ) (hf : f.IsHomogeneous d) |
| 36 | (hpow : ∀ i : Fin (n + 1), ∃ k : ℕ, X i ^ k * f ∈ I) : f ∈ I := by |
| 37 | classical |
| 38 | choose k hk using hpow |
| 39 | apply hI f d hf |
| 40 | refine ⟨∑ i, k i, fun g hg => ?_⟩ |
| 41 | rw [← g.support_sum_monomial_coeff, Finset.sum_mul] |
| 42 | apply I.sum_mem |
| 43 | intro a ha |
| 44 | have had : a.degree = ∑ i, k i := (Hilbert.MonomialBasis.GradedHilbert.mem_degreeSpace_iff_support g _).mp hg a ha |
| 45 | obtain ⟨i, hi⟩ := Saturation.Localization.GradedHilbert.monomial_degree_pigeonhole k a had |
| 46 | have hei : Finsupp.single i (k i) ≤ a := Finsupp.single_le_iff.mpr hi |
| 47 | have hterm : monomial a (g.coeff a) * f = |
| 48 | monomial (a - Finsupp.single i (k i)) (g.coeff a) * (X i ^ k i * f) := by |
| 49 | rw [← mul_assoc, X_pow_eq_monomial, monomial_mul_monomial, mul_one, tsub_add_cancel_of_le hei] |
| 50 | rw [hterm] |
| 51 | exact I.mul_mem_left _ (hk i) |
| 52 | |
| 53 | theorem Saturation.Localization.GradedHilbert.saturated_eq_of_variable_power_membership |
| 54 | (I J : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (hI : Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal) (hJ : Hilbert.Polynomial.GradedHilbert.IsSaturated J.toIdeal) |
| 55 | (hIJ : ∀ (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (d : ℕ), f.IsHomogeneous d → f ∈ I.toIdeal → |
| 56 | ∀ i : Fin (n + 1), ∃ k : ℕ, X i ^ k * f ∈ J.toIdeal) |
| 57 | (hJI : ∀ (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (d : ℕ), f.IsHomogeneous d → f ∈ J.toIdeal → |
| 58 | ∀ i : Fin (n + 1), ∃ k : ℕ, X i ^ k * f ∈ I.toIdeal) : I = J := by |
| 59 | apply HomogeneousIdeal.ext' |
| 60 | intro d f hf |
| 61 | exact ⟨fun h => hJ.mem_of_variable_powers f d hf (hIJ f d hf h), |
| 62 | fun h => hI.mem_of_variable_powers f d hf (hJI f d hf h)⟩ |
| 63 | |
| 64 | theorem Saturation.Localization.GradedHilbert.saturated_eq_of_coordinate_localizations |
| 65 | (I J : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (hI : Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal) (hJ : Hilbert.Polynomial.GradedHilbert.IsSaturated J.toIdeal) |
| 66 | (hlocal : ∀ i : Fin (n + 1), |
| 67 | I.toIdeal.map (algebraMap (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (Localization.Away (X (R := R) i))) = |
| 68 | J.toIdeal.map (algebraMap (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (Localization.Away (X (R := R) i)))) : I = J := by |
| 69 | apply Saturation.Localization.GradedHilbert.saturated_eq_of_variable_power_membership I J hI hJ |
| 70 | · intro f _ _ hf i |
| 71 | have hmem := Ideal.mem_map_of_mem |
| 72 | (algebraMap (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (Localization.Away (X (R := R) i))) hf |
| 73 | rw [hlocal i] at hmem |
| 74 | obtain ⟨s, hsmem, hs⟩ := (IsLocalization.algebraMap_mem_map_algebraMap_iff |
| 75 | (Submonoid.powers (X i)) (Localization.Away (X (R := R) i)) J.toIdeal f).mp hmem |
| 76 | obtain ⟨k, hk⟩ := hsmem |
| 77 | rw [← hk] at hs |
| 78 | exact ⟨k, hs⟩ |
| 79 | · intro f _ _ hf i |
| 80 | have hmem := Ideal.mem_map_of_mem |
| 81 | (algebraMap (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (Localization.Away (X (R := R) i))) hf |
| 82 | rw [← hlocal i] at hmem |
| 83 | obtain ⟨s, hsmem, hs⟩ := (IsLocalization.algebraMap_mem_map_algebraMap_iff |
| 84 | (Submonoid.powers (X i)) (Localization.Away (X (R := R) i)) I.toIdeal f).mp hmem |
| 85 | obtain ⟨k, hk⟩ := hsmem |
| 86 | rw [← hk] at hs |
| 87 | exact ⟨k, hs⟩ |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations |