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.IntegerPolynomialGrading |
| 2 | import Mathlib.Algebra.DirectSum.Decomposition |
| 3 | import Mathlib.RingTheory.MvPolynomial.Basic |
| 4 | |
| 5 | /-! # Scalar Restriction -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.ScalarRestriction.GradedModules |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Restriction of coefficient scalars preserves graded decompositions and the actual polynomial graded action. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial DirectSum |
| 14 | |
| 15 | universe u v w t |
| 16 | |
| 17 | variable {R : Type u} [CommRing R] {S : Type v} [CommRing S] [Algebra R S] |
| 18 | |
| 19 | section Decomposition |
| 20 | |
| 21 | variable {δ : Type w} [DecidableEq δ] |
| 22 | variable {M : Type t} [AddCommGroup M] [Module R M] [Module S M] [IsScalarTower R S M] |
| 23 | variable (ℳ : δ → Submodule S M) [Decomposition ℳ] |
| 24 | |
| 25 | @[instance_reducible] |
| 26 | def restrictScalarsDecomposition : Decomposition (fun d => (ℳ d).restrictScalars R) where |
| 27 | decompose' := DirectSum.decompose ℳ |
| 28 | left_inv := (DirectSum.decompose ℳ).left_inv |
| 29 | right_inv := (DirectSum.decompose ℳ).right_inv |
| 30 | |
| 31 | end Decomposition |
| 32 | |
| 33 | variable {σ : Type w} [Fintype σ] |
| 34 | |
| 35 | omit [Fintype σ] in |
| 36 | theorem coefficientMap_integer_homogeneous {d : ℤ} {p : MvPolynomial σ R} |
| 37 | (hp : p ∈ WeightedFreeModules.GradedModules.polynomialIntegerGrading R d) : |
| 38 | MvPolynomial.map (algebraMap R S) p ∈ WeightedFreeModules.GradedModules.polynomialIntegerGrading S d := by |
| 39 | intro m hm |
| 40 | apply hp |
| 41 | intro hz |
| 42 | exact hm (by rw [MvPolynomial.coeff_map, hz, map_zero]) |
| 43 | |
| 44 | attribute [local instance] MvPolynomial.algebraMvPolynomial |
| 45 | |
| 46 | variable {M : Type t} [AddCommGroup M] [Module R M] [Module S M] |
| 47 | [Module (MvPolynomial σ R) M] [Module (MvPolynomial σ S) M] |
| 48 | [IsScalarTower R S M] [IsScalarTower (MvPolynomial σ R) (MvPolynomial σ S) M] |
| 49 | variable (ℳ : ℤ → Submodule S M) [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) S) ℳ] |
| 50 | |
| 51 | omit [Fintype σ] in |
| 52 | theorem coefficientRestriction_gradedSMul : |
| 53 | SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) (fun d => (ℳ d).restrictScalars R) := by |
| 54 | constructor |
| 55 | intro i j p m hp hm |
| 56 | change p • m ∈ ℳ (i + j) |
| 57 | rw [← algebraMap_smul (MvPolynomial σ S)] |
| 58 | have hm' : m ∈ ℳ j := hm |
| 59 | have hp' : MvPolynomial.map (algebraMap R S) p ∈ WeightedFreeModules.GradedModules.polynomialIntegerGrading S i := |
| 60 | coefficientMap_integer_homogeneous hp |
| 61 | exact SetLike.GradedSMul.smul_mem hp' hm' |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.ScalarRestriction.GradedModules |