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.Open.AdditiveSheafRestrictionLimits |
| 2 | |
| 3 | /-! # Restriction Cokernel Comparison -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.RestrictionCokernelComparison.ZariskiCohomology.LocalKilling |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | universe u |
| 10 | open _root_.CategoryTheory Limits Opposite _root_.TopologicalSpace _root_.AlgebraicGeometry |
| 11 | |
| 12 | theorem openRestrictionPushforward_map_mono {X : Scheme.{u}} |
| 13 | (U : X.Opens) |
| 14 | {F G : AdditiveSheafRestriction.ZariskiCohomology.LocalKilling.AbSheaf X} (f : F ⟶ G) [Mono f] : |
| 15 | Mono ((AdditiveSheafRestriction.ZariskiCohomology.LocalKilling.openRestrictionPushforward U).map f) := by |
| 16 | have : Mono f.hom := by |
| 17 | change Mono ((sheafToPresheaf (Opens.grothendieckTopology X) |
| 18 | AddCommGrpCat.{u}).map f) |
| 19 | infer_instance |
| 20 | have hmono : Mono ((AdditiveSheafRestriction.ZariskiCohomology.LocalKilling.openRestrictionPushforward U).map f).hom := by |
| 21 | exact (NatTrans.mono_iff_mono_app _).mpr fun V ↦ by |
| 22 | change Mono (f.hom.app _) |
| 23 | infer_instance |
| 24 | exact Functor.mono_of_mono_map |
| 25 | (sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}) hmono |
| 26 | |
| 27 | theorem openRestrictionPushforward_map_epi_of_affine_app_surjective |
| 28 | {R : CommRingCat.{u}} (U : (Spec R).Opens) (hU : IsAffineOpen U) |
| 29 | {F G : AdditiveSheafRestriction.ZariskiCohomology.LocalKilling.AbSheaf (Spec R)} (f : F ⟶ G) |
| 30 | (hf : ∀ (W : (Spec R).Opens), IsAffineOpen W → |
| 31 | Function.Surjective (f.hom.app (op W))) : |
| 32 | Epi ((AdditiveSheafRestriction.ZariskiCohomology.LocalKilling.openRestrictionPushforward U).map f) := by |
| 33 | apply (TopCat.Sheaf.isLocallySurjective_iff_epi |
| 34 | ((AdditiveSheafRestriction.ZariskiCohomology.LocalKilling.openRestrictionPushforward U).map f)).1 |
| 35 | rw [TopCat.Presheaf.isLocallySurjective_iff] |
| 36 | intro W t x hxW |
| 37 | obtain ⟨V, hV, hxV, hVW⟩ := exists_isAffineOpen_mem_and_subset hxW |
| 38 | let A := U.ι.isOpenEmbedding.functor.obj |
| 39 | ((Opens.map U.ι.base).obj V) |
| 40 | have hA : A = U ⊓ V := by |
| 41 | ext y |
| 42 | change (∃ z : U, z.1 ∈ V ∧ z.1 = y) ↔ y ∈ U ∧ y ∈ V |
| 43 | constructor |
| 44 | · rintro ⟨z, hzV, rfl⟩ |
| 45 | exact ⟨z.2, hzV⟩ |
| 46 | · rintro ⟨hyU, hyV⟩ |
| 47 | exact ⟨⟨y, hyU⟩, hyV, rfl⟩ |
| 48 | have hAaffine : IsAffineOpen A := by |
| 49 | rw [hA] |
| 50 | exact hU.inf hV |
| 51 | let tV := ((AdditiveSheafRestriction.ZariskiCohomology.LocalKilling.openRestrictionPushforward U).obj G).1.map |
| 52 | (homOfLE hVW).op t |
| 53 | obtain ⟨s, hs⟩ := hf A hAaffine tV |
| 54 | refine ⟨V, hVW, ⟨s, ?_⟩, hxV⟩ |
| 55 | exact hs |
| 56 | |
| 57 | theorem openRestrictionPushforward_cokernelComparison_mono |
| 58 | {X : Scheme.{u}} (U : X.Opens) |
| 59 | {F G : AdditiveSheafRestriction.ZariskiCohomology.LocalKilling.AbSheaf X} (f : F ⟶ G) [Mono f] : |
| 60 | Mono (cokernelComparison f (AdditiveSheafRestriction.ZariskiCohomology.LocalKilling.openRestrictionPushforward U)) := by |
| 61 | let E := AdditiveSheafRestriction.ZariskiCohomology.LocalKilling.openRestrictionPushforward U |
| 62 | let S := ShortComplex.mk f (cokernel.π f) (cokernel.condition f) |
| 63 | have hS : S.Exact := ShortComplex.cokernelSequence_exact f |
| 64 | have hT : (S.map E).Exact := |
| 65 | hS.map_of_mono_of_preservesKernel E (by infer_instance) (by infer_instance) |
| 66 | dsimp [S] at hT |
| 67 | change (ShortComplex.mk (E.map f) (E.map (cokernel.π f)) _).Exact at hT |
| 68 | let e : cokernel (E.map f) ≅ image (E.map (cokernel.π f)) := |
| 69 | IsColimit.coconePointUniqueUpToIso (cokernelIsCokernel (E.map f)) |
| 70 | hT.isColimitImage |
| 71 | have he_fac : cokernel.π (E.map f) ≫ e.hom = |
| 72 | factorThruImage (E.map (cokernel.π f)) := by |
| 73 | simpa [e] using |
| 74 | (IsColimit.comp_coconePointUniqueUpToIso_hom |
| 75 | (cokernelIsCokernel (E.map f)) hT.isColimitImage |
| 76 | WalkingParallelPair.one) |
| 77 | have he : cokernelComparison f E = |
| 78 | e.hom ≫ image.ι (E.map (cokernel.π f)) := by |
| 79 | rw [← cancel_epi (cokernel.π (E.map f))] |
| 80 | rw [π_comp_cokernelComparison] |
| 81 | symm |
| 82 | rw [← Category.assoc, he_fac, image.fac] |
| 83 | rw [he] |
| 84 | infer_instance |
| 85 | |
| 86 | theorem openRestrictionPushforward_cokernelComparison_isIso_of_affine_app_surjective |
| 87 | {R : CommRingCat.{u}} (U : (Spec R).Opens) (hU : IsAffineOpen U) |
| 88 | {F G : AdditiveSheafRestriction.ZariskiCohomology.LocalKilling.AbSheaf (Spec R)} (f : F ⟶ G) [Mono f] |
| 89 | (hf : ∀ (W : (Spec R).Opens), IsAffineOpen W → |
| 90 | Function.Surjective ((cokernel.π f).hom.app (op W))) : |
| 91 | IsIso (cokernelComparison f (AdditiveSheafRestriction.ZariskiCohomology.LocalKilling.openRestrictionPushforward U)) := by |
| 92 | let E := AdditiveSheafRestriction.ZariskiCohomology.LocalKilling.openRestrictionPushforward U |
| 93 | let μ := cokernelComparison f E |
| 94 | let : Mono μ := by |
| 95 | dsimp [μ, E] |
| 96 | exact openRestrictionPushforward_cokernelComparison_mono U f |
| 97 | let : Epi (E.map (cokernel.π f)) := by |
| 98 | dsimp [E] |
| 99 | exact openRestrictionPushforward_map_epi_of_affine_app_surjective |
| 100 | U hU (cokernel.π f) hf |
| 101 | let : Epi μ := by |
| 102 | exact epi_of_epi_fac (π_comp_cokernelComparison f E) |
| 103 | exact isIso_of_mono_of_epi μ |
| 104 | |
| 105 | end |
| 106 | |
| 107 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.RestrictionCokernelComparison.ZariskiCohomology.LocalKilling |