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.IntersectionTheory.ProjectionFormula.Generic.FreeSubmodule |
| 2 | import Mathlib.LinearAlgebra.Isomorphisms |
| 3 | |
| 4 | /-! # Torsion Presentation Rank -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.TorsionPresentationRank |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The two free modules in a torsion presentation differ in rank |
| 11 | by the rank of the actual relation kernel. -/ |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | theorem rank_eq (R : Type u) [CommRing R] [IsDomain R] |
| 16 | (B C M : Type v) [AddCommGroup B] [AddCommGroup C] [AddCommGroup M] |
| 17 | [Module R B] [Module R C] [Module R M] |
| 18 | [Module.Finite R B] [Module.Finite R C] [Module.Finite R M] |
| 19 | (g : B →ₗ[R] C) (π : C →ₗ[R] M) (he : Function.Exact g π) |
| 20 | (hπ : Function.Surjective π) (hM : Module.IsTorsion R M) : |
| 21 | Module.finrank R B = Module.finrank R g.ker + Module.finrank R C := by |
| 22 | have hrange : g.range = π.ker := (LinearMap.exact_iff.mp he).symm |
| 23 | let e : (C ⧸ g.range) ≃ₗ[R] M := |
| 24 | (Submodule.quotEquivOfEq _ _ hrange).trans (π.quotKerEquivOfSurjective hπ) |
| 25 | have hc : Module.finrank R (C ⧸ g.range) = 0 := e.finrank_eq.trans hM.finrank_eq_zero |
| 26 | have hgr := g.range.finrank_quotient_add_finrank |
| 27 | rw [hc, zero_add] at hgr |
| 28 | have hgk := g.ker.finrank_quotient_add_finrank |
| 29 | rw [g.quotKerEquivRange.finrank_eq, hgr] at hgk |
| 30 | omega |
| 31 | |
| 32 | end |
| 33 | |
| 34 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.TorsionPresentationRank |