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 Mathlib.Topology.Sheaves.AddCommGrpCat |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.Ab |
| 3 | |
| 4 | /-! # Local Exactness -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Sheaf.LocalExactness.Cech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Exactness of additive sheaves follows from exact sections on arbitrarily small neighborhoods. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {X : TopCat.{u}} (S : ShortComplex (TopCat.Sheaf AddCommGrpCat.{u} X)) |
| 17 | |
| 18 | theorem sheafExact_of_locally_exact_sections |
| 19 | (hlocal : ∀ (V : Opens X) (x : V), ∃ W : Opens X, W ≤ V ∧ x.val ∈ W ∧ |
| 20 | ∀ s : S.X₂.obj.obj (op W), S.g.hom.app (op W) s = 0 → |
| 21 | ∃ t : S.X₁.obj.obj (op W), S.f.hom.app (op W) t = s) : S.Exact := by |
| 22 | rw [TopCat.Sheaf.exact_iff_stalkFunctor_map_exact] |
| 23 | intro x |
| 24 | rw [ShortComplex.ab_exact_iff] |
| 25 | intro y hy |
| 26 | obtain ⟨U, hxU, s, rfl⟩ := S.X₂.presheaf.exists_germ_eq y |
| 27 | change (TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map S.g.hom |
| 28 | (S.X₂.presheaf.germ U x hxU s) = 0 at hy |
| 29 | rw [TopCat.Presheaf.stalkFunctor_map_germ_apply] at hy |
| 30 | obtain ⟨V, hxV, iVU, _, hEq⟩ := S.X₃.presheaf.germ_eq x hxU hxU |
| 31 | (S.g.hom.app (op U) s) 0 (hy.trans (map_zero _).symm) |
| 32 | have hzero : S.X₃.obj.map iVU.op (S.g.hom.app (op U) s) = 0 := by |
| 33 | rw [hEq, map_zero] |
| 34 | obtain ⟨W, hWV, hxW, hW⟩ := hlocal V ⟨x, hxV⟩ |
| 35 | let iWU : W ⟶ U := homOfLE hWV ≫ iVU |
| 36 | let sW := S.X₂.obj.map iWU.op s |
| 37 | have hzeroW : S.X₃.obj.map iWU.op (S.g.hom.app (op U) s) = 0 := by |
| 38 | change (S.X₃.obj.map (iVU.op ≫ (homOfLE hWV).op)) _ = 0 |
| 39 | rw [S.X₃.obj.map_comp] |
| 40 | change S.X₃.obj.map (homOfLE hWV).op (S.X₃.obj.map iVU.op _) = 0 |
| 41 | rw [hzero, map_zero] |
| 42 | have hsW : S.g.hom.app (op W) sW = 0 := by |
| 43 | have h := congrArg (fun f : S.X₂.obj.obj (op U) ⟶ S.X₃.obj.obj (op W) => f.hom s) |
| 44 | (S.g.hom.naturality iWU.op) |
| 45 | exact h.trans hzeroW |
| 46 | obtain ⟨t, ht⟩ := hW sW hsW |
| 47 | refine ⟨S.X₁.presheaf.germ W x hxW t, ?_⟩ |
| 48 | change (TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map S.f.hom |
| 49 | (S.X₁.presheaf.germ W x hxW t) = S.X₂.presheaf.germ U x hxU s |
| 50 | rw [TopCat.Presheaf.stalkFunctor_map_germ_apply, ht] |
| 51 | exact S.X₂.presheaf.germ_res_apply iWU x hxW s |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.Comparison.Betti.Sheaf.LocalExactness.Cech |