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.SheafCohomology.ConstantCoefficients |
| 2 | import OAI.AlgebraicGeometry.Comparison.Betti.ExactDerivedAdjunction |
| 3 | import Mathlib.CategoryTheory.Abelian.Exact |
| 4 | import Mathlib.Algebra.Homology.ShortComplex.ExactFunctor |
| 5 | |
| 6 | /-! # Complex Hypercohomology Forget -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Comparison.Betti.ComplexHypercohomologyForget.Coefficients |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! The actual extension of sheaf coefficients from integers to complexes is exact. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 17 | |
| 18 | variable (X : TopCat.{0}) |
| 19 | |
| 20 | instance complexExtension_additive : (SheafCohomology.Coefficients.Projective.extendComplexSheaf X).Additive := |
| 21 | (SheafCohomology.Coefficients.Projective.complexSheafAdjunction X).left_adjoint_additive |
| 22 | |
| 23 | instance complexExtension_preservesFiniteColimits : |
| 24 | PreservesFiniteColimits (SheafCohomology.Coefficients.Projective.extendComplexSheaf X) := by |
| 25 | have := (SheafCohomology.Coefficients.Projective.complexSheafAdjunction X).isLeftAdjoint |
| 26 | infer_instance |
| 27 | |
| 28 | instance complexExtension_preservesHomology : (SheafCohomology.Coefficients.Projective.extendComplexSheaf X).PreservesHomology := |
| 29 | Functor.preservesHomology_of_preservesMonos_and_cokernels _ |
| 30 | |
| 31 | instance complexExtension_preservesFiniteLimits : |
| 32 | PreservesFiniteLimits (SheafCohomology.Coefficients.Projective.extendComplexSheaf X) := |
| 33 | (SheafCohomology.Coefficients.Projective.extendComplexSheaf X).preservesFiniteLimits_of_preservesHomology |
| 34 | |
| 35 | abbrev additiveToInteger := (SheafCohomology.IntegerCoefficients.Projective.integerSheafForget X).asEquivalence.inverse |
| 36 | |
| 37 | instance additiveToInteger_additive : (additiveToInteger X).Additive := by |
| 38 | have : (SheafCohomology.IntegerCoefficients.Projective.integerSheafForget X).asEquivalence.symm.inverse.Additive := |
| 39 | inferInstanceAs ((SheafCohomology.IntegerCoefficients.Projective.integerSheafForget X).Additive) |
| 40 | exact ((SheafCohomology.IntegerCoefficients.Projective.integerSheafForget X).asEquivalence.symm.toAdjunction).left_adjoint_additive |
| 41 | |
| 42 | abbrev extendAdditiveComplex := additiveToInteger X ⋙ SheafCohomology.Coefficients.Projective.extendComplexSheaf X |
| 43 | |
| 44 | abbrev forgetComplexAdditive := SheafCohomology.Coefficients.Projective.restrictComplexSheaf X ⋙ SheafCohomology.IntegerCoefficients.Projective.integerSheafForget X |
| 45 | |
| 46 | def additiveComplexAdjunction : extendAdditiveComplex X ⊣ forgetComplexAdditive X := |
| 47 | (SheafCohomology.IntegerCoefficients.Projective.integerSheafForget X).asEquivalence.symm.toAdjunction.comp |
| 48 | (SheafCohomology.Coefficients.Projective.complexSheafAdjunction X) |
| 49 | |
| 50 | def extendedConstantAdditiveIso : |
| 51 | (extendAdditiveComplex X).obj |
| 52 | ((constantSheaf (Opens.grothendieckTopology X) AddCommGrpCat.{0}).obj |
| 53 | (AddCommGrpCat.of ℤ)) ≅ |
| 54 | (constantSheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ)).obj (ModuleCat.of ℂ ℂ) := by |
| 55 | let I := (constantSheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℤ)).obj (ModuleCat.of ℤ ℤ) |
| 56 | let e := (SheafCohomology.IntegerCoefficients.Projective.integerSheafForget X).asEquivalence |
| 57 | let eI := e.inverse.mapIso (SheafCohomology.ConstantCoefficients.Projective.forgetConstantIntegerIso X).symm ≪≫ e.unitIso.symm.app I |
| 58 | exact (SheafCohomology.Coefficients.Projective.extendComplexSheaf X).mapIso eI ≪≫ SheafCohomology.ConstantCoefficients.Projective.extendConstantComplexIso X |
| 59 | |
| 60 | end |
| 61 | |
| 62 | /-! Forgetting complex scalars computes constant-source hypercohomology for whole complexes. -/ |
| 63 | |
| 64 | open _root_.CategoryTheory _root_.TopologicalSpace |
| 65 | |
| 66 | variable (X : TopCat.{0}) |
| 67 | |
| 68 | abbrev ComplexSheaves := Sheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ) |
| 69 | abbrev AdditiveSheaves := Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{0} |
| 70 | |
| 71 | local instance : HasDerivedCategory.{1} (ComplexSheaves X) := HasDerivedCategory.standard _ |
| 72 | local instance : HasDerivedCategory.{1} (AdditiveSheaves X) := HasDerivedCategory.standard _ |
| 73 | |
| 74 | def additiveComplexDerivedAdjunction : |
| 75 | (extendAdditiveComplex X).mapDerivedCategory ⊣ (forgetComplexAdditive X).mapDerivedCategory := |
| 76 | ExactDerivedAdjunction.exactAdjunction (additiveComplexAdjunction X) |
| 77 | |
| 78 | def coefficientHypercohomologyForgetEquiv (K : CochainComplex (ComplexSheaves X) ℤ) (n : ℤ) : |
| 79 | ((DerivedCategory.singleFunctor (ComplexSheaves X) 0).obj |
| 80 | ((constantSheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ)).obj (ModuleCat.of ℂ ℂ)) ⟶ |
| 81 | (DerivedCategory.Q.obj K)⟦n⟧) ≃+ |
| 82 | ((DerivedCategory.singleFunctor (AdditiveSheaves X) 0).obj |
| 83 | ((constantSheaf (Opens.grothendieckTopology X) AddCommGrpCat.{0}).obj (AddCommGrpCat.of ℤ)) ⟶ |
| 84 | (DerivedCategory.Q.obj |
| 85 | (((forgetComplexAdditive X).mapHomologicalComplex (.up ℤ)).obj K))⟦n⟧) := by |
| 86 | let F := extendAdditiveComplex X |
| 87 | let G := forgetComplexAdditive X |
| 88 | let A := (constantSheaf (Opens.grothendieckTopology X) AddCommGrpCat.{0}).obj (AddCommGrpCat.of ℤ) |
| 89 | let eA := (F.mapDerivedCategorySingleFunctor 0).app A ≪≫ |
| 90 | (DerivedCategory.singleFunctor (ComplexSheaves X) 0).mapIso (extendedConstantAdditiveIso X) |
| 91 | let e₁ := (Linear.homCongr ℤ eA.symm (Iso.refl ((DerivedCategory.Q.obj K)⟦n⟧))).toAddEquiv |
| 92 | let e₂ := (additiveComplexDerivedAdjunction X).homAddEquiv |
| 93 | ((DerivedCategory.singleFunctor (AdditiveSheaves X) 0).obj A) ((DerivedCategory.Q.obj K)⟦n⟧) |
| 94 | let eK := (G.mapDerivedCategory.commShiftIso n).app (DerivedCategory.Q.obj K) ≪≫ |
| 95 | (shiftFunctor (DerivedCategory (AdditiveSheaves X)) n).mapIso |
| 96 | (G.mapDerivedCategoryFactors.app K) |
| 97 | exact e₁.trans (e₂.trans (Linear.homCongr ℤ (Iso.refl _) eK).toAddEquiv) |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.AlgebraicGeometry.Comparison.Betti.ComplexHypercohomologyForget.Coefficients |