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.Module.CategoryHasExt |
| 2 | import Mathlib.Algebra.Homology.DerivedCategory.Ext.EnoughInjectives |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 4 | |
| 5 | /-! # Ext Dimension Shift -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.ExtDimensionShift |
| 8 | |
| 9 | /-! |
| 10 | |
| 11 | # Dimension Shifting |
| 12 | |
| 13 | -/ |
| 14 | |
| 15 | /- HilbertConstruction-local adaptation, using default elaboration settings. -/ |
| 16 | |
| 17 | universe v u |
| 18 | |
| 19 | variable {R : Type u} [Ring R] |
| 20 | |
| 21 | variable {M : Type v} [AddCommGroup M] [Module R M] {N : Type v} [AddCommGroup N] [Module R N] |
| 22 | |
| 23 | open _root_.CategoryTheory Abelian |
| 24 | |
| 25 | /-- The standard short complex `0 → N → P → M → 0` with `P= R^{⊕M}` free. -/ |
| 26 | noncomputable abbrev ModuleCat.projectiveShortComplex [Small.{v} R] (M : ModuleCat.{v} R) : |
| 27 | ShortComplex (ModuleCat.{v} R) := |
| 28 | let e : Module.Basis M R (M →₀ Shrink.{v} R) := |
| 29 | ⟨Finsupp.mapRange.linearEquiv (Shrink.linearEquiv.{v} R R)⟩ |
| 30 | (e.constr ℕ id).shortComplexKer |
| 31 | |
| 32 | theorem ModuleCat.shortExact_projectiveShortComplex [Small.{v} R] (M : ModuleCat.{v} R) : |
| 33 | (ExtDimensionShift.ModuleCat.projectiveShortComplex M).ShortExact := by |
| 34 | apply LinearMap.shortExact_shortComplexKer |
| 35 | refine fun m ↦ ⟨Finsupp.single m 1, ?_⟩ |
| 36 | simp [Module.Basis.constr_apply] |
| 37 | |
| 38 | instance [Small.{v} R] (M : ModuleCat.{v} R) : Module.Free R (ExtDimensionShift.ModuleCat.projectiveShortComplex M).X₂ := |
| 39 | Module.Free.finsupp R _ _ |
| 40 | |
| 41 | /-- The connection maps in the contravariant long exact sequence of `Ext` are surjective if |
| 42 | the middle term of the short exact sequence is projective. -/ |
| 43 | theorem precomp_extClass_surjective_of_projective_X₂ [Small.{v} R] |
| 44 | (M : ModuleCat.{v} R) {S : ShortComplex (ModuleCat.{v} R)} (h : S.ShortExact) (n : ℕ) |
| 45 | [Projective S.X₂] : Function.Surjective (h.extClass.precomp M (add_comm 1 n)) := |
| 46 | fun x ↦ Ext.contravariant_sequence_exact₃ h M x (Ext.eq_zero_of_projective _) (add_comm 1 n) |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.ExtDimensionShift |