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.CoefficientMaps |
| 2 | import Mathlib.LinearAlgebra.Dual.Lemmas |
| 3 | |
| 4 | /-! # Scalar Extension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ScalarExtension.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Polynomial ideals under extension of the coefficient field. Expanding |
| 12 | coefficients in a vector-space basis proves the ideal-membership criterion |
| 13 | and shows that homogeneous saturation is preserved by field extension. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.MvPolynomial _root_.Module |
| 17 | |
| 18 | universe u v w |
| 19 | |
| 20 | variable {K : Type u} [Field K] {L : Type v} [Field L] [Algebra K L] {n : ℕ} |
| 21 | |
| 22 | def basisCoefficientSupport {ι : Type w} (b : Basis ι K L) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing L n) : Finset ι := by |
| 23 | classical |
| 24 | exact f.support.biUnion (fun a => (b.repr (f.coeff a)).support) |
| 25 | |
| 26 | theorem support_repr_coeff_subset {ι : Type w} (b : Basis ι K L) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing L n) |
| 27 | (a : Fin (n + 1) →₀ ℕ) : (b.repr (f.coeff a)).support ⊆ basisCoefficientSupport b f := by |
| 28 | classical |
| 29 | intro i hi |
| 30 | by_cases ha : a ∈ f.support |
| 31 | · exact Finset.mem_biUnion.mpr ⟨a, ha, hi⟩ |
| 32 | · have hz := notMem_support_iff.mp ha |
| 33 | simp only [hz, map_zero, Finsupp.support_zero, Finset.notMem_empty] at hi |
| 34 | |
| 35 | theorem polynomial_basis_expansion {ι : Type w} (b : Basis ι K L) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing L n) : |
| 36 | f = ∑ i ∈ basisCoefficientSupport b f, |
| 37 | b i • MvPolynomial.map (algebraMap K L) (CoefficientMaps.GradedHilbert.coefficientApply (b.coord i) f) := by |
| 38 | classical |
| 39 | apply MvPolynomial.ext |
| 40 | intro a |
| 41 | simp only [coeff_sum, coeff_smul, coeff_map, CoefficientMaps.GradedHilbert.coeff_coefficientApply, Basis.coord_apply] |
| 42 | have heq : (∑ i ∈ (b.repr (f.coeff a)).support, b.repr (f.coeff a) i • b i) = |
| 43 | ∑ i ∈ basisCoefficientSupport b f, b.repr (f.coeff a) i • b i := by |
| 44 | apply Finset.sum_subset (support_repr_coeff_subset b f a) |
| 45 | intro i _ hi |
| 46 | rw [Finsupp.notMem_support_iff.mp hi, zero_smul] |
| 47 | have hr := b.linearCombination_repr (f.coeff a) |
| 48 | rw [Finsupp.linearCombination_apply, Finsupp.sum, heq] at hr |
| 49 | simpa [Algebra.smul_def, mul_comm] using hr.symm |
| 50 | |
| 51 | theorem mem_scalarExtendedIdeal_iff (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing L n) : |
| 52 | f ∈ CoefficientMaps.GradedHilbert.scalarExtendedIdeal (L := L) I ↔ ∀ φ : L →ₗ[K] K, CoefficientMaps.GradedHilbert.coefficientApply φ f ∈ I := by |
| 53 | constructor |
| 54 | · intro hf φ |
| 55 | exact CoefficientMaps.GradedHilbert.coefficientApply_mem_of_mem_scalarExtendedIdeal I φ hf |
| 56 | · intro hf |
| 57 | let b := Basis.ofVectorSpace K L |
| 58 | rw [polynomial_basis_expansion b f] |
| 59 | apply (CoefficientMaps.GradedHilbert.scalarExtendedIdeal (L := L) I).sum_mem |
| 60 | intro i _ |
| 61 | apply ((CoefficientMaps.GradedHilbert.scalarExtendedIdeal (L := L) I).restrictScalars L).smul_mem |
| 62 | exact Ideal.mem_map_of_mem (MvPolynomial.map (algebraMap K L)) (hf (b.coord i)) |
| 63 | |
| 64 | theorem map_mem_scalarExtendedIdeal_iff (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) : |
| 65 | MvPolynomial.map (algebraMap K L) f ∈ CoefficientMaps.GradedHilbert.scalarExtendedIdeal (L := L) I ↔ f ∈ I := by |
| 66 | constructor |
| 67 | · intro hf |
| 68 | obtain ⟨φ, hφ⟩ := Module.Projective.exists_dual_eq_one K (show (1 : L) ≠ 0 from one_ne_zero) |
| 69 | have h := CoefficientMaps.GradedHilbert.coefficientApply_mem_of_mem_scalarExtendedIdeal I φ hf |
| 70 | rwa [CoefficientMaps.GradedHilbert.coefficientApply_map, hφ, one_smul] at h |
| 71 | · exact Ideal.mem_map_of_mem (MvPolynomial.map (algebraMap K L)) |
| 72 | |
| 73 | theorem scalarExtendedIdeal_isHomogeneous (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) : |
| 74 | (CoefficientMaps.GradedHilbert.scalarExtendedIdeal (L := L) I.toIdeal).IsHomogeneous (Hilbert.Polynomial.GradedHilbert.grading L n) := by |
| 75 | obtain ⟨N, B, hB, hhom⟩ := GroebnerGenerators.GradedHilbert.exists_finite_homogeneous_generators MonomialOrder.lex I |
| 76 | unfold CoefficientMaps.GradedHilbert.scalarExtendedIdeal |
| 77 | rw [hB, Ideal.map_span] |
| 78 | apply Ideal.homogeneous_span |
| 79 | rintro _ ⟨b, hb, rfl⟩ |
| 80 | obtain ⟨_, d, _, hd⟩ := hhom b hb |
| 81 | exact ⟨d, hd.map (algebraMap K L)⟩ |
| 82 | |
| 83 | def scalarExtendedHomogeneousIdeal (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) : |
| 84 | HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading L n) := |
| 85 | ⟨CoefficientMaps.GradedHilbert.scalarExtendedIdeal I.toIdeal, scalarExtendedIdeal_isHomogeneous I⟩ |
| 86 | |
| 87 | theorem scalarExtendedIdeal_isSaturated (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (hI : Hilbert.Polynomial.GradedHilbert.IsSaturated I) : |
| 88 | Hilbert.Polynomial.GradedHilbert.IsSaturated (CoefficientMaps.GradedHilbert.scalarExtendedIdeal (L := L) I) := by |
| 89 | intro f d hf hmul |
| 90 | apply (mem_scalarExtendedIdeal_iff I f).mpr |
| 91 | intro φ |
| 92 | apply hI (CoefficientMaps.GradedHilbert.coefficientApply φ f) d (CoefficientMaps.GradedHilbert.coefficientApply_homogeneous φ hf) |
| 93 | obtain ⟨m, hm⟩ := hmul |
| 94 | refine ⟨m, fun g hg => ?_⟩ |
| 95 | have h := CoefficientMaps.GradedHilbert.coefficientApply_mem_of_mem_scalarExtendedIdeal I φ |
| 96 | (hm (MvPolynomial.map (algebraMap K L) g) (hg.map (algebraMap K L))) |
| 97 | rwa [CoefficientMaps.GradedHilbert.coefficientApply_map_mul] at h |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ScalarExtension.GradedHilbert |