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.Sheaf.PresheafSectionComplex |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.InverseCoordinateHomology |
| 3 | |
| 4 | /-! # Section Cohomology Coordinates -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Sheaf.SectionCohomologyCoordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! General coordinate lemmas for the original injective section cohomology comparison. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | universe u v z |
| 15 | |
| 16 | variable {C D : Type u} [Category.{v} C] [Category.{v} D] |
| 17 | (R : Type u) [CommRing R] (J : GrothendieckTopology C) (K : GrothendieckTopology D) |
| 18 | [HasSheafify J (ModuleCat.{u} R)] [HasSheafify K (ModuleCat.{u} R)] |
| 19 | [HasExt.{max u z} (Sheaf J (ModuleCat.{u} R))] |
| 20 | [HasExt.{max u z} (Sheaf K (ModuleCat.{u} R))] |
| 21 | {ZJ : Sheaf J (ModuleCat.{u} R)} {ZK : Sheaf K (ModuleCat.{u} R)} |
| 22 | (IJ : InjectiveResolution ZJ) (IK : InjectiveResolution ZK) |
| 23 | |
| 24 | omit [HasSheafify K (ModuleCat.{u} R)] [HasExt.{max u z} (Sheaf K (ModuleCat.{u} R))] in |
| 25 | theorem homologyIso_hom (i : ℕ) : (PresheafSectionComplex.homologyIso R J IJ i).hom = |
| 26 | HomologicalComplex.homologyMap (PresheafSectionComplex.complexIso R J IJ.cocomplex).inv i ≫ |
| 27 | (InjectiveSectionCohomology.homologyIso R (IntegralComparison.Ext.ZeroPresheafSections.constantUnit R J) IJ i).hom := rfl |
| 28 | |
| 29 | theorem homology |
| 30 | (a : InjectiveSectionCohomology.complex R (IntegralComparison.Ext.ZeroPresheafSections.constantUnit R K) IK ⟶ |
| 31 | InjectiveSectionCohomology.complex R (IntegralComparison.Ext.ZeroPresheafSections.constantUnit R J) IJ) |
| 32 | (b : PresheafSectionComplex.complex R K IK.cocomplex ⟶ |
| 33 | PresheafSectionComplex.complex R J IJ.cocomplex) (i : ℕ) |
| 34 | (g : ModuleCat.of R (Abelian.Ext.{max u z} (IntegralComparison.Ext.ZeroPresheafSections.constantUnit R K) ZK i) ⟶ |
| 35 | ModuleCat.of R (Abelian.Ext.{max u z} (IntegralComparison.Ext.ZeroPresheafSections.constantUnit R J) ZJ i)) |
| 36 | (hc : a ≫ (PresheafSectionComplex.complexIso R J IJ.cocomplex).hom = |
| 37 | (PresheafSectionComplex.complexIso R K IK.cocomplex).hom ≫ b) |
| 38 | (he : HomologicalComplex.homologyMap a i ≫ |
| 39 | (InjectiveSectionCohomology.homologyIso R (IntegralComparison.Ext.ZeroPresheafSections.constantUnit R J) IJ i).hom = |
| 40 | (InjectiveSectionCohomology.homologyIso R (IntegralComparison.Ext.ZeroPresheafSections.constantUnit R K) IK i).hom ≫ g) : |
| 41 | HomologicalComplex.homologyMap b i ≫ (PresheafSectionComplex.homologyIso R J IJ i).hom = |
| 42 | (PresheafSectionComplex.homologyIso R K IK i).hom ≫ g := by |
| 43 | have hs := InverseCoordinateHomology.homology |
| 44 | (PresheafSectionComplex.complexIso R K IK.cocomplex) |
| 45 | (PresheafSectionComplex.complexIso R J IJ.cocomplex) a b hc i |
| 46 | let d := (InjectiveSectionCohomology.homologyIso R (IntegralComparison.Ext.ZeroPresheafSections.constantUnit R J) IJ i).hom |
| 47 | let v := HomologicalComplex.homologyMap (PresheafSectionComplex.complexIso R K IK.cocomplex).inv i |
| 48 | exact (congrArg (fun f => HomologicalComplex.homologyMap b i ≫ f) (homologyIso_hom R J IJ i)).trans |
| 49 | ((Category.assoc _ _ _).symm.trans |
| 50 | ((congrArg (fun f => f ≫ d) hs).trans |
| 51 | ((Category.assoc _ _ _).trans |
| 52 | ((congrArg (fun f => v ≫ f) he).trans |
| 53 | ((Category.assoc _ _ _).symm.trans |
| 54 | (congrArg (fun f => f ≫ g) (homologyIso_hom R K IK i).symm)))))) |
| 55 | |
| 56 | omit [HasSheafify K (ModuleCat.{u} R)] [HasExt.{max u z} (Sheaf K (ModuleCat.{u} R))] in |
| 57 | theorem map_to_sections {P M : CochainComplex (ModuleCat.{max u z} R) ℕ} |
| 58 | (a : P ⟶ M) |
| 59 | (b : M ⟶ InjectiveSectionCohomology.complex R (IntegralComparison.Ext.ZeroPresheafSections.constantUnit R J) IJ) |
| 60 | (c : P ⟶ PresheafSectionComplex.complex R J IJ.cocomplex) |
| 61 | (hc : c = a ≫ b ≫ (PresheafSectionComplex.complexIso R J IJ.cocomplex).hom) (i : ℕ) : |
| 62 | HomologicalComplex.homologyMap c i ≫ (PresheafSectionComplex.homologyIso R J IJ i).hom = |
| 63 | HomologicalComplex.homologyMap a i ≫ (HomologicalComplex.homologyMap b i ≫ |
| 64 | (InjectiveSectionCohomology.homologyIso R (IntegralComparison.Ext.ZeroPresheafSections.constantUnit R J) IJ i).hom) := by |
| 65 | let H := HomologicalComplex.homologyFunctor (ModuleCat.{max u z} R) (ComplexShape.up ℕ) i |
| 66 | let e := PresheafSectionComplex.complexIso R J IJ.cocomplex |
| 67 | let d := (InjectiveSectionCohomology.homologyIso R (IntegralComparison.Ext.ZeroPresheafSections.constantUnit R J) IJ i).hom |
| 68 | exact (congrArg (fun f => H.map f ≫ (PresheafSectionComplex.homologyIso R J IJ i).hom) hc).trans |
| 69 | (CoordinateSquare.Comparison.map_postcompose H a b e (H.map b ≫ d) d rfl) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Sheaf.SectionCohomologyCoordinates |