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.Graded.ModuleGenerators |
| 2 | import Mathlib.LinearAlgebra.DirectSum.Finsupp |
| 3 | |
| 4 | /-! # Submodule Grading -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.SubmoduleGrading.GradedModules |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Homogeneous submodules inherit genuine internal decompositions. -/ |
| 11 | |
| 12 | open DirectSum |
| 13 | |
| 14 | universe u v w |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] {M : Type v} [AddCommGroup M] [Module R M] |
| 17 | variable {δ : Type w} [DecidableEq δ] |
| 18 | variable (ℳ : δ → Submodule R M) [Decomposition ℳ] (P : Submodule R M) |
| 19 | |
| 20 | def submoduleGrading (d : δ) : Submodule R P := (ℳ d).comap P.subtype |
| 21 | |
| 22 | def submoduleGradedInclusion : (⨁ d, submoduleGrading ℳ P d) →ₗ[R] ⨁ d, ℳ d := |
| 23 | DirectSum.lmap (fun d => |
| 24 | (P.subtype.comp (submoduleGrading ℳ P d).subtype).codRestrict (ℳ d) (fun x => x.property)) |
| 25 | |
| 26 | omit [Decomposition ℳ] in |
| 27 | theorem submoduleGradedInclusion_sum : |
| 28 | (DirectSum.coeLinearMap ℳ).comp (submoduleGradedInclusion ℳ P) = |
| 29 | P.subtype.comp (DirectSum.coeLinearMap (submoduleGrading ℳ P)) := by |
| 30 | apply DirectSum.linearMap_ext |
| 31 | intro d |
| 32 | apply LinearMap.ext |
| 33 | intro x |
| 34 | simp only [LinearMap.comp_apply, submoduleGradedInclusion, DirectSum.lmap_lof, |
| 35 | DirectSum.coeLinearMap_lof] |
| 36 | rfl |
| 37 | |
| 38 | theorem submoduleGrading_sum_injective : |
| 39 | Function.Injective (DirectSum.coeLinearMap (submoduleGrading ℳ P)) := by |
| 40 | intro x y h |
| 41 | have hsum : DirectSum.coeLinearMap ℳ (submoduleGradedInclusion ℳ P x) = |
| 42 | DirectSum.coeLinearMap ℳ (submoduleGradedInclusion ℳ P y) := by |
| 43 | exact (LinearMap.congr_fun (submoduleGradedInclusion_sum ℳ P) x).trans |
| 44 | ((congrArg P.subtype h).trans (LinearMap.congr_fun (submoduleGradedInclusion_sum ℳ P) y).symm) |
| 45 | have hbase : submoduleGradedInclusion ℳ P x = submoduleGradedInclusion ℳ P y := |
| 46 | (DirectSum.decomposeLinearEquiv ℳ).symm.injective hsum |
| 47 | apply DFinsupp.ext |
| 48 | intro d |
| 49 | apply Subtype.ext |
| 50 | apply Subtype.ext |
| 51 | exact congrArg (fun z : ⨁ e, ℳ e => (z d).val) hbase |
| 52 | |
| 53 | theorem submoduleGrading_iSup_eq_top (hP : P.IsHomogeneous ℳ) : |
| 54 | (⨆ d, submoduleGrading ℳ P d) = ⊤ := by |
| 55 | classical |
| 56 | apply top_unique |
| 57 | intro x _ |
| 58 | have hx : x = ∑ d ∈ (DirectSum.decompose ℳ x.val).support, |
| 59 | (⟨(DirectSum.decompose ℳ x.val d).val, hP d x.property⟩ : P) := by |
| 60 | apply Subtype.ext |
| 61 | simpa only [Submodule.coe_sum] using (DirectSum.sum_support_decompose ℳ x.val).symm |
| 62 | rw [hx] |
| 63 | apply Submodule.sum_mem |
| 64 | intro d _ |
| 65 | apply (le_iSup (submoduleGrading ℳ P) d) |
| 66 | exact (DirectSum.decompose ℳ x.val d).property |
| 67 | |
| 68 | theorem submoduleGrading_sum_surjective (hP : P.IsHomogeneous ℳ) : |
| 69 | Function.Surjective (DirectSum.coeLinearMap (submoduleGrading ℳ P)) := by |
| 70 | rw [← LinearMap.range_eq_top, DirectSum.range_coeLinearMap] |
| 71 | exact submoduleGrading_iSup_eq_top ℳ P hP |
| 72 | |
| 73 | @[instance_reducible] |
| 74 | def homogeneousSubmoduleDecomposition (hP : P.IsHomogeneous ℳ) : |
| 75 | DirectSum.Decomposition (submoduleGrading ℳ P) := by |
| 76 | let e := LinearEquiv.ofBijective (DirectSum.coeLinearMap (submoduleGrading ℳ P)) |
| 77 | ⟨submoduleGrading_sum_injective ℳ P, submoduleGrading_sum_surjective ℳ P hP⟩ |
| 78 | exact DirectSum.Decomposition.ofLinearMap _ e.symm.toLinearMap |
| 79 | (by apply LinearMap.ext; intro x; exact e.apply_symm_apply x) |
| 80 | (by apply LinearMap.ext; intro x; exact e.symm_apply_apply x) |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.SubmoduleGrading.GradedModules |