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.SheafCohomology.Projective.HomogeneousPolynomialMatrix |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.GradedPieceFiniteness |
| 3 | |
| 4 | /-! # Weighted Free Map Matrix -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.WeightedFreeMapMatrix |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Polynomial matrices of homogeneous maps, including entries forced to vanish by degree. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial |
| 13 | universe u |
| 14 | variable {R : Type u} [CommRing R] {σ : Type} [Fintype σ] {r s : ℕ} |
| 15 | variable (d : Fin r → ℕ) (e : Fin s → ℕ) |
| 16 | variable (f : (Fin s →₀ MvPolynomial σ R) →ₗ[MvPolynomial σ R] (Fin r →₀ MvPolynomial σ R)) |
| 17 | variable (hf : ∀ n x, x ∈ HilbertScheme.Presentations.WeightedFreeModules.GradedModules.weightedFreeGrading R (fun k => (e k : ℤ)) n → |
| 18 | f x ∈ HilbertScheme.Presentations.WeightedFreeModules.GradedModules.weightedFreeGrading R (fun i => (d i : ℤ)) n) |
| 19 | include hf |
| 20 | |
| 21 | omit [Fintype σ] in |
| 22 | theorem weightedFreeMapCoefficient_homogeneous (i : Fin r) (k : Fin s) : |
| 23 | f (Finsupp.single k 1) i ∈ HilbertScheme.Presentations.WeightedFreeModules.GradedModules.polynomialIntegerGrading R ((e k : ℤ) - (d i : ℤ)) := |
| 24 | (HilbertScheme.Presentations.WeightedFreeModules.GradedModules.mem_weightedFreeGrading R (fun i => (d i : ℤ)) (e k : ℤ) _).mp |
| 25 | (hf (e k : ℤ) _ (HilbertScheme.Presentations.WeightedFreeModules.GradedModules.weightedFree_single_homogeneous R (fun k => (e k : ℤ)) k)) i |
| 26 | |
| 27 | theorem weightedFreeMapCoefficient_zero (i : Fin r) (k : Fin s) (h : e k < d i) : |
| 28 | f (Finsupp.single k 1) i = 0 := by |
| 29 | have hc := weightedFreeMapCoefficient_homogeneous d e f hf i k |
| 30 | rw [GradedPieceFiniteness.polynomialIntegerGrading_eq_bot_of_neg R ((e k : ℤ) - (d i : ℤ)) (by omega)] at hc |
| 31 | exact hc |
| 32 | |
| 33 | def weightedFreeMapPolynomial (i : Fin r) (k : Fin s) : |
| 34 | homogeneousSubmodule σ R (e k - d i) := |
| 35 | if h : d i ≤ e k then |
| 36 | ⟨f (Finsupp.single k 1) i, by |
| 37 | have hc := weightedFreeMapCoefficient_homogeneous d e f hf i k |
| 38 | rw [← Int.natCast_sub h, HilbertScheme.Presentations.IntegerPolynomialGrading.GradedModules.polynomialIntegerGrading_nat] at hc |
| 39 | exact hc⟩ |
| 40 | else 0 |
| 41 | |
| 42 | theorem weightedFreeMapPolynomial_val (i : Fin r) (k : Fin s) : |
| 43 | (weightedFreeMapPolynomial d e f hf i k).val = f (Finsupp.single k 1) i := by |
| 44 | by_cases h : d i ≤ e k |
| 45 | · simp [weightedFreeMapPolynomial, h] |
| 46 | · simp only [weightedFreeMapPolynomial, dite_eq_right h, Submodule.coe_zero] |
| 47 | exact (weightedFreeMapCoefficient_zero d e f hf i k (lt_of_not_ge h)).symm |
| 48 | |
| 49 | theorem homogeneousPolynomialMatrixMap_weightedFreeMapPolynomial : |
| 50 | HomogeneousPolynomialMatrix.homogeneousPolynomialMatrixMap d e (weightedFreeMapPolynomial d e f hf) = f := by |
| 51 | apply Finsupp.lhom_ext |
| 52 | intro k a |
| 53 | rw [HomogeneousPolynomialMatrix.homogeneousPolynomialMatrixMap, Finsupp.linearCombination_single] |
| 54 | have hcol : HomogeneousPolynomialMatrix.homogeneousMatrixColumn d e (weightedFreeMapPolynomial d e f hf) k = |
| 55 | f (Finsupp.single k 1) := by |
| 56 | apply Finsupp.ext |
| 57 | intro i |
| 58 | exact weightedFreeMapPolynomial_val d e f hf i k |
| 59 | rw [hcol, ← map_smul] |
| 60 | congr 1 |
| 61 | simp |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.WeightedFreeMapMatrix |