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.AbelianModuli.HilbertConstruction.ResolutionFirstCohomology |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.SheafResolution |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Additive.GroupProductCoordinates |
| 4 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Products |
| 5 | |
| 6 | /-! # First Cohomology -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.FirstCohomology.IntrinsicCech |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The first-cohomology criterion applied to the actual sheaf Cech resolution. For a finite cover, lower-degree vanishing can be checked on the restriction-pushforward factors. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 14 | universe u |
| 15 | |
| 16 | variable {X : TopCat.{u}} |
| 17 | |
| 18 | theorem sheafCohomology_finiteProduct_vanish |
| 19 | {ι : Type u} [Finite ι] (F : ι → X.Sheaf AddCommGrpCat.{u}) (n : ℕ) |
| 20 | (hF : ∀ i, Subsingleton (CategoryTheory.Sheaf.H (F i) n)) : |
| 21 | Subsingleton (CategoryTheory.Sheaf.H (∏ᶜ F) n) := by |
| 22 | let : Fintype ι := Fintype.ofFinite ι |
| 23 | let T := CategoryTheory.Sheaf.functorH (Opens.grothendieckTopology X) n |
| 24 | let e : T.obj (∏ᶜ F) ≅ AddCommGrpCat.of (∀ i, T.obj (F i)) := |
| 25 | PreservesProduct.iso T F ≪≫ HilbertConstruction.Additive.GroupProductCoordinates.IntrinsicCech.productIsoPi (fun i => T.obj (F i)) |
| 26 | have hi : Function.Injective e.hom := |
| 27 | (AddCommGrpCat.mono_iff_injective e.hom).mp inferInstance |
| 28 | change Subsingleton (T.obj (∏ᶜ F)) |
| 29 | refine subsingleton_of_forall_eq 0 fun x => ?_ |
| 30 | apply hi |
| 31 | funext i |
| 32 | exact (hF i).elim _ _ |
| 33 | |
| 34 | private def cechSheafSiteEquivalence (X : TopCat.{u}) : |
| 35 | X.Sheaf AddCommGrpCat.{u} ≌ |
| 36 | CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} where |
| 37 | functor := { obj F := F, map a := a } |
| 38 | inverse := { obj F := F, map a := a } |
| 39 | unitIso := NatIso.ofComponents (fun _ => Iso.refl _) (by intros; rfl) |
| 40 | counitIso := NatIso.ofComponents (fun _ => Iso.refl _) (by intros; rfl) |
| 41 | |
| 42 | private instance (X : TopCat.{u}) : (cechSheafSiteEquivalence X).functor.Additive where |
| 43 | map_add := by intros; rfl |
| 44 | |
| 45 | variable (F : X.Sheaf AddCommGrpCat.{u}) |
| 46 | {ι : Type u} (U : ι → Opens X) |
| 47 | |
| 48 | theorem cech_firstCohomology_vanish |
| 49 | (hU : iSup U = ⊤) (n : ℕ) |
| 50 | (hF : ∀ p r, r < n + 1 → Subsingleton (CategoryTheory.Sheaf.H (IntrinsicCech.SheafTerms.cechTerm F U p) r)) |
| 51 | (hd : Function.Injective (CategoryTheory.Sheaf.H.map (SheafDifferential.IntrinsicCech.cechDifferential F U 0) (n + 1))) : |
| 52 | Subsingleton (CategoryTheory.Sheaf.H F (n + 1)) := by |
| 53 | let T := (cechSheafSiteEquivalence X).functor |
| 54 | let K := (T.mapHomologicalComplex (ComplexShape.up ℕ)).obj (IntrinsicCech.SheafComplex.cechComplex F U) |
| 55 | let e : T.obj F ⟶ K.X 0 := T.map (SheafAugmentation.IntrinsicCech.cechAugmentation F U) |
| 56 | have : Mono (SheafAugmentation.IntrinsicCech.cechAugmentation F U) := SheafResolution.IntrinsicCech.cechAugmentation_mono F U hU |
| 57 | have : Mono e := by |
| 58 | change Mono (T.map (SheafAugmentation.IntrinsicCech.cechAugmentation F U)) |
| 59 | infer_instance |
| 60 | have hdK (p : ℕ) : K.d p (p + 1) = T.map (SheafDifferential.IntrinsicCech.cechDifferential F U p) := |
| 61 | congrArg (fun z => T.map z) (IntrinsicCech.SheafComplex.cechComplex_d F U p) |
| 62 | have w : e ≫ K.d 0 1 = 0 := by |
| 63 | rw [hdK 0] |
| 64 | exact (T.map_comp (SheafAugmentation.IntrinsicCech.cechAugmentation F U) (SheafDifferential.IntrinsicCech.cechDifferential F U 0)).symm.trans |
| 65 | ((congrArg (fun z => T.map z) (SheafAugmentation.IntrinsicCech.cechAugmentation_comp F U)).trans (T.map_zero _ _)) |
| 66 | apply ResolutionFirstCohomology.IntrinsicCech.resolution_firstCohomology_vanish_of_first_differential_injective |
| 67 | K e w |
| 68 | · let E : (SheafAugmentation.IntrinsicCech.cechAugmentedShortComplex F U).map T ≅ ShortComplex.mk e (K.d 0 1) w := |
| 69 | ShortComplex.isoMk (Iso.refl _) (Iso.refl _) (Iso.refl _) |
| 70 | (by exact (Category.id_comp e).trans (Category.comp_id e).symm) |
| 71 | (by exact (Category.id_comp _).trans ((hdK 0).trans (Category.comp_id _).symm)) |
| 72 | exact ShortComplex.exact_of_iso E ((ZeroCycleStalks.IntrinsicCech.cechAugmentedShortComplex_exact F U hU).map T) |
| 73 | · intro p |
| 74 | let S := ShortComplex.mk (SheafDifferential.IntrinsicCech.cechDifferential F U p) (SheafDifferential.IntrinsicCech.cechDifferential F U (p + 1)) |
| 75 | (IntrinsicCech.SheafComplex.cechDifferential_comp F U p) |
| 76 | have hS : S.Exact := PositiveCycleStalks.IntrinsicCech.cechShortComplex_exact F U hU p |
| 77 | let E : S.map T ≅ AcyclicSheafResolution.IntrinsicCech.resolutionDifferentialShortComplex K p := |
| 78 | ShortComplex.isoMk (Iso.refl _) (Iso.refl _) (Iso.refl _) |
| 79 | (by exact (Category.id_comp _).trans ((hdK p).trans (Category.comp_id _).symm)) |
| 80 | (by exact (Category.id_comp _).trans ((hdK (p + 1)).trans (Category.comp_id _).symm)) |
| 81 | exact ShortComplex.exact_of_iso E (hS.map T) |
| 82 | · exact hF |
| 83 | · rw [hdK 0] |
| 84 | exact hd |
| 85 | |
| 86 | theorem cech_firstCohomology_vanish_of_factors [Finite ι] |
| 87 | (hU : iSup U = ⊤) (n : ℕ) |
| 88 | (hF : ∀ (p r : ℕ), r < n + 1 → ∀ i : Fin (p + 1) → ι, |
| 89 | Subsingleton (CategoryTheory.Sheaf.H (IntrinsicCech.SheafTerms.cechTermFactor F U p i) r)) |
| 90 | (hd : Function.Injective (CategoryTheory.Sheaf.H.map (SheafDifferential.IntrinsicCech.cechDifferential F U 0) (n + 1))) : |
| 91 | Subsingleton (CategoryTheory.Sheaf.H F (n + 1)) := by |
| 92 | apply cech_firstCohomology_vanish F U hU n _ hd |
| 93 | intro p r hr |
| 94 | exact sheafCohomology_finiteProduct_vanish (IntrinsicCech.SheafTerms.cechTermFactor F U p) r (hF p r hr) |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.FirstCohomology.IntrinsicCech |