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 | /- |
| 2 | Copyright (c) 2026 The AINTLIB contributors. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: AINTLIB ModularCurves project |
| 5 | |
| 6 | ForMathlib (OURS, not vendored): upstream candidate. |
| 7 | This file has been modified. |
| 8 | -/ |
| 9 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Noetherian.FiniteExact |
| 10 | import Mathlib.Algebra.Homology.HomologySequence |
| 11 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 12 | |
| 13 | /-! # Homology Exact Sequences -/ |
| 14 | |
| 15 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.HomologyExactSequences.FiniteHomology |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | /- |
| 20 | |
| 21 | ForMathlib (OURS, not vendored): upstream candidate. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.CategoryTheory |
| 25 | |
| 26 | universe u v w |
| 27 | |
| 28 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 29 | variable {ι : Type w} {c : ComplexShape ι} |
| 30 | variable {S : ShortComplex (HomologicalComplex (ModuleCat.{v} R) c)} |
| 31 | |
| 32 | /-- In a short exact sequence of complexes, finite homology of the third complex in one |
| 33 | degree and of the second complex in the following degree imply finite homology of the first |
| 34 | complex in the following degree. -/ |
| 35 | theorem finite_homology_X1 (hS : S.ShortExact) (i j : ι) (hij : c.Rel i j) |
| 36 | [Module.Finite R (S.X₃.homology i)] [Module.Finite R (S.X₂.homology j)] : |
| 37 | Module.Finite R (S.X₁.homology j) := |
| 38 | Noetherian.FiniteExact.noetherian_finite_of_exact _ _ |
| 39 | ((ShortComplex.ShortExact.moduleCat_exact_iff_function_exact _).mp |
| 40 | (hS.homology_exact₁ i j hij)) |
| 41 | |
| 42 | /-- At a degree with no predecessor, finite homology of the middle complex implies finite |
| 43 | homology of the first complex. -/ |
| 44 | theorem finite_homology_X1_of_not_rel (hS : S.ShortExact) (j : ι) |
| 45 | (hj : ∀ i, ¬ c.Rel i j) [Module.Finite R (S.X₂.homology j)] : |
| 46 | Module.Finite R (S.X₁.homology j) := by |
| 47 | let := hS.mono_f |
| 48 | let : Mono (HomologicalComplex.homologyMap S.f j) := |
| 49 | HomologicalComplex.mono_homologyMap_of_mono_of_not_rel S.f j hj |
| 50 | exact Module.Finite.of_injective (HomologicalComplex.homologyMap S.f j).hom |
| 51 | ((ModuleCat.mono_iff_injective (HomologicalComplex.homologyMap S.f j)).mp inferInstance) |
| 52 | |
| 53 | /-- In a short exact sequence of complexes, finite homology of the first and third |
| 54 | complexes in one degree implies finite homology of the second complex in that degree. -/ |
| 55 | theorem finite_homology_X2 (hS : S.ShortExact) (i : ι) |
| 56 | [Module.Finite R (S.X₁.homology i)] [Module.Finite R (S.X₃.homology i)] : |
| 57 | Module.Finite R (S.X₂.homology i) := |
| 58 | Noetherian.FiniteExact.noetherian_finite_of_exact _ _ |
| 59 | ((ShortComplex.ShortExact.moduleCat_exact_iff_function_exact _).mp |
| 60 | (hS.homology_exact₂ i)) |
| 61 | |
| 62 | /-- In a short exact sequence of complexes, finite homology of the second complex in one |
| 63 | degree and of the first complex in the following degree imply finite homology of the third |
| 64 | complex in the first degree. -/ |
| 65 | theorem finite_homology_X3 (hS : S.ShortExact) (i j : ι) (hij : c.Rel i j) |
| 66 | [Module.Finite R (S.X₂.homology i)] [Module.Finite R (S.X₁.homology j)] : |
| 67 | Module.Finite R (S.X₃.homology i) := |
| 68 | Noetherian.FiniteExact.noetherian_finite_of_exact _ _ |
| 69 | ((ShortComplex.ShortExact.moduleCat_exact_iff_function_exact _).mp |
| 70 | (hS.homology_exact₃ i j hij)) |
| 71 | |
| 72 | /-- In a short exact sequence of cochain complexes indexed by the natural numbers, finite |
| 73 | homology of the middle and third complexes in every degree implies finite homology of the |
| 74 | first complex in every degree. -/ |
| 75 | theorem finite_homology_X1_up_nat |
| 76 | {S : ShortComplex (CochainComplex (ModuleCat.{v} R) ℕ)} (hS : S.ShortExact) |
| 77 | [∀ n, Module.Finite R (S.X₂.homology n)] [∀ n, Module.Finite R (S.X₃.homology n)] |
| 78 | (n : ℕ) : Module.Finite R (S.X₁.homology n) := by |
| 79 | cases n with |
| 80 | | zero => |
| 81 | apply finite_homology_X1_of_not_rel hS 0 |
| 82 | simp [ComplexShape.up_Rel] |
| 83 | | succ n => |
| 84 | exact finite_homology_X1 hS n (n + 1) (by simp [ComplexShape.up_Rel]) |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.HomologyExactSequences.FiniteHomology |