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/SheafCechAcyclicComparison.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.FlasqueCechSectionExactness |
| 8 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.GlobalAugmentationComplex |
| 9 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TopologicalSheafCohomology |
| 10 | |
| 11 | /-! # Flasque Intrinsic Cech Exactness -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FlasqueIntrinsicCechExactness.IntrinsicCech |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | /-! Positive-degree exactness of the native Čech complex of a flasque sheaf. -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable {X : TopCat.{u}} |
| 24 | variable (F : TopCat.Sheaf AddCommGrpCat.{u} X) |
| 25 | variable {ι : Type u} (U : ι → Opens X) |
| 26 | |
| 27 | abbrev globalSections (X : TopCat.{u}) : |
| 28 | CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} ⥤ |
| 29 | AddCommGrpCat.{u} := |
| 30 | CategoryTheory.Sheaf.Γ (Opens.grothendieckTopology X) AddCommGrpCat.{u} |
| 31 | |
| 32 | noncomputable local instance flasqueSections_additive : (globalSections X).Additive := |
| 33 | (CategoryTheory.constantSheafΓAdj |
| 34 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).right_adjoint_additive |
| 35 | |
| 36 | abbrev cechSiteDifferential (n : ℕ) : |
| 37 | TopologicalSheafCohomology.IntrinsicCech.toSiteSheaf (IntrinsicCech.SheafTerms.cechTerm F U n) ⟶ TopologicalSheafCohomology.IntrinsicCech.toSiteSheaf (IntrinsicCech.SheafTerms.cechTerm F U (n + 1)) := |
| 38 | Cech.SheafDifferential.IntrinsicCech.cechDifferential F U n |
| 39 | |
| 40 | theorem cechGlobalSections_exactAt_succ [TopCat.Sheaf.IsFlasque F] |
| 41 | (hU : ⨆ i, U i = ⊤) (n : ℕ) : |
| 42 | (((globalSections X).mapHomologicalComplex (.up ℕ)).obj |
| 43 | (IntrinsicCech.SheafComplex.cechComplex F U)).ExactAt (n + 1) := by |
| 44 | let S : ShortComplex AddCommGrpCat.{u} := |
| 45 | ShortComplex.mk |
| 46 | ((globalSections X).map (cechSiteDifferential F U n)) |
| 47 | ((globalSections X).map (cechSiteDifferential F U (n + 1))) (by |
| 48 | calc |
| 49 | _ = (globalSections X).map |
| 50 | (cechSiteDifferential F U n ≫ cechSiteDifferential F U (n + 1)) := |
| 51 | ((globalSections X).map_comp _ _).symm |
| 52 | _ = (globalSections X).map 0 := |
| 53 | congrArg (globalSections X).map (IntrinsicCech.SheafComplex.cechDifferential_comp F U n) |
| 54 | _ = 0 := (globalSections X).map_zero |
| 55 | (TopologicalSheafCohomology.IntrinsicCech.toSiteSheaf (IntrinsicCech.SheafTerms.cechTerm F U n)) (TopologicalSheafCohomology.IntrinsicCech.toSiteSheaf (IntrinsicCech.SheafTerms.cechTerm F U (n + 2)))) |
| 56 | have hS : S.Exact := by |
| 57 | rw [ShortComplex.ab_exact_iff] |
| 58 | intro x hx |
| 59 | let eΓ := CategoryTheory.Sheaf.ΓNatIsoSheafSections |
| 60 | (Opens.grothendieckTopology X) AddCommGrpCat.{u} isTerminalTop |
| 61 | let xTop := eΓ.hom.app (TopologicalSheafCohomology.IntrinsicCech.toSiteSheaf (IntrinsicCech.SheafTerms.cechTerm F U (n + 1))) x |
| 62 | have hxTop : (Cech.SheafDifferential.IntrinsicCech.cechDifferential F U (n + 1)).hom.app (op ⊤) xTop = 0 := by |
| 63 | calc |
| 64 | _ = eΓ.hom.app (TopologicalSheafCohomology.IntrinsicCech.toSiteSheaf (IntrinsicCech.SheafTerms.cechTerm F U (n + 2))) |
| 65 | ((globalSections X).map (cechSiteDifferential F U (n + 1)) x) := |
| 66 | (ConcreteCategory.congr_hom |
| 67 | (eΓ.hom.naturality (cechSiteDifferential F U (n + 1))) x).symm |
| 68 | _ = 0 := by rw [hx, map_zero] |
| 69 | obtain ⟨yTop, hyTop⟩ := FlasqueCechSectionExactness.IntrinsicCech.cechSections_exact_succ F U hU n ⊤ xTop hxTop |
| 70 | let y := eΓ.inv.app (TopologicalSheafCohomology.IntrinsicCech.toSiteSheaf (IntrinsicCech.SheafTerms.cechTerm F U n)) yTop |
| 71 | have hyInv : eΓ.hom.app (TopologicalSheafCohomology.IntrinsicCech.toSiteSheaf (IntrinsicCech.SheafTerms.cechTerm F U n)) y = yTop := by |
| 72 | exact Iso.inv_hom_id_apply (eΓ.app (TopologicalSheafCohomology.IntrinsicCech.toSiteSheaf (IntrinsicCech.SheafTerms.cechTerm F U n))) yTop |
| 73 | have hyTop' : |
| 74 | (Cech.SheafDifferential.IntrinsicCech.cechDifferential F U n).hom.app (op (⊤ : Opens X)) yTop = xTop := by |
| 75 | exact hyTop |
| 76 | refine ⟨y, ?_⟩ |
| 77 | change (globalSections X).map (cechSiteDifferential F U n) y = x |
| 78 | apply (AddCommGrpCat.mono_iff_injective |
| 79 | (eΓ.hom.app (TopologicalSheafCohomology.IntrinsicCech.toSiteSheaf (IntrinsicCech.SheafTerms.cechTerm F U (n + 1))))).mp inferInstance |
| 80 | have hnat : |
| 81 | eΓ.hom.app (TopologicalSheafCohomology.IntrinsicCech.toSiteSheaf (IntrinsicCech.SheafTerms.cechTerm F U (n + 1))) |
| 82 | ((globalSections X).map (cechSiteDifferential F U n) y) = |
| 83 | (Cech.SheafDifferential.IntrinsicCech.cechDifferential F U n).hom.app (op (⊤ : Opens X)) |
| 84 | (eΓ.hom.app (TopologicalSheafCohomology.IntrinsicCech.toSiteSheaf (IntrinsicCech.SheafTerms.cechTerm F U n)) y) := |
| 85 | ConcreteCategory.congr_hom |
| 86 | (eΓ.hom.naturality (cechSiteDifferential F U n)) y |
| 87 | refine hnat.trans ?_ |
| 88 | rw [hyInv] |
| 89 | exact hyTop' |
| 90 | rw [HomologicalComplex.exactAt_iff' _ n (n + 1) (n + 2) (by simp) (by simp)] |
| 91 | change (ShortComplex.mk |
| 92 | ((globalSections X).map ((IntrinsicCech.SheafComplex.cechComplex F U).d n (n + 1))) |
| 93 | ((globalSections X).map ((IntrinsicCech.SheafComplex.cechComplex F U).d (n + 1) (n + 2))) _).Exact |
| 94 | simp only [IntrinsicCech.SheafComplex.cechComplex_d] |
| 95 | exact hS |
| 96 | |
| 97 | /-- The native Cech complex of a flasque sheaf is exact in every positive degree. -/ |
| 98 | theorem cechComplex_exactAt_succ_of_isFlasque [TopCat.Sheaf.IsFlasque F] |
| 99 | (hU : ⨆ i, U i = ⊤) (n : ℕ) : |
| 100 | ((cechComplexFunctor U).obj F.obj).ExactAt (n + 1) := |
| 101 | (cechGlobalSections_exactAt_succ F U hU n).of_iso |
| 102 | (Cech.GlobalSectionsComplex.IntrinsicCech.cechGlobalSectionsComplexIso F U) |
| 103 | |
| 104 | /-- The degree-one specialization of positive flasque Čech exactness. -/ |
| 105 | theorem cechComplex_exactAt_one_of_isFlasque [TopCat.Sheaf.IsFlasque F] |
| 106 | (hU : ⨆ i, U i = ⊤) : |
| 107 | ((cechComplexFunctor U).obj F.obj).ExactAt 1 := |
| 108 | cechComplex_exactAt_succ_of_isFlasque F U hU 0 |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FlasqueIntrinsicCechExactness.IntrinsicCech |