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.Comparison.Betti.PushforwardStalk |
| 2 | |
| 3 | /-! # Pushforward Exact -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Closed.PushforwardExact |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Exactness of the actual direct image along a closed embedding, checked on stalks. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 12 | |
| 13 | attribute [local instance] AlgebraicTopology.Cohomology.Singular.StalkExactnessAt.stalkModulesForget₂PreservesFilteredColimits |
| 14 | AlgebraicTopology.Cohomology.Singular.StalkExactnessAt.stalkModulesForgetPreservesFilteredColimits InjectiveFlasque.complexModuleLimits |
| 15 | |
| 16 | variable {M N : TopCat.{0}} (f : M ⟶ N) |
| 17 | |
| 18 | theorem closedPushforwardStalkZero (hclosed : IsClosed (Set.range f)) |
| 19 | (F : ConstantSheafSections.ComplexSheaves M) (y : N) (hy : y ∉ Set.range f) : |
| 20 | IsZero ((PushforwardStalk.sheafStalk N y).obj ((TopologicalSheafPullback.sheafDirectImage f).obj F)) := by |
| 21 | let P : N.Presheaf (ModuleCat.{0} ℂ) := ((TopologicalSheafPullback.sheafDirectImage f).obj F).obj |
| 22 | let Ft : TopCat.Sheaf (ModuleCat.{0} ℂ) M := F |
| 23 | let U : Opens N := ⟨(Set.range f)ᶜ, hclosed.isOpen_compl⟩ |
| 24 | have hyU : y ∈ U := hy |
| 25 | change IsZero (P.stalk y) |
| 26 | rw [IsZero.iff_id_eq_zero] |
| 27 | apply P.stalk_hom_ext |
| 28 | intro V hyV |
| 29 | simp only [Category.comp_id, comp_zero] |
| 30 | have hempty : (Opens.map f).obj (V ⊓ U) = ⊥ := by |
| 31 | ext x |
| 32 | constructor |
| 33 | · intro hx |
| 34 | change f x ∈ V ∧ f x ∉ Set.range f at hx |
| 35 | exact (hx.2 ⟨x, rfl⟩).elim |
| 36 | · intro hx |
| 37 | exact hx.elim |
| 38 | have hz : IsZero (P.obj (op (V ⊓ U))) := (Ft.isTerminalOfEqEmpty hempty).isZero |
| 39 | have hw : P.germ (V ⊓ U) y ⟨hyV, hyU⟩ = 0 := hz.eq_of_src _ _ |
| 40 | have hr := P.germ_res (homOfLE inf_le_left : V ⊓ U ⟶ V) y ⟨hyV, hyU⟩ |
| 41 | exact hr.symm.trans (by rw [hw, comp_zero]) |
| 42 | |
| 43 | theorem closedPushforward_map_exact (hf : Topology.IsInducing f) (hclosed : IsClosed (Set.range f)) |
| 44 | (S : ShortComplex (ConstantSheafSections.ComplexSheaves M)) (hS : S.Exact) : (S.map (TopologicalSheafPullback.sheafDirectImage f)).Exact := by |
| 45 | let T : ShortComplex (ConstantSheafSections.ComplexSheaves N) := S.map (TopologicalSheafPullback.sheafDirectImage f) |
| 46 | apply (TopCat.Sheaf.exact_iff_stalkFunctor_map_exact |
| 47 | (show ShortComplex (TopCat.Sheaf (ModuleCat.{0} ℂ) N) from T)).mpr |
| 48 | intro y |
| 49 | by_cases hy : y ∈ Set.range f |
| 50 | · obtain ⟨x, rfl⟩ := hy |
| 51 | have hs : (S.map (PushforwardStalk.sheafStalk M x)).Exact := |
| 52 | (TopCat.Sheaf.exact_iff_stalkFunctor_map_exact |
| 53 | (show ShortComplex (TopCat.Sheaf (ModuleCat.{0} ℂ) M) from S)).mp hS x |
| 54 | exact (ShortComplex.exact_iff_of_iso (S.mapNatIso (PushforwardStalk.pushforwardStalkIso f hf x))).mpr hs |
| 55 | · exact ShortComplex.exact_of_isZero_X₂ _ (closedPushforwardStalkZero f hclosed S.X₂ y hy) |
| 56 | |
| 57 | theorem closedPushforwardExact (hf : Topology.IsInducing f) (hclosed : IsClosed (Set.range f)) : |
| 58 | PreservesFiniteLimits (TopologicalSheafPullback.sheafDirectImage f) ∧ PreservesFiniteColimits (TopologicalSheafPullback.sheafDirectImage f) := |
| 59 | ((TopologicalSheafPullback.sheafDirectImage f).exact_tfae.out 2 4).mp (closedPushforward_map_exact f hf hclosed) |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.Comparison.Betti.Closed.PushforwardExact |