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.NumberTheory.PadicHodge.IntegralComparison.Ext.SourceDimensionShift |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ContravariantModuleFunctor |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 4 | |
| 5 | /-! # Source Zero Cokernel -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.SourceZeroCokernel |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The original contravariant Ext connecting map computes the degree-zero cokernel. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 14 | |
| 15 | open Abelian |
| 16 | |
| 17 | universe u v z t |
| 18 | |
| 19 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{z} C] |
| 20 | (R : Type t) [CommRing R] [Linear R C] (Y : C) |
| 21 | {S : ShortComplex Cᵒᵖ} (hS : S.ShortExact) |
| 22 | |
| 23 | local notation "F" => OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ContravariantModuleFunctor.functor R Y 0 |
| 24 | |
| 25 | def connecting : (F).obj S.X₃ ⟶ ModuleCat.of R (Ext.{z} S.X₁.unop Y 1) := |
| 26 | ModuleCat.ofHom (hS.unop.extClass.precompOfLinear R Y rfl) |
| 27 | |
| 28 | theorem condition : (F).map S.g ≫ connecting R Y hS = 0 := by |
| 29 | apply ModuleCat.hom_ext |
| 30 | apply LinearMap.ext |
| 31 | intro α |
| 32 | change Ext.{z} S.X₂.unop Y 0 at α |
| 33 | change hS.unop.extClass.comp ((Ext.mk₀ S.g.unop).comp α (zero_add 0)) rfl = 0 |
| 34 | exact ShortComplex.ShortExact.extClass_comp_assoc hS.unop α |
| 35 | |
| 36 | def sequence : ShortComplex (ModuleCat.{z} R) := |
| 37 | ShortComplex.mk ((F).map S.g) (connecting R Y hS) (condition R Y hS) |
| 38 | |
| 39 | theorem sequence_exact : (sequence R Y hS).Exact := by |
| 40 | rw [ShortComplex.moduleCat_exact_iff] |
| 41 | intro α hα |
| 42 | exact Ext.contravariant_sequence_exact₁ hS.unop Y α rfl hα |
| 43 | |
| 44 | theorem connecting_epi [Subsingleton (Ext.{z} S.X₂.unop Y 1)] : Epi (connecting R Y hS) := by |
| 45 | let : Subsingleton (Ext.{z} S.unop.X₂ Y (0 + 1)) := |
| 46 | inferInstanceAs (Subsingleton (Ext.{z} S.X₂.unop Y 1)) |
| 47 | exact (ModuleCat.epi_iff_surjective _).mpr (SourceDimensionShift.connecting_surjective hS.unop Y 0) |
| 48 | |
| 49 | def isCokernel [Subsingleton (Ext.{z} S.X₂.unop Y 1)] : |
| 50 | IsColimit (CokernelCofork.ofπ (connecting R Y hS) (condition R Y hS)) := by |
| 51 | let : Epi (sequence R Y hS).g := connecting_epi R Y hS |
| 52 | exact (sequence_exact R Y hS).gIsCokernel |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.SourceZeroCokernel |