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 Mathlib.Algebra.DirectSum.Decomposition |
| 2 | import Mathlib.Algebra.Group.Equiv.Defs |
| 3 | import Mathlib.Algebra.Module.GradedModule |
| 4 | |
| 5 | /-! # Reindexed Grading -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ReindexedGrading.GradedModules |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Reindexing an internal grading, and shifts of integer-graded modules. -/ |
| 12 | |
| 13 | open DirectSum |
| 14 | |
| 15 | universe u v w t |
| 16 | |
| 17 | variable {R : Type u} [CommRing R] {δ : Type v} [DecidableEq δ] |
| 18 | variable {M : Type w} [AddCommGroup M] [Module R M] |
| 19 | variable (ℳ : δ → Submodule R M) [Decomposition ℳ] |
| 20 | |
| 21 | def reindexedDecompose (e : δ ≃ δ) : M ≃ₗ[R] ⨁ d, ℳ (e d) := |
| 22 | (decomposeLinearEquiv ℳ).trans (DirectSum.lequivCongrLeft R e.symm) |
| 23 | |
| 24 | theorem reindexedDecompose_symm (e : δ ≃ δ) : |
| 25 | (reindexedDecompose ℳ e).symm.toLinearMap = DirectSum.coeLinearMap (fun d => ℳ (e d)) := by |
| 26 | apply DirectSum.linearMap_ext |
| 27 | intro d |
| 28 | apply LinearMap.ext |
| 29 | intro m |
| 30 | simp only [LinearMap.comp_apply, DirectSum.coeLinearMap_lof] |
| 31 | change (decomposeLinearEquiv ℳ).symm |
| 32 | ((DirectSum.lequivCongrLeft R e.symm).symm (DirectSum.lof R δ (fun d => ℳ (e d)) d m)) = m.val |
| 33 | have he := DirectSum.lequivCongrLeft_symm_lof (R := R) (M := fun i => ℳ i) |
| 34 | (h := e.symm) (k := d) (x := m) |
| 35 | exact (congrArg (decomposeLinearEquiv ℳ).symm he).trans |
| 36 | (decomposeLinearEquiv_symm_lof ℳ (e d) m) |
| 37 | |
| 38 | @[instance_reducible] |
| 39 | def reindexedGradingDecomposition (e : δ ≃ δ) : Decomposition (fun d => ℳ (e d)) := |
| 40 | Decomposition.ofLinearMap (fun d => ℳ (e d)) (reindexedDecompose ℳ e).toLinearMap |
| 41 | (by |
| 42 | rw [← reindexedDecompose_symm] |
| 43 | apply LinearMap.ext |
| 44 | intro x |
| 45 | exact (reindexedDecompose ℳ e).symm_apply_apply x) |
| 46 | (by |
| 47 | rw [← reindexedDecompose_symm] |
| 48 | apply LinearMap.ext |
| 49 | intro x |
| 50 | exact (reindexedDecompose ℳ e).apply_symm_apply x) |
| 51 | |
| 52 | variable {A : Type t} [CommRing A] [Algebra R A] [Module A M] [IsScalarTower R A M] |
| 53 | variable (𝒜 : ℤ → Submodule R A) [GradedAlgebra 𝒜] |
| 54 | variable (ℕM : ℤ → Submodule R M) [Decomposition ℕM] [SetLike.GradedSMul 𝒜 ℕM] |
| 55 | |
| 56 | def shiftedGrading (a : ℤ) : ℤ → Submodule R M := fun d => ℕM (d + a) |
| 57 | |
| 58 | instance shiftedGradingDecomposition (a : ℤ) : Decomposition (shiftedGrading ℕM a) := |
| 59 | reindexedGradingDecomposition ℕM (Equiv.addRight a) |
| 60 | |
| 61 | instance shiftedGradingGradedSMul (a : ℤ) : SetLike.GradedSMul 𝒜 (shiftedGrading ℕM a) where |
| 62 | smul_mem := by |
| 63 | intro i j r m hr hm |
| 64 | have hm' : m ∈ ℕM (j + a) := hm |
| 65 | have h : r • m ∈ ℕM (i + (j + a)) := SetLike.GradedSMul.smul_mem hr hm' |
| 66 | simpa only [shiftedGrading, vadd_eq_add, add_assoc] using h |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ReindexedGrading.GradedModules |