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.AbelianModuli.HilbertConstruction.ShortComplexDimensionBalance |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cochain.ZeroKernel |
| 3 | |
| 4 | /-! # Dimension Balance -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cochain.DimensionBalance |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The dimensions of a nonnegative complex split into homology and adjacent boundary dimensions. -/ |
| 11 | open _root_.CategoryTheory |
| 12 | universe u |
| 13 | |
| 14 | theorem cochain_dimension_balance_zero {K : Type u} [Field K] |
| 15 | (D : CochainComplex (ModuleCat.{u} K) ℕ) [Module.Finite K (D.X 0)] : |
| 16 | Module.finrank K (D.X 0) = Module.finrank K (D.homology 0) + |
| 17 | Module.finrank K (LinearMap.range (D.d 0 1).hom) := by |
| 18 | have hd := (D.d 0 1).hom.finrank_range_add_finrank_ker |
| 19 | have hh := (ZeroKernel.cochainZeroHomologyKernelEquiv D).finrank_eq |
| 20 | omega |
| 21 | |
| 22 | theorem cochain_dimension_balance_succ {K : Type u} [Field K] |
| 23 | (D : CochainComplex (ModuleCat.{u} K) ℕ) (q : ℕ) |
| 24 | [Module.Finite K (D.X q)] [Module.Finite K (D.X (q + 1))] : |
| 25 | Module.finrank K (D.X (q + 1)) = Module.finrank K (D.homology (q + 1)) + |
| 26 | Module.finrank K (LinearMap.range (D.d q (q + 1)).hom) + |
| 27 | Module.finrank K (LinearMap.range (D.d (q + 1) (q + 2)).hom) := by |
| 28 | have hi : (ComplexShape.up ℕ).prev (q + 1) = q := |
| 29 | (ComplexShape.up ℕ).prev_eq' (show (ComplexShape.up ℕ).Rel q (q + 1) by rfl) |
| 30 | have hk : (ComplexShape.up ℕ).next (q + 1) = q + 2 := |
| 31 | (ComplexShape.up ℕ).next_eq' (show (ComplexShape.up ℕ).Rel (q + 1) (q + 2) by rfl) |
| 32 | have hh := (D.homologyIsoSc' q (q + 1) (q + 2) hi hk).toLinearEquiv.finrank_eq |
| 33 | have : Module.Finite K (D.sc' q (q + 1) (q + 2)).X₁ := |
| 34 | (inferInstance : Module.Finite K (D.X q)) |
| 35 | have : Module.Finite K (D.sc' q (q + 1) (q + 2)).X₂ := |
| 36 | (inferInstance : Module.Finite K (D.X (q + 1))) |
| 37 | exact (ShortComplexDimensionBalance.shortComplex_dimension_balance (D.sc' q (q + 1) (q + 2))).trans |
| 38 | (congrArg (fun n => n + Module.finrank K (LinearMap.range (D.d q (q + 1)).hom) + |
| 39 | Module.finrank K (LinearMap.range (D.d (q + 1) (q + 2)).hom)) hh.symm) |
| 40 | |
| 41 | end |
| 42 | |
| 43 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cochain.DimensionBalance |