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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SheafDerivedGlobalSections.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RepresentedDerivedFunctor |
| 8 | import Mathlib.CategoryTheory.Adjunction.Additive |
| 9 | |
| 10 | /-! # Derived Global Sections -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.DerivedGlobalSections.DerivedSections |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 17 | universe u |
| 18 | variable {X : TopCat.{u}} |
| 19 | |
| 20 | abbrev J (X : TopCat.{u}) := Opens.grothendieckTopology X |
| 21 | |
| 22 | abbrev constantZ (X : TopCat.{u}) : |
| 23 | CategoryTheory.Sheaf (J X) AddCommGrpCat.{u} := |
| 24 | (CategoryTheory.constantSheaf (J X) AddCommGrpCat.{u}).obj |
| 25 | (AddCommGrpCat.of (ULift.{u} ℤ)) |
| 26 | |
| 27 | abbrev additiveSheafGlobalSectionsFunctor (X : TopCat.{u}) : |
| 28 | CategoryTheory.Sheaf (J X) AddCommGrpCat.{u} ⥤ AddCommGrpCat.{u} := |
| 29 | CategoryTheory.Sheaf.Γ (J X) AddCommGrpCat.{u} |
| 30 | |
| 31 | noncomputable local instance : (additiveSheafGlobalSectionsFunctor X).Additive := |
| 32 | (CategoryTheory.constantSheafΓAdj (J X) AddCommGrpCat.{u}).right_adjoint_additive |
| 33 | |
| 34 | def homToGlobalSectionsEquiv |
| 35 | (F : CategoryTheory.Sheaf (J X) AddCommGrpCat.{u}) : |
| 36 | (constantZ X ⟶ F) ≃+ ↑((additiveSheafGlobalSectionsFunctor X).obj F) := |
| 37 | ((CategoryTheory.constantSheafΓAdj (J X) AddCommGrpCat.{u}).homAddEquiv |
| 38 | (AddCommGrpCat.of (ULift.{u} ℤ)) F).trans |
| 39 | (AddCommGrpCat.uliftZMultiplesAddEquiv ((additiveSheafGlobalSectionsFunctor X).obj F)) |
| 40 | |
| 41 | lemma homToGlobalSectionsEquiv_naturality |
| 42 | {F G : CategoryTheory.Sheaf (J X) AddCommGrpCat.{u}} |
| 43 | (f : constantZ X ⟶ F) (g : F ⟶ G) : |
| 44 | homToGlobalSectionsEquiv G (f ≫ g) = |
| 45 | (additiveSheafGlobalSectionsFunctor X).map g (homToGlobalSectionsEquiv F f) := by |
| 46 | change AddCommGrpCat.uliftZMultiplesAddEquiv _ |
| 47 | ((CategoryTheory.constantSheafΓAdj (J X) AddCommGrpCat.{u}).homEquiv _ _ (f ≫ g)) = _ |
| 48 | rw [(CategoryTheory.constantSheafΓAdj |
| 49 | (J X) AddCommGrpCat.{u}).homEquiv_naturality_right] |
| 50 | rfl |
| 51 | |
| 52 | /-- Sheaf cohomology agrees with the right-derived functors of global sections. -/ |
| 53 | noncomputable def sheafCohomologyAddEquivRightDerived |
| 54 | (F : CategoryTheory.Sheaf (J X) AddCommGrpCat.{u}) (n : ℕ) : |
| 55 | CategoryTheory.Sheaf.H F n ≃+ ↑(((additiveSheafGlobalSectionsFunctor X).rightDerived n).obj F) := by |
| 56 | exact RepresentedDerivedFunctor.DerivedSections.addEquivRightDerived |
| 57 | (additiveSheafGlobalSectionsFunctor X) (constantZ X) F |
| 58 | homToGlobalSectionsEquiv |
| 59 | (fun f g ↦ homToGlobalSectionsEquiv_naturality f g) n |
| 60 | |
| 61 | /-- The identification of sheaf cohomology with derived global sections commutes with |
| 62 | morphisms of sheaves. -/ |
| 63 | theorem sheafCohomologyAddEquivRightDerived_naturality |
| 64 | {F G : CategoryTheory.Sheaf (J X) AddCommGrpCat.{u}} (f : F ⟶ G) (n : ℕ) (x : CategoryTheory.Sheaf.H F n) : |
| 65 | sheafCohomologyAddEquivRightDerived G n (CategoryTheory.Sheaf.H.map f n x) = |
| 66 | (((additiveSheafGlobalSectionsFunctor X).rightDerived n).map f).hom |
| 67 | (sheafCohomologyAddEquivRightDerived F n x) := by |
| 68 | exact RepresentedDerivedFunctor.DerivedSections.addEquivRightDerived_naturality |
| 69 | (additiveSheafGlobalSectionsFunctor X) (constantZ X) homToGlobalSectionsEquiv |
| 70 | (fun a b ↦ homToGlobalSectionsEquiv_naturality a b) f n x |
| 71 | |
| 72 | /-- The inverse comparison from derived global sections to sheaf cohomology |
| 73 | is natural in the coefficient sheaf. -/ |
| 74 | theorem sheafCohomologyAddEquivRightDerived_symm_naturality |
| 75 | {F G : CategoryTheory.Sheaf (J X) AddCommGrpCat.{u}} (f : F ⟶ G) (n : ℕ) |
| 76 | (x : ((additiveSheafGlobalSectionsFunctor X).rightDerived n).obj F) : |
| 77 | (sheafCohomologyAddEquivRightDerived G n).symm |
| 78 | (((additiveSheafGlobalSectionsFunctor X).rightDerived n).map f x) = |
| 79 | CategoryTheory.Sheaf.H.map f n ((sheafCohomologyAddEquivRightDerived F n).symm x) := by |
| 80 | apply (sheafCohomologyAddEquivRightDerived G n).injective |
| 81 | rw [AddEquiv.apply_symm_apply] |
| 82 | rw [sheafCohomologyAddEquivRightDerived_naturality] |
| 83 | rw [AddEquiv.apply_symm_apply] |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.DerivedGlobalSections.DerivedSections |