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.Contravariant.ResolutionHomologyData |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.SourceConnectingNaturality |
| 3 | |
| 4 | /-! # Homology Naturality -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.HomologyNaturality |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: the original source-resolution homology calculation respects maps of short complexes |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | open Abelian |
| 17 | |
| 18 | universe u v z t |
| 19 | |
| 20 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{z} C] |
| 21 | (R : Type t) [CommRing R] [Linear R C] (Y : C) |
| 22 | {T U : ShortComplex Cᵒᵖ} {A B : Cᵒᵖ} (a : A ⟶ T.X₁) (b : B ⟶ U.X₁) |
| 23 | (ha : a ≫ T.toCycles = 0) (hb : b ≫ U.toCycles = 0) |
| 24 | (hT : (ShortComplex.mk a T.toCycles ha).ShortExact) |
| 25 | (hU : (ShortComplex.mk b U.toCycles hb).ShortExact) |
| 26 | [Subsingleton (Ext.{z} T.X₁.unop Y 1)] [Subsingleton (Ext.{z} U.X₁.unop Y 1)] |
| 27 | (φ : T ⟶ U) (g : A ⟶ B) (hg : g ≫ b = a ≫ φ.τ₁) |
| 28 | |
| 29 | local notation "F" => OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ContravariantModuleFunctor.functor R Y 0 |
| 30 | local notation "dT" => OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ResolutionHomologyData.data R Y T a ha hT |
| 31 | local notation "dU" => OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ResolutionHomologyData.data R Y U b hb hU |
| 32 | |
| 33 | def sequenceMap : ShortComplex.mk a T.toCycles ha ⟶ ShortComplex.mk b U.toCycles hb where |
| 34 | τ₁ := g |
| 35 | τ₂ := φ.τ₁ |
| 36 | τ₃ := ShortComplex.cyclesMap φ |
| 37 | comm₁₂ := hg |
| 38 | comm₂₃ := (ShortComplex.toCycles_naturality φ).symm |
| 39 | |
| 40 | private theorem source_f' : (dT).f' = (F).map T.toCycles := IntegralComparison.Ext.SourceZeroKernels.cycleKernel_lift R Y T |
| 41 | |
| 42 | private theorem target_f' : (dU).f' = (F).map U.toCycles := IntegralComparison.Ext.SourceZeroKernels.cycleKernel_lift R Y U |
| 43 | |
| 44 | def data : ShortComplex.LeftHomologyMapData (((F).mapShortComplex).map φ) dT dU where |
| 45 | φK := (F).map (ShortComplex.cyclesMap φ) |
| 46 | φH := (IntegralComparison.Ext.ContravariantModuleFunctor.functor R Y 1).map g |
| 47 | commi := by |
| 48 | change (F).map (ShortComplex.cyclesMap φ) ≫ (F).map U.iCycles = (F).map T.iCycles ≫ (F).map φ.τ₂ |
| 49 | rw [← (F).map_comp, ShortComplex.cyclesMap_i, (F).map_comp] |
| 50 | commf' := by |
| 51 | have hm : (F).map T.toCycles ≫ (F).map (ShortComplex.cyclesMap φ) = |
| 52 | (F).map φ.τ₁ ≫ (F).map U.toCycles := by |
| 53 | rw [← (F).map_comp, ShortComplex.toCycles_naturality, (F).map_comp] |
| 54 | exact (congrArg (fun a => a ≫ (F).map (ShortComplex.cyclesMap φ)) (source_f' R Y a ha hT)).trans |
| 55 | (hm.trans (congrArg (fun a => (F).map φ.τ₁ ≫ a) (target_f' R Y b hb hU).symm)) |
| 56 | commπ := (IntegralComparison.Ext.SourceConnectingNaturality.zero R Y hT hU (sequenceMap a b ha hb φ g hg)).symm |
| 57 | |
| 58 | include hg in |
| 59 | theorem homology : ShortComplex.homologyMap (((F).mapShortComplex).map φ) ≫ (dU).homologyIso.hom = |
| 60 | (dT).homologyIso.hom ≫ (IntegralComparison.Ext.ContravariantModuleFunctor.functor R Y 1).map g := |
| 61 | (data R Y a b ha hb hT hU φ g hg).homologyMap_comm |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.HomologyNaturality |