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.NumberTheory.PadicHodge.GeometricComparison.DeRham.Int |
| 2 | import Mathlib |
| 3 | |
| 4 | /-! # Iso Eq -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.DeRham.IsoEq |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Pullback by a scheme isomorphism is invertible on the actual form presheaves. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | variable {R : Type} [CommRing R] {X Y : Over (Spec (CommRingCat.of R))} |
| 17 | (f : X ⟶ Y) [IsIso f] |
| 18 | |
| 19 | instance sectionPullback_isIso (U : Y.left.Opens) : |
| 20 | IsIso (CommAlgCat.ofHom (Int.sectionPullback f U)) := by |
| 21 | let : IsIso f.left := inferInstanceAs (IsIso ((Over.forget _).map f)) |
| 22 | apply (ConcreteCategory.isIso_iff_bijective _).mpr |
| 23 | exact ConcreteCategory.bijective_of_isIso (f.left.app U) |
| 24 | |
| 25 | instance formsPullback_isIso (n : ℕ) : IsIso (Int.formsPullback f n) := by |
| 26 | rw [NatTrans.isIso_iff_isIso_app] |
| 27 | intro U |
| 28 | exact inferInstanceAs |
| 29 | (IsIso ((AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsFunctor n).map (CommAlgCat.ofHom (Int.sectionPullback f U.unop)))) |
| 30 | |
| 31 | end |
| 32 | |
| 33 | section |
| 34 | |
| 35 | /-! Exact equivalences of the native Zariski sheaf categories under scheme isomorphisms. -/ |
| 36 | |
| 37 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 38 | |
| 39 | variable {R : Type} [CommRing R] {X Y : Over (Spec (CommRingCat.of R))} |
| 40 | (f : X ⟶ Y) [IsIso f] |
| 41 | |
| 42 | def opensEquivalence : Y.left.Opens ≌ X.left.Opens := |
| 43 | Opens.mapMapIso (((Over.forget _).comp Scheme.forgetToTop).mapIso (asIso f)) |
| 44 | |
| 45 | theorem opensEquivalence_functor : (opensEquivalence f).functor = Opens.map f.left.base := rfl |
| 46 | |
| 47 | theorem opensEquivalence_inverse : |
| 48 | (opensEquivalence f).inverse = Opens.map (inv f).left.base := rfl |
| 49 | |
| 50 | instance opensMap_cocontinuous : (Opens.map f.left.base).IsCocontinuous |
| 51 | (Opens.grothendieckTopology Y.left) (Opens.grothendieckTopology X.left) := by |
| 52 | exact ((opensEquivalence f).toAdjunction.isCocontinuous_iff_coverPreserving |
| 53 | (Opens.grothendieckTopology Y.left) (Opens.grothendieckTopology X.left)).mpr |
| 54 | (coverPreserving_opens_map (inv f).left.base) |
| 55 | |
| 56 | instance opensMap_dense : (Opens.map f.left.base).IsDenseSubsite |
| 57 | (Opens.grothendieckTopology Y.left) (Opens.grothendieckTopology X.left) := by |
| 58 | let e := opensEquivalence f |
| 59 | let : e.functor.IsCocontinuous (Opens.grothendieckTopology Y.left) |
| 60 | (Opens.grothendieckTopology X.left) := opensMap_cocontinuous f |
| 61 | let : e.inverse.IsCocontinuous (Opens.grothendieckTopology X.left) |
| 62 | (Opens.grothendieckTopology Y.left) := opensMap_cocontinuous (inv f) |
| 63 | exact e.isDenseSubsite_functor_of_isCocontinuous _ _ |
| 64 | |
| 65 | instance directImage_isEquivalence : (Int.directImage f).IsEquivalence := |
| 66 | inferInstanceAs ((Opens.map f.left.base).sheafPushforwardContinuous (ModuleCat R) |
| 67 | (Opens.grothendieckTopology Y.left) (Opens.grothendieckTopology X.left)).IsEquivalence |
| 68 | |
| 69 | end |
| 70 | |
| 71 | /-! The native sheaf-complex pullback along a scheme isomorphism is an isomorphism. -/ |
| 72 | |
| 73 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 74 | |
| 75 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal |
| 76 | |
| 77 | variable {R : Type} [CommRing R] {X Y : Over (Spec (CommRingCat.of R))} |
| 78 | (f : X ⟶ Y) [IsIso f] |
| 79 | |
| 80 | instance inverseImage_isEquivalence : (Int.inverseImage f).IsEquivalence := |
| 81 | (Int.imageAdjunction f).isEquivalence_left_of_isEquivalence_right |
| 82 | |
| 83 | instance presheafPullback_isIso : IsIso (Int.presheafPullback f) := by |
| 84 | let : ∀ n : ℕ, IsIso ((Int.presheafPullback f).f n) := fun n => formsPullback_isIso f n |
| 85 | exact HomologicalComplex.Hom.isIso_of_components _ |
| 86 | |
| 87 | def directImageSheafificationIso : |
| 88 | ((presheafToSheaf (Opens.grothendieckTopology Y.left) (ModuleCat R)).mapHomologicalComplex |
| 89 | (ComplexShape.up ℕ)).obj |
| 90 | (((Int.directImagePresheaf f).mapHomologicalComplex (ComplexShape.up ℕ)).obj (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R X)) ≅ |
| 91 | ((Int.directImage f).mapHomologicalComplex (ComplexShape.up ℕ)).obj (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.sheafComplex R X) := |
| 92 | (NatIso.mapHomologicalComplex |
| 93 | ((Opens.map f.left.base).pushforwardContinuousSheafificationCompatibility (ModuleCat R) |
| 94 | (Opens.grothendieckTopology Y.left) (Opens.grothendieckTopology X.left)) |
| 95 | (ComplexShape.up ℕ)).app (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R X) |
| 96 | |
| 97 | theorem directImageSheafificationIso_unit : |
| 98 | (Int.sheafificationComplexAdjunction Y).unit.app |
| 99 | (((Int.directImagePresheaf f).mapHomologicalComplex (ComplexShape.up ℕ)).obj |
| 100 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R X)) ≫ |
| 101 | ((sheafToPresheaf (Opens.grothendieckTopology Y.left) (ModuleCat R)).mapHomologicalComplex |
| 102 | (ComplexShape.up ℕ)).map (directImageSheafificationIso f).hom = |
| 103 | ((Int.directImagePresheaf f).mapHomologicalComplex (ComplexShape.up ℕ)).map |
| 104 | ((Int.sheafificationComplexAdjunction X).unit.app (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R X)) := by |
| 105 | apply HomologicalComplex.Hom.ext |
| 106 | funext n |
| 107 | exact (Opens.map f.left.base).toSheafify_pullbackSheafificationCompatibility (ModuleCat R) |
| 108 | (Opens.grothendieckTopology Y.left) (Opens.grothendieckTopology X.left) |
| 109 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X n) |
| 110 | |
| 111 | theorem sheafDirectImage_eq_iso : Int.sheafDirectImage f = |
| 112 | ((presheafToSheaf (Opens.grothendieckTopology Y.left) (ModuleCat R)).mapHomologicalComplex |
| 113 | (ComplexShape.up ℕ)).map (Int.presheafPullback f) ≫ (directImageSheafificationIso f).hom := by |
| 114 | let adj := Int.sheafificationComplexAdjunction Y |
| 115 | let U := (sheafToPresheaf (Opens.grothendieckTopology Y.left) (ModuleCat R)).mapHomologicalComplex |
| 116 | (ComplexShape.up ℕ) |
| 117 | let D := (Int.directImagePresheaf f).mapHomologicalComplex (ComplexShape.up ℕ) |
| 118 | apply (adj.homEquiv (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R Y) |
| 119 | (((Int.directImage f).mapHomologicalComplex (ComplexShape.up ℕ)).obj (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.sheafComplex R X))).injective |
| 120 | rw [show (adj.homEquiv (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R Y) |
| 121 | (((Int.directImage f).mapHomologicalComplex (ComplexShape.up ℕ)).obj (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.sheafComplex R X))) |
| 122 | (Int.sheafDirectImage f) = Int.presheafToDirectImageSheafComplex f from |
| 123 | (adj.homEquiv _ _).apply_symm_apply (Int.presheafToDirectImageSheafComplex f), |
| 124 | Adjunction.homEquiv_unit] |
| 125 | change Int.presheafToDirectImageSheafComplex f = |
| 126 | adj.unit.app (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R Y) ≫ |
| 127 | U.map (_ ≫ (directImageSheafificationIso f).hom) |
| 128 | rw [U.map_comp, ← Category.assoc] |
| 129 | have hn := adj.unit.naturality (Int.presheafPullback f) |
| 130 | change Int.presheafPullback f ≫ adj.unit.app (D.obj (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R X)) = |
| 131 | adj.unit.app (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R Y) ≫ U.map _ at hn |
| 132 | rw [← hn, Category.assoc, directImageSheafificationIso_unit] |
| 133 | rfl |
| 134 | |
| 135 | instance sheafDirectImage_isIso : IsIso (Int.sheafDirectImage f) := by |
| 136 | rw [sheafDirectImage_eq_iso] |
| 137 | exact (((presheafToSheaf (Opens.grothendieckTopology Y.left) (ModuleCat R)).mapHomologicalComplex |
| 138 | (ComplexShape.up ℕ)).mapIso (asIso (Int.presheafPullback f)) ≪≫ |
| 139 | directImageSheafificationIso f).isIso_hom |
| 140 | |
| 141 | end |
| 142 | |
| 143 | end OAI.NumberTheory.PadicHodge.GeometricComparison.DeRham.IsoEq |