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.CoefficientFlatness |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Sheaves |
| 3 | import OAI.AlgebraicGeometry.SheafCohomology.ExtAdjunction |
| 4 | import Mathlib.Algebra.Category.ModuleCat.AB |
| 5 | import Mathlib.CategoryTheory.Abelian.GrothendieckAxioms.Sheaf |
| 6 | import Mathlib.CategoryTheory.Abelian.GrothendieckCategory.EnoughInjectives |
| 7 | import Mathlib.CategoryTheory.Sites.Adjunction |
| 8 | import Mathlib.CategoryTheory.Preadditive.Injective.Preserves |
| 9 | |
| 10 | /-! # Coefficients -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.SheafCohomology.Coefficients.Projective |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! Change from integral to complex coefficients for actual sheaves. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 19 | |
| 20 | abbrev extendComplexSheaf (X : TopCat.{0}) := |
| 21 | Sheaf.composeAndSheafify (Opens.grothendieckTopology X) CoefficientFlatness.Projective.extendComplexCoefficients |
| 22 | |
| 23 | abbrev restrictComplexSheaf (X : TopCat.{0}) := |
| 24 | sheafCompose (Opens.grothendieckTopology X) |
| 25 | (ModuleCat.restrictScalars (Int.castRingHom ℂ)) |
| 26 | |
| 27 | def complexSheafAdjunction (X : TopCat.{0}) : |
| 28 | extendComplexSheaf X ⊣ restrictComplexSheaf X := |
| 29 | Sheaf.adjunction (Opens.grothendieckTopology X) |
| 30 | (ModuleCat.extendRestrictScalarsAdj (Int.castRingHom ℂ)) |
| 31 | |
| 32 | instance extendComplexSheaf_preservesMonos (X : TopCat.{0}) : |
| 33 | (extendComplexSheaf X).PreservesMonomorphisms where |
| 34 | preserves {M N} f hf := by |
| 35 | have hmono : Mono f.hom := presheaf_mono_of_mono _ _ f |
| 36 | have hwhisker : Mono (Functor.whiskerRight f.hom CoefficientFlatness.Projective.extendComplexCoefficients) := by |
| 37 | apply NatTrans.mono_of_mono_app |
| 38 | exact Functor.map_mono |
| 39 | (presheafToSheaf (Opens.grothendieckTopology X) (ModuleCat ℂ)) |
| 40 | (Functor.whiskerRight f.hom CoefficientFlatness.Projective.extendComplexCoefficients) |
| 41 | |
| 42 | instance restrictComplexSheaf_preservesInjectives (X : TopCat.{0}) : |
| 43 | (restrictComplexSheaf X).PreservesInjectiveObjects := |
| 44 | Functor.preservesInjectiveObjects_of_adjunction_of_preservesMonomorphisms |
| 45 | (complexSheafAdjunction X) |
| 46 | |
| 47 | def restrictComplexSheafIso (X : TopCat.{0}) : |
| 48 | Sheaf.composeAndSheafify (Opens.grothendieckTopology X) |
| 49 | (ModuleCat.restrictScalars (Int.castRingHom ℂ)) ≅ restrictComplexSheaf X := |
| 50 | Functor.isoWhiskerLeft (sheafToPresheaf _ _) |
| 51 | (sheafComposeNatIso (Opens.grothendieckTopology X) |
| 52 | (ModuleCat.restrictScalars (Int.castRingHom ℂ)) |
| 53 | (sheafificationAdjunction _ _) (sheafificationAdjunction _ _)) ≪≫ |
| 54 | (Functor.associator _ _ _).symm ≪≫ |
| 55 | Functor.isoWhiskerRight (asIso (sheafificationAdjunction _ _).counit) _ ≪≫ |
| 56 | Functor.leftUnitor _ |
| 57 | |
| 58 | instance restrictComplexSheaf_preservesFiniteLimits (X : TopCat.{0}) : |
| 59 | PreservesFiniteLimits (restrictComplexSheaf X) := by |
| 60 | have := (complexSheafAdjunction X).isRightAdjoint |
| 61 | infer_instance |
| 62 | |
| 63 | instance restrictComplexSheaf_preservesFiniteColimits (X : TopCat.{0}) : |
| 64 | PreservesFiniteColimits (restrictComplexSheaf X) := by |
| 65 | have := (Sheaf.adjunction (Opens.grothendieckTopology X) |
| 66 | (ModuleCat.restrictCoextendScalarsAdj (Int.castRingHom ℂ))).isLeftAdjoint |
| 67 | exact preservesFiniteColimits_of_natIso (restrictComplexSheafIso X) |
| 68 | |
| 69 | instance restrictComplexSheaf_additive (X : TopCat.{0}) : |
| 70 | (restrictComplexSheaf X).Additive where |
| 71 | map_add := by |
| 72 | intro M N f g |
| 73 | apply Sheaf.hom_ext |
| 74 | ext U x |
| 75 | rfl |
| 76 | |
| 77 | /-- The coefficient adjunction extends to the genuine higher Ext groups. -/ |
| 78 | def complexSheafExtAdjunction (X : TopCat.{0}) |
| 79 | [HasExt.{1} (Sheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℤ))] |
| 80 | [HasExt.{1} (Sheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ))] |
| 81 | (M : Sheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℤ)) |
| 82 | (N : Sheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ)) (n : ℕ) : |
| 83 | Abelian.Ext ((extendComplexSheaf X).obj M) N n ≃+ |
| 84 | Abelian.Ext M ((restrictComplexSheaf X).obj N) n := |
| 85 | ExtAdjunction.Projective.extAdjunction (restrictComplexSheaf X) M (complexSheafAdjunction X) N n |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.SheafCohomology.Coefficients.Projective |