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.ScalarImage |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.DeRham.ImageComposition |
| 3 | |
| 4 | /-! # Constant Scalar -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.ConstantScalar.SectionScalarChange |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Constant coefficient comparison normalized by actual global-section units. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite |
| 15 | |
| 16 | variable {R S : Type} [Field R] [Field S] (σ : R ≃+* S) |
| 17 | (X : Over (Spec (CommRingCat.of S))) |
| 18 | |
| 19 | def moduleCoefficientAdjunction : |
| 20 | ModuleCat.restrictScalars σ.toRingHom ⊣ ModuleCat.restrictScalars σ.symm.toRingHom := |
| 21 | (ModuleCat.restrictScalarsEquivalenceOfRingEquiv σ).toAdjunction |
| 22 | |
| 23 | def constantScalarIso : |
| 24 | constantSheaf (Opens.grothendieckTopology X.left) (ModuleCat S) ⋙ SheafScalarChange.SectionScalarChange.sheafRestriction σ X ≅ |
| 25 | ModuleCat.restrictScalars σ.toRingHom ⋙ |
| 26 | constantSheaf (Opens.grothendieckTopology X.left) (ModuleCat R) := |
| 27 | constantCommuteCompose (Opens.grothendieckTopology X.left) (ModuleCat.restrictScalars σ.toRingHom) |
| 28 | |
| 29 | theorem constantScalarIso_inv_unit (M : ModuleCat S) : |
| 30 | (DeRham.ImageComposition.constantAdjunction (ScalarFormsChange.SectionScalarChange.restrictBase σ.toRingHom X)).homEquiv |
| 31 | ((ModuleCat.restrictScalars σ.toRingHom).obj M) |
| 32 | ((SheafScalarChange.SectionScalarChange.sheafRestriction σ X).obj ((constantSheaf (Opens.grothendieckTopology X.left) |
| 33 | (ModuleCat S)).obj M)) ((constantScalarIso σ X).inv.app M) = |
| 34 | (ModuleCat.restrictScalars σ.toRingHom).map ((DeRham.ImageComposition.constantAdjunction X).unit.app M) := by |
| 35 | let J := Opens.grothendieckTopology X.left |
| 36 | let C := ModuleCat.restrictScalars σ.toRingHom |
| 37 | let P := (Functor.const X.left.Opensᵒᵖ).obj M |
| 38 | let a := sheafificationAdjunction J (ModuleCat S) |
| 39 | let b := sheafificationAdjunction J (ModuleCat R) |
| 40 | let e := (Functor.constComp X.left.Opensᵒᵖ M C).symm |
| 41 | let U := sheafToPresheaf J (ModuleCat R) |
| 42 | let L := presheafToSheaf J (ModuleCat R) |
| 43 | let t := (sheafComposeNatTrans J C a b).app P |
| 44 | have h := sheafComposeNatTrans_fac J C a b P |
| 45 | have he : b.unit.app ((Functor.const X.left.Opensᵒᵖ).obj (C.obj M)) ≫ U.map (L.map e.hom) = |
| 46 | e.hom ≫ b.unit.app (P ⋙ C) := (b.unit.naturality e.hom).symm |
| 47 | have ht : b.unit.app ((Functor.const X.left.Opensᵒᵖ).obj (C.obj M)) ≫ |
| 48 | U.map (L.map e.hom ≫ t) = e.hom ≫ Functor.whiskerRight (a.unit.app P) C := by |
| 49 | rw [U.map_comp, ← Category.assoc, he, Category.assoc, h] |
| 50 | rfl |
| 51 | apply ModuleCat.hom_ext |
| 52 | apply LinearMap.ext |
| 53 | intro x |
| 54 | exact ConcreteCategory.congr_hom (congrArg (fun t => t.app (op (⊤ : X.left.Opens))) ht) x |
| 55 | |
| 56 | end |
| 57 | |
| 58 | section |
| 59 | |
| 60 | /-! The independently specified constant-sheaf comparison is the native adjunction comparison. -/ |
| 61 | |
| 62 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 63 | |
| 64 | theorem homEquiv_functor_map {C D : Type*} [Category* C] [Category* D] |
| 65 | {F : C ⥤ D} {G : D ⥤ C} (a : F ⊣ G) {X Y : C} (f : X ⟶ Y) : |
| 66 | a.homEquiv X (F.obj Y) (F.map f) = f ≫ a.unit.app Y := by |
| 67 | simpa only [Category.comp_id, a.homEquiv_id] using |
| 68 | a.homEquiv_naturality_left f (𝟙 (F.obj Y)) |
| 69 | |
| 70 | theorem iso_hom_eq_of_inv_eq {C : Type*} [Category* C] {X Y : C} |
| 71 | (e f : X ≅ Y) (h : e.inv = f.inv) : e.hom = f.hom := |
| 72 | congrArg Iso.inv (show e.symm = f.symm from Iso.ext h) |
| 73 | |
| 74 | variable {R S : Type} [Field R] [Field S] (σ : R ≃+* S) |
| 75 | (X : Over (Spec (CommRingCat.of S))) |
| 76 | |
| 77 | theorem constantScalarIso_normalization (M : ModuleCat S) : |
| 78 | (constantScalarIso σ X).hom.app M = |
| 79 | (((DeRham.ImageComposition.constantAdjunction X).comp (DeRham.ScalarImage.SectionScalarChange.coefficientAdjunction σ X)).leftAdjointUniq |
| 80 | ((moduleCoefficientAdjunction σ).comp |
| 81 | (DeRham.ImageComposition.constantAdjunction (ScalarFormsChange.SectionScalarChange.restrictBase σ.toRingHom X)))).hom.app M := by |
| 82 | let a := DeRham.ImageComposition.constantAdjunction X |
| 83 | let b := DeRham.ScalarImage.SectionScalarChange.coefficientAdjunction σ X |
| 84 | let c := moduleCoefficientAdjunction σ |
| 85 | let d := DeRham.ImageComposition.constantAdjunction (ScalarFormsChange.SectionScalarChange.restrictBase σ.toRingHom X) |
| 86 | let e := (constantScalarIso σ X).app M |
| 87 | have hc : (c.comp d).homEquiv M |
| 88 | ((SheafScalarChange.SectionScalarChange.sheafRestriction σ X).obj ((constantSheaf (Opens.grothendieckTopology X.left) |
| 89 | (ModuleCat S)).obj M)) e.inv = (a.comp b).unit.app M := by |
| 90 | rw [Adjunction.comp_homEquiv] |
| 91 | change c.homEquiv M _ (d.homEquiv _ _ e.inv) = (a.comp b).unit.app M |
| 92 | erw [constantScalarIso_inv_unit σ X M] |
| 93 | exact homEquiv_functor_map c (a.unit.app M) |
| 94 | have hi := ((c.comp d).homEquiv M _).injective |
| 95 | (hc.trans (Adjunction.homEquiv_leftAdjointUniq_hom_app (c.comp d) (a.comp b) M).symm) |
| 96 | apply iso_hom_eq_of_inv_eq e (((a.comp b).leftAdjointUniq (c.comp d)).app M) |
| 97 | exact hi.trans (Adjunction.leftAdjointUniq_inv_app (a.comp b) (c.comp d) M).symm |
| 98 | |
| 99 | end |
| 100 | |
| 101 | section |
| 102 | |
| 103 | /-! Canonical constant-sheaf identifications commute with coefficient change and inverse image. -/ |
| 104 | |
| 105 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 106 | |
| 107 | variable {R S : Type} [Field R] [Field S] (σ : R ≃+* S) |
| 108 | {X Y : Over (Spec (CommRingCat.of S))} (f : X ⟶ Y) |
| 109 | |
| 110 | def constantPullbackIso {T : Type} [CommRing T] |
| 111 | {V W : Over (Spec (CommRingCat.of T))} (g : V ⟶ W) : |
| 112 | constantSheaf (Opens.grothendieckTopology W.left) (ModuleCat T) ⋙ DeRham.Int.inverseImage g ≅ |
| 113 | constantSheaf (Opens.grothendieckTopology V.left) (ModuleCat T) := |
| 114 | ((DeRham.ImageComposition.constantAdjunction W).comp (DeRham.Int.imageAdjunction g)).leftAdjointUniq |
| 115 | (DeRham.ImageComposition.constantAdjunction V) |
| 116 | |
| 117 | def sourceConstantRouteIso : |
| 118 | constantSheaf (Opens.grothendieckTopology Y.left) (ModuleCat S) ⋙ |
| 119 | DeRham.Int.inverseImage f ⋙ SheafScalarChange.SectionScalarChange.sheafRestriction σ X ≅ |
| 120 | ModuleCat.restrictScalars σ.toRingHom ⋙ |
| 121 | constantSheaf (Opens.grothendieckTopology X.left) (ModuleCat R) := |
| 122 | ((DeRham.ImageComposition.constantAdjunction Y).comp |
| 123 | ((DeRham.Int.imageAdjunction f).comp (DeRham.ScalarImage.SectionScalarChange.coefficientAdjunction σ X))).leftAdjointUniq |
| 124 | ((moduleCoefficientAdjunction σ).comp (DeRham.ImageComposition.constantAdjunction (ScalarFormsChange.SectionScalarChange.restrictBase σ.toRingHom X))) |
| 125 | |
| 126 | def targetConstantRouteIso : |
| 127 | constantSheaf (Opens.grothendieckTopology Y.left) (ModuleCat S) ⋙ |
| 128 | SheafScalarChange.SectionScalarChange.sheafRestriction σ Y ⋙ DeRham.Int.inverseImage (DeRham.ScalarImage.SectionScalarChange.restrictMap σ f) ≅ |
| 129 | ModuleCat.restrictScalars σ.toRingHom ⋙ |
| 130 | constantSheaf (Opens.grothendieckTopology X.left) (ModuleCat R) := |
| 131 | ((DeRham.ImageComposition.constantAdjunction Y).comp |
| 132 | ((DeRham.ScalarImage.SectionScalarChange.coefficientAdjunction σ Y).comp (DeRham.Int.imageAdjunction (DeRham.ScalarImage.SectionScalarChange.restrictMap σ f)))).leftAdjointUniq |
| 133 | ((moduleCoefficientAdjunction σ).comp (DeRham.ImageComposition.constantAdjunction (ScalarFormsChange.SectionScalarChange.restrictBase σ.toRingHom X))) |
| 134 | |
| 135 | theorem sourceConstantRouteIso_normalization (M : ModuleCat S) : |
| 136 | (sourceConstantRouteIso σ f).hom.app M = |
| 137 | (SheafScalarChange.SectionScalarChange.sheafRestriction σ X).map ((constantPullbackIso f).hom.app M) ≫ |
| 138 | (constantScalarIso σ X).hom.app M := by |
| 139 | let a := DeRham.ImageComposition.constantAdjunction Y |
| 140 | let b := DeRham.Int.imageAdjunction f |
| 141 | let c := DeRham.ScalarImage.SectionScalarChange.coefficientAdjunction σ X |
| 142 | let d := DeRham.ImageComposition.constantAdjunction X |
| 143 | let e := (moduleCoefficientAdjunction σ).comp (DeRham.ImageComposition.constantAdjunction (ScalarFormsChange.SectionScalarChange.restrictBase σ.toRingHom X)) |
| 144 | have hw := AlgebraicGeometry.Comparison.Betti.AdjunctionComposition.leftAdjointUniq_whiskerRight (a.comp b) d c M |
| 145 | have h := (Adjunction.leftAdjointUniq_trans_app ((a.comp b).comp c) (d.comp c) e M).symm.trans |
| 146 | (congrArg (fun t => t ≫ ((d.comp c).leftAdjointUniq e).hom.app M) hw) |
| 147 | erw [AlgebraicGeometry.Comparison.Betti.AdjunctionComposition.comp_assoc a b c] at h |
| 148 | exact h.trans (congrArg (fun t => (SheafScalarChange.SectionScalarChange.sheafRestriction σ X).map ((constantPullbackIso f).hom.app M) ≫ t) |
| 149 | (constantScalarIso_normalization σ X M).symm) |
| 150 | |
| 151 | theorem targetConstantRouteIso_normalization (M : ModuleCat S) : |
| 152 | (targetConstantRouteIso σ f).hom.app M = |
| 153 | (DeRham.Int.inverseImage (DeRham.ScalarImage.SectionScalarChange.restrictMap σ f)).map ((constantScalarIso σ Y).hom.app M) ≫ |
| 154 | (constantPullbackIso (DeRham.ScalarImage.SectionScalarChange.restrictMap σ f)).hom.app |
| 155 | ((ModuleCat.restrictScalars σ.toRingHom).obj M) := by |
| 156 | let a := DeRham.ImageComposition.constantAdjunction Y |
| 157 | let b := DeRham.ScalarImage.SectionScalarChange.coefficientAdjunction σ Y |
| 158 | let c := DeRham.Int.imageAdjunction (DeRham.ScalarImage.SectionScalarChange.restrictMap σ f) |
| 159 | let m := moduleCoefficientAdjunction σ |
| 160 | let d := DeRham.ImageComposition.constantAdjunction (ScalarFormsChange.SectionScalarChange.restrictBase σ.toRingHom Y) |
| 161 | let e := DeRham.ImageComposition.constantAdjunction (ScalarFormsChange.SectionScalarChange.restrictBase σ.toRingHom X) |
| 162 | have hw := AlgebraicGeometry.Comparison.Betti.AdjunctionComposition.leftAdjointUniq_whiskerRight (a.comp b) (m.comp d) c M |
| 163 | have h := (Adjunction.leftAdjointUniq_trans_app ((a.comp b).comp c) ((m.comp d).comp c) |
| 164 | (m.comp e) M).symm.trans |
| 165 | (congrArg (fun t => t ≫ (((m.comp d).comp c).leftAdjointUniq (m.comp e)).hom.app M) hw) |
| 166 | erw [AlgebraicGeometry.Comparison.Betti.AdjunctionComposition.comp_assoc a b c, AlgebraicGeometry.Comparison.Betti.AdjunctionComposition.comp_assoc m d c, |
| 167 | AlgebraicGeometry.Comparison.Betti.AdjunctionComposition.leftAdjointUniq_whiskerLeft m (d.comp c) e M] at h |
| 168 | exact h.trans (congrArg (fun t => (DeRham.Int.inverseImage (DeRham.ScalarImage.SectionScalarChange.restrictMap σ f)).map t ≫ |
| 169 | (constantPullbackIso (DeRham.ScalarImage.SectionScalarChange.restrictMap σ f)).hom.app ((ModuleCat.restrictScalars σ.toRingHom).obj M)) |
| 170 | (constantScalarIso_normalization σ Y M).symm) |
| 171 | |
| 172 | theorem constantScalarIso_square (M : ModuleCat S) : |
| 173 | (SheafScalarChange.SectionScalarChange.sheafRestriction σ X).map ((constantPullbackIso f).hom.app M) ≫ |
| 174 | (constantScalarIso σ X).hom.app M = |
| 175 | (DeRham.ScalarImage.SectionScalarChange.imageScalarIso σ f).hom.app ((constantSheaf (Opens.grothendieckTopology Y.left) |
| 176 | (ModuleCat S)).obj M) ≫ |
| 177 | (DeRham.Int.inverseImage (DeRham.ScalarImage.SectionScalarChange.restrictMap σ f)).map ((constantScalarIso σ Y).hom.app M) ≫ |
| 178 | (constantPullbackIso (DeRham.ScalarImage.SectionScalarChange.restrictMap σ f)).hom.app |
| 179 | ((ModuleCat.restrictScalars σ.toRingHom).obj M) := by |
| 180 | let a := DeRham.ImageComposition.constantAdjunction Y |
| 181 | let b := (DeRham.Int.imageAdjunction f).comp (DeRham.ScalarImage.SectionScalarChange.coefficientAdjunction σ X) |
| 182 | let c := (DeRham.ScalarImage.SectionScalarChange.coefficientAdjunction σ Y).comp (DeRham.Int.imageAdjunction (DeRham.ScalarImage.SectionScalarChange.restrictMap σ f)) |
| 183 | let d := (moduleCoefficientAdjunction σ).comp (DeRham.ImageComposition.constantAdjunction (ScalarFormsChange.SectionScalarChange.restrictBase σ.toRingHom X)) |
| 184 | have hw := AlgebraicGeometry.Comparison.Betti.AdjunctionComposition.leftAdjointUniq_whiskerLeft a b c M |
| 185 | have h := Adjunction.leftAdjointUniq_trans_app (a.comp b) (a.comp c) d M |
| 186 | erw [hw] at h |
| 187 | exact (sourceConstantRouteIso_normalization σ f M).symm.trans (h.symm.trans |
| 188 | (congrArg (fun t => (DeRham.ScalarImage.SectionScalarChange.imageScalarIso σ f).hom.app |
| 189 | ((constantSheaf (Opens.grothendieckTopology Y.left) (ModuleCat S)).obj M) ≫ t) |
| 190 | (targetConstantRouteIso_normalization σ f M))) |
| 191 | |
| 192 | end |
| 193 | |
| 194 | /-! The native coefficient objects, including the actual scalar-ring identification, commute with pullback. -/ |
| 195 | |
| 196 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 197 | |
| 198 | theorem post_naturality_square {C D E : Type*} [Category* C] [Category* D] [Category* E] |
| 199 | (G : D ⥤ E) (L : C ⥤ D) (H : C ⥤ E) (t : L ⋙ G ⟶ H) |
| 200 | {M N : C} (k : M ⟶ N) {P B : E} {Q : D} |
| 201 | (a : P ⟶ B) (b : B ⟶ H.obj M) (e : P ⟶ G.obj Q) (c : Q ⟶ L.obj M) |
| 202 | (h : a ≫ b = e ≫ G.map c ≫ t.app M) : |
| 203 | a ≫ b ≫ H.map k = e ≫ G.map (c ≫ L.map k) ≫ t.app N := by |
| 204 | rw [← Category.assoc, h, G.map_comp] |
| 205 | have ht : G.map (L.map k) ≫ t.app N = t.app M ≫ H.map k := t.naturality k |
| 206 | simp only [Category.assoc] |
| 207 | rw [ht] |
| 208 | |
| 209 | variable {R S : Type} [Field R] [Field S] (σ : R ≃+* S) |
| 210 | {X Y : Over (Spec (CommRingCat.of S))} (f : X ⟶ Y) |
| 211 | |
| 212 | theorem coefficientSheafIso_square : |
| 213 | (SheafScalarChange.SectionScalarChange.sheafRestriction σ X).map (DeRham.Int.inverseImageConstantIso f).hom ≫ |
| 214 | (SheafScalarChange.SectionScalarChange.coefficientSheafIso σ X).hom = |
| 215 | (DeRham.ScalarImage.SectionScalarChange.imageScalarIso σ f).hom.app (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.coefficientSheaf S Y) ≫ |
| 216 | (DeRham.Int.inverseImage (DeRham.ScalarImage.SectionScalarChange.restrictMap σ f)).map (SheafScalarChange.SectionScalarChange.coefficientSheafIso σ Y).hom ≫ |
| 217 | (DeRham.Int.inverseImageConstantIso (DeRham.ScalarImage.SectionScalarChange.restrictMap σ f)).hom := |
| 218 | post_naturality_square (DeRham.Int.inverseImage (DeRham.ScalarImage.SectionScalarChange.restrictMap σ f)) |
| 219 | (constantSheaf (Opens.grothendieckTopology Y.left) (ModuleCat R)) |
| 220 | (constantSheaf (Opens.grothendieckTopology X.left) (ModuleCat R)) |
| 221 | (constantPullbackIso (DeRham.ScalarImage.SectionScalarChange.restrictMap σ f)).hom |
| 222 | (ModuleCat.restrictScalarsIsoOfEquiv σ).hom |
| 223 | ((SheafScalarChange.SectionScalarChange.sheafRestriction σ X).map (DeRham.Int.inverseImageConstantIso f).hom) |
| 224 | ((constantScalarIso σ X).hom.app (ModuleCat.of S S)) |
| 225 | ((DeRham.ScalarImage.SectionScalarChange.imageScalarIso σ f).hom.app (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.coefficientSheaf S Y)) |
| 226 | ((constantScalarIso σ Y).hom.app (ModuleCat.of S S)) |
| 227 | (constantScalarIso_square σ f (ModuleCat.of S S)) |
| 228 | |
| 229 | end |
| 230 | |
| 231 | end OAI.NumberTheory.PadicHodge.GeometricComparison.ConstantScalar.SectionScalarChange |