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.Intrinsic.SingleDegreeEquations |
| 2 | import Mathlib.RingTheory.Adjoin.FG |
| 3 | |
| 4 | /-! # Polynomial Coefficients -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.PolynomialCoefficients.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite polynomial list over a base algebra is defined over its actual |
| 11 | finitely generated coefficient subalgebra, with homogeneity preserved. |
| 12 | Over a noetherian base the coefficient algebra is noetherian. -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.MvPolynomial |
| 15 | |
| 16 | universe u v w |
| 17 | variable {R : Type u} [CommRing R] {n : ℕ} {ι : Type w} [Fintype ι] |
| 18 | variable (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) |
| 19 | |
| 20 | def polynomialCoefficientSet : Finset R := by |
| 21 | classical |
| 22 | exact Finset.univ.biUnion (fun j => (g j).coeffs) |
| 23 | |
| 24 | variable (B : Type v) [CommRing B] [Algebra B R] |
| 25 | |
| 26 | def polynomialCoefficientRing : Subalgebra B R := Algebra.adjoin B (↑(polynomialCoefficientSet g) : Set R) |
| 27 | |
| 28 | instance polynomialCoefficientRing_finiteType : Algebra.FiniteType B (polynomialCoefficientRing g B) := |
| 29 | (Subalgebra.fg_iff_finiteType _).mp (Subalgebra.fg_adjoin_finset _) |
| 30 | |
| 31 | instance polynomialCoefficientRing_isNoetherian [IsNoetherianRing B] : IsNoetherianRing (polynomialCoefficientRing g B) := |
| 32 | Algebra.FiniteType.isNoetherianRing B _ |
| 33 | |
| 34 | theorem polynomial_coefficients_in_ring (j : ι) : |
| 35 | ((g j).coeffs : Set R) ⊆ Set.range (polynomialCoefficientRing g B).val.toRingHom := by |
| 36 | classical |
| 37 | intro r hr |
| 38 | refine ⟨⟨r, ?_⟩, rfl⟩ |
| 39 | apply Algebra.subset_adjoin |
| 40 | exact Finset.mem_biUnion.mpr ⟨j, Finset.mem_univ _, hr⟩ |
| 41 | |
| 42 | theorem exists_polynomial_over_coefficient_ring (j : ι) : |
| 43 | ∃ p : Hilbert.Polynomial.GradedHilbert.CoordinateRing (polynomialCoefficientRing g B) n, |
| 44 | MvPolynomial.map (polynomialCoefficientRing g B).val.toRingHom p = g j := |
| 45 | MvPolynomial.mem_range_map_iff_coeffs_subset.mpr (polynomial_coefficients_in_ring g B j) |
| 46 | |
| 47 | def polynomialOverCoefficientRing (j : ι) : Hilbert.Polynomial.GradedHilbert.CoordinateRing (polynomialCoefficientRing g B) n := |
| 48 | Classical.choose (exists_polynomial_over_coefficient_ring g B j) |
| 49 | |
| 50 | theorem polynomialOverCoefficientRing_map (j : ι) : |
| 51 | MvPolynomial.map (polynomialCoefficientRing g B).val.toRingHom (polynomialOverCoefficientRing g B j) = g j := |
| 52 | Classical.choose_spec (exists_polynomial_over_coefficient_ring g B j) |
| 53 | |
| 54 | theorem polynomialOverCoefficientRing_homogeneous (N : ℕ) (hg : ∀ j, (g j).IsHomogeneous N) (j : ι) : |
| 55 | (polynomialOverCoefficientRing g B j).IsHomogeneous N := by |
| 56 | apply MvPolynomial.IsHomogeneous.of_map (f := (polynomialCoefficientRing g B).val.toRingHom) Subtype.val_injective |
| 57 | rw [polynomialOverCoefficientRing_map] |
| 58 | exact hg j |
| 59 | |
| 60 | theorem coefficientRing_generatorsIdeal_map (N : ℕ) (hg : ∀ j, (g j).IsHomogeneous N) : |
| 61 | (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal (polynomialOverCoefficientRing g B) N |
| 62 | (polynomialOverCoefficientRing_homogeneous g B N hg)).map |
| 63 | (Graded.BaseChange.GradedHilbert.gradedCoefficientMap (polynomialCoefficientRing g B).val.toRingHom) = Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg := by |
| 64 | apply HomogeneousIdeal.ext |
| 65 | change Ideal.map (MvPolynomial.map (polynomialCoefficientRing g B).val.toRingHom) |
| 66 | (Ideal.span (Set.range (polynomialOverCoefficientRing g B))) = Ideal.span (Set.range g) |
| 67 | rw [Ideal.map_span, ← Set.range_comp] |
| 68 | congr 2 |
| 69 | funext j |
| 70 | exact polynomialOverCoefficientRing_map g B j |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.PolynomialCoefficients.GradedHilbert |