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.Homogeneous.RelationPresentation |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Pi |
| 3 | |
| 4 | /-! # Presentation Base Change -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.PresentationBaseChange.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual homogeneous relation presentations commute with coefficient base change. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial TensorProduct |
| 13 | |
| 14 | universe u v z |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] {S : Type v} [CommRing S] [Algebra R S] |
| 17 | variable {n : ℕ} {ι : Type z} [Fintype ι] |
| 18 | |
| 19 | def homogeneousVectorBaseChangeEquiv (d : ℕ) : |
| 20 | S ⊗[R] (ι → Hilbert.Polynomial.GradedHilbert.grading R n d) ≃ₗ[R] (ι → Hilbert.Polynomial.GradedHilbert.grading S n d) := by |
| 21 | classical |
| 22 | exact (TensorProduct.piRight R R S (fun _ : ι => Hilbert.Polynomial.GradedHilbert.grading R n d)).trans |
| 23 | (LinearEquiv.piCongrRight (fun _ : ι => |
| 24 | (CoefficientBaseChange.GradedHilbert.homogeneousPieceBaseChangeEquiv (R := R) (S := S) (n := n) d).restrictScalars R)) |
| 25 | |
| 26 | theorem homogeneousVectorBaseChangeEquiv_tmul (d : ℕ) (s : S) |
| 27 | (a : ι → Hilbert.Polynomial.GradedHilbert.grading R n d) (i : ι) : |
| 28 | (homogeneousVectorBaseChangeEquiv (S := S) d (s ⊗ₜ[R] a) i).val = |
| 29 | s • MvPolynomial.map (algebraMap R S) (a i).val := by |
| 30 | classical |
| 31 | change (CoefficientBaseChange.GradedHilbert.homogeneousPieceBaseChangeEquiv (S := S) d (s ⊗ₜ[R] a i)).val = _ |
| 32 | exact CoefficientBaseChange.GradedHilbert.homogeneousPieceBaseChangeEquiv_tmul d s (a i) |
| 33 | |
| 34 | theorem homogeneousPresentation_baseChange |
| 35 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) |
| 36 | (d : ℕ) (x : S ⊗[R] (ι → Hilbert.Polynomial.GradedHilbert.grading R n d)) : |
| 37 | CoefficientBaseChange.GradedHilbert.homogeneousPieceBaseChangeEquiv (S := S) (d + N) |
| 38 | ((RelationPresentation.GradedHilbert.homogeneousRelationPresentation g N hg d).lTensor S x) = |
| 39 | RelationPresentation.GradedHilbert.homogeneousRelationPresentation (Finite.SyzygyLifting.GradedHilbert.mapRelationVector (algebraMap R S) g) N |
| 40 | (fun i => (hg i).map (algebraMap R S)) d |
| 41 | (homogeneousVectorBaseChangeEquiv (S := S) d x) := by |
| 42 | induction x using TensorProduct.inductionOn with |
| 43 | | tmul s a => |
| 44 | apply Subtype.ext |
| 45 | rw [LinearMap.lTensor_tmul, CoefficientBaseChange.GradedHilbert.homogeneousPieceBaseChangeEquiv_tmul, |
| 46 | RelationPresentation.GradedHilbert.homogeneousRelationPresentation_val] |
| 47 | change s • MvPolynomial.map (algebraMap R S) (SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g (fun i => (a i).val)) = |
| 48 | SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap (Finite.SyzygyLifting.GradedHilbert.mapRelationVector (algebraMap R S) g) |
| 49 | (fun i => (homogeneousVectorBaseChangeEquiv (S := S) d (s ⊗ₜ[R] a) i).val) |
| 50 | simp only [SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap, LinearMap.coe_mk, AddHom.coe_mk, |
| 51 | homogeneousVectorBaseChangeEquiv_tmul, Finite.SyzygyLifting.GradedHilbert.mapRelationVector, map_sum, map_mul, |
| 52 | Finset.smul_sum, smul_mul_assoc] |
| 53 | | add x y hx hy => |
| 54 | simp only [LinearMap.map_add, LinearEquiv.map_add, hx, hy] |
| 55 | |
| 56 | omit [Fintype ι] in |
| 57 | theorem coordinateDegreeSpace_free (d : ℕ) : Module.Free R (Hilbert.Polynomial.GradedHilbert.grading R n d) := by |
| 58 | rw [Hilbert.Polynomial.GradedHilbert.grading, homogeneousSubmodule_eq_finsupp_supported] |
| 59 | exact Module.Free.of_basis (basisRestrictSupport R {a : Fin (n + 1) →₀ ℕ | a.degree = d}) |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.PresentationBaseChange.GradedHilbert |