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 OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.GoodShiftCohomology |
| 2 | import Mathlib.Algebra.Homology.SingleHomology |
| 3 | |
| 4 | /-! # Thom Good Shift Flasque -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.ThomGoodShiftFlasque.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The canonical augmentation of the actual shifted supported Thom complex. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | variable {C : Type*} [Category C] [Abelian C] |
| 19 | |
| 20 | def cochainZeroHomologyAugmentation (K : CochainComplex C ℕ) : |
| 21 | (CochainComplex.single₀ C).obj (K.homology 0) ⟶ K := |
| 22 | (CochainComplex.fromSingle₀Equiv K (K.homology 0)).symm |
| 23 | ⟨K.isoHomologyπ₀.inv ≫ K.iCycles 0, by rw [Category.assoc, K.iCycles_d, comp_zero]⟩ |
| 24 | |
| 25 | theorem cochainZeroHomologyAugmentation_f_zero (K : CochainComplex C ℕ) : |
| 26 | (cochainZeroHomologyAugmentation K).f 0 = K.isoHomologyπ₀.inv ≫ K.iCycles 0 := |
| 27 | CochainComplex.fromSingle₀Equiv_symm_apply_f_zero _ _ |
| 28 | |
| 29 | theorem cochainZeroHomologyAugmentation_cycles (K : CochainComplex C ℕ) : |
| 30 | HomologicalComplex.cyclesMap (cochainZeroHomologyAugmentation K) 0 = |
| 31 | (HomologicalComplex.singleObjCyclesSelfIso (ComplexShape.up ℕ) 0 (K.homology 0)).hom ≫ |
| 32 | K.isoHomologyπ₀.inv := by |
| 33 | apply (cancel_mono (K.iCycles 0)).mp |
| 34 | rw [HomologicalComplex.cyclesMap_i, cochainZeroHomologyAugmentation_f_zero] |
| 35 | rw [HomologicalComplex.singleObjCyclesSelfIso_hom] |
| 36 | change _ = ((_ ≫ 𝟙 _) ≫ _) ≫ _ |
| 37 | simp only [Category.comp_id, Category.assoc] |
| 38 | |
| 39 | theorem cochainZeroHomologyAugmentation_homology (K : CochainComplex C ℕ) : |
| 40 | HomologicalComplex.homologyMap (cochainZeroHomologyAugmentation K) 0 = |
| 41 | (HomologicalComplex.singleObjHomologySelfIso (ComplexShape.up ℕ) 0 (K.homology 0)).hom := by |
| 42 | apply (cancel_epi (((CochainComplex.single₀ C).obj (K.homology 0)).homologyπ 0)).mp |
| 43 | rw [HomologicalComplex.homologyπ_naturality, cochainZeroHomologyAugmentation_cycles, |
| 44 | Category.assoc, HomologicalComplex.isoHomologyπ_inv_hom_id, |
| 45 | Category.comp_id, HomologicalComplex.homologyπ_singleObjHomologySelfIso_hom] |
| 46 | |
| 47 | theorem cochainZeroHomologyAugmentation_quasiIso (K : CochainComplex C ℕ) |
| 48 | (hK : ∀ n, 0<n → IsZero (K.homology n)) : |
| 49 | QuasiIso (cochainZeroHomologyAugmentation K) := by |
| 50 | rw [quasiIso_iff] |
| 51 | intro n |
| 52 | rw [quasiIsoAt_iff_isIso_homologyMap] |
| 53 | rcases n with _ | n |
| 54 | · rw [cochainZeroHomologyAugmentation_homology] |
| 55 | infer_instance |
| 56 | · exact (HomologicalComplex.isZero_single_obj_homology (ComplexShape.up ℕ) 0 |
| 57 | (K.homology 0) (n+1) (by omega)).isIso (hK (n+1) (by omega)) _ |
| 58 | |
| 59 | variable {V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} {p : ℕ} (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) |
| 60 | |
| 61 | /-- The orientation sheaf, placed in degree zero, maps into the canonical good shift. -/ |
| 62 | def regularThomSheafAugmentation : |
| 63 | (CochainComplex.single₀ _).obj (Z.regularThomSheafComplex.homology (2*p)) ⟶ |
| 64 | GoodShiftCohomology.Constructions.regularThomGoodShiftSheafComplex Z := |
| 65 | (CochainComplex.single₀ _).map (GoodShiftCohomology.Constructions.regularThomGoodShift_zeroHomologyIso Z).inv ≫ |
| 66 | cochainZeroHomologyAugmentation (GoodShiftCohomology.Constructions.regularThomGoodShiftSheafComplex Z) |
| 67 | |
| 68 | theorem regularThomSheafAugmentation_quasiIso : QuasiIso (regularThomSheafAugmentation Z) := by |
| 69 | have := cochainZeroHomologyAugmentation_quasiIso (GoodShiftCohomology.Constructions.regularThomGoodShiftSheafComplex Z) |
| 70 | (GoodShiftCohomology.Constructions.regularThomGoodShift_positive_homology_isZero Z) |
| 71 | unfold regularThomSheafAugmentation |
| 72 | infer_instance |
| 73 | |
| 74 | end |
| 75 | |
| 76 | /-! The canonical shifted Thom complex is an actual flasque resolution. -/ |
| 77 | |
| 78 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 79 | |
| 80 | set_option backward.isDefEq.respectTransparency false |
| 81 | |
| 82 | variable {X : TopCat.{0}} |
| 83 | |
| 84 | theorem rationalSheafFlasque_of_forget (F : TopCat.Sheaf (ModuleCat.{0} ℚ) X) |
| 85 | [TopCat.Sheaf.IsFlasque ((AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForget X).obj F)] : TopCat.Sheaf.IsFlasque F where |
| 86 | epi i := by |
| 87 | have h : Epi (AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalForget.map (F.obj.map i)) := |
| 88 | inferInstanceAs (Epi (((AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForget X).obj F).obj.map i)) |
| 89 | exact AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalForget.epi_of_epi_map h |
| 90 | |
| 91 | theorem rationalSheafFlasque_of_iso {F G : TopCat.Sheaf (ModuleCat.{0} ℚ) X} |
| 92 | (e : F ≅ G) [TopCat.Sheaf.IsFlasque F] : TopCat.Sheaf.IsFlasque G := by |
| 93 | have : TopCat.Sheaf.IsFlasque ((AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForget X).obj G) := |
| 94 | CycleClass.Geometric.FlasqueLowDegree.Cycles.flasqueSheaf_of_iso ((AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForget X).mapIso e) |
| 95 | exact rationalSheafFlasque_of_forget G |
| 96 | |
| 97 | theorem rationalFlasque_opcycles_of_exact_below |
| 98 | (K : CochainComplex (TopCat.Sheaf (ModuleCat.{0} ℚ) X) ℕ) |
| 99 | (hK : ∀ n, TopCat.Sheaf.IsFlasque (K.X n)) |
| 100 | (k : ℕ) (he : ∀ n, n<k → K.ExactAt n) (n : ℕ) (hn : n≤k) : |
| 101 | TopCat.Sheaf.IsFlasque (K.opcycles n) := by |
| 102 | have hKA : ∀ i, TopCat.Sheaf.IsFlasque ((AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForgetComplex K).X i) := by |
| 103 | intro i |
| 104 | have := hK i |
| 105 | exact AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForget_isFlasque (K.X i) |
| 106 | have hKe : ∀ i, i<k → (AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForgetComplex K).ExactAt i := by |
| 107 | intro i hi |
| 108 | exact (AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForgetComplex_exactAt_iff K i).mpr (he i hi) |
| 109 | have := CycleClass.Geometric.FlasqueLowDegree.Cycles.flasque_opcycles_of_exact_below (AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForgetComplex K) hKA k hKe n hn |
| 110 | have : TopCat.Sheaf.IsFlasque (((K.sc n).map (AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForget X)).opcycles) := |
| 111 | inferInstanceAs (TopCat.Sheaf.IsFlasque ((AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForgetComplex K).opcycles n)) |
| 112 | have : TopCat.Sheaf.IsFlasque ((AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForget X).obj (K.opcycles n)) := |
| 113 | CycleClass.Geometric.FlasqueLowDegree.Cycles.flasqueSheaf_of_iso ((K.sc n).mapOpcyclesIso (AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForget X)) |
| 114 | exact rationalSheafFlasque_of_forget (K.opcycles n) |
| 115 | |
| 116 | theorem rationalGoodShift_isFlasque |
| 117 | (K : CochainComplex (TopCat.Sheaf (ModuleCat.{0} ℚ) X) ℕ) |
| 118 | (hK : ∀ n, TopCat.Sheaf.IsFlasque (K.X n)) |
| 119 | (k : ℕ) (he : ∀ n, n<k → K.ExactAt n) (n : ℕ) : |
| 120 | TopCat.Sheaf.IsFlasque ((K.truncGE' (RelativeCupHomotopy.Constructions.cochainDegreeShiftEmbedding k)).X n) := by |
| 121 | by_cases hn : (RelativeCupHomotopy.Constructions.cochainDegreeShiftEmbedding k).BoundaryGE n |
| 122 | · have hn0 : n=0 := by |
| 123 | cases n with |
| 124 | | zero => rfl |
| 125 | | succ n => exact False.elim ((RelativeCupHomotopy.Constructions.cochainDegreeShiftEmbedding k).not_boundaryGE_next |
| 126 | (show (ComplexShape.up ℕ).Rel n (n+1) from rfl) hn) |
| 127 | subst n |
| 128 | have := rationalFlasque_opcycles_of_exact_below K hK k he k le_rfl |
| 129 | exact rationalSheafFlasque_of_iso (K.truncGE'XIsoOpcycles |
| 130 | (RelativeCupHomotopy.Constructions.cochainDegreeShiftEmbedding k) (i' := k) rfl hn).symm |
| 131 | · have := hK (k+n) |
| 132 | exact rationalSheafFlasque_of_iso (K.truncGE'XIso (RelativeCupHomotopy.Constructions.cochainDegreeShiftEmbedding k) rfl hn).symm |
| 133 | |
| 134 | variable {V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} {p : ℕ} (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) |
| 135 | |
| 136 | theorem regularThomGoodShift_isFlasque (n : ℕ) : |
| 137 | TopCat.Sheaf.IsFlasque ((GoodShiftCohomology.Constructions.regularThomGoodShiftSheafComplex Z).X n) := |
| 138 | rationalGoodShift_isFlasque Z.regularThomSheafComplex |
| 139 | (CycleClass.Geometric.GlobalSupportPurity.Cycles.supportedSingularSheaf_isFlasque_of_metrizable (ModuleCat.of ℚ ℚ) |
| 140 | (TopCat.of Z.regularAmbientSpace) Z.regularThomComplementOpen) |
| 141 | (2*p) (fun i hi => RegularThomSheafPurity.Constructions.regularThomSheaf_exactAt_except Z i (by omega)) n |
| 142 | |
| 143 | end |
| 144 | |
| 145 | end OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.ThomGoodShiftFlasque.Constructions |