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.ContravariantModuleFunctor |
| 2 | import Mathlib.Algebra.Homology.DerivedCategory.Ext.ExactSequences |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 4 | |
| 5 | /-! # Source Zero Kernels -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.SourceZeroKernels |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Contravariant degree-zero original Ext preserves the cycle kernels of the opposite source resolution. -/ |
| 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 | |
| 22 | local notation "F" => OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ContravariantModuleFunctor.functor R Y 0 |
| 23 | |
| 24 | theorem map_mono {A B : Cᵒᵖ} (g : A ⟶ B) [Mono g] : Mono ((F).map g) := |
| 25 | (ModuleCat.mono_iff_injective _).mpr (Ext.precomp_mk₀_injective_of_epi Y g.unop) |
| 26 | |
| 27 | theorem map_exact (S : ShortComplex Cᵒᵖ) (hS : S.Exact) [Mono S.f] : (S.map F).Exact := by |
| 28 | rw [ShortComplex.moduleCat_exact_iff] |
| 29 | intro x hx |
| 30 | change Ext.{z} S.X₂.unop Y 0 at x |
| 31 | obtain ⟨g, rfl⟩ := Ext.addEquiv₀.symm.surjective x |
| 32 | have hg : S.g.unop ≫ g = 0 := |
| 33 | (Ext.mk₀_eq_zero_iff _).mp ((Ext.mk₀_comp_mk₀ S.g.unop g).symm.trans hx) |
| 34 | let : Epi S.unop.g := inferInstanceAs (Epi S.f.unop) |
| 35 | let h := hS.unop.gIsCokernel |
| 36 | let y := h.desc (CokernelCofork.ofπ g hg) |
| 37 | refine ⟨Ext.mk₀ y, ?_⟩ |
| 38 | exact (Ext.mk₀_comp_mk₀ S.f.unop y).trans |
| 39 | (congrArg (fun a : S.X₂.unop ⟶ Y => (Ext.mk₀ a : Ext.{z} S.X₂.unop Y 0)) |
| 40 | (h.fac (CokernelCofork.ofπ g hg) WalkingParallelPair.one)) |
| 41 | |
| 42 | def cycleKernel (S : ShortComplex Cᵒᵖ) : |
| 43 | IsLimit (KernelFork.ofι ((F).map S.iCycles) (show (F).map S.iCycles ≫ (F).map S.g = 0 by |
| 44 | rw [← (F).map_comp, S.iCycles_g, (F).map_zero])) := by |
| 45 | let T := ShortComplex.mk S.iCycles S.g S.iCycles_g |
| 46 | have hT : T.Exact := ShortComplex.exact_of_f_is_kernel T S.cyclesIsKernel |
| 47 | let : Mono (T.map F).f := map_mono R Y S.iCycles |
| 48 | exact (map_exact R Y T hT).fIsKernel |
| 49 | |
| 50 | theorem cycleKernel_lift (S : ShortComplex Cᵒᵖ) : |
| 51 | (cycleKernel R Y S).lift (KernelFork.ofι ((F).map S.f) |
| 52 | (show (F).map S.f ≫ (F).map S.g = 0 by rw [← (F).map_comp, S.zero, (F).map_zero])) = |
| 53 | (F).map S.toCycles := by |
| 54 | let : Mono ((F).map S.iCycles) := map_mono R Y S.iCycles |
| 55 | apply (cancel_mono ((F).map S.iCycles)).mp |
| 56 | have h : (F).map S.toCycles ≫ (F).map S.iCycles = (F).map S.f := |
| 57 | ((F).map_comp S.toCycles S.iCycles).symm.trans (congrArg (F).map S.toCycles_i) |
| 58 | exact ((cycleKernel R Y S).fac _ WalkingParallelPair.zero).trans h.symm |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.SourceZeroKernels |