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.AcyclicResolutionCohomology |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TopologicalSheafRestriction |
| 3 | |
| 4 | /-! # Injective Open Sections Cohomology -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.InjectiveOpenSectionsCohomology.IntrinsicCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Evaluating the actual chosen injective resolution on an open subset computes the actual cohomology of the restricted sheaf. Restriction preserves exactness, and the restricted injective terms are flasque. -/ |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 12 | universe u |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | variable {X : TopCat.{u}} |
| 16 | |
| 17 | def sheafOpenEvaluation (X : TopCat.{u}) (V : Opens X) : |
| 18 | TopCat.Sheaf AddCommGrpCat.{u} X ⥤ AddCommGrpCat.{u} := |
| 19 | sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} ⋙ |
| 20 | (evaluation (Opens X)ᵒᵖ AddCommGrpCat.{u}).obj (op V) |
| 21 | |
| 22 | instance sheafOpenEvaluation_additive (V : Opens X) : (sheafOpenEvaluation X V).Additive where |
| 23 | map_add := by intros; rfl |
| 24 | |
| 25 | def injectiveOpenSectionsComplex (F : TopCat.Sheaf AddCommGrpCat.{u} X) (V : Opens X) : |
| 26 | CochainComplex AddCommGrpCat.{u} ℕ := |
| 27 | ((sheafOpenEvaluation X V).mapHomologicalComplex (.up ℕ)).obj (injectiveResolution F).cocomplex |
| 28 | |
| 29 | def injectiveOpenSectionsCohomologyIso |
| 30 | (F : TopCat.Sheaf AddCommGrpCat.{u} X) (V : Opens X) (n : ℕ) : |
| 31 | (injectiveOpenSectionsComplex F V).homology n ≅ |
| 32 | AddCommGrpCat.of (((CategoryTheory.Sheaf.functorH (Opens.grothendieckTopology V) n : |
| 33 | _ ⥤ AddCommGrpCat.{u}).obj ((TopologicalSheafRestriction.IntrinsicCech.restrict AddCommGrpCat V.isOpenEmbedding).obj F))) := by |
| 34 | let I := injectiveResolution F |
| 35 | let R := TopologicalSheafRestriction.IntrinsicCech.restrict AddCommGrpCat.{u} V.isOpenEmbedding |
| 36 | have : PreservesFiniteColimits R := inferInstance |
| 37 | let K := (R.mapHomologicalComplex (.up ℕ)).obj I.cocomplex |
| 38 | let e : R.obj F ⟶ K.X 0 := R.map (I.ι.f 0) |
| 39 | have w : e ≫ K.d 0 1 = 0 := by |
| 40 | change R.map (I.ι.f 0) ≫ R.map (I.cocomplex.d 0 1) = 0 |
| 41 | rw [← R.map_comp, I.ι_f_zero_comp_complex_d, R.map_zero] |
| 42 | have : Mono e := Functor.map_mono R (I.ι.f 0) |
| 43 | have haug : (ShortComplex.mk e (K.d 0 1) w).Exact := I.exact₀.map R |
| 44 | have hpos : ∀ q, (AcyclicSheafResolution.IntrinsicCech.resolutionDifferentialShortComplex K q).Exact := |
| 45 | fun q => (I.exact_succ q).map R |
| 46 | have hK (p q : ℕ) : Subsingleton (CategoryTheory.Sheaf.H (K.X p) (q + 1)) := by |
| 47 | have : TopCat.Sheaf.IsFlasque (I.cocomplex.X p) := |
| 48 | @TopologicalSheafCohomology.IntrinsicCech.injectiveSheaf_flasque X (I.cocomplex.X p) (I.injective p) |
| 49 | have : TopCat.Sheaf.IsFlasque (K.X p) := |
| 50 | TopologicalSheafRestriction.IntrinsicCech.flasque_of_restrict _ (I.cocomplex.X p) V.isOpenEmbedding |
| 51 | exact TopologicalSheafCohomology.IntrinsicCech.flasqueSheaf_positiveCohomology_subsingleton (K.X p) q |
| 52 | let eC : AcyclicResolutionCohomology.IntrinsicCech.sheafTopSectionsComplex K ≅ injectiveOpenSectionsComplex F V := by |
| 53 | change ((sheafOpenEvaluation X (V.isOpenEmbedding.functor.obj ⊤)).mapHomologicalComplex (.up ℕ)).obj |
| 54 | I.cocomplex ≅ injectiveOpenSectionsComplex F V |
| 55 | rw [Opens.isOpenEmbedding_obj_top V] |
| 56 | exact Iso.refl _ |
| 57 | exact HomologicalComplex.homologyMapIso eC.symm n ≪≫ |
| 58 | AcyclicResolutionCohomology.IntrinsicCech.acyclicResolutionCohomologyIso K e w haug hpos hK n |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.InjectiveOpenSectionsCohomology.IntrinsicCech |