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