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.IntrinsicPadic.ConeSectionData |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Cech.RefinementConeComponentCoordinates |
| 3 | |
| 4 | /-! # Geometric Cone -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.GeometricCone.IntrinsicPadicGeometricConeTotalMaps |
| 11 | |
| 12 | /-! The actual original edge, literal cone edges and refinement |
| 13 | cochain maps with their source and target total complexes fixed. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | variable (p : ℕ) [Fact p.Prime] |
| 17 | {X₁ X₂ : Over (Spec (CommRingCat.of ℤ_[p]))} |
| 18 | [IsProper X₁.hom] [Smooth X₁.hom] [IsProper X₂.hom] [Smooth X₂.hom] |
| 19 | [X₁.left.IsSeparated] [X₂.left.IsSeparated] |
| 20 | {Y₁ Y₂ : Over (Spec (CommRingCat.of (ZMod p)))} [IsSeparated Y₁.hom] [IsSeparated Y₂.hom] |
| 21 | (u : X₁ ⟶ X₂) (v : Y₁ ⟶ Y₂) (f₁ : Y₁.left ⟶ X₁.left) (f₂ : Y₂.left ⟶ X₂.left) |
| 22 | (hp₁ : IsPullback f₁ Y₁.hom X₁.hom (Spec.map (CommRingCat.ofHom (PadicInt.toZMod : ℤ_[p] →+* ZMod p)))) |
| 23 | (hp₂ : IsPullback f₂ Y₂.hom X₂.hom (Spec.map (CommRingCat.ofHom (PadicInt.toZMod : ℤ_[p] →+* ZMod p)))) |
| 24 | (hsquare : f₁ ≫ u.left = v.left ≫ f₂) (n : ℕ) |
| 25 | (I₁ : InjectiveResolution (IntegralComparison.BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 26 | (J := Ideal.span {(p : WittVector p (ZMod p))}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p (ZMod p)) |
| 27 | (IntegralComparison.Witt.Crystalline.wittStructureMap p (ZMod p) Y₁) n)) |
| 28 | (I₂ : InjectiveResolution (IntegralComparison.BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 29 | (J := Ideal.span {(p : WittVector p (ZMod p))}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p (ZMod p)) |
| 30 | (IntegralComparison.Witt.Crystalline.wittStructureMap p (ZMod p) Y₂) n)) |
| 31 | |
| 32 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := WittVector p (ZMod p)) |
| 33 | local notation "U" => OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.Cover.IntrinsicPadicGeometricCover.pairs p u |
| 34 | |
| 35 | local instance limits : HasLimitsOfSize.{0, 0} (ModuleCat.{2} R) := ModuleCat.hasLimitsOfSize.{0, 0, 2, 1} |
| 36 | local instance colimits : HasColimitsOfSize.{0, 0} (ModuleCat.{2} R) := ModuleCat.hasColimitsOfSize.{2, 1, 0, 0} R |
| 37 | |
| 38 | def sourceOld : CochainComplex (ModuleCat.{2} R) ℕ := |
| 39 | CechPresheaf.RefinedHomotopy.CechPresheafRefinedHomotopy.total.{1, 2} R (CechSliceResolution.IntrinsicPadicCechSliceResolution.opens p X₁) |
| 40 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceOldSections p f₁ n I₁) |
| 41 | |
| 42 | def sourceNew : CochainComplex (ModuleCat.{2} R) ℕ := |
| 43 | CechPresheaf.RefinedHomotopy.CechPresheafRefinedHomotopy.total.{1, 2} R U |
| 44 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceNewSections p u f₁ n I₁) |
| 45 | |
| 46 | def sourceOriginalEdge : ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceGlobal p n I₁ ⟶ sourceOld p f₁ n I₁ := |
| 47 | TypedReferenceEdgeData.IntrinsicPadicTypedReferenceEdgeData.edge p X₁ Y₁ f₁ n I₁ |
| 48 | |
| 49 | def sourceOldEdge : ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceGlobal p n I₁ ⟶ sourceOld p f₁ n I₁ := |
| 50 | CechPresheaf.ConeTotal.CechPresheafConeTotal.map (CechSliceResolution.IntrinsicPadicCechSliceResolution.opens p X₁) |
| 51 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceOldSections p f₁ n I₁) |
| 52 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceGlobal p n I₁) |
| 53 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceOldCone p f₁ n I₁) |
| 54 | |
| 55 | def sourceNewEdge : ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceGlobal p n I₁ ⟶ sourceNew p u f₁ n I₁ := |
| 56 | CechPresheaf.ConeTotal.CechPresheafConeTotal.map U |
| 57 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceNewSections p u f₁ n I₁) |
| 58 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceGlobal p n I₁) |
| 59 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceNewCone p u f₁ n I₁) |
| 60 | |
| 61 | def sourceRefinement : sourceOld p f₁ n I₁ ⟶ sourceNew p u f₁ n I₁ := |
| 62 | GlobalRefinementMaps.IntrinsicPadicGeometricGlobalRefinementMaps.sourceMap p u f₁ n I₁ |
| 63 | |
| 64 | def targetOld : CochainComplex (ModuleCat.{2} R) ℕ := |
| 65 | CechPresheaf.RefinedHomotopy.CechPresheafRefinedHomotopy.total.{1, 2} R (CechSliceResolution.IntrinsicPadicCechSliceResolution.opens p X₂) |
| 66 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetOldSections p f₂ n I₂) |
| 67 | |
| 68 | def targetNew : CochainComplex (ModuleCat.{2} R) ℕ := |
| 69 | CechPresheaf.RefinedHomotopy.CechPresheafRefinedHomotopy.total.{1, 2} R U |
| 70 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetNewSections p u f₂ n I₂) |
| 71 | |
| 72 | def targetOriginalEdge : ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetGlobal p n I₂ ⟶ targetOld p f₂ n I₂ := |
| 73 | TypedReferenceEdgeData.IntrinsicPadicTypedReferenceEdgeData.edge p X₂ Y₂ f₂ n I₂ |
| 74 | |
| 75 | def targetOldEdge : ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetGlobal p n I₂ ⟶ targetOld p f₂ n I₂ := |
| 76 | CechPresheaf.ConeTotal.CechPresheafConeTotal.map (CechSliceResolution.IntrinsicPadicCechSliceResolution.opens p X₂) |
| 77 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetOldSections p f₂ n I₂) |
| 78 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetGlobal p n I₂) |
| 79 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetOldCone p f₂ n I₂) |
| 80 | |
| 81 | def targetNewEdge : ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetGlobal p n I₂ ⟶ targetNew p u f₂ n I₂ := |
| 82 | CechPresheaf.ConeTotal.CechPresheafConeTotal.map U |
| 83 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetNewSections p u f₂ n I₂) |
| 84 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetGlobal p n I₂) |
| 85 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetNewCone p u f₂ n I₂) |
| 86 | |
| 87 | def targetRefinement : targetOld p f₂ n I₂ ⟶ targetNew p u f₂ n I₂ := |
| 88 | GlobalRefinementMaps.IntrinsicPadicGeometricGlobalRefinementMaps.targetMap p u f₂ n I₂ |
| 89 | |
| 90 | end NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.GeometricCone.IntrinsicPadicGeometricConeTotalMaps |
| 91 | |
| 92 | namespace NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.GeometricCone.IntrinsicPadicGeometricConeOldEdgeCoordinates |
| 93 | |
| 94 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 95 | |
| 96 | open OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.GeometricCone.IntrinsicPadicGeometricConeTotalMaps |
| 97 | |
| 98 | variable (p : ℕ) [Fact p.Prime] |
| 99 | {X₁ X₂ : Over (Spec (CommRingCat.of ℤ_[p]))} |
| 100 | [IsProper X₁.hom] [Smooth X₁.hom] [IsProper X₂.hom] [Smooth X₂.hom] |
| 101 | [X₁.left.IsSeparated] [X₂.left.IsSeparated] |
| 102 | {Y₁ Y₂ : Over (Spec (CommRingCat.of (ZMod p)))} [IsSeparated Y₁.hom] [IsSeparated Y₂.hom] |
| 103 | (u : X₁ ⟶ X₂) (v : Y₁ ⟶ Y₂) (f₁ : Y₁.left ⟶ X₁.left) (f₂ : Y₂.left ⟶ X₂.left) |
| 104 | (hp₁ : IsPullback f₁ Y₁.hom X₁.hom (Spec.map (CommRingCat.ofHom (PadicInt.toZMod : ℤ_[p] →+* ZMod p)))) |
| 105 | (hp₂ : IsPullback f₂ Y₂.hom X₂.hom (Spec.map (CommRingCat.ofHom (PadicInt.toZMod : ℤ_[p] →+* ZMod p)))) |
| 106 | (hsquare : f₁ ≫ u.left = v.left ≫ f₂) (n : ℕ) |
| 107 | (I₁ : InjectiveResolution (IntegralComparison.BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 108 | (J := Ideal.span {(p : WittVector p (ZMod p))}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p (ZMod p)) |
| 109 | (IntegralComparison.Witt.Crystalline.wittStructureMap p (ZMod p) Y₁) n)) |
| 110 | (I₂ : InjectiveResolution (IntegralComparison.BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 111 | (J := Ideal.span {(p : WittVector p (ZMod p))}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p (ZMod p)) |
| 112 | (IntegralComparison.Witt.Crystalline.wittStructureMap p (ZMod p) Y₂) n)) |
| 113 | |
| 114 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := WittVector p (ZMod p)) |
| 115 | local notation "U" => OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.Cover.IntrinsicPadicGeometricCover.pairs p u |
| 116 | |
| 117 | local instance limits : HasLimitsOfSize.{0, 0} (ModuleCat.{2} R) := ModuleCat.hasLimitsOfSize.{0, 0, 2, 1} |
| 118 | local instance colimits : HasColimitsOfSize.{0, 0} (ModuleCat.{2} R) := ModuleCat.hasColimitsOfSize.{2, 1, 0, 0} R |
| 119 | |
| 120 | omit [IsSeparated Y₁.hom] [IsSeparated Y₂.hom] in |
| 121 | theorem source_old_component : (IntrinsicPadicGeometricConeTotalMaps.sourceOriginalEdge p f₁ n I₁).f 1 = (IntrinsicPadicGeometricConeTotalMaps.sourceOldEdge p f₁ n I₁).f 1 := by |
| 122 | apply ModuleCat.hom_ext |
| 123 | apply LinearMap.ext |
| 124 | intro x |
| 125 | exact ConcreteCategory.congr_hom |
| 126 | (ConeSectionData.IntrinsicPadicGeometricTypedReferenceEdgeComponents.source_edge_component p f₁ n I₁) x |
| 127 | |
| 128 | omit [IsSeparated Y₁.hom] [IsSeparated Y₂.hom] in |
| 129 | theorem target_old_component : (IntrinsicPadicGeometricConeTotalMaps.targetOriginalEdge p f₂ n I₂).f 1 = (IntrinsicPadicGeometricConeTotalMaps.targetOldEdge p f₂ n I₂).f 1 := by |
| 130 | apply ModuleCat.hom_ext |
| 131 | apply LinearMap.ext |
| 132 | intro x |
| 133 | exact ConcreteCategory.congr_hom |
| 134 | (ConeSectionData.IntrinsicPadicGeometricTypedReferenceEdgeComponents.target_edge_component p f₂ n I₂) x |
| 135 | |
| 136 | end NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.GeometricCone.IntrinsicPadicGeometricConeOldEdgeCoordinates |
| 137 | |
| 138 | namespace NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.GeometricCone.IntrinsicPadicGeometricConeTypedSquare |
| 139 | |
| 140 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 141 | |
| 142 | open OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.GeometricCone.IntrinsicPadicGeometricConeTotalMaps |
| 143 | |
| 144 | variable (p : ℕ) [Fact p.Prime] |
| 145 | {X₁ X₂ : Over (Spec (CommRingCat.of ℤ_[p]))} |
| 146 | [IsProper X₁.hom] [Smooth X₁.hom] [IsProper X₂.hom] [Smooth X₂.hom] |
| 147 | [X₁.left.IsSeparated] [X₂.left.IsSeparated] |
| 148 | {Y₁ Y₂ : Over (Spec (CommRingCat.of (ZMod p)))} [IsSeparated Y₁.hom] [IsSeparated Y₂.hom] |
| 149 | (u : X₁ ⟶ X₂) (v : Y₁ ⟶ Y₂) (f₁ : Y₁.left ⟶ X₁.left) (f₂ : Y₂.left ⟶ X₂.left) |
| 150 | (hp₁ : IsPullback f₁ Y₁.hom X₁.hom (Spec.map (CommRingCat.ofHom (PadicInt.toZMod : ℤ_[p] →+* ZMod p)))) |
| 151 | (hp₂ : IsPullback f₂ Y₂.hom X₂.hom (Spec.map (CommRingCat.ofHom (PadicInt.toZMod : ℤ_[p] →+* ZMod p)))) |
| 152 | (hsquare : f₁ ≫ u.left = v.left ≫ f₂) (n : ℕ) |
| 153 | (I₁ : InjectiveResolution (IntegralComparison.BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 154 | (J := Ideal.span {(p : WittVector p (ZMod p))}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p (ZMod p)) |
| 155 | (IntegralComparison.Witt.Crystalline.wittStructureMap p (ZMod p) Y₁) n)) |
| 156 | (I₂ : InjectiveResolution (IntegralComparison.BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 157 | (J := Ideal.span {(p : WittVector p (ZMod p))}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p (ZMod p)) |
| 158 | (IntegralComparison.Witt.Crystalline.wittStructureMap p (ZMod p) Y₂) n)) |
| 159 | |
| 160 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := WittVector p (ZMod p)) |
| 161 | local notation "U" => OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.Cover.IntrinsicPadicGeometricCover.pairs p u |
| 162 | |
| 163 | local instance limits : HasLimitsOfSize.{0, 0} (ModuleCat.{2} R) := ModuleCat.hasLimitsOfSize.{0, 0, 2, 1} |
| 164 | local instance colimits : HasColimitsOfSize.{0, 0} (ModuleCat.{2} R) := ModuleCat.hasColimitsOfSize.{2, 1, 0, 0} R |
| 165 | |
| 166 | omit [IsSeparated Y₁.hom] [IsSeparated Y₂.hom] in |
| 167 | theorem source_square : (IntrinsicPadicGeometricConeTotalMaps.sourceOriginalEdge p f₁ n I₁).f 1 ≫ (IntrinsicPadicGeometricConeTotalMaps.sourceRefinement p u f₁ n I₁).f 1 = |
| 168 | (IntrinsicPadicGeometricConeTotalMaps.sourceNewEdge p u f₁ n I₁).f 1 := |
| 169 | Cech.RefinementConeComponentCoordinates.CechRefinementConeComponentCoordinates.component.{1, 2} R (Affine.MapPairs.AffineMapPairs.source u.left) U |
| 170 | (CechSliceResolution.IntrinsicPadicCechSliceResolution.opens p X₁) (Cover.IntrinsicPadicGeometricCoverRefinements.source p u) |
| 171 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceOldSections p f₁ n I₁) |
| 172 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceGlobal p n I₁) |
| 173 | (IntrinsicPadicGeometricConeTotalMaps.sourceOriginalEdge p f₁ n I₁) |
| 174 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceOldCone p f₁ n I₁) |
| 175 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.sourceNewCone p u f₁ n I₁) |
| 176 | (IntrinsicPadicGeometricConeOldEdgeCoordinates.source_old_component p f₁ n I₁) |
| 177 | (fun W => ConeSectionData.IntrinsicPadicGeometricConeSectionData.source_component p u f₁ n I₁ W) |
| 178 | |
| 179 | omit [IsSeparated Y₁.hom] [IsSeparated Y₂.hom] in |
| 180 | theorem target_square : (IntrinsicPadicGeometricConeTotalMaps.targetOriginalEdge p f₂ n I₂).f 1 ≫ (IntrinsicPadicGeometricConeTotalMaps.targetRefinement p u f₂ n I₂).f 1 = |
| 181 | (IntrinsicPadicGeometricConeTotalMaps.targetNewEdge p u f₂ n I₂).f 1 := |
| 182 | Cech.RefinementConeComponentCoordinates.CechRefinementConeComponentCoordinates.component.{1, 2} R (Affine.MapPairs.AffineMapPairs.target u.left) U |
| 183 | (CechSliceResolution.IntrinsicPadicCechSliceResolution.opens p X₂) (Cover.IntrinsicPadicGeometricCoverRefinements.target p u) |
| 184 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetOldSections p f₂ n I₂) |
| 185 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetGlobal p n I₂) |
| 186 | (IntrinsicPadicGeometricConeTotalMaps.targetOriginalEdge p f₂ n I₂) |
| 187 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetOldCone p f₂ n I₂) |
| 188 | (ConeSectionData.IntrinsicPadicGeometricConeSectionData.targetNewCone p u f₂ n I₂) |
| 189 | (IntrinsicPadicGeometricConeOldEdgeCoordinates.target_old_component p f₂ n I₂) |
| 190 | (fun W => ConeSectionData.IntrinsicPadicGeometricConeSectionData.target_component p u f₂ n I₂ W) |
| 191 | |
| 192 | end NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.GeometricCone.IntrinsicPadicGeometricConeTypedSquare |
| 193 | |
| 194 | end |
| 195 | |
| 196 | end OAI |