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.WeightedFreeModules |
| 2 | import Mathlib.RingTheory.MvPolynomial.Homogeneous |
| 3 | |
| 4 | /-! # Integer Polynomial Grading -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.IntegerPolynomialGrading.GradedModules |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Comparison of the natural and integer polynomial gradings. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable {σ : Type u} [Fintype σ] |
| 17 | variable (R : Type v) [CommRing R] |
| 18 | |
| 19 | theorem integerWeight_eq_degree (m : σ →₀ ℕ) : |
| 20 | Finsupp.weight (fun _ : σ => (1 : ℤ)) m = (m.degree : ℤ) := by |
| 21 | rw [Finsupp.weight_eq_sum, Finsupp.degree_eq_sum, Nat.cast_sum] |
| 22 | simp only [nsmul_eq_mul, mul_one] |
| 23 | |
| 24 | theorem polynomialIntegerGrading_nat (n : ℕ) : |
| 25 | WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R (n : ℤ) = homogeneousSubmodule σ R n := by |
| 26 | apply Submodule.ext |
| 27 | intro p |
| 28 | constructor |
| 29 | · intro hp m hm |
| 30 | have hi := hp hm |
| 31 | rw [integerWeight_eq_degree] at hi |
| 32 | have hn : Finsupp.weight (1 : σ → ℕ) m = m.degree := |
| 33 | DFunLike.congr_fun (Finsupp.degree_eq_weight_one (R := ℕ) (σ := σ)).symm m |
| 34 | rw [hn] |
| 35 | exact_mod_cast hi |
| 36 | · intro hp m hm |
| 37 | have hi := hp hm |
| 38 | have hn : Finsupp.weight (1 : σ → ℕ) m = m.degree := |
| 39 | DFunLike.congr_fun (Finsupp.degree_eq_weight_one (R := ℕ) (σ := σ)).symm m |
| 40 | rw [hn] at hi |
| 41 | rw [integerWeight_eq_degree, hi] |
| 42 | |
| 43 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 44 | |
| 45 | theorem ideal_integer_homogeneous (I : Ideal (MvPolynomial σ R)) |
| 46 | (hI : I.IsHomogeneous (homogeneousSubmodule σ R)) : |
| 47 | I.IsHomogeneous (WeightedFreeModules.GradedModules.polynomialIntegerGrading R) := by |
| 48 | obtain ⟨S, hS⟩ := (Ideal.IsHomogeneous.iff_exists (homogeneousSubmodule σ R) I).mp hI |
| 49 | rw [hS] |
| 50 | apply Ideal.homogeneous_span |
| 51 | rintro p ⟨x, _, rfl⟩ |
| 52 | obtain ⟨n, hn⟩ := x.property |
| 53 | refine ⟨(n : ℤ), ?_⟩ |
| 54 | rw [polynomialIntegerGrading_nat] |
| 55 | exact hn |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.IntegerPolynomialGrading.GradedModules |