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.Homology.ShortComplex.ModuleCat |
| 2 | import Mathlib.LinearAlgebra.FiniteDimensional.Lemmas |
| 3 | |
| 4 | /-! # Short Complex Dimension Balance -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ShortComplexDimensionBalance |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Rank-nullity and the concrete kernel quotient give the dimension balance in a short complex. -/ |
| 11 | open _root_.CategoryTheory |
| 12 | universe u |
| 13 | |
| 14 | theorem shortComplex_dimension_balance {K : Type u} [Field K] |
| 15 | (S : ShortComplex (ModuleCat.{u} K)) |
| 16 | [Module.Finite K S.X₁] [Module.Finite K S.X₂] : |
| 17 | Module.finrank K S.X₂ = Module.finrank K S.homology + |
| 18 | Module.finrank K (LinearMap.range S.f.hom) + |
| 19 | Module.finrank K (LinearMap.range S.g.hom) := by |
| 20 | have hf := S.f.hom.finrank_range_add_finrank_ker |
| 21 | have hc := S.moduleCatToCycles.finrank_range_add_finrank_ker |
| 22 | have hg := S.g.hom.finrank_range_add_finrank_ker |
| 23 | have hq := (LinearMap.range S.moduleCatToCycles).finrank_quotient_add_finrank |
| 24 | have hh := S.moduleCatHomologyIso.toLinearEquiv.finrank_eq |
| 25 | change Module.finrank K S.homology = |
| 26 | Module.finrank K (LinearMap.ker S.g.hom ⧸ LinearMap.range S.moduleCatToCycles) at hh |
| 27 | have hk : LinearMap.ker S.moduleCatToCycles = LinearMap.ker S.f.hom := |
| 28 | LinearMap.ker_codRestrict _ _ _ |
| 29 | have hkdim := congrArg (fun P : Submodule K S.X₁ => Module.finrank K P) hk |
| 30 | omega |
| 31 | |
| 32 | end |
| 33 | |
| 34 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ShortComplexDimensionBalance |