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.IntegralComparison.TruncatedModel.SheafSourceCoordinates |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.SheafGlobal |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.ModelResolutionGlobal |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.Intrinsic |
| 5 | |
| 6 | /-! # Sheaf Product -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.SheafProduct.OrderedComparison |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! Product coordinates for the actual sheaf comparison, with the |
| 15 | naturality square proved before specializing the resolution. -/ |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.HomologicalComplex |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | theorem product_square |
| 21 | (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 22 | (n : ℕ) (X : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) |
| 23 | [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] |
| 24 | (K L : CochainComplex (X.left.Opensᵒᵖ ⥤ |
| 25 | ModuleCat.{2} (Crystalline.ExactRestriction.Coeff (B := WittVector p k))) ℕ) |
| 26 | (N : CochainComplex (X.left.affineOpensᵒᵖ ⥤ |
| 27 | ModuleCat.{2} (Crystalline.ExactRestriction.Coeff (B := WittVector p k))) ℕ) |
| 28 | (e : N ≅ ((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback |
| 29 | (GeometricComparison.Affine.OpenProducts.AffineOpenProducts.inclusion X.left)).mapHomologicalComplex (.up ℕ)).obj L) |
| 30 | (a : K ⟶ L) |
| 31 | (b : ((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback |
| 32 | (GeometricComparison.Affine.OpenProducts.AffineOpenProducts.inclusion X.left)).mapHomologicalComplex (.up ℕ)).obj K ⟶ N) |
| 33 | (hb : b ≫ e.hom = ((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback |
| 34 | (GeometricComparison.Affine.OpenProducts.AffineOpenProducts.inclusion X.left)).mapHomologicalComplex (.up ℕ)).map a) : |
| 35 | (OrdinaryGlobal.OrdinaryComparison.totalFunctor p k n X).map b ≫ |
| 36 | (IntrinsicConeCoordinates.Intrinsic.productIso p k n X L N e).hom = |
| 37 | (Small.OrdinaryCechCoefficientUnit.Ordinary.productIso (Truncated.Witt.Ring p k n) X K).hom ≫ |
| 38 | (OrderedCech.TotalProjection.ordinary |
| 39 | (AlgebraicGeometry.Crystalline.Cohomology.Base.SmallDeRhamCech.BaseSmallDeRhamCech.opens (Truncated.Witt.Ring p k n) X)).map a := by |
| 40 | change (Small.OrdinaryCechCoefficientUnit.Ordinary.affineTotal |
| 41 | (Truncated.Witt.Ring p k n) X).map b ≫ |
| 42 | ((Small.OrdinaryCechCoefficientUnit.Ordinary.affineTotal |
| 43 | (Truncated.Witt.Ring p k n) X).map e.hom ≫ |
| 44 | (Small.OrdinaryCechCoefficientUnit.Ordinary.productIso |
| 45 | (Truncated.Witt.Ring p k n) X L).hom) = _ |
| 46 | rw [← Category.assoc, ← Functor.map_comp, hb] |
| 47 | exact Small.OrdinaryCechCoefficientUnit.Ordinary.product_naturality |
| 48 | (Truncated.Witt.Ring p k n) X a |
| 49 | |
| 50 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 51 | (n : ℕ) (X : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) |
| 52 | [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] |
| 53 | (Y : Over (Spec (CommRingCat.of k))) [IsSeparated Y.hom] (f : Y.left ⟶ X.left) |
| 54 | (hp : IsPullback f Y.hom X.hom |
| 55 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 56 | (I : InjectiveResolution (BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 57 | (J := Ideal.span {(p : WittVector p k)}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) |
| 58 | (Witt.Crystalline.wittStructureMap p k Y) n)) |
| 59 | |
| 60 | abbrev source := ((sheafToPresheaf (Opens.grothendieckTopology X.left) |
| 61 | (ModuleCat.{2} (Crystalline.ExactRestriction.Coeff (B := WittVector p k)))).mapHomologicalComplex |
| 62 | (.up ℕ)).obj (ModelSheafComparison.source p k n X) |
| 63 | |
| 64 | abbrev target := CechIso.ResolutionGlobal.presheaf p k n X Y f I |
| 65 | |
| 66 | def map : source p k n X ⟶ target p k n X Y f I := |
| 67 | ((sheafToPresheaf (Opens.grothendieckTopology X.left) |
| 68 | (ModuleCat.{2} (Crystalline.ExactRestriction.Coeff (B := WittVector p k)))).mapHomologicalComplex |
| 69 | (.up ℕ)).map (ModelSheafComparison.map p k n X Y f hp I) |
| 70 | |
| 71 | def ordinaryMap := (OrderedCech.TotalProjection.ordinary |
| 72 | (AlgebraicGeometry.Crystalline.Cohomology.Base.SmallDeRhamCech.BaseSmallDeRhamCech.opens (Truncated.Witt.Ring p k n) X)).map (OrderedComparison.map p k n X Y f hp I) |
| 73 | |
| 74 | def orderedMap := (OrderedCech.TotalProjection.ordered |
| 75 | (AlgebraicGeometry.Crystalline.Cohomology.Base.SmallDeRhamCech.BaseSmallDeRhamCech.opens (Truncated.Witt.Ring p k n) X)).map (OrderedComparison.map p k n X Y f hp I) |
| 76 | |
| 77 | theorem affine_coordinate : |
| 78 | SheafGlobalData.Comparison.affineMap p k n X Y f hp I ≫ |
| 79 | (CechIso.ResolutionGlobal.affineSectionsIso p k n X Y f I).hom = |
| 80 | ((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback |
| 81 | (GeometricComparison.Affine.OpenProducts.AffineOpenProducts.inclusion X.left)).mapHomologicalComplex (.up ℕ)).map |
| 82 | (OrderedComparison.map p k n X Y f hp I) := by |
| 83 | apply HomologicalComplex.Hom.ext |
| 84 | funext q |
| 85 | apply NatTrans.ext |
| 86 | funext U |
| 87 | apply ModuleCat.hom_ext |
| 88 | apply LinearMap.ext |
| 89 | intro x |
| 90 | rfl |
| 91 | |
| 92 | end |
| 93 | |
| 94 | section |
| 95 | |
| 96 | /-! Naturality of the actual product comparison, with all map carriers |
| 97 | inherited from the checked generic square. -/ |
| 98 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.HomologicalComplex |
| 99 | set_option backward.isDefEq.respectTransparency false |
| 100 | set_option backward.isDefEq.respectTransparency.types false |
| 101 | |
| 102 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 103 | (n : ℕ) (X : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) |
| 104 | [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] |
| 105 | (Y : Over (Spec (CommRingCat.of k))) [IsSeparated Y.hom] (f : Y.left ⟶ X.left) |
| 106 | (hp : IsPullback f Y.hom X.hom |
| 107 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 108 | (I : InjectiveResolution (BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 109 | (J := Ideal.span {(p : WittVector p k)}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) |
| 110 | (Witt.Crystalline.wittStructureMap p k Y) n)) |
| 111 | |
| 112 | abbrev product_naturality := |
| 113 | product_square p k n X (source p k n X) (target p k n X Y f I) |
| 114 | (CechIso.ResolutionGlobal.nativeSections p k n X Y f I) |
| 115 | (CechIso.ResolutionGlobal.affineSectionsIso p k n X Y f I) |
| 116 | (OrderedComparison.map p k n X Y f hp I) |
| 117 | (SheafGlobalData.Comparison.affineMap p k n X Y f hp I) |
| 118 | (affine_coordinate p k n X Y f hp I) |
| 119 | |
| 120 | end |
| 121 | |
| 122 | /-! The ordinary sheaf comparison square, composed with the original |
| 123 | source coordinates before specializing the resolution complexes. -/ |
| 124 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.HomologicalComplex |
| 125 | set_option backward.isDefEq.respectTransparency false |
| 126 | set_option backward.isDefEq.respectTransparency.types false |
| 127 | |
| 128 | private theorem source_paste {C : Type*} [Category C] {A B D E F G : C} |
| 129 | {a : A ⟶ B} {b : B ⟶ D} {c : D ⟶ E} {u : E ⟶ G} |
| 130 | {v : D ⟶ F} {w : F ⟶ G} {d : A ⟶ E} |
| 131 | (h : a ≫ b ≫ c = d) (k : v ≫ w = c ≫ u) : |
| 132 | d ≫ u = a ≫ b ≫ v ≫ w := by |
| 133 | rw [← h] |
| 134 | simp only [Category.assoc] |
| 135 | rw [← k] |
| 136 | |
| 137 | theorem source_chain |
| 138 | (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 139 | (n : ℕ) (X : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) |
| 140 | [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] |
| 141 | (L : CochainComplex (X.left.Opensᵒᵖ ⥤ |
| 142 | ModuleCat.{2} (Crystalline.ExactRestriction.Coeff (B := WittVector p k))) ℕ) |
| 143 | (N : CochainComplex (X.left.affineOpensᵒᵖ ⥤ |
| 144 | ModuleCat.{2} (Crystalline.ExactRestriction.Coeff (B := WittVector p k))) ℕ) |
| 145 | (e : N ≅ ((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback |
| 146 | (GeometricComparison.Affine.OpenProducts.AffineOpenProducts.inclusion X.left)).mapHomologicalComplex (.up ℕ)).obj L) |
| 147 | (a : source p k n X ⟶ L) |
| 148 | (b : ((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback |
| 149 | (GeometricComparison.Affine.OpenProducts.AffineOpenProducts.inclusion X.left)).mapHomologicalComplex (.up ℕ)).obj |
| 150 | (source p k n X) ⟶ N) |
| 151 | (hb : b ≫ e.hom = ((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback |
| 152 | (GeometricComparison.Affine.OpenProducts.AffineOpenProducts.inclusion X.left)).mapHomologicalComplex (.up ℕ)).map a) : |
| 153 | (SheafSourceCoordinates.nativeCoordinates p k n X).hom ≫ |
| 154 | (OrderedCech.TotalProjection.ordinary |
| 155 | (AlgebraicGeometry.Crystalline.Cohomology.Base.SmallDeRhamCech.BaseSmallDeRhamCech.opens (Truncated.Witt.Ring p k n) X)).map a = |
| 156 | (OrdinaryGlobal.OrdinaryComparison.coordinates p k n X).hom ≫ |
| 157 | SheafGlobalData.Comparison.totalUnit p k n X ≫ |
| 158 | (OrdinaryGlobal.OrdinaryComparison.totalFunctor p k n X).map b ≫ |
| 159 | (IntrinsicConeCoordinates.Intrinsic.productIso p k n X L N e).hom := |
| 160 | source_paste (SheafSourceCoordinates.comparison p k n X) |
| 161 | (product_square p k n X (source p k n X) L N e a b hb) |
| 162 | |
| 163 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 164 | (n : ℕ) (X : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) |
| 165 | [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] |
| 166 | (Y : Over (Spec (CommRingCat.of k))) [IsSeparated Y.hom] (f : Y.left ⟶ X.left) |
| 167 | (hp : IsPullback f Y.hom X.hom |
| 168 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 169 | (I : InjectiveResolution (BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 170 | (J := Ideal.span {(p : WittVector p k)}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) |
| 171 | (Witt.Crystalline.wittStructureMap p k Y) n)) |
| 172 | |
| 173 | abbrev chain_comparison := |
| 174 | source_chain p k n X (target p k n X Y f I) |
| 175 | (CechIso.ResolutionGlobal.nativeSections p k n X Y f I) |
| 176 | (CechIso.ResolutionGlobal.affineSectionsIso p k n X Y f I) |
| 177 | (OrderedComparison.map p k n X Y f hp I) |
| 178 | (SheafGlobalData.Comparison.affineMap p k n X Y f hp I) |
| 179 | (affine_coordinate p k n X Y f hp I) |
| 180 | |
| 181 | end |
| 182 | |
| 183 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.SheafProduct.OrderedComparison |