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.Uniform.Bound |
| 2 | |
| 3 | /-! # Function -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Uniform.Function.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Saturated homogeneous ideals over arbitrary fields have Hilbert functions |
| 11 | among those of saturated monomial ideals over the rational numbers. This |
| 12 | gives a finite set of Hilbert functions and a uniform degree from which the |
| 13 | Hilbert function agrees with the prescribed Hilbert polynomial. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.MvPolynomial |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {K : Type u} [Field K] {n : ℕ} |
| 21 | |
| 22 | theorem exists_rational_monomial_hilbertFunction (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) |
| 23 | (hSat : Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal) : |
| 24 | ∃ J : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading ℚ n), SaturatedMonomialIdeals.GradedHilbert.IsMonomial J.toIdeal ∧ Hilbert.Polynomial.GradedHilbert.IsSaturated J.toIdeal ∧ |
| 25 | ∀ d : ℕ, Hilbert.Polynomial.GradedHilbert.hilbertFunction J.toIdeal d = Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal d := by |
| 26 | let L := RatFunc K |
| 27 | let : Infinite L := Infinite.of_injective _ (RatFunc.algebraMap_injective K) |
| 28 | let IE := ScalarExtension.GradedHilbert.scalarExtendedHomogeneousIdeal (L := L) I |
| 29 | have hSatE : Hilbert.Polynomial.GradedHilbert.IsSaturated IE.toIdeal := ScalarExtension.GradedHilbert.scalarExtendedIdeal_isSaturated I.toIdeal hSat |
| 30 | obtain ⟨l, hl, hl0, hreg⟩ := RegularLinearForm.GradedHilbert.exists_regular_linear_form IE hSatE |
| 31 | obtain ⟨e, he⟩ := Linear.Changes.GradedHilbert.exists_coordinate_change l hl hl0 |
| 32 | let IC := InfiniteFieldBound.GradedHilbert.changedIdeal e IE |
| 33 | have hregC : RegularInitialIdeal.GradedHilbert.VariableRegular IC.toIdeal 0 := by |
| 34 | intro f hf |
| 35 | apply hreg |
| 36 | change Linear.Changes.GradedHilbert.extendLinearEquiv e (X 0 * f) ∈ IE.toIdeal at hf |
| 37 | rw [map_mul, he] at hf |
| 38 | exact hf |
| 39 | let m := WeightedOrder.GradedHilbert.variableLastOrder (0 : Fin (n + 1)) |
| 40 | obtain ⟨S, hS⟩ := InitialIdeal.GradedHilbert.initialIdeal_isMonomial m IC.toIdeal |
| 41 | have hSatS : Hilbert.Polynomial.GradedHilbert.IsSaturated (Hilbert.MonomialBasis.GradedHilbert.monomialSpan L S).toIdeal := by |
| 42 | change Hilbert.Polynomial.GradedHilbert.IsSaturated (Ideal.span ((fun a => monomial a (1 : L)) '' S)) |
| 43 | rw [← hS] |
| 44 | exact RegularInitialIdeal.GradedHilbert.initialIdeal_isSaturated 0 IC hregC |
| 45 | refine ⟨Hilbert.MonomialBasis.GradedHilbert.monomialSpan ℚ S, ⟨S, rfl⟩, |
| 46 | (MonomialBound.GradedHilbert.isSaturated_monomialSpan_field_independent (K := L) ℚ S).mp hSatS, ?_⟩ |
| 47 | intro d |
| 48 | calc |
| 49 | Hilbert.Polynomial.GradedHilbert.hilbertFunction (Hilbert.MonomialBasis.GradedHilbert.monomialSpan ℚ S).toIdeal d = |
| 50 | Hilbert.Polynomial.GradedHilbert.hilbertFunction (Hilbert.MonomialBasis.GradedHilbert.monomialSpan L S).toIdeal d := |
| 51 | Hilbert.MonomialBasis.GradedHilbert.hilbertFunction_monomialSpan_field_independent L S d |
| 52 | _ = Hilbert.Polynomial.GradedHilbert.hilbertFunction (InitialIdeal.GradedHilbert.initialIdeal m IC.toIdeal) d := by |
| 53 | change Hilbert.Polynomial.GradedHilbert.hilbertFunction (Ideal.span ((fun a => monomial a (1 : L)) '' S)) d = _ |
| 54 | rw [← hS] |
| 55 | _ = Hilbert.Polynomial.GradedHilbert.hilbertFunction IC.toIdeal d := InitialIdeal.GradedHilbert.hilbertFunction_initialIdeal m IC d |
| 56 | _ = Hilbert.Polynomial.GradedHilbert.hilbertFunction IE.toIdeal d := InfiniteFieldBound.GradedHilbert.hilbertFunction_changedIdeal e IE d |
| 57 | _ = Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal d := Hilbert.ScalarExtension.GradedHilbert.hilbertFunction_scalarExtended I d |
| 58 | |
| 59 | theorem exists_finite_uniform_hilbertFunctions (n : ℕ) (P : Polynomial ℚ) : |
| 60 | ∃ F : Finset (ℕ → ℕ), ∀ (K : Type u) [Field K] (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)), |
| 61 | Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal → Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P → Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal ∈ F := by |
| 62 | classical |
| 63 | let S := {J : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading ℚ n) | |
| 64 | SaturatedMonomialIdeals.GradedHilbert.IsMonomial J.toIdeal ∧ Hilbert.Polynomial.GradedHilbert.IsSaturated J.toIdeal ∧ Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial J.toIdeal P} |
| 65 | have hS : S.Finite := SaturatedMonomialIdeals.GradedHilbert.finite_saturated_monomial_ideals n P |
| 66 | refine ⟨hS.toFinset.image (fun J => Hilbert.Polynomial.GradedHilbert.hilbertFunction J.toIdeal), fun K _ I hSat hP => ?_⟩ |
| 67 | obtain ⟨J, hMon, hSatJ, hdim⟩ := exists_rational_monomial_hilbertFunction I hSat |
| 68 | have hPJ : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial J.toIdeal P := by |
| 69 | simpa only [Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial, hdim] using hP |
| 70 | exact Finset.mem_image.mpr ⟨J, hS.mem_toFinset.mpr ⟨hMon, hSatJ, hPJ⟩, funext hdim⟩ |
| 71 | |
| 72 | /-- Uniform agreement with the Hilbert polynomial, valid over every field. -/ |
| 73 | theorem exists_uniform_hilbertFunction_bound (n : ℕ) (P : Polynomial ℚ) : |
| 74 | ∃ N : ℕ, ∀ (K : Type u) [Field K] (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)), |
| 75 | Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal → Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P → |
| 76 | ∀ d ≥ N, (Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal d : ℚ) = P.eval (d : ℚ) := by |
| 77 | classical |
| 78 | let S := {J : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading ℚ n) | |
| 79 | SaturatedMonomialIdeals.GradedHilbert.IsMonomial J.toIdeal ∧ Hilbert.Polynomial.GradedHilbert.IsSaturated J.toIdeal ∧ Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial J.toIdeal P} |
| 80 | have hS : S.Finite := SaturatedMonomialIdeals.GradedHilbert.finite_saturated_monomial_ideals n P |
| 81 | let := hS.fintype |
| 82 | choose b hb using fun J : S => J.property.2.2 |
| 83 | refine ⟨Finset.univ.sup b, fun K _ I hSat hP d hd => ?_⟩ |
| 84 | obtain ⟨J, hMon, hSatJ, hdim⟩ := exists_rational_monomial_hilbertFunction I hSat |
| 85 | have hPJ : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial J.toIdeal P := by |
| 86 | simpa only [Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial, hdim] using hP |
| 87 | let J' : S := ⟨J, hMon, hSatJ, hPJ⟩ |
| 88 | rw [← hdim d] |
| 89 | exact hb J' d ((Finset.le_sup (f := b) (Finset.mem_univ J')).trans hd) |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Uniform.Function.GradedHilbert |