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.HomologySequence |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 3 | import Mathlib.RingTheory.Finiteness.Finsupp |
| 4 | import Mathlib.RingTheory.Noetherian.Basic |
| 5 | |
| 6 | /-! # Homology Sequences -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.HomologySequences |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Finiteness propagates through exact sequences and through the homology sequence of actual module complexes. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | universe u v w t |
| 17 | |
| 18 | variable (R : Type u) [CommRing R] [IsNoetherianRing R] |
| 19 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 20 | variable {N : Type w} [AddCommGroup N] [Module R N] |
| 21 | variable {P : Type t} [AddCommGroup P] [Module R P] |
| 22 | |
| 23 | theorem finite_middle_of_exact (f : M →ₗ[R] N) (g : N →ₗ[R] P) |
| 24 | (hex : Function.Exact f g) [Module.Finite R M] [Module.Finite R P] : Module.Finite R N := by |
| 25 | apply Module.Finite.of_exact (f := f) (g := g.rangeRestrict) _ g.surjective_rangeRestrict |
| 26 | intro y |
| 27 | constructor |
| 28 | · intro hy |
| 29 | exact (hex y).mp (congrArg Subtype.val hy) |
| 30 | · intro hy |
| 31 | exact Subtype.ext ((hex y).mpr hy) |
| 32 | |
| 33 | theorem finite_homology_of_shortExact |
| 34 | (S : ShortComplex (CochainComplex (ModuleCat.{v} R) ℕ)) (hS : S.ShortExact) (q : ℕ) |
| 35 | [Module.Finite R (S.X₂.homology q)] [Module.Finite R (S.X₁.homology (q + 1))] : |
| 36 | Module.Finite R (S.X₃.homology q) := by |
| 37 | have hex := hS.homology_exact₃ q (q + 1) rfl |
| 38 | apply finite_middle_of_exact R (HomologicalComplex.homologyMap S.g q).hom |
| 39 | (hS.δ q (q + 1) rfl).hom |
| 40 | exact (ShortComplex.ShortExact.moduleCat_exact_iff_function_exact _).mp hex |
| 41 | |
| 42 | end |
| 43 | |
| 44 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.HomologySequences |