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.Finite.GradedPolynomialModules |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.IntegerPolynomialGrading |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.Exactness |
| 4 | import Mathlib.LinearAlgebra.Dimension.Finite |
| 5 | |
| 6 | /-! # Graded Piece Finiteness -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.GradedPieceFiniteness |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Finite homogeneous pieces of finite graded polynomial modules. -/ |
| 13 | |
| 14 | open _root_.Module _root_.MvPolynomial DirectSum |
| 15 | universe u v w |
| 16 | |
| 17 | variable {σ : Type u} [Fintype σ] (R : Type v) [CommRing R] |
| 18 | |
| 19 | theorem polynomialIntegerGrading_eq_bot_of_neg (d : ℤ) (hd : d < 0) : |
| 20 | HilbertScheme.Presentations.WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R d = ⊥ := by |
| 21 | apply bot_unique |
| 22 | intro p hp |
| 23 | change p = 0 |
| 24 | apply MvPolynomial.ext |
| 25 | intro a |
| 26 | rw [AddMonoidAlgebra.coeff_zero] |
| 27 | by_contra ha |
| 28 | have h := hp ha |
| 29 | rw [HilbertScheme.Presentations.IntegerPolynomialGrading.GradedModules.integerWeight_eq_degree] at h |
| 30 | omega |
| 31 | |
| 32 | theorem polynomialIntegerGrading_finite (d : ℤ) : |
| 33 | Module.Finite R (HilbertScheme.Presentations.WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R d) := by |
| 34 | by_cases hd : 0 ≤ d |
| 35 | · obtain ⟨n, rfl⟩ := Int.eq_ofNat_of_zero_le hd |
| 36 | rw [HilbertScheme.Presentations.IntegerPolynomialGrading.GradedModules.polynomialIntegerGrading_nat] |
| 37 | exact Module.Finite.of_fg (MvPolynomial.homogeneousSubmodule_fg σ R n) |
| 38 | · rw [polynomialIntegerGrading_eq_bot_of_neg R d (by omega)] |
| 39 | infer_instance |
| 40 | |
| 41 | def weightedFreePieceToPi {ι : Type w} (w : ι → ℤ) (d : ℤ) : |
| 42 | HilbertScheme.Presentations.WeightedFreeModules.GradedModules.weightedFreeGrading (σ := σ) R w d →ₗ[R] |
| 43 | ∀ i, HilbertScheme.Presentations.WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R (d - w i) where |
| 44 | toFun f i := ⟨f.val i, (HilbertScheme.Presentations.WeightedFreeModules.GradedModules.mem_weightedFreeGrading R w d f.val).mp f.property i⟩ |
| 45 | map_add' _ _ := rfl |
| 46 | map_smul' _ _ := rfl |
| 47 | |
| 48 | omit [Fintype σ] in |
| 49 | theorem weightedFreePieceToPi_injective {ι : Type w} (w : ι → ℤ) (d : ℤ) : |
| 50 | Function.Injective (weightedFreePieceToPi (σ := σ) R w d) := by |
| 51 | intro f g h |
| 52 | apply Subtype.ext |
| 53 | apply Finsupp.ext |
| 54 | intro i |
| 55 | exact congrArg (fun x => (x i).val) h |
| 56 | |
| 57 | theorem weightedFreeGrading_finite [IsNoetherianRing R] |
| 58 | {ι : Type w} [Finite ι] (w : ι → ℤ) (d : ℤ) : |
| 59 | Module.Finite R (HilbertScheme.Presentations.WeightedFreeModules.GradedModules.weightedFreeGrading (σ := σ) R w d) := by |
| 60 | have (i : ι) : Module.Finite R (HilbertScheme.Presentations.WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R (d - w i)) := |
| 61 | polynomialIntegerGrading_finite R (d - w i) |
| 62 | exact Module.Finite.of_injective (weightedFreePieceToPi (σ := σ) R w d) |
| 63 | (weightedFreePieceToPi_injective R w d) |
| 64 | |
| 65 | theorem finiteGradedPolynomialModule_piece_finite [IsNoetherianRing R] |
| 66 | (D : HilbertScheme.Presentations.Finite.GradedPolynomialModules.GradedModules.FiniteGradedPolynomialModule σ R) (d : ℤ) : Module.Finite R (D.grading d) := by |
| 67 | have : Module.Finite R (D.freeModule.grading d) := |
| 68 | weightedFreeGrading_finite R D.cover.degree d |
| 69 | exact Module.Finite.of_surjective |
| 70 | (HilbertScheme.Presentations.Graded.Exactness.GradedModules.degreeMap D.freeModule.grading D.grading (D.projection.restrictScalars R) |
| 71 | D.projection_homogeneous d) |
| 72 | (HilbertScheme.Presentations.Graded.Exactness.GradedModules.degreeMap_surjective D.freeModule.grading D.grading (D.projection.restrictScalars R) |
| 73 | D.projection_homogeneous D.projection_surjective d) |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.GradedPieceFiniteness |