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.Comparison.Betti.Godement.ImageBicomplex |
| 2 | import OAI.AlgebraicGeometry.Comparison.Betti.Finite.Total |
| 3 | import Mathlib.CategoryTheory.Preadditive.Biproducts |
| 4 | |
| 5 | /-! # Pushforward Bicomplex -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Godement.PushforwardBicomplex |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The canonical relative Godement maps act in both degrees of the actual bicomplex. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex₂ |
| 14 | |
| 15 | variable {X Y : TopCat.{0}} (f : Y ⟶ X) |
| 16 | |
| 17 | local instance godementTotalNativePreadditive (Z : TopCat.{0}) : |
| 18 | Preadditive (TopCat.Sheaf (ModuleCat.{0} ℂ) Z) := |
| 19 | inferInstanceAs (Preadditive (ConstantSheafSections.ComplexSheaves Z)) |
| 20 | |
| 21 | local instance godementTotalNativeFiniteBiproducts (Z : TopCat.{0}) : |
| 22 | HasFiniteBiproducts (TopCat.Sheaf (ModuleCat.{0} ℂ) Z) where |
| 23 | out _ := ⟨fun G => HasBiproduct.of_hasProduct G⟩ |
| 24 | |
| 25 | local instance godementTotalNativeFiniteCoproducts (Z : TopCat.{0}) : |
| 26 | HasFiniteCoproducts (TopCat.Sheaf (ModuleCat.{0} ℂ) Z) := |
| 27 | hasFiniteCoproducts_of_hasFiniteBiproducts (TopCat.Sheaf (ModuleCat.{0} ℂ) Z) |
| 28 | |
| 29 | local instance godementBicomplexDirectImageAdditive : (TopologicalSheafPullback.sheafDirectImage f).Additive := |
| 30 | TopologicalSheafPullback.sheafDirectImageAdditive f |
| 31 | |
| 32 | variable {K : CochainComplex (ConstantSheafSections.ComplexSheaves X) ℕ} |
| 33 | {L : CochainComplex (ConstantSheafSections.ComplexSheaves Y) ℕ} |
| 34 | (α : K ⟶ ((TopologicalSheafPullback.sheafDirectImage f).mapHomologicalComplex (.up ℕ)).obj L) |
| 35 | |
| 36 | def godementDirectImageTotalMap : Bicomplex.godementTotal K ⟶ |
| 37 | ((TopologicalSheafPullback.sheafDirectImage f).mapHomologicalComplex (.up ℕ)).obj (Bicomplex.godementTotal L) := |
| 38 | total.map (ImageBicomplex.godementDirectImageBicomplexMap f α) (.up ℕ) ≫ |
| 39 | @Finite.Total.totalComparison _ _ _ _ _ _ _ _ (TopologicalSheafPullback.sheafDirectImage f) |
| 40 | (TopologicalSheafPullback.sheafDirectImageAdditive f) (Bicomplex.godementBicomplex Y L) |
| 41 | |
| 42 | theorem godementDirectImageTotalMap_augmentation : |
| 43 | Bicomplex.godementTotalAugmentation K ≫ godementDirectImageTotalMap f α = |
| 44 | α ≫ ((TopologicalSheafPullback.sheafDirectImage f).mapHomologicalComplex (.up ℕ)).map (Bicomplex.godementTotalAugmentation L) := by |
| 45 | apply HomologicalComplex.Hom.ext |
| 46 | funext n |
| 47 | let B := Bicomplex.godementBicomplex X K |
| 48 | let C := ImageBicomplex.godementDirectImageBicomplex f L |
| 49 | let D := Bicomplex.godementBicomplex Y L |
| 50 | let F := TopologicalSheafPullback.sheafDirectImage f |
| 51 | let φ : B ⟶ C := ImageBicomplex.godementDirectImageBicomplexMap f α |
| 52 | have hB : B.HasTotal (.up ℕ) := |
| 53 | @TotalExists.hasTotal_of_finiteCoproducts (ConstantSheafSections.ComplexSheaves X) _ |
| 54 | (godementTotalNativePreadditive X) (godementTotalNativeFiniteCoproducts X) B |
| 55 | have hC : C.HasTotal (.up ℕ) := |
| 56 | @TotalExists.hasTotal_of_finiteCoproducts (ConstantSheafSections.ComplexSheaves X) _ |
| 57 | (godementTotalNativePreadditive X) (godementTotalNativeFiniteCoproducts X) C |
| 58 | have hD : D.HasTotal (.up ℕ) := |
| 59 | @TotalExists.hasTotal_of_finiteCoproducts (ConstantSheafSections.ComplexSheaves Y) _ |
| 60 | (godementTotalNativePreadditive Y) (godementTotalNativeFiniteCoproducts Y) D |
| 61 | let t := @Finite.Total.totalComparisonComponent _ _ _ _ _ _ _ _ (TopologicalSheafPullback.sheafDirectImage f) |
| 62 | (TopologicalSheafPullback.sheafDirectImageAdditive f) (Bicomplex.godementBicomplex Y L) n |
| 63 | have hu : (Functor.stalkFamilyUnit X).app (K.X n) ≫ (φ.f n).f 0 = |
| 64 | α.f n ≫ F.map ((Functor.stalkFamilyUnit Y).app (L.X n)) := |
| 65 | PushforwardResolution.godementRelativeResolutionMap_augmentation f (α.f n) |
| 66 | have ht := |
| 67 | @Finite.Total.ι_totalComparisonComponent _ _ _ _ _ _ _ _ (TopologicalSheafPullback.sheafDirectImage f) |
| 68 | (TopologicalSheafPullback.sheafDirectImageAdditive f) (Bicomplex.godementBicomplex Y L) n 0 n rfl |
| 69 | change ((Functor.stalkFamilyUnit X).app (K.X n) ≫ B.ιTotal (.up ℕ) n 0 n rfl) ≫ |
| 70 | ((total.map φ (.up ℕ)).f n ≫ t) = |
| 71 | α.f n ≫ F.map ((Functor.stalkFamilyUnit Y).app (L.X n) ≫ D.ιTotal (.up ℕ) n 0 n rfl) |
| 72 | exact (Category.assoc _ _ _).symm.trans |
| 73 | ((congrArg (· ≫ t) (Category.assoc _ _ _)).trans |
| 74 | ((congrArg (fun a => ((Functor.stalkFamilyUnit X).app (K.X n) ≫ a) ≫ t) |
| 75 | (ιTotal_map B C φ (.up ℕ) n 0 n rfl)).trans |
| 76 | ((congrArg (· ≫ t) (Category.assoc _ _ _).symm).trans |
| 77 | ((Category.assoc _ _ _).trans |
| 78 | ((congrArg₂ (· ≫ ·) hu ht).trans |
| 79 | ((Category.assoc _ _ _).trans |
| 80 | (congrArg (α.f n ≫ ·) (F.map_comp _ _).symm))))))) |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.Comparison.Betti.Godement.PushforwardBicomplex |