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.SheafCondition.UniqueGluing |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Limits |
| 3 | import Mathlib.Basic.Complex.Basic |
| 4 | |
| 5 | /-! # Disjoint Sheaf Sections -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Comparison.Betti.DisjointSheafSections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual sheaf sections split over a disjoint open cover, including an empty cover. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 14 | |
| 15 | variable {M : TopCat.{0}} (F : TopCat.Sheaf (ModuleCat.{0} ℂ) M) |
| 16 | {ι : Type} (U : ι → Opens M) (V : Opens M) (iUV : ∀ i, U i ⟶ V) |
| 17 | |
| 18 | def sectionRestriction : F.obj.obj (op V) →ₗ[ℂ] (∀ i, F.obj.obj (op (U i))) := |
| 19 | LinearMap.pi fun i => (F.obj.map (iUV i).op).hom |
| 20 | |
| 21 | theorem sectionRestriction_injective (hcover : V ≤ iSup U) : |
| 22 | Function.Injective (sectionRestriction F U V iUV) := by |
| 23 | intro x y h |
| 24 | apply F.eq_of_locally_eq' U V iUV hcover |
| 25 | intro i |
| 26 | exact congrFun h i |
| 27 | |
| 28 | theorem disjoint_sections_compatible (hdisj : Pairwise (fun i j => Disjoint (U i) (U j))) |
| 29 | (s : ∀ i, F.obj.obj (op (U i))) : TopCat.Presheaf.IsCompatible F.obj U s := by |
| 30 | intro i j |
| 31 | by_cases hij : i = j |
| 32 | · subst j |
| 33 | rfl |
| 34 | · have hempty : U i ⊓ U j = ⊥ := (hdisj hij).eq_bot |
| 35 | have : Subsingleton (F.obj.obj (op (U i ⊓ U j))) := |
| 36 | ModuleCat.isZero_iff_subsingleton.mp (F.isTerminalOfEqEmpty hempty).isZero |
| 37 | exact Subsingleton.elim _ _ |
| 38 | |
| 39 | theorem sectionRestriction_surjective (hcover : V ≤ iSup U) |
| 40 | (hdisj : Pairwise (fun i j => Disjoint (U i) (U j))) : |
| 41 | Function.Surjective (sectionRestriction F U V iUV) := by |
| 42 | intro s |
| 43 | obtain ⟨x, hx, _⟩ := F.existsUnique_gluing' U V iUV hcover s (disjoint_sections_compatible F U hdisj s) |
| 44 | exact ⟨x, funext hx⟩ |
| 45 | |
| 46 | def sectionEquiv (hcover : V ≤ iSup U) |
| 47 | (hdisj : Pairwise (fun i j => Disjoint (U i) (U j))) : |
| 48 | F.obj.obj (op V) ≃ₗ[ℂ] (∀ i, F.obj.obj (op (U i))) := |
| 49 | LinearEquiv.ofBijective (sectionRestriction F U V iUV) |
| 50 | ⟨sectionRestriction_injective F U V iUV hcover, sectionRestriction_surjective F U V iUV hcover hdisj⟩ |
| 51 | |
| 52 | theorem sectionEquiv_apply (hcover : V ≤ iSup U) |
| 53 | (hdisj : Pairwise (fun i j => Disjoint (U i) (U j))) (x : F.obj.obj (op V)) (i : ι) : |
| 54 | sectionEquiv F U V iUV hcover hdisj x i = F.obj.map (iUV i).op x := rfl |
| 55 | |
| 56 | theorem sectionEquiv_naturality {G : TopCat.Sheaf (ModuleCat.{0} ℂ) M} (φ : F ⟶ G) |
| 57 | (hcover : V ≤ iSup U) (hdisj : Pairwise (fun i j => Disjoint (U i) (U j))) |
| 58 | (x : F.obj.obj (op V)) (i : ι) : |
| 59 | sectionEquiv G U V iUV hcover hdisj (φ.hom.app (op V) x) i = |
| 60 | φ.hom.app (op (U i)) (sectionEquiv F U V iUV hcover hdisj x i) := by |
| 61 | exact (ConcreteCategory.congr_hom (φ.hom.naturality (iUV i).op) x).symm |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.Comparison.Betti.DisjointSheafSections |