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.AffineSheaf |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.OrdinaryGlobal |
| 3 | |
| 4 | /-! # Sheaf Global Data -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.SheafGlobalData.Comparison |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The original global comparison is the map of the genuine de Rham |
| 13 | and resolution sheaf complexes, through the original small-cover |
| 14 | ordinary coordinates and their canonical section units. -/ |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite _root_.HomologicalComplex |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 20 | (n : ℕ) (X : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) |
| 21 | [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] |
| 22 | (Y : Over (Spec (CommRingCat.of k))) [IsSeparated Y.hom] (f : Y.left ⟶ X.left) |
| 23 | (hp : IsPullback f Y.hom X.hom |
| 24 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 25 | (I : InjectiveResolution (BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 26 | (J := Ideal.span {(p : WittVector p k)}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) |
| 27 | (Witt.Crystalline.wittStructureMap p k Y) n)) |
| 28 | |
| 29 | def restriction : Sheaf (Opens.grothendieckTopology X.left) |
| 30 | (ModuleCat.{2} (Crystalline.ExactRestriction.Coeff (B := WittVector p k))) ⥤ |
| 31 | (X.left.affineOpensᵒᵖ ⥤ ModuleCat.{2} (Crystalline.ExactRestriction.Coeff (B := WittVector p k))) := |
| 32 | sheafToPresheaf (Opens.grothendieckTopology X.left) _ ⋙ |
| 33 | GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback (GeometricComparison.Affine.OpenProducts.AffineOpenProducts.inclusion X.left) |
| 34 | |
| 35 | instance restriction_additive : (restriction p k n X).Additive := by |
| 36 | dsimp only [restriction] |
| 37 | infer_instance |
| 38 | |
| 39 | def unit : OrdinarySectionMap.Ordinary.source p k n X ⟶ |
| 40 | ((restriction p k n X).mapHomologicalComplex (.up ℕ)).obj |
| 41 | (ModelSheafComparison.source p k n X) := |
| 42 | (GeometricComparison.ComplexAssemblyPresheaves.ComplexAssemblyCoefficients.iso (OrdinarySectionMap.Ordinary.coefficients p k n) |
| 43 | (Small.OrdinaryCechTotal.Ordinary.diagram (Truncated.Witt.Ring p k n) X)).hom ≫ |
| 44 | ((GeometricComparison.ComplexAssemblyPresheaves.ComplexAssemblyCoefficients.presheaves |
| 45 | (OrdinarySectionMap.Ordinary.coefficients p k n)).mapHomologicalComplex (.up ℕ)).map |
| 46 | ((Small.OrdinaryCechTotal.Ordinary.complexIso (Truncated.Witt.Ring p k n) X).hom ≫ |
| 47 | ((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback (GeometricComparison.Affine.OpenProducts.AffineOpenProducts.inclusion X.left)).mapHomologicalComplex |
| 48 | (.up ℕ)).map (IntrinsicDeRham.SectionUnit.Intrinsic.presheafUnit (Truncated.Witt.Ring p k n) X)) |
| 49 | |
| 50 | omit [Fintype k] [CharP k p] [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] in |
| 51 | theorem unit_component (U : X.left.affineOpens) (q : ℕ) : |
| 52 | ((unit p k n X).f q).app (op U) = |
| 53 | (OrdinarySectionMap.Ordinary.coefficients p k n).map |
| 54 | ((IntrinsicDeRham.SectionUnit.Intrinsic.unit (Truncated.Witt.Ring p k n) X U.val).f q) := by |
| 55 | change 𝟙 _ ≫ (OrdinarySectionMap.Ordinary.coefficients p k n).map |
| 56 | ((𝟙 _ ≫ 𝟙 _) ≫ _) = (OrdinarySectionMap.Ordinary.coefficients p k n).map (𝟙 _ ≫ _) |
| 57 | simp only [Category.id_comp] |
| 58 | rfl |
| 59 | |
| 60 | def affineMap : |
| 61 | ((restriction p k n X).mapHomologicalComplex (.up ℕ)).obj |
| 62 | (ModelSheafComparison.source p k n X) ⟶ |
| 63 | ((SectionBifunctor.sections p k n X Y f).mapHomologicalComplex |
| 64 | (.up ℕ)).obj I.cocomplex := |
| 65 | ((restriction p k n X).mapHomologicalComplex (.up ℕ)).map |
| 66 | (ModelSheafComparison.map p k n X Y f hp I) |
| 67 | |
| 68 | theorem affine_comparison : |
| 69 | unit p k n X ≫ affineMap p k n X Y f hp I = |
| 70 | OrdinarySectionMap.Ordinary.map p k n X Y f hp I := by |
| 71 | apply HomologicalComplex.Hom.ext |
| 72 | funext q |
| 73 | apply NatTrans.ext |
| 74 | funext U |
| 75 | rw [comp_f, NatTrans.comp_app, unit_component] |
| 76 | have h := AffineSheaf.Comparison.unit_affine p k n X Y f hp I U.unop q |
| 77 | refine h.trans ?_ |
| 78 | change 𝟙 _ ≫ _ = _ |
| 79 | exact Category.id_comp _ |
| 80 | |
| 81 | def totalUnit : |
| 82 | (OrdinaryGlobal.OrdinaryComparison.totalFunctor p k n X).obj |
| 83 | (OrdinarySectionMap.Ordinary.source p k n X) ⟶ |
| 84 | (OrdinaryGlobal.OrdinaryComparison.totalFunctor p k n X).obj |
| 85 | (((restriction p k n X).mapHomologicalComplex (.up ℕ)).obj |
| 86 | (ModelSheafComparison.source p k n X)) := |
| 87 | (OrdinaryGlobal.OrdinaryComparison.totalFunctor p k n X).map (unit p k n X) |
| 88 | |
| 89 | def totalMap : |
| 90 | (OrdinaryGlobal.OrdinaryComparison.totalFunctor p k n X).obj |
| 91 | (((restriction p k n X).mapHomologicalComplex (.up ℕ)).obj |
| 92 | (ModelSheafComparison.source p k n X)) ⟶ |
| 93 | FrameCech.Complexes.target p k n X Y f I := |
| 94 | (OrdinaryGlobal.OrdinaryComparison.totalFunctor p k n X).map |
| 95 | (affineMap p k n X Y f hp I) |
| 96 | |
| 97 | end |
| 98 | |
| 99 | /-! The actual total map of the global sheaf comparison agrees with |
| 100 | its original affine ordinary comparison. -/ |
| 101 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite _root_.HomologicalComplex |
| 102 | set_option backward.isDefEq.respectTransparency false |
| 103 | set_option backward.isDefEq.respectTransparency.types false |
| 104 | |
| 105 | private theorem mapped_comp {A B : Type*} [Category A] [Category B] |
| 106 | (F : A ⥤ B) {X Y Z : A} {a : X ⟶ Y} {b : Y ⟶ Z} {c : X ⟶ Z} |
| 107 | (h : a ≫ b = c) : F.map a ≫ F.map b = F.map c := |
| 108 | (F.map_comp a b).symm.trans (congrArg F.map h) |
| 109 | |
| 110 | private theorem insert_factor {C : Type*} [Category C] {A B D E F : C} |
| 111 | {a : A ⟶ B} {b : B ⟶ D} {c : D ⟶ E} {d : B ⟶ E} {e : E ⟶ F} {f : A ⟶ F} |
| 112 | (h : b ≫ c = d) (hf : a ≫ d ≫ e = f) : a ≫ b ≫ c ≫ e = f := by |
| 113 | rw [← Category.assoc b c e, h] |
| 114 | exact hf |
| 115 | |
| 116 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 117 | (n : ℕ) (X : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) |
| 118 | [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] |
| 119 | (Y : Over (Spec (CommRingCat.of k))) [IsSeparated Y.hom] (f : Y.left ⟶ X.left) |
| 120 | (hp : IsPullback f Y.hom X.hom |
| 121 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 122 | (I : InjectiveResolution (BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 123 | (J := Ideal.span {(p : WittVector p k)}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) |
| 124 | (Witt.Crystalline.wittStructureMap p k Y) n)) |
| 125 | |
| 126 | omit [Fintype k] [CharP k p] in |
| 127 | private theorem total_composition |
| 128 | {K L M : CochainComplex (X.left.affineOpensᵒᵖ ⥤ |
| 129 | ModuleCat.{2} (Crystalline.ExactRestriction.Coeff (B := WittVector p k))) ℕ} |
| 130 | {a : K ⟶ L} {b : L ⟶ M} {d : K ⟶ M} (h : a ≫ b = d) : |
| 131 | (OrdinaryGlobal.OrdinaryComparison.totalFunctor p k n X).map a ≫ |
| 132 | (OrdinaryGlobal.OrdinaryComparison.totalFunctor p k n X).map b = |
| 133 | (OrdinaryGlobal.OrdinaryComparison.totalFunctor p k n X).map d := |
| 134 | mapped_comp (OrdinaryGlobal.OrdinaryComparison.totalFunctor p k n X) h |
| 135 | |
| 136 | theorem comparison : totalUnit p k n X ≫ totalMap p k n X Y f hp I = |
| 137 | OrdinaryGlobal.OrdinaryComparison.map p k n X Y f hp I := |
| 138 | total_composition p k n X |
| 139 | (affine_comparison p k n X Y f hp I) |
| 140 | |
| 141 | end |
| 142 | |
| 143 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.SheafGlobalData.Comparison |