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.SheafProduct |
| 2 | |
| 3 | /-! # Sheaf Homology Data -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.SheafHomologyData.OrderedComparison |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Native ordinary total coordinates and the checked chain square, |
| 12 | transported to homology before specializing the resolution. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.HomologicalComplex |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | namespace Typed |
| 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 | |
| 23 | def nativeCoordinates : |
| 24 | GlobalDeRham.Comparison.complex p k n X ⟶ |
| 25 | IntrinsicConeCoordinates.Intrinsic.ordinaryTotal p k n X (SheafProduct.OrderedComparison.source p k n X) := |
| 26 | (SheafSourceCoordinates.nativeCoordinates p k n X).hom |
| 27 | |
| 28 | def ordinaryMap |
| 29 | {K L : CochainComplex (X.left.Opensᵒᵖ ⥤ |
| 30 | ModuleCat.{2} (Crystalline.ExactRestriction.Coeff (B := WittVector p k))) ℕ} |
| 31 | (a : K ⟶ L) : |
| 32 | IntrinsicConeCoordinates.Intrinsic.ordinaryTotal p k n X K ⟶ |
| 33 | IntrinsicConeCoordinates.Intrinsic.ordinaryTotal p k n X L := |
| 34 | (OrderedCech.TotalProjection.ordinary |
| 35 | (AlgebraicGeometry.Crystalline.Cohomology.Base.SmallDeRhamCech.BaseSmallDeRhamCech.opens (Truncated.Witt.Ring p k n) X)).map a |
| 36 | |
| 37 | variable |
| 38 | (L : CochainComplex (X.left.Opensᵒᵖ ⥤ |
| 39 | ModuleCat.{2} (Crystalline.ExactRestriction.Coeff (B := WittVector p k))) ℕ) |
| 40 | (N : CochainComplex (X.left.affineOpensᵒᵖ ⥤ |
| 41 | ModuleCat.{2} (Crystalline.ExactRestriction.Coeff (B := WittVector p k))) ℕ) |
| 42 | (e : N ≅ ((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback |
| 43 | (GeometricComparison.Affine.OpenProducts.AffineOpenProducts.inclusion X.left)).mapHomologicalComplex (.up ℕ)).obj L) |
| 44 | (a : SheafProduct.OrderedComparison.source p k n X ⟶ L) |
| 45 | (b : ((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback |
| 46 | (GeometricComparison.Affine.OpenProducts.AffineOpenProducts.inclusion X.left)).mapHomologicalComplex (.up ℕ)).obj |
| 47 | (SheafProduct.OrderedComparison.source p k n X) ⟶ N) |
| 48 | (hb : b ≫ e.hom = ((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback |
| 49 | (GeometricComparison.Affine.OpenProducts.AffineOpenProducts.inclusion X.left)).mapHomologicalComplex (.up ℕ)).map a) |
| 50 | |
| 51 | include hb in |
| 52 | theorem chain : |
| 53 | nativeCoordinates p k n X ≫ ordinaryMap p k n X a = |
| 54 | (OrdinaryGlobal.OrdinaryComparison.coordinates p k n X).hom ≫ |
| 55 | SheafGlobalData.Comparison.totalUnit p k n X ≫ |
| 56 | (OrdinaryGlobal.OrdinaryComparison.totalFunctor p k n X).map b ≫ |
| 57 | (IntrinsicConeCoordinates.Intrinsic.productIso p k n X L N e).hom := |
| 58 | SheafProduct.OrderedComparison.source_chain p k n X L N e a b hb |
| 59 | |
| 60 | include hb in |
| 61 | theorem homology_chain (q : ℕ) : |
| 62 | homologyMap (nativeCoordinates p k n X) q ≫ |
| 63 | homologyMap (ordinaryMap p k n X a) q = |
| 64 | homologyMap (OrdinaryGlobal.OrdinaryComparison.coordinates p k n X).hom q ≫ |
| 65 | homologyMap (SheafGlobalData.Comparison.totalUnit p k n X) q ≫ |
| 66 | homologyMap ((OrdinaryGlobal.OrdinaryComparison.totalFunctor p k n X).map b) q ≫ |
| 67 | homologyMap (IntrinsicConeCoordinates.Intrinsic.productIso p k n X L N e).hom q := by |
| 68 | have h := congrArg (fun t : |
| 69 | GlobalDeRham.Comparison.complex p k n X ⟶ |
| 70 | IntrinsicConeCoordinates.Intrinsic.ordinaryTotal p k n X L => |
| 71 | homologyMap t q) (chain p k n X L N e a b hb) |
| 72 | simpa only [homologyMap_comp] using h |
| 73 | |
| 74 | end Typed |
| 75 | |
| 76 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 77 | (n : ℕ) (X : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) |
| 78 | [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] |
| 79 | (Y : Over (Spec (CommRingCat.of k))) [IsSeparated Y.hom] (f : Y.left ⟶ X.left) |
| 80 | (hp : IsPullback f Y.hom X.hom |
| 81 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 82 | (I : InjectiveResolution (BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 83 | (J := Ideal.span {(p : WittVector p k)}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) |
| 84 | (Witt.Crystalline.wittStructureMap p k Y) n)) |
| 85 | |
| 86 | abbrev typed_chain := |
| 87 | Typed.chain p k n X (SheafProduct.OrderedComparison.target p k n X Y f I) |
| 88 | (CechIso.ResolutionGlobal.nativeSections p k n X Y f I) |
| 89 | (CechIso.ResolutionGlobal.affineSectionsIso p k n X Y f I) |
| 90 | (SheafProduct.OrderedComparison.map p k n X Y f hp I) |
| 91 | (SheafGlobalData.Comparison.affineMap p k n X Y f hp I) |
| 92 | (SheafProduct.OrderedComparison.affine_coordinate p k n X Y f hp I) |
| 93 | |
| 94 | abbrev typed_homology_chain (q : ℕ) := |
| 95 | Typed.homology_chain p k n X (SheafProduct.OrderedComparison.target p k n X Y f I) |
| 96 | (CechIso.ResolutionGlobal.nativeSections p k n X Y f I) |
| 97 | (CechIso.ResolutionGlobal.affineSectionsIso p k n X Y f I) |
| 98 | (SheafProduct.OrderedComparison.map p k n X Y f hp I) |
| 99 | (SheafGlobalData.Comparison.affineMap p k n X Y f hp I) |
| 100 | (SheafProduct.OrderedComparison.affine_coordinate p k n X Y f hp I) q |
| 101 | |
| 102 | end |
| 103 | |
| 104 | /-! The ordinary homology comparison follows from the checked chain |
| 105 | square and the original bounded crystalline global comparison. -/ |
| 106 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.HomologicalComplex |
| 107 | set_option backward.isDefEq.respectTransparency false |
| 108 | set_option backward.isDefEq.respectTransparency.types false |
| 109 | |
| 110 | private theorem post_iso {C : Type*} [Category C] {A B D : C} |
| 111 | (a : A ⟶ B) (e : B ≅ D) (b : A ⟶ D) (h : a ≫ e.hom = b) : a = b ≫ e.inv := by |
| 112 | apply (cancel_mono e.hom).mp |
| 113 | simpa only [Category.assoc, Iso.inv_hom_id, Category.comp_id] using h |
| 114 | |
| 115 | private theorem paste_homology |
| 116 | (p : ℕ) [Fact p.Prime] (k : Type) [Field k] |
| 117 | {A B C D E F R : ModuleCat.{2} |
| 118 | (Crystalline.ExactRestriction.Coeff (B := WittVector p k))} |
| 119 | (iso : C ≅ R) {native : A ⟶ D} {ordinary : D ⟶ E} |
| 120 | {coordinates : A ⟶ B} {unit : B ⟶ F} {total : F ⟶ C} |
| 121 | {product : C ⟶ E} {comparison : A ⟶ R} |
| 122 | (hglobal : coordinates ≫ unit ≫ total ≫ iso.hom = comparison) |
| 123 | (hchain : native ≫ ordinary = coordinates ≫ unit ≫ total ≫ product) : |
| 124 | native ≫ ordinary = comparison ≫ iso.inv ≫ product := by |
| 125 | have hc₀ : (coordinates ≫ unit ≫ total) ≫ iso.hom = comparison := by |
| 126 | simpa only [Category.assoc] using hglobal |
| 127 | have hc := post_iso _ iso comparison hc₀ |
| 128 | calc |
| 129 | _ = (coordinates ≫ unit ≫ total) ≫ product := by |
| 130 | simpa only [Category.assoc] using hchain |
| 131 | _ = _ := by rw [hc, Category.assoc] |
| 132 | |
| 133 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 134 | (n : ℕ) (X : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) |
| 135 | [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] |
| 136 | (Y : Over (Spec (CommRingCat.of k))) [IsSeparated Y.hom] (f : Y.left ⟶ X.left) |
| 137 | (hp : IsPullback f Y.hom X.hom |
| 138 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 139 | (I : InjectiveResolution (BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 140 | (J := Ideal.span {(p : WittVector p k)}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) |
| 141 | (Witt.Crystalline.wittStructureMap p k Y) n)) |
| 142 | |
| 143 | abbrev ordinary_homology (q : ℕ) := |
| 144 | paste_homology p k |
| 145 | (product := homologyMap |
| 146 | (ResolutionGlobal.smallProductIso p k n X Y f I).hom q) |
| 147 | (ResolutionIntrinsicHomology.Intrinsic.iso p k n X Y f I q) |
| 148 | (SheafGlobal.Comparison.homology_comparison p k n X Y f hp I q) |
| 149 | (typed_homology_chain p k n X Y f hp I q) |
| 150 | |
| 151 | end |
| 152 | |
| 153 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.SheafHomologyData.OrderedComparison |