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.InfiniteFieldBound |
| 2 | import Mathlib.LinearAlgebra.Finsupp.Defs |
| 3 | |
| 4 | /-! # Coefficient Maps -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.CoefficientMaps.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Applying a linear functional to polynomial coefficients. These maps |
| 12 | preserve homogeneous degrees and commute with multiplication by a |
| 13 | polynomial defined over the smaller coefficient field. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.MvPolynomial _root_.Module |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | variable {K : Type u} [Field K] {L : Type v} [Field L] [Algebra K L] {n : ℕ} |
| 21 | |
| 22 | def coefficientApply (φ : L →ₗ[K] K) : Hilbert.Polynomial.GradedHilbert.CoordinateRing L n →ₗ[K] Hilbert.Polynomial.GradedHilbert.CoordinateRing K n := |
| 23 | (AddMonoidAlgebra.coeffLinearEquiv K).symm.toLinearMap ∘ₗ |
| 24 | Finsupp.mapRange.linearMap φ ∘ₗ (AddMonoidAlgebra.coeffLinearEquiv K).toLinearMap |
| 25 | |
| 26 | theorem coeff_coefficientApply (φ : L →ₗ[K] K) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing L n) |
| 27 | (a : Fin (n + 1) →₀ ℕ) : (coefficientApply φ f).coeff a = φ (f.coeff a) := rfl |
| 28 | |
| 29 | theorem support_coefficientApply_subset (φ : L →ₗ[K] K) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing L n) : |
| 30 | (coefficientApply φ f).support ⊆ f.support := by |
| 31 | intro a ha |
| 32 | rw [mem_support_iff, coeff_coefficientApply] at ha |
| 33 | apply mem_support_iff.mpr |
| 34 | intro hzero |
| 35 | exact ha (hzero ▸ map_zero φ) |
| 36 | |
| 37 | theorem coefficientApply_homogeneous (φ : L →ₗ[K] K) |
| 38 | {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing L n} {d : ℕ} (hf : f.IsHomogeneous d) : |
| 39 | (coefficientApply φ f).IsHomogeneous d := by |
| 40 | apply (Hilbert.MonomialBasis.GradedHilbert.mem_degreeSpace_iff_support _ d).mpr |
| 41 | intro a ha |
| 42 | exact (Hilbert.MonomialBasis.GradedHilbert.mem_degreeSpace_iff_support f d).mp hf a (support_coefficientApply_subset φ f ha) |
| 43 | |
| 44 | theorem coefficientApply_homogeneousComponent (φ : L →ₗ[K] K) |
| 45 | (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing L n) (d : ℕ) : |
| 46 | coefficientApply φ (homogeneousComponent d f) = homogeneousComponent d (coefficientApply φ f) := by |
| 47 | classical |
| 48 | apply MvPolynomial.ext |
| 49 | intro a |
| 50 | simp only [coeff_coefficientApply, coeff_homogeneousComponent] |
| 51 | by_cases h : a.degree = d <;> simp [h] |
| 52 | |
| 53 | theorem coefficientApply_mul_map (φ : L →ₗ[K] K) |
| 54 | (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing L n) (g : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) : |
| 55 | coefficientApply φ (f * MvPolynomial.map (algebraMap K L) g) = coefficientApply φ f * g := by |
| 56 | classical |
| 57 | apply MvPolynomial.ext |
| 58 | intro a |
| 59 | simp only [coeff_coefficientApply, coeff_mul, coeff_map, map_sum] |
| 60 | apply Finset.sum_congr rfl |
| 61 | intro b _ |
| 62 | rw [mul_comm (f.coeff b.1), ← Algebra.smul_def, map_smul, smul_eq_mul, mul_comm] |
| 63 | |
| 64 | theorem coefficientApply_map_mul (φ : L →ₗ[K] K) |
| 65 | (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) (g : Hilbert.Polynomial.GradedHilbert.CoordinateRing L n) : |
| 66 | coefficientApply φ (MvPolynomial.map (algebraMap K L) f * g) = f * coefficientApply φ g := by |
| 67 | rw [mul_comm, coefficientApply_mul_map, mul_comm] |
| 68 | |
| 69 | theorem coefficientApply_map (φ : L →ₗ[K] K) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) : |
| 70 | coefficientApply φ (MvPolynomial.map (algebraMap K L) f) = φ 1 • f := by |
| 71 | apply MvPolynomial.ext |
| 72 | intro a |
| 73 | rw [coeff_coefficientApply, coeff_map, coeff_smul] |
| 74 | have h := map_smul φ (f.coeff a) (1 : L) |
| 75 | simpa [Algebra.smul_def, mul_comm] using h |
| 76 | |
| 77 | def scalarExtendedIdeal (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing L n) := |
| 78 | I.map (MvPolynomial.map (algebraMap K L)) |
| 79 | |
| 80 | theorem coefficientApply_mem_of_mem_scalarExtendedIdeal |
| 81 | (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (φ : L →ₗ[K] K) {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing L n} |
| 82 | (hf : f ∈ scalarExtendedIdeal (L := L) I) : coefficientApply φ f ∈ I := by |
| 83 | classical |
| 84 | change f ∈ Submodule.span (Hilbert.Polynomial.GradedHilbert.CoordinateRing L n) |
| 85 | ((MvPolynomial.map (algebraMap K L)) '' (I : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n))) at hf |
| 86 | obtain ⟨g, hg, hgf⟩ := (Finsupp.mem_span_image_iff_linearCombination (Hilbert.Polynomial.GradedHilbert.CoordinateRing L n)).mp hf |
| 87 | rw [← hgf, Finsupp.linearCombination_apply, Finsupp.sum, map_sum] |
| 88 | apply I.sum_mem |
| 89 | intro a ha |
| 90 | change coefficientApply φ (g a * MvPolynomial.map (algebraMap K L) a) ∈ I |
| 91 | rw [coefficientApply_mul_map] |
| 92 | exact I.mul_mem_left _ (hg ha) |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.CoefficientMaps.GradedHilbert |