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.Graded.Quotient |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.MonomialBasis |
| 3 | import Mathlib.RingTheory.TensorProduct.MvPolynomial |
| 4 | import Mathlib.RingTheory.TensorProduct.Quotient |
| 5 | import Mathlib.RingTheory.GradedAlgebra.TensorProduct |
| 6 | import Mathlib.Algebra.Module.Submodule.Equiv |
| 7 | import Mathlib.RingTheory.Flat.Basic |
| 8 | |
| 9 | /-! # Base Change -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.BaseChange.GradedHilbert |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! |
| 16 | Base change of homogeneous coordinate quotients over arbitrary commutative |
| 17 | rings. In each degree the quotient after scalar extension is the tensor |
| 18 | product of the original degree quotient, without a flatness assumption. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.MvPolynomial TensorProduct |
| 22 | |
| 23 | universe u v |
| 24 | |
| 25 | variable {R : Type u} [CommRing R] {S : Type v} [CommRing S] [Algebra R S] {n : ℕ} |
| 26 | |
| 27 | def gradedCoefficientMap (φ : R →+* S) : Hilbert.Polynomial.GradedHilbert.grading R n →+*ᵍ Hilbert.Polynomial.GradedHilbert.grading S n where |
| 28 | __ := MvPolynomial.map φ |
| 29 | map_mem hf := hf.map φ |
| 30 | |
| 31 | def extendedHomogeneousIdeal (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) : |
| 32 | HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading S n) := I.map (gradedCoefficientMap (algebraMap R S)) |
| 33 | |
| 34 | theorem polynomialTensor_ideal_map (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) : |
| 35 | (extendedHomogeneousIdeal (S := S) I).toIdeal = |
| 36 | (I.toIdeal.map (Algebra.TensorProduct.includeRight (A := S) (R := R))).map |
| 37 | (MvPolynomial.algebraTensorAlgEquiv R S).toRingHom := by |
| 38 | erw [Ideal.map_map] |
| 39 | have h : (MvPolynomial.algebraTensorAlgEquiv (σ := Fin (n + 1)) R S).toRingHom.comp |
| 40 | (Algebra.TensorProduct.includeRight (A := S) (R := R)).toRingHom = |
| 41 | MvPolynomial.map (algebraMap R S) := by |
| 42 | apply RingHom.ext |
| 43 | intro f |
| 44 | change MvPolynomial.algebraTensorAlgEquiv R S (1 ⊗ₜ[R] f) = _ |
| 45 | simpa only [one_smul] using MvPolynomial.algebraTensorAlgEquiv_tmul R S 1 f |
| 46 | erw [h] |
| 47 | rfl |
| 48 | |
| 49 | def quotientBaseChangeEquiv (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) : |
| 50 | S ⊗[R] (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) ≃ₐ[S] |
| 51 | Hilbert.Polynomial.GradedHilbert.CoordinateRing S n ⧸ (extendedHomogeneousIdeal (S := S) I).toIdeal := |
| 52 | (Algebra.TensorProduct.tensorQuotientEquiv (R := R) S (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) S I.toIdeal).trans |
| 53 | (Ideal.quotientEquivAlg _ _ (MvPolynomial.algebraTensorAlgEquiv R S) (polynomialTensor_ideal_map I)) |
| 54 | |
| 55 | theorem quotientBaseChangeEquiv_tmul (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 56 | (s : S) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) : |
| 57 | quotientBaseChangeEquiv I (s ⊗ₜ[R] Ideal.Quotient.mk I.toIdeal f) = |
| 58 | Ideal.Quotient.mk (extendedHomogeneousIdeal (S := S) I).toIdeal |
| 59 | (s • MvPolynomial.map (algebraMap R S) f) := by |
| 60 | change Ideal.quotientEquivAlg _ _ (MvPolynomial.algebraTensorAlgEquiv R S) |
| 61 | (polynomialTensor_ideal_map I) |
| 62 | ((Algebra.TensorProduct.tensorQuotientEquiv (R := R) S (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) S I.toIdeal) |
| 63 | (s ⊗ₜ[R] Ideal.Quotient.mk I.toIdeal f)) = _ |
| 64 | erw [Algebra.TensorProduct.tensorQuotientEquiv_apply_tmul, Ideal.quotientEquivAlg_mk, |
| 65 | MvPolynomial.algebraTensorAlgEquiv_tmul] |
| 66 | |
| 67 | theorem quotientGrading_baseChange_map (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (d : ℕ) : |
| 68 | ((Graded.Quotient.GradedHilbert.quotientGrading I d).baseChange S).map (quotientBaseChangeEquiv (S := S) I).toLinearMap = |
| 69 | Graded.Quotient.GradedHilbert.quotientGrading (extendedHomogeneousIdeal (S := S) I) d := by |
| 70 | classical |
| 71 | let J := extendedHomogeneousIdeal (S := S) I |
| 72 | apply le_antisymm |
| 73 | · apply Submodule.map_le_iff_le_comap.mpr |
| 74 | rw [Submodule.baseChange_eq_span] |
| 75 | apply Submodule.span_le.mpr |
| 76 | rintro z ⟨y, hy, rfl⟩ |
| 77 | obtain ⟨f, hf, rfl⟩ := hy |
| 78 | change quotientBaseChangeEquiv I (1 ⊗ₜ[R] Ideal.Quotient.mk I.toIdeal f) ∈ Graded.Quotient.GradedHilbert.quotientGrading J d |
| 79 | rw [quotientBaseChangeEquiv_tmul, one_smul] |
| 80 | exact ⟨MvPolynomial.map (algebraMap R S) f, hf.map (algebraMap R S), rfl⟩ |
| 81 | · rintro z ⟨f, hf, rfl⟩ |
| 82 | rw [← f.support_sum_monomial_coeff, map_sum] |
| 83 | apply Submodule.sum_mem |
| 84 | intro a ha |
| 85 | have had : a.degree = d := (Hilbert.MonomialBasis.GradedHilbert.mem_degreeSpace_iff_support f d).mp hf a ha |
| 86 | have hmon : Ideal.Quotient.mk I.toIdeal (monomial a 1) ∈ Graded.Quotient.GradedHilbert.quotientGrading I d := |
| 87 | ⟨monomial a 1, isHomogeneous_monomial _ had, rfl⟩ |
| 88 | refine ⟨f.coeff a ⊗ₜ[R] Ideal.Quotient.mk I.toIdeal (monomial a 1), |
| 89 | Submodule.tmul_mem_baseChange_of_mem _ hmon, ?_⟩ |
| 90 | rw [AlgEquiv.toLinearMap_apply, quotientBaseChangeEquiv_tmul] |
| 91 | simp only [MvPolynomial.map_monomial, map_one, smul_monomial, smul_eq_mul, mul_one] |
| 92 | rfl |
| 93 | |
| 94 | def quotientGradingBaseChangeEquiv (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (d : ℕ) : |
| 95 | S ⊗[R] Graded.Quotient.GradedHilbert.quotientGrading I d ≃ₗ[S] Graded.Quotient.GradedHilbert.quotientGrading (extendedHomogeneousIdeal (S := S) I) d := |
| 96 | (LinearEquiv.ofBijective ((Graded.Quotient.GradedHilbert.quotientGrading I d).toBaseChange S) |
| 97 | (DirectSum.toBaseChange_bijective (Graded.Quotient.GradedHilbert.quotientGrading I) d)).trans |
| 98 | ((quotientBaseChangeEquiv I).toLinearEquiv.ofSubmodules _ _ (quotientGrading_baseChange_map I d)) |
| 99 | |
| 100 | /-- Homogeneous degree quotients commute with arbitrary coefficient-ring |
| 101 | extension. This is a module isomorphism, not only a dimension equality. -/ |
| 102 | def degreeQuotientBaseChangeEquiv (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (d : ℕ) : |
| 103 | S ⊗[R] Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d ≃ₗ[S] |
| 104 | Hilbert.Polynomial.GradedHilbert.DegreeQuotient (extendedHomogeneousIdeal (S := S) I).toIdeal d := |
| 105 | ((Graded.Quotient.GradedHilbert.degreeQuotientEquivQuotientGrading I d).baseChange R S).trans |
| 106 | ((quotientGradingBaseChangeEquiv I d).trans |
| 107 | (Graded.Quotient.GradedHilbert.degreeQuotientEquivQuotientGrading (extendedHomogeneousIdeal (S := S) I) d).symm) |
| 108 | |
| 109 | theorem degreeQuotientBaseChangeEquiv_tmul (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (d : ℕ) |
| 110 | (s : S) (f : Hilbert.Polynomial.GradedHilbert.grading R n d) : |
| 111 | degreeQuotientBaseChangeEquiv I d (s ⊗ₜ[R] (Hilbert.Polynomial.GradedHilbert.degreeRelations I.toIdeal d).mkQ f) = |
| 112 | (Hilbert.Polynomial.GradedHilbert.degreeRelations (extendedHomogeneousIdeal (S := S) I).toIdeal d).mkQ |
| 113 | ⟨s • MvPolynomial.map (algebraMap R S) f.val, |
| 114 | (Hilbert.Polynomial.GradedHilbert.grading S n d).smul_mem s (f.property.map (algebraMap R S))⟩ := by |
| 115 | apply (Graded.Quotient.GradedHilbert.degreeQuotientEquivQuotientGrading (extendedHomogeneousIdeal (S := S) I) d).injective |
| 116 | simp only [degreeQuotientBaseChangeEquiv, LinearEquiv.trans_apply, |
| 117 | LinearEquiv.apply_symm_apply, LinearEquiv.baseChange_tmul, |
| 118 | Graded.Quotient.GradedHilbert.degreeQuotientEquivQuotientGrading_mk] |
| 119 | apply Subtype.ext |
| 120 | change quotientBaseChangeEquiv I (s ⊗ₜ[R] Ideal.Quotient.mk I.toIdeal f.val) = |
| 121 | Ideal.Quotient.mk (extendedHomogeneousIdeal (S := S) I).toIdeal |
| 122 | (s • MvPolynomial.map (algebraMap R S) f.val) |
| 123 | exact quotientBaseChangeEquiv_tmul I s f.val |
| 124 | |
| 125 | theorem coordinateQuotient_flat_iff (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) : |
| 126 | Module.Flat R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) ↔ |
| 127 | ∀ d : ℕ, Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) := by |
| 128 | rw [Module.Flat.equiv_iff (DirectSum.decomposeLinearEquiv (Graded.Quotient.GradedHilbert.quotientGrading I)), |
| 129 | Module.Flat.directSum_iff] |
| 130 | exact forall_congr' fun d => |
| 131 | (Module.Flat.equiv_iff (Graded.Quotient.GradedHilbert.degreeQuotientEquivQuotientGrading I d)).symm |
| 132 | |
| 133 | end |
| 134 | |
| 135 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.BaseChange.GradedHilbert |