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.BaseChange |
| 2 | |
| 3 | /-! # Coefficient Base Change -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.CoefficientBaseChange.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Actual homogeneous polynomial pieces commute with arbitrary coefficient base change. -/ |
| 10 | |
| 11 | open _root_.MvPolynomial TensorProduct |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable {R : Type u} [CommRing R] {S : Type v} [CommRing S] [Algebra R S] {n : ℕ} |
| 16 | |
| 17 | theorem homogeneousPiece_baseChange_map (d : ℕ) : |
| 18 | ((Hilbert.Polynomial.GradedHilbert.grading R n d).baseChange S).map (MvPolynomial.algebraTensorAlgEquiv R S).toLinearMap = |
| 19 | Hilbert.Polynomial.GradedHilbert.grading S n d := by |
| 20 | classical |
| 21 | apply le_antisymm |
| 22 | · apply Submodule.map_le_iff_le_comap.mpr |
| 23 | rw [Submodule.baseChange_eq_span] |
| 24 | apply Submodule.span_le.mpr |
| 25 | rintro z ⟨p, hp, rfl⟩ |
| 26 | change MvPolynomial.algebraTensorAlgEquiv R S (1 ⊗ₜ[R] p) ∈ Hilbert.Polynomial.GradedHilbert.grading S n d |
| 27 | rw [MvPolynomial.algebraTensorAlgEquiv_tmul, one_smul] |
| 28 | exact hp.map (algebraMap R S) |
| 29 | · intro p hp |
| 30 | rw [← p.support_sum_monomial_coeff] |
| 31 | apply Submodule.sum_mem |
| 32 | intro a ha |
| 33 | have had : a.degree = d := (Hilbert.MonomialBasis.GradedHilbert.mem_degreeSpace_iff_support p d).mp hp a ha |
| 34 | refine ⟨p.coeff a ⊗ₜ[R] monomial a (1 : R), |
| 35 | Submodule.tmul_mem_baseChange_of_mem _ (isHomogeneous_monomial (1 : R) had), ?_⟩ |
| 36 | rw [AlgEquiv.toLinearMap_apply, MvPolynomial.algebraTensorAlgEquiv_tmul] |
| 37 | simp only [MvPolynomial.map_monomial, map_one, smul_monomial, smul_eq_mul, mul_one] |
| 38 | |
| 39 | def homogeneousPieceBaseChangeEquiv (d : ℕ) : S ⊗[R] Hilbert.Polynomial.GradedHilbert.grading R n d ≃ₗ[S] Hilbert.Polynomial.GradedHilbert.grading S n d := |
| 40 | (LinearEquiv.ofBijective ((Hilbert.Polynomial.GradedHilbert.grading R n d).toBaseChange S) |
| 41 | (DirectSum.toBaseChange_bijective (Hilbert.Polynomial.GradedHilbert.grading R n) d)).trans |
| 42 | ((MvPolynomial.algebraTensorAlgEquiv R S).toLinearEquiv.ofSubmodules _ _ (homogeneousPiece_baseChange_map d)) |
| 43 | |
| 44 | theorem homogeneousPieceBaseChangeEquiv_tmul (d : ℕ) (s : S) (f : Hilbert.Polynomial.GradedHilbert.grading R n d) : |
| 45 | (homogeneousPieceBaseChangeEquiv (S := S) d (s ⊗ₜ[R] f)).val = |
| 46 | s • MvPolynomial.map (algebraMap R S) f.val := |
| 47 | MvPolynomial.algebraTensorAlgEquiv_tmul R S s f.val |
| 48 | |
| 49 | theorem homogeneousPieceBaseChangeEquiv_quotient (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (d : ℕ) |
| 50 | (x : S ⊗[R] Hilbert.Polynomial.GradedHilbert.grading R n d) : |
| 51 | Graded.BaseChange.GradedHilbert.degreeQuotientBaseChangeEquiv (S := S) I d (((Hilbert.Polynomial.GradedHilbert.degreeRelations I.toIdeal d).mkQ.lTensor S) x) = |
| 52 | (Hilbert.Polynomial.GradedHilbert.degreeRelations (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := S) I).toIdeal d).mkQ |
| 53 | (homogeneousPieceBaseChangeEquiv (S := S) d x) := by |
| 54 | induction x using TensorProduct.inductionOn with |
| 55 | | tmul s f => |
| 56 | rw [LinearMap.lTensor_tmul, Graded.BaseChange.GradedHilbert.degreeQuotientBaseChangeEquiv_tmul] |
| 57 | apply congrArg (Hilbert.Polynomial.GradedHilbert.degreeRelations (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := S) I).toIdeal d).mkQ |
| 58 | apply Subtype.ext |
| 59 | exact (homogeneousPieceBaseChangeEquiv_tmul d s f).symm |
| 60 | | add x y hx hy => simp only [LinearEquiv.map_add, LinearMap.map_add, hx, hy] |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.CoefficientBaseChange.GradedHilbert |