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.AbelianModuli.HilbertConstruction.Cech.LocalContraction |
| 8 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.ZeroCycleStalks |
| 9 | |
| 10 | /-! # Positive Cycle Stalks -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.PositiveCycleStalks.IntrinsicCech |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 17 | universe u |
| 18 | variable {X : TopCat.{u}} |
| 19 | variable (F : TopCat.Sheaf AddCommGrpCat.{u} X) |
| 20 | variable {ι : Type u} (U : ι → Opens X) |
| 21 | |
| 22 | theorem exists_cechCycle_restriction (hU : ⨆ i, U i = ⊤) (n : ℕ) (x : X) |
| 23 | {V : Opens X} (hxV : x ∈ V) |
| 24 | (s : (IntrinsicCech.SheafTerms.cechTerm F U (n + 1)).obj.obj (op V)) |
| 25 | (hy : (IntrinsicCech.SheafTerms.cechTerm F U (n + 2)).presheaf.germ V x hxV |
| 26 | ((SheafDifferential.IntrinsicCech.cechDifferential F U (n + 1)).hom.app (op V) s) = 0) : |
| 27 | ∃ (i₀ : ι) (W : Opens X) (hxW : x ∈ W), W ≤ U i₀ ∧ W ≤ V ∧ |
| 28 | ∃ sW : (IntrinsicCech.SheafTerms.cechTerm F U (n + 1)).obj.obj (op W), |
| 29 | (SheafDifferential.IntrinsicCech.cechDifferential F U (n + 1)).hom.app (op W) sW = 0 ∧ |
| 30 | (IntrinsicCech.SheafTerms.cechTerm F U (n + 1)).presheaf.germ W x hxW sW = |
| 31 | (IntrinsicCech.SheafTerms.cechTerm F U (n + 1)).presheaf.germ V x hxV s := by |
| 32 | have hzeroGerm : |
| 33 | (IntrinsicCech.SheafTerms.cechTerm F U (n + 2)).presheaf.germ V x hxV |
| 34 | (0 : (IntrinsicCech.SheafTerms.cechTerm F U (n + 2)).obj.obj (op V)) = 0 := |
| 35 | map_zero _ |
| 36 | obtain ⟨W, hxW, iWV, _, hEq⟩ := |
| 37 | (IntrinsicCech.SheafTerms.cechTerm F U (n + 2)).presheaf.germ_eq x hxV hxV |
| 38 | ((SheafDifferential.IntrinsicCech.cechDifferential F U (n + 1)).hom.app (op V) s) 0 |
| 39 | (hy.trans hzeroGerm.symm) |
| 40 | have hEqZero : |
| 41 | (IntrinsicCech.SheafTerms.cechTerm F U (n + 2)).obj.map iWV.op |
| 42 | ((SheafDifferential.IntrinsicCech.cechDifferential F U (n + 1)).hom.app (op V) s) = 0 := by |
| 43 | rw [hEq, map_zero] |
| 44 | have hxCover : x ∈ ⨆ i, U i := by |
| 45 | rw [hU] |
| 46 | trivial |
| 47 | rw [Opens.mem_iSup] at hxCover |
| 48 | obtain ⟨i₀, hxi₀⟩ := hxCover |
| 49 | let W' : Opens X := W ⊓ U i₀ |
| 50 | have hxW' : x ∈ W' := ⟨hxW, hxi₀⟩ |
| 51 | have hW'W : W' ≤ W := inf_le_left |
| 52 | have hW'V : W' ≤ V := hW'W.trans iWV.le |
| 53 | let s' : (IntrinsicCech.SheafTerms.cechTerm F U (n + 1)).obj.obj (op W') := |
| 54 | (IntrinsicCech.SheafTerms.cechTerm F U (n + 1)).obj.map (homOfLE hW'V).op s |
| 55 | have hDiffRestrict : |
| 56 | (IntrinsicCech.SheafTerms.cechTerm F U (n + 2)).obj.map (homOfLE hW'V).op |
| 57 | ((SheafDifferential.IntrinsicCech.cechDifferential F U (n + 1)).hom.app (op V) s) = 0 := by |
| 58 | calc |
| 59 | _ = (IntrinsicCech.SheafTerms.cechTerm F U (n + 2)).obj.map (homOfLE hW'W).op |
| 60 | ((IntrinsicCech.SheafTerms.cechTerm F U (n + 2)).obj.map iWV.op |
| 61 | ((SheafDifferential.IntrinsicCech.cechDifferential F U (n + 1)).hom.app (op V) s)) := by |
| 62 | change (IntrinsicCech.SheafTerms.cechTerm F U (n + 2)).obj.map _ _ = |
| 63 | ((IntrinsicCech.SheafTerms.cechTerm F U (n + 2)).obj.map _ ≫ |
| 64 | (IntrinsicCech.SheafTerms.cechTerm F U (n + 2)).obj.map _) _ |
| 65 | rw [← (IntrinsicCech.SheafTerms.cechTerm F U (n + 2)).obj.map_comp] |
| 66 | exact ConcreteCategory.congr_hom |
| 67 | (congrArg (IntrinsicCech.SheafTerms.cechTerm F U (n + 2)).obj.map (Subsingleton.elim _ _)) _ |
| 68 | _ = 0 := by rw [hEqZero, map_zero] |
| 69 | have hs' : (SheafDifferential.IntrinsicCech.cechDifferential F U (n + 1)).hom.app (op W') s' = 0 := by |
| 70 | calc |
| 71 | _ = (IntrinsicCech.SheafTerms.cechTerm F U (n + 2)).obj.map (homOfLE hW'V).op |
| 72 | ((SheafDifferential.IntrinsicCech.cechDifferential F U (n + 1)).hom.app (op V) s) := by |
| 73 | exact ConcreteCategory.congr_hom |
| 74 | ((SheafDifferential.IntrinsicCech.cechDifferential F U (n + 1)).hom.naturality (homOfLE hW'V).op) s |
| 75 | _ = 0 := hDiffRestrict |
| 76 | exact ⟨i₀, W', hxW', inf_le_right, hW'V, s', hs', |
| 77 | (IntrinsicCech.SheafTerms.cechTerm F U (n + 1)).presheaf.germ_res_apply (homOfLE hW'V) x hxW' s⟩ |
| 78 | |
| 79 | theorem exists_stalk_preimage_cechDifferential (hU : ⨆ i, U i = ⊤) |
| 80 | (n : ℕ) (x : X) (y : (IntrinsicCech.SheafTerms.cechTerm F U (n + 1)).presheaf.stalk x) |
| 81 | (hy : (TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map |
| 82 | (SheafDifferential.IntrinsicCech.cechDifferential F U (n + 1)).hom y = 0) : |
| 83 | ∃ t : (IntrinsicCech.SheafTerms.cechTerm F U n).presheaf.stalk x, |
| 84 | (TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map |
| 85 | (SheafDifferential.IntrinsicCech.cechDifferential F U n).hom t = y := by |
| 86 | obtain ⟨V, hxV, s, rfl⟩ := |
| 87 | (IntrinsicCech.SheafTerms.cechTerm F U (n + 1)).presheaf.exists_germ_eq y |
| 88 | rw [TopCat.Presheaf.stalkFunctor_map_germ_apply] at hy |
| 89 | obtain ⟨i₀, W, hxW, hWi₀, _, sW, hsW, hGerm⟩ := |
| 90 | exists_cechCycle_restriction F U hU n x hxV s hy |
| 91 | obtain ⟨t, ht⟩ := |
| 92 | LocalContraction.IntrinsicCech.exists_preimage_cechDifferential_of_le U F i₀ hWi₀ n sW hsW |
| 93 | refine ⟨(IntrinsicCech.SheafTerms.cechTerm F U n).presheaf.germ W x hxW t, ?_⟩ |
| 94 | change (TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map |
| 95 | (SheafDifferential.IntrinsicCech.cechDifferential F U n).hom |
| 96 | ((IntrinsicCech.SheafTerms.cechTerm F U n).presheaf.germ W x hxW t) = |
| 97 | (IntrinsicCech.SheafTerms.cechTerm F U (n + 1)).presheaf.germ V x hxV s |
| 98 | rw [TopCat.Presheaf.stalkFunctor_map_germ_apply, ht] |
| 99 | exact hGerm |
| 100 | |
| 101 | /-- If the opens `U i` cover the whole space, the sheaf-level Cech complex is exact in |
| 102 | every positive degree. -/ |
| 103 | theorem cechShortComplex_exact (hU : ⨆ i, U i = ⊤) (n : ℕ) : |
| 104 | (ShortComplex.mk (SheafDifferential.IntrinsicCech.cechDifferential F U n) (SheafDifferential.IntrinsicCech.cechDifferential F U (n + 1)) |
| 105 | (IntrinsicCech.SheafComplex.cechDifferential_comp F U n)).Exact := by |
| 106 | rw [TopCat.Sheaf.exact_iff_stalkFunctor_map_exact] |
| 107 | intro x |
| 108 | rw [ShortComplex.ab_exact_iff] |
| 109 | exact exists_stalk_preimage_cechDifferential F U hU n x |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.PositiveCycleStalks.IntrinsicCech |