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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SheafCechSheafPositiveExact.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.LocalContraction |
| 8 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.ZeroExact |
| 9 | |
| 10 | /-! # Positive Exact -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.SheafCohomology.Cech.PositiveExact.TopCat.Sheaf |
| 13 | |
| 14 | open _root_.TopCat |
| 15 | open _root_.TopCat.Sheaf |
| 16 | |
| 17 | /-! |
| 18 | # Positive-degree exactness of the sheaf-level Cech complex |
| 19 | |
| 20 | This file applies the local Cech contraction to stalk representatives. When the chosen |
| 21 | opens cover the whole space, every positive-degree stalk cycle can be represented by a |
| 22 | cycle on a neighborhood contained in one cover member, where the local contraction gives |
| 23 | a preimage. |
| 24 | -/ |
| 25 | |
| 26 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 27 | |
| 28 | universe u |
| 29 | |
| 30 | variable {X : TopCat.{u}} |
| 31 | variable (F : Sheaf AddCommGrpCat.{u} X) |
| 32 | variable {ι : Type u} (U : ι → Opens X) |
| 33 | |
| 34 | private theorem exists_cechCycle_restriction (hU : ⨆ i, U i = ⊤) (n : ℕ) (x : X) |
| 35 | {V : Opens X} (hxV : x ∈ V) |
| 36 | (s : (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).obj.obj (op V)) |
| 37 | (hy : (Terms.TopCat.Sheaf.cechTerm F U (n + 2)).presheaf.germ V x hxV |
| 38 | ((SheafDifferential.TopCat.Sheaf.cechDifferential F U (n + 1)).hom.app (op V) s) = 0) : |
| 39 | ∃ (i₀ : ι) (W : Opens X) (hxW : x ∈ W), W ≤ U i₀ ∧ W ≤ V ∧ |
| 40 | ∃ sW : (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).obj.obj (op W), |
| 41 | (SheafDifferential.TopCat.Sheaf.cechDifferential F U (n + 1)).hom.app (op W) sW = 0 ∧ |
| 42 | (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).presheaf.germ W x hxW sW = |
| 43 | (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).presheaf.germ V x hxV s := by |
| 44 | have hzeroGerm : |
| 45 | (Terms.TopCat.Sheaf.cechTerm F U (n + 2)).presheaf.germ V x hxV |
| 46 | (0 : (Terms.TopCat.Sheaf.cechTerm F U (n + 2)).obj.obj (op V)) = 0 := |
| 47 | map_zero _ |
| 48 | obtain ⟨W, hxW, iWV, _, hEq⟩ := |
| 49 | (Terms.TopCat.Sheaf.cechTerm F U (n + 2)).presheaf.germ_eq x hxV hxV |
| 50 | ((SheafDifferential.TopCat.Sheaf.cechDifferential F U (n + 1)).hom.app (op V) s) 0 |
| 51 | (hy.trans hzeroGerm.symm) |
| 52 | have hEqZero : |
| 53 | (Terms.TopCat.Sheaf.cechTerm F U (n + 2)).obj.map iWV.op |
| 54 | ((SheafDifferential.TopCat.Sheaf.cechDifferential F U (n + 1)).hom.app (op V) s) = 0 := by |
| 55 | rw [hEq, map_zero] |
| 56 | have hxCover : x ∈ ⨆ i, U i := by |
| 57 | rw [hU] |
| 58 | trivial |
| 59 | rw [Opens.mem_iSup] at hxCover |
| 60 | obtain ⟨i₀, hxi₀⟩ := hxCover |
| 61 | let W' : Opens X := W ⊓ U i₀ |
| 62 | have hxW' : x ∈ W' := ⟨hxW, hxi₀⟩ |
| 63 | have hW'W : W' ≤ W := inf_le_left |
| 64 | have hW'V : W' ≤ V := hW'W.trans iWV.le |
| 65 | let s' : (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).obj.obj (op W') := |
| 66 | (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).obj.map (homOfLE hW'V).op s |
| 67 | have hDiffRestrict : |
| 68 | (Terms.TopCat.Sheaf.cechTerm F U (n + 2)).obj.map (homOfLE hW'V).op |
| 69 | ((SheafDifferential.TopCat.Sheaf.cechDifferential F U (n + 1)).hom.app (op V) s) = 0 := by |
| 70 | calc |
| 71 | _ = (Terms.TopCat.Sheaf.cechTerm F U (n + 2)).obj.map (homOfLE hW'W).op |
| 72 | ((Terms.TopCat.Sheaf.cechTerm F U (n + 2)).obj.map iWV.op |
| 73 | ((SheafDifferential.TopCat.Sheaf.cechDifferential F U (n + 1)).hom.app (op V) s)) := by |
| 74 | change (Terms.TopCat.Sheaf.cechTerm F U (n + 2)).obj.map _ _ = |
| 75 | ((Terms.TopCat.Sheaf.cechTerm F U (n + 2)).obj.map _ ≫ |
| 76 | (Terms.TopCat.Sheaf.cechTerm F U (n + 2)).obj.map _) _ |
| 77 | rw [← (Terms.TopCat.Sheaf.cechTerm F U (n + 2)).obj.map_comp] |
| 78 | exact ConcreteCategory.congr_hom |
| 79 | (congrArg (Terms.TopCat.Sheaf.cechTerm F U (n + 2)).obj.map (Subsingleton.elim _ _)) _ |
| 80 | _ = 0 := by rw [hEqZero, map_zero] |
| 81 | have hs' : (SheafDifferential.TopCat.Sheaf.cechDifferential F U (n + 1)).hom.app (op W') s' = 0 := by |
| 82 | calc |
| 83 | _ = (Terms.TopCat.Sheaf.cechTerm F U (n + 2)).obj.map (homOfLE hW'V).op |
| 84 | ((SheafDifferential.TopCat.Sheaf.cechDifferential F U (n + 1)).hom.app (op V) s) := by |
| 85 | exact ConcreteCategory.congr_hom |
| 86 | ((SheafDifferential.TopCat.Sheaf.cechDifferential F U (n + 1)).hom.naturality (homOfLE hW'V).op) s |
| 87 | _ = 0 := hDiffRestrict |
| 88 | exact ⟨i₀, W', hxW', inf_le_right, hW'V, s', hs', |
| 89 | (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).presheaf.germ_res_apply (homOfLE hW'V) x hxW' s⟩ |
| 90 | |
| 91 | private theorem exists_stalk_preimage_cechDifferential (hU : ⨆ i, U i = ⊤) |
| 92 | (n : ℕ) (x : X) (y : (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).presheaf.stalk x) |
| 93 | (hy : (Presheaf.stalkFunctor AddCommGrpCat x).map |
| 94 | (SheafDifferential.TopCat.Sheaf.cechDifferential F U (n + 1)).hom y = 0) : |
| 95 | ∃ t : (Terms.TopCat.Sheaf.cechTerm F U n).presheaf.stalk x, |
| 96 | (Presheaf.stalkFunctor AddCommGrpCat x).map |
| 97 | (SheafDifferential.TopCat.Sheaf.cechDifferential F U n).hom t = y := by |
| 98 | obtain ⟨V, hxV, s, rfl⟩ := |
| 99 | (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).presheaf.exists_germ_eq y |
| 100 | rw [Presheaf.stalkFunctor_map_germ_apply] at hy |
| 101 | obtain ⟨i₀, W, hxW, hWi₀, _, sW, hsW, hGerm⟩ := |
| 102 | exists_cechCycle_restriction F U hU n x hxV s hy |
| 103 | obtain ⟨t, ht⟩ := |
| 104 | LocalContraction.TopCat.Sheaf.exists_preimage_cechDifferential_of_le U F i₀ hWi₀ n sW hsW |
| 105 | refine ⟨(Terms.TopCat.Sheaf.cechTerm F U n).presheaf.germ W x hxW t, ?_⟩ |
| 106 | change (Presheaf.stalkFunctor AddCommGrpCat x).map |
| 107 | (SheafDifferential.TopCat.Sheaf.cechDifferential F U n).hom |
| 108 | ((Terms.TopCat.Sheaf.cechTerm F U n).presheaf.germ W x hxW t) = |
| 109 | (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).presheaf.germ V x hxV s |
| 110 | rw [Presheaf.stalkFunctor_map_germ_apply, ht] |
| 111 | exact hGerm |
| 112 | |
| 113 | /-- If the opens `U i` cover the whole space, the sheaf-level Cech complex is exact in |
| 114 | every positive degree. -/ |
| 115 | theorem cechShortComplex_exact (hU : ⨆ i, U i = ⊤) (n : ℕ) : |
| 116 | (ShortComplex.mk (SheafDifferential.TopCat.Sheaf.cechDifferential F U n) (SheafDifferential.TopCat.Sheaf.cechDifferential F U (n + 1)) |
| 117 | (SheafComplex.TopCat.Sheaf.cechDifferential_comp F U n)).Exact := by |
| 118 | rw [exact_iff_stalkFunctor_map_exact] |
| 119 | intro x |
| 120 | rw [ShortComplex.ab_exact_iff] |
| 121 | exact exists_stalk_preimage_cechDifferential F U hU n x |
| 122 | |
| 123 | end OAI.AlgebraicGeometry.SheafCohomology.Cech.PositiveExact.TopCat.Sheaf |