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.ThomGoodShiftFlasque |
| 2 | |
| 3 | /-! # Flasque Section Cokernels -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.FlasqueSectionCokernels.Constructions |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Actual open sections preserve the incoming cokernels below the first cohomology sheaf. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | variable {X : TopCat.{0}} |
| 16 | |
| 17 | theorem rationalFlasqueSequence_sections_shortExact (U : Opens X) |
| 18 | (S : ShortComplex (TopCat.Sheaf (ModuleCat.{0} ℚ) X)) (hS : S.ShortExact) |
| 19 | [TopCat.Sheaf.IsFlasque S.X₁] : (S.map (CycleClass.Geometric.SheafClosedSupport.Cohomology.moduleSheafSections U)).ShortExact := by |
| 20 | have hleft := (Functor.preservesFiniteLimits_iff_forall_exact_map_and_mono |
| 21 | (CycleClass.Geometric.SheafClosedSupport.Cohomology.moduleSheafSections U)).mp inferInstance S hS |
| 22 | have := hS.mono_f |
| 23 | have := hS.epi_g |
| 24 | have hA : (S.map (AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForget X)).ShortExact := hS.map (AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForget X) |
| 25 | have : TopCat.Sheaf.IsFlasque (S.map (AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForget X)).X₁ := |
| 26 | AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForget_isFlasque S.X₁ |
| 27 | have hE : Epi (((S.map (AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalSheafForget X)).g).hom.app (op U)) := |
| 28 | TopCat.Sheaf.IsFlasque.epi_of_shortExact hA |
| 29 | have hQ : Epi ((CycleClass.Geometric.SheafClosedSupport.Cohomology.moduleSheafSections U).map S.g) := AlgebraicTopology.DeRham.Comparison.RationalSheafForget.rationalForget.epi_of_epi_map hE |
| 30 | exact ShortComplex.ShortExact.mk' hleft.1 hleft.2 hQ |
| 31 | |
| 32 | variable (K : CochainComplex (TopCat.Sheaf (ModuleCat.{0} ℚ) X) ℕ) |
| 33 | variable (hK : ∀ n, TopCat.Sheaf.IsFlasque (K.X n)) |
| 34 | variable (k : ℕ) (he : ∀ n, n<k → K.ExactAt n) |
| 35 | |
| 36 | include hK he |
| 37 | |
| 38 | theorem rationalFlasqueSections_pOpcycles_epi (U : Opens X) (n : ℕ) (hn : n≤k) : |
| 39 | Epi ((CycleClass.Geometric.SheafClosedSupport.Cohomology.moduleSheafSections U).map (K.pOpcycles n)) := by |
| 40 | cases n with |
| 41 | | zero => infer_instance |
| 42 | | succ n => |
| 43 | have := ThomGoodShiftFlasque.Constructions.rationalFlasque_opcycles_of_exact_below K hK k he n (Nat.le_of_succ_le hn) |
| 44 | exact (rationalFlasqueSequence_sections_shortExact U (CycleClass.Geometric.FlasqueLowDegree.Cycles.opcyclesSuccessorSequence K n) |
| 45 | (CycleClass.Geometric.FlasqueLowDegree.Cycles.opcyclesSuccessorSequence_shortExact K n (he n (Nat.lt_of_succ_le hn)))).epi_g |
| 46 | |
| 47 | theorem rationalFlasqueSections_preserves_incoming_cokernel (U : Opens X) (n : ℕ) (hn : n≤k) : |
| 48 | PreservesColimit (parallelPair (K.sc n).f 0) (CycleClass.Geometric.SheafClosedSupport.Cohomology.moduleSheafSections U) := by |
| 49 | cases n with |
| 50 | | zero => |
| 51 | apply preservesCokernel_zero' |
| 52 | change K.d ((ComplexShape.up ℕ).prev 0) 0 = 0 |
| 53 | simp |
| 54 | | succ n => |
| 55 | change PreservesColimit (parallelPair (K.d ((ComplexShape.up ℕ).prev (n+1)) (n+1)) 0) |
| 56 | (CycleClass.Geometric.SheafClosedSupport.Cohomology.moduleSheafSections U) |
| 57 | rw [CochainComplex.prev_nat_succ] |
| 58 | have := ThomGoodShiftFlasque.Constructions.rationalFlasque_opcycles_of_exact_below K hK k he n (Nat.le_of_succ_le hn) |
| 59 | have := rationalFlasqueSections_pOpcycles_epi K hK k he U n (Nat.le_of_succ_le hn) |
| 60 | let S := CycleClass.Geometric.FlasqueLowDegree.Cycles.opcyclesSuccessorSequence K n |
| 61 | have hS := rationalFlasqueSequence_sections_shortExact U S |
| 62 | (CycleClass.Geometric.FlasqueLowDegree.Cycles.opcyclesSuccessorSequence_shortExact K n (he n (Nat.lt_of_succ_le hn))) |
| 63 | have := hS.epi_g |
| 64 | refine preservesColimit_of_preserves_colimit_cocone |
| 65 | (K.opcyclesIsCokernel n (n+1) (by simp)) ?_ |
| 66 | apply (CokernelCofork.isColimitMapCoconeEquiv _ (CycleClass.Geometric.SheafClosedSupport.Cohomology.moduleSheafSections U)).2 |
| 67 | exact isCokernelEpiComp hS.exact.gIsCokernel |
| 68 | ((CycleClass.Geometric.SheafClosedSupport.Cohomology.moduleSheafSections U).map (K.pOpcycles n)) (by |
| 69 | change (CycleClass.Geometric.SheafClosedSupport.Cohomology.moduleSheafSections U).map (K.d n (n+1)) = |
| 70 | (CycleClass.Geometric.SheafClosedSupport.Cohomology.moduleSheafSections U).map (K.pOpcycles n) ≫ |
| 71 | (CycleClass.Geometric.SheafClosedSupport.Cohomology.moduleSheafSections U).map (K.fromOpcycles n (n+1)) |
| 72 | rw [← Functor.map_comp, HomologicalComplex.p_fromOpcycles]) |
| 73 | |
| 74 | theorem rationalFlasqueSections_preservesRightHomologyOf (U : Opens X) (n : ℕ) (hn : n≤k) : |
| 75 | (CycleClass.Geometric.SheafClosedSupport.Cohomology.moduleSheafSections U).PreservesRightHomologyOf (K.sc n) := by |
| 76 | have := rationalFlasqueSections_preserves_incoming_cokernel K hK k he U n hn |
| 77 | constructor |
| 78 | intro h |
| 79 | exact { f := inferInstance, g' := inferInstance } |
| 80 | |
| 81 | def rationalFlasqueSections_opcyclesIso (U : Opens X) (n : ℕ) (hn : n≤k) : |
| 82 | (CycleClass.Geometric.SupportStalkVanishes.Cohomology.moduleSheafSectionsComplex U K).opcycles n ≅ (CycleClass.Geometric.SheafClosedSupport.Cohomology.moduleSheafSections U).obj (K.opcycles n) := by |
| 83 | have := rationalFlasqueSections_preservesRightHomologyOf K hK k he U n hn |
| 84 | exact (K.sc n).mapOpcyclesIso (CycleClass.Geometric.SheafClosedSupport.Cohomology.moduleSheafSections U) |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.FlasqueSectionCokernels.Constructions |