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.ScalarExtension |
| 2 | import Mathlib.FieldTheory.RatFunc.Basic |
| 3 | |
| 4 | /-! # Bound -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Uniform.Bound.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Uniform bounded generation over arbitrary coefficient fields. Bounded |
| 12 | generation descends along a field extension by applying linear functionals |
| 13 | to coefficients, and the rational-function extension supplies an infinite |
| 14 | coefficient field without changing saturation or the Hilbert polynomial. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.MvPolynomial |
| 18 | |
| 19 | universe u v |
| 20 | |
| 21 | variable {K : Type u} [Field K] {L : Type v} [Field L] [Algebra K L] {n : ℕ} |
| 22 | |
| 23 | def boundedHomogeneousForms (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (N : ℕ) : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) := |
| 24 | {f | f ∈ I ∧ f ≠ 0 ∧ ∃ d ≤ N, f.IsHomogeneous d} |
| 25 | |
| 26 | theorem bounded_generation_descends (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (N : ℕ) |
| 27 | (B : Finset (Hilbert.Polynomial.GradedHilbert.CoordinateRing L n)) |
| 28 | (hB : CoefficientMaps.GradedHilbert.scalarExtendedIdeal (L := L) I = Ideal.span (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing L n))) |
| 29 | (hhom : ∀ b ∈ B, ∃ d ≤ N, b.IsHomogeneous d) : |
| 30 | ∃ F : Finset (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n), I = Ideal.span (F : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) ∧ |
| 31 | ∀ f ∈ F, f ≠ 0 ∧ ∃ d ≤ N, f.IsHomogeneous d := by |
| 32 | classical |
| 33 | let S := boundedHomogeneousForms I N |
| 34 | let J := Ideal.span S |
| 35 | have hJI : J ≤ I := Ideal.span_le.mpr fun _ hf => hf.1 |
| 36 | have hExt : CoefficientMaps.GradedHilbert.scalarExtendedIdeal (L := L) I ≤ CoefficientMaps.GradedHilbert.scalarExtendedIdeal (L := L) J := by |
| 37 | rw [hB] |
| 38 | apply Ideal.span_le.mpr |
| 39 | intro b hb |
| 40 | apply (ScalarExtension.GradedHilbert.mem_scalarExtendedIdeal_iff J b).mpr |
| 41 | intro φ |
| 42 | by_cases hzero : CoefficientMaps.GradedHilbert.coefficientApply φ b = 0 |
| 43 | · rw [hzero] |
| 44 | exact J.zero_mem |
| 45 | · obtain ⟨d, hd, hbd⟩ := hhom b hb |
| 46 | apply Ideal.subset_span |
| 47 | refine ⟨?_, hzero, d, hd, CoefficientMaps.GradedHilbert.coefficientApply_homogeneous φ hbd⟩ |
| 48 | apply CoefficientMaps.GradedHilbert.coefficientApply_mem_of_mem_scalarExtendedIdeal I φ |
| 49 | rw [hB] |
| 50 | exact Ideal.subset_span hb |
| 51 | have hIJ : I ≤ J := by |
| 52 | intro f hf |
| 53 | apply (ScalarExtension.GradedHilbert.map_mem_scalarExtendedIdeal_iff (L := L) J f).mp |
| 54 | apply hExt |
| 55 | exact (ScalarExtension.GradedHilbert.map_mem_scalarExtendedIdeal_iff (L := L) I f).mpr hf |
| 56 | have hIeq : I = J := le_antisymm hIJ hJI |
| 57 | have hfg : (Submodule.span (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) S).FG := J.fg_of_isNoetherianRing |
| 58 | obtain ⟨F, hFS, hF⟩ := |
| 59 | (Submodule.fg_span_iff_fg_span_finset_subset (R := Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) S).mp hfg |
| 60 | refine ⟨F, hIeq.trans hF, fun f hf => ?_⟩ |
| 61 | exact (hFS hf).2 |
| 62 | |
| 63 | /-- The uniform boundedness theorem for saturated homogeneous coordinate |
| 64 | ideals over all fields. The bound depends only on the number of variables |
| 65 | and the specified Hilbert polynomial. -/ |
| 66 | theorem exists_uniform_homogeneous_degree_bound (n : ℕ) (P : Polynomial ℚ) : |
| 67 | ∃ N : ℕ, ∀ (K : Type u) [Field K] (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)), |
| 68 | Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal → Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P → |
| 69 | ∃ B : Finset (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n), I.toIdeal = Ideal.span (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) ∧ |
| 70 | ∀ b ∈ B, b ≠ 0 ∧ ∃ d ≤ N, b.IsHomogeneous d := by |
| 71 | obtain ⟨N, hN⟩ := InfiniteFieldBound.GradedHilbert.exists_uniform_homogeneous_degree_bound_infinite.{u} n P |
| 72 | refine ⟨N, fun K _ I hSat hP => ?_⟩ |
| 73 | let : Infinite (RatFunc K) := Infinite.of_injective _ (RatFunc.algebraMap_injective K) |
| 74 | let J := ScalarExtension.GradedHilbert.scalarExtendedHomogeneousIdeal (L := RatFunc K) I |
| 75 | have hSatJ : Hilbert.Polynomial.GradedHilbert.IsSaturated J.toIdeal := ScalarExtension.GradedHilbert.scalarExtendedIdeal_isSaturated I.toIdeal hSat |
| 76 | have hPJ : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial J.toIdeal P := |
| 77 | (Hilbert.ScalarExtension.GradedHilbert.hasHilbertPolynomial_scalarExtended_iff I P).mpr hP |
| 78 | obtain ⟨B, hB, hhom⟩ := hN (RatFunc K) J hSatJ hPJ |
| 79 | exact bounded_generation_descends I.toIdeal N B hB (fun b hb => (hhom b hb).2) |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Uniform.Bound.GradedHilbert |