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.CycleClass.Geometric.FlasqueLowDegree |
| 2 | import OAI.AlgebraicTopology.Cohomology.Singular.OpenSheafComparison |
| 3 | import OAI.AlgebraicGeometry.Comparison.Betti.Complex.SheafForget |
| 4 | |
| 5 | /-! # Flasque Biproduct -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Comparison.Betti.FlasqueBiproduct |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! |
| 14 | # Sections of acyclic complexes of flasque complex sheaves |
| 15 | |
| 16 | The proof uses actual surjectivity of restrictions and sheaf gluing. |
| 17 | Successive cokernels remain flasque, so taking sections preserves the |
| 18 | incoming cokernels and hence exactness. This adapts the abelian-group |
| 19 | argument in `Cycles.FlasqueLowDegree` to the complex coefficient category. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.TopologicalSpace |
| 23 | |
| 24 | abbrev ComplexSheaves (X : TopCat.{0}) := TopCat.Sheaf (ModuleCat.{0} ℂ) X |
| 25 | |
| 26 | variable {X : TopCat.{0}} |
| 27 | |
| 28 | def sections (U : Opens X) : ComplexSheaves X ⥤ ModuleCat.{0} ℂ := |
| 29 | AlgebraicTopology.Cohomology.Singular.OpenSheafComparison.sheafSectionsFunctor X U |
| 30 | |
| 31 | instance sectionsAdditive (U : Opens X) : (sections U).Additive := |
| 32 | inferInstanceAs ((AlgebraicTopology.Cohomology.Singular.OpenSheafComparison.sheafSectionsFunctor (R := ℂ) X U).Additive) |
| 33 | |
| 34 | instance sectionsPreservesFiniteLimits (U : Opens X) : PreservesFiniteLimits (sections U) := by |
| 35 | exact comp_preservesFiniteLimits |
| 36 | (sheafToPresheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ)) |
| 37 | ((evaluation (Opens X)ᵒᵖ (ModuleCat.{0} ℂ)).obj (op U)) |
| 38 | |
| 39 | theorem flasque_of_iso {F G : ComplexSheaves X} (e : F ≅ G) |
| 40 | [TopCat.Sheaf.IsFlasque F] : TopCat.Sheaf.IsFlasque G := by |
| 41 | let e' := (TopCat.Sheaf.forget (ModuleCat.{0} ℂ) X).mapIso e |
| 42 | constructor |
| 43 | intro U V i |
| 44 | have he : Epi (e'.hom.app U ≫ G.obj.map i) := by |
| 45 | change Epi (e'.hom.app U ≫ ((TopCat.Sheaf.forget (ModuleCat.{0} ℂ) X).obj G).map i) |
| 46 | rw [← e'.hom.naturality] |
| 47 | have : Epi (((TopCat.Sheaf.forget (ModuleCat.{0} ℂ) X).obj F).map i) := |
| 48 | inferInstanceAs (Epi (F.obj.map i)) |
| 49 | infer_instance |
| 50 | exact epi_of_epi (e'.hom.app U) (G.obj.map i) |
| 51 | |
| 52 | theorem sections_shortExact (U : Opens X) (S : ShortComplex (ComplexSheaves X)) |
| 53 | (hS : S.ShortExact) [TopCat.Sheaf.IsFlasque S.X₁] : |
| 54 | (S.map (sections U)).ShortExact := by |
| 55 | have hleft := (Functor.preservesFiniteLimits_iff_forall_exact_map_and_mono |
| 56 | (sections U)).1 inferInstance S hS |
| 57 | have hep : Epi ((sections U).map S.g) := by |
| 58 | change Epi (S.g.hom.app (op U)) |
| 59 | exact Complex.SheafForget.Flasque.flasque_section_epi U S hS |
| 60 | exact ShortComplex.ShortExact.mk' hleft.1 hleft.2 hep |
| 61 | |
| 62 | variable (K : CochainComplex (ComplexSheaves X) ℕ) |
| 63 | (hK : ∀ n, TopCat.Sheaf.IsFlasque (K.X n)) (hacyclic : K.Acyclic) |
| 64 | |
| 65 | include hK hacyclic |
| 66 | |
| 67 | theorem opcycles_flasque (n : ℕ) : TopCat.Sheaf.IsFlasque (K.opcycles n) := by |
| 68 | induction n with |
| 69 | | zero => |
| 70 | have := hK 0 |
| 71 | exact flasque_of_iso K.opcycles₀Iso |
| 72 | | succ n ih => |
| 73 | have := ih |
| 74 | have := hK (n + 1) |
| 75 | exact Complex.SheafForget.Flasque.flasque_of_shortExact₁₂ (CycleClass.Geometric.FlasqueLowDegree.Cycles.opcyclesSuccessorSequence K n) |
| 76 | (CycleClass.Geometric.FlasqueLowDegree.Cycles.opcyclesSuccessorSequence_shortExact K n (hacyclic n)) |
| 77 | |
| 78 | theorem sections_pOpcycles_epi (U : Opens X) (n : ℕ) : |
| 79 | Epi ((sections U).map (K.pOpcycles n)) := by |
| 80 | cases n with |
| 81 | | zero => infer_instance |
| 82 | | succ n => |
| 83 | have := opcycles_flasque K hK hacyclic n |
| 84 | exact (sections_shortExact U (CycleClass.Geometric.FlasqueLowDegree.Cycles.opcyclesSuccessorSequence K n) |
| 85 | (CycleClass.Geometric.FlasqueLowDegree.Cycles.opcyclesSuccessorSequence_shortExact K n (hacyclic n))).epi_g |
| 86 | |
| 87 | theorem sections_preserves_incoming_cokernel (U : Opens X) (n : ℕ) : |
| 88 | PreservesColimit (parallelPair (K.sc n).f 0) (sections U) := by |
| 89 | cases n with |
| 90 | | zero => |
| 91 | apply preservesCokernel_zero' |
| 92 | change K.d ((ComplexShape.up ℕ).prev 0) 0 = 0 |
| 93 | simp |
| 94 | | succ n => |
| 95 | change PreservesColimit |
| 96 | (parallelPair (K.d ((ComplexShape.up ℕ).prev (n + 1)) (n + 1)) 0) (sections U) |
| 97 | rw [CochainComplex.prev_nat_succ] |
| 98 | have := opcycles_flasque K hK hacyclic n |
| 99 | have := sections_pOpcycles_epi K hK hacyclic U n |
| 100 | let S := CycleClass.Geometric.FlasqueLowDegree.Cycles.opcyclesSuccessorSequence K n |
| 101 | have hS := sections_shortExact U S |
| 102 | (CycleClass.Geometric.FlasqueLowDegree.Cycles.opcyclesSuccessorSequence_shortExact K n (hacyclic n)) |
| 103 | have := hS.epi_g |
| 104 | refine preservesColimit_of_preserves_colimit_cocone |
| 105 | (K.opcyclesIsCokernel n (n + 1) (by simp)) ?_ |
| 106 | apply (CokernelCofork.isColimitMapCoconeEquiv _ (sections U)).2 |
| 107 | exact isCokernelEpiComp hS.exact.gIsCokernel ((sections U).map (K.pOpcycles n)) |
| 108 | (hg := sections_pOpcycles_epi K hK hacyclic U n) (by |
| 109 | change (sections U).map (K.d n (n + 1)) = |
| 110 | (sections U).map (K.pOpcycles n) ≫ (sections U).map (K.fromOpcycles n (n + 1)) |
| 111 | rw [← Functor.map_comp, HomologicalComplex.p_fromOpcycles]) |
| 112 | |
| 113 | /-- Every actual open-section complex of an acyclic flasque complex is acyclic. -/ |
| 114 | theorem sections_acyclic (U : Opens X) : |
| 115 | (((sections U).mapHomologicalComplex (ComplexShape.up ℕ)).obj K).Acyclic := by |
| 116 | intro n |
| 117 | have := sections_preserves_incoming_cokernel K hK hacyclic U n |
| 118 | have : (sections U).PreservesRightHomologyOf (K.sc n) := by |
| 119 | constructor |
| 120 | intro h |
| 121 | exact { f := inferInstance, g' := inferInstance } |
| 122 | rw [HomologicalComplex.exactAt_iff_isZero_homology] |
| 123 | exact ((sections U).map_isZero (hacyclic n).isZero_homology).of_iso |
| 124 | ((K.sc n).mapHomologyIso' (sections U)) |
| 125 | |
| 126 | end |
| 127 | |
| 128 | /-! Flasqueness of an actual biproduct, by lifting its two section components. -/ |
| 129 | |
| 130 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.TopologicalSpace |
| 131 | |
| 132 | variable {X : TopCat.{0}} (F G : ComplexSheaves X) |
| 133 | [TopCat.Sheaf.IsFlasque F] [TopCat.Sheaf.IsFlasque G] |
| 134 | |
| 135 | theorem biprod_flasque : TopCat.Sheaf.IsFlasque (F ⊞ G) := by |
| 136 | constructor |
| 137 | intro U V i |
| 138 | apply (ModuleCat.epi_iff_surjective _).mpr |
| 139 | intro s |
| 140 | obtain ⟨a, ha⟩ := (ModuleCat.epi_iff_surjective (F.obj.map i)).mp inferInstance |
| 141 | ((biprod.fst : F ⊞ G ⟶ F).hom.app V s) |
| 142 | obtain ⟨b, hb⟩ := (ModuleCat.epi_iff_surjective (G.obj.map i)).mp inferInstance |
| 143 | ((biprod.snd : F ⊞ G ⟶ G).hom.app V s) |
| 144 | refine ⟨(biprod.inl : F ⟶ F ⊞ G).hom.app U a + |
| 145 | (biprod.inr : G ⟶ F ⊞ G).hom.app U b, ?_⟩ |
| 146 | have hla := ConcreteCategory.congr_hom ((biprod.inl : F ⟶ F ⊞ G).hom.naturality i) a |
| 147 | have hlb := ConcreteCategory.congr_hom ((biprod.inr : G ⟶ F ⊞ G).hom.naturality i) b |
| 148 | change (biprod.inl : F ⟶ F ⊞ G).hom.app V (F.obj.map i a) = |
| 149 | (F ⊞ G).obj.map i ((biprod.inl : F ⟶ F ⊞ G).hom.app U a) at hla |
| 150 | change (biprod.inr : G ⟶ F ⊞ G).hom.app V (G.obj.map i b) = |
| 151 | (F ⊞ G).obj.map i ((biprod.inr : G ⟶ F ⊞ G).hom.app U b) at hlb |
| 152 | rw [map_add, ← hla, ← hlb, ha, hb] |
| 153 | have htotal := congrArg (fun k : F ⊞ G ⟶ F ⊞ G => k.hom.app V) |
| 154 | (show (biprod.fst : F ⊞ G ⟶ F) ≫ biprod.inl + |
| 155 | (biprod.snd : F ⊞ G ⟶ G) ≫ biprod.inr = 𝟙 (F ⊞ G) from biprod.total) |
| 156 | exact ConcreteCategory.congr_hom htotal s |
| 157 | |
| 158 | end |
| 159 | |
| 160 | end OAI.AlgebraicGeometry.Comparison.Betti.FlasqueBiproduct |