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.SourceGlobal |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.AdditiveGlobal |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.FiniteEtaleSourceCoordinates |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.TopFormSourceCoordinates |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.RefinedTransferTrace |
| 6 | |
| 7 | /-! # Serre Global -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.SerreGlobal |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Original Serre classes enter the native global top map through |
| 14 | exactly the original source-output coordinates, on the projective cover |
| 15 | and its finite inverse image. -/ |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.MvPolynomial _root_.HomologicalComplex |
| 17 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | private theorem inverse_output {C D : Type*} [Category C] [Category D] |
| 22 | (F : C ⥤ D) {A B S : C} {T : D} (e : A ≅ B) |
| 23 | (a : B ⟶ S) (s : A ⟶ S) (v : F.obj S ⟶ T) (b : F.obj A ⟶ T) |
| 24 | (hs : e.hom ≫ a = s) (hv : F.map s ≫ v = b) : |
| 25 | F.map a ≫ v = F.map e.inv ≫ b := by |
| 26 | have h : e.inv ≫ s = a := by |
| 27 | rw [← hs, Iso.inv_hom_id_assoc] |
| 28 | rw [← h, F.map_comp, Category.assoc, hv] |
| 29 | |
| 30 | private theorem lift_square_apply {A B C : AddCommGrpCat.{0}} {T : AddCommGrpCat.{2}} |
| 31 | (a : A ⟶ B) (c : A ⟶ C) |
| 32 | (b : AdditiveTop.Comparison.lift.obj B ⟶ T) |
| 33 | (d : AdditiveTop.Comparison.lift.obj C ⟶ T) |
| 34 | (h : AdditiveTop.Comparison.lift.map a ≫ b = |
| 35 | AdditiveTop.Comparison.lift.map c ≫ d) (x : A) : |
| 36 | b (ULift.up.{2,1} (ULift.up.{1,0} (a x))) = |
| 37 | d (ULift.up.{2,1} (ULift.up.{1,0} (c x))) := |
| 38 | ConcreteCategory.congr_hom h (ULift.up.{2,1} (ULift.up.{1,0} x)) |
| 39 | |
| 40 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 41 | (n : ℕ) [IsNoetherianRing (Truncated.Witt.Ring p k n)] |
| 42 | [IsArtinianRing (Truncated.Witt.Ring p k n)] [IsLocalRing (Truncated.Witt.Ring p k n)] |
| 43 | [Module.Injective (Truncated.Witt.Ring p k n) (Truncated.Witt.Ring p k n)] {d : ℕ} |
| 44 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 45 | |
| 46 | namespace Finite |
| 47 | variable (X Y : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) [Nonempty X.left] |
| 48 | [Smooth X.hom] [IsProper X.hom] [GeometricallyConnected X.hom] |
| 49 | [Smooth Y.hom] [IsProper Y.hom] [Y.left.IsSeparated] |
| 50 | (f : Y ⟶ X) [IsFinite f.left] [Etale f.left] |
| 51 | (i : X ⟶ Projective.IntrinsicOverlap.Intrinsic.model (Truncated.Witt.Ring p k n) (d+1)) [IsClosedImmersion i.left] |
| 52 | (Z : Over (Spec (CommRingCat.of k))) [IsSeparated Z.hom] (j : Z.left ⟶ Y.left) |
| 53 | (hp : IsPullback j Z.hom Y.hom |
| 54 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 55 | (I : InjectiveResolution (BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 56 | (J := Ideal.span {(p : WittVector p k)}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) |
| 57 | (Witt.Crystalline.wittStructureMap p k Z) n)) |
| 58 | (g c : ℕ) [SmoothOfRelativeDimension g X.hom] [SmoothOfRelativeDimension g Y.hom] |
| 59 | |
| 60 | abbrev cover := Intrinsic.FiniteEtaleSourceCoordinates.sourceCover X Y f i |
| 61 | abbrev coverFull := Intrinsic.RefinedTransferTrace.inverseCover_top |
| 62 | (Truncated.Witt.Ring p k n) Y X f (Intrinsic.TopFormTrace.cover X i) |
| 63 | (Intrinsic.TopFormTrace.cover_top X i) |
| 64 | abbrev output := PrincipalReference.Source.ReferenceComparison.sourceOutput f.left i.left |
| 65 | (Projective.IntrinsicOverlap.Intrinsic.model (Truncated.Witt.Ring p k n) (d+1)).hom |
| 66 | (AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.coordinateOpenCover (R := Truncated.Witt.Ring p k n) (σ := Fin (d+2))) |
| 67 | (GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf (Truncated.Witt.Ring p k n) Y g) c g |
| 68 | |
| 69 | omit [Fintype k] [CharP k p] [IsNoetherianRing (Truncated.Witt.Ring p k n)] [IsArtinianRing (Truncated.Witt.Ring p k n)] [IsLocalRing (Truncated.Witt.Ring p k n)] [Module.Injective (Truncated.Witt.Ring p k n) (Truncated.Witt.Ring p k n)] [Nonempty ↥X.left] [Smooth X.hom] [IsProper X.hom] [GeometricallyConnected X.hom] [Smooth Y.hom] [IsProper Y.hom] [Y.left.IsSeparated] [IsFinite (Over.Hom.left f)] [Etale (Over.Hom.left f)] [IsClosedImmersion (Over.Hom.left i)] [SmoothOfRelativeDimension g X.hom] [SmoothOfRelativeDimension g Y.hom] in |
| 70 | theorem source_comparison : |
| 71 | (Intrinsic.EtaleProperTraceBase.IntrinsicFinite.serreIso X Y f i g).hom ≫ output p k n X Y f i g c = |
| 72 | SourceGlobal.sourceCoordinates p k n Y g c (cover p k n X Y f i) := by |
| 73 | have h := Intrinsic.FiniteEtaleSourceCoordinates.comparison X Y f i c g |
| 74 | dsimp only [Intrinsic.FiniteEtaleSourceCoordinates.sourceCoordinates] at h |
| 75 | simp only [SourceGlobal.sourceCoordinates, Category.assoc] |
| 76 | convert h using 1 ; (as_aux_lemma => rfl) |
| 77 | |
| 78 | omit [IsNoetherianRing (Truncated.Witt.Ring p k n)] [IsArtinianRing (Truncated.Witt.Ring p k n)] [IsLocalRing (Truncated.Witt.Ring p k n)] [Module.Injective (Truncated.Witt.Ring p k n) (Truncated.Witt.Ring p k n)] [Nonempty ↥X.left] [Smooth X.hom] [IsProper X.hom] [GeometricallyConnected X.hom] [IsFinite (Over.Hom.left f)] [Etale (Over.Hom.left f)] [IsClosedImmersion (Over.Hom.left i)] [SmoothOfRelativeDimension g X.hom] in |
| 79 | theorem comparison : |
| 80 | AdditiveTop.Comparison.lift.map (output p k n X Y f i g c) ≫ |
| 81 | PrincipalSheafValue.globalValue p k n Y Z j hp I g c |
| 82 | (cover p k n X Y f i) (coverFull p k n X Y f i) = |
| 83 | AdditiveTop.Comparison.lift.map (Intrinsic.EtaleProperTraceBase.IntrinsicFinite.serreIso X Y f i g).inv ≫ |
| 84 | ModelTopCoverComparison.globalInput p k n Y Z j hp I g |
| 85 | (cover p k n X Y f i) (coverFull p k n X Y f i) := |
| 86 | inverse_output AdditiveTop.Comparison.lift |
| 87 | (Intrinsic.EtaleProperTraceBase.IntrinsicFinite.serreIso X Y f i g) _ _ _ _ |
| 88 | (source_comparison p k n X Y f i g c) |
| 89 | (SourceGlobal.comparison p k n Y Z j hp I g c |
| 90 | (cover p k n X Y f i) (coverFull p k n X Y f i)) |
| 91 | |
| 92 | section Pointwise |
| 93 | attribute [local irreducible] HomologicalComplex.homology |
| 94 | |
| 95 | omit [IsNoetherianRing (Truncated.Witt.Ring p k n)] [IsArtinianRing (Truncated.Witt.Ring p k n)] [IsLocalRing (Truncated.Witt.Ring p k n)] [Module.Injective (Truncated.Witt.Ring p k n) (Truncated.Witt.Ring p k n)] [Nonempty ↥X.left] [Smooth X.hom] [IsProper X.hom] [GeometricallyConnected X.hom] [IsFinite (Over.Hom.left f)] [Etale (Over.Hom.left f)] [IsClosedImmersion (Over.Hom.left i)] [SmoothOfRelativeDimension g X.hom] in |
| 96 | theorem comparison_apply (x : FiniteEtale.ProperTraceBase.cohomology X Y f i g) : |
| 97 | PrincipalSheafValue.globalValue p k n Y Z j hp I g c |
| 98 | (cover p k n X Y f i) (coverFull p k n X Y f i) |
| 99 | (ULift.up.{2,1} (ULift.up.{1,0} (output p k n X Y f i g c x))) = |
| 100 | ModelTopCoverComparison.globalInput p k n Y Z j hp I g |
| 101 | (cover p k n X Y f i) (coverFull p k n X Y f i) |
| 102 | (ULift.up.{2,1} (ULift.up.{1,0} ((Intrinsic.EtaleProperTraceBase.IntrinsicFinite.serreIso X Y f i g).inv x))) := |
| 103 | lift_square_apply (output p k n X Y f i g c) |
| 104 | (Intrinsic.EtaleProperTraceBase.IntrinsicFinite.serreIso X Y f i g).inv |
| 105 | (PrincipalSheafValue.globalValue p k n Y Z j hp I g c |
| 106 | (cover p k n X Y f i) (coverFull p k n X Y f i)) |
| 107 | (ModelTopCoverComparison.globalInput p k n Y Z j hp I g |
| 108 | (cover p k n X Y f i) (coverFull p k n X Y f i)) |
| 109 | (comparison p k n X Y f i Z j hp I g c) x |
| 110 | end Pointwise |
| 111 | |
| 112 | abbrev bounded_comparison_apply (x : FiniteEtale.ProperTraceBase.cohomology X Y f i g) := |
| 113 | congrArg (AdditiveGlobal.globalHomologyIso p k n Y Z j I (g+g)).hom |
| 114 | (comparison_apply p k n X Y f i Z j hp I g c x) |
| 115 | end Finite |
| 116 | |
| 117 | namespace Smooth |
| 118 | variable (X : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) [Nonempty X.left] |
| 119 | [Smooth X.hom] [IsProper X.hom] [GeometricallyConnected X.hom] [X.left.IsSeparated] |
| 120 | (i : X ⟶ Projective.IntrinsicOverlap.Intrinsic.model (Truncated.Witt.Ring p k n) (d+1)) [IsClosedImmersion i.left] |
| 121 | (Y : Over (Spec (CommRingCat.of k))) [IsSeparated Y.hom] (f : Y.left ⟶ X.left) |
| 122 | (hp : IsPullback f Y.hom X.hom |
| 123 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 124 | (I : InjectiveResolution (BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 125 | (J := Ideal.span {(p : WittVector p k)}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) |
| 126 | (Witt.Crystalline.wittStructureMap p k Y) n)) |
| 127 | (g c : ℕ) [SmoothOfRelativeDimension g X.hom] |
| 128 | |
| 129 | abbrev cover := Intrinsic.TopFormTrace.cover X i |
| 130 | abbrev coverFull := Intrinsic.TopFormTrace.cover_top X i |
| 131 | abbrev output := PrincipalReference.Source.ReferenceComparison.sourceOutput (𝟙 X.left) i.left |
| 132 | (Projective.IntrinsicOverlap.Intrinsic.model (Truncated.Witt.Ring p k n) (d+1)).hom |
| 133 | (AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.coordinateOpenCover (R := Truncated.Witt.Ring p k n) (σ := Fin (d+2))) |
| 134 | (GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf (Truncated.Witt.Ring p k n) X g) c g |
| 135 | |
| 136 | omit [Fintype k] [CharP k p] [IsNoetherianRing (Truncated.Witt.Ring p k n)] [IsArtinianRing (Truncated.Witt.Ring p k n)] [IsLocalRing (Truncated.Witt.Ring p k n)] [Module.Injective (Truncated.Witt.Ring p k n) (Truncated.Witt.Ring p k n)] [Nonempty ↥X.left] [Smooth X.hom] [IsProper X.hom] [GeometricallyConnected X.hom] [X.left.IsSeparated] [IsClosedImmersion (Over.Hom.left i)] [SmoothOfRelativeDimension g X.hom] in |
| 137 | theorem source_comparison : |
| 138 | (Intrinsic.TopFormTrace.serreIso X i g).hom ≫ output p k n X i g c = |
| 139 | SourceGlobal.sourceCoordinates p k n X g c (cover p k n X i) := by |
| 140 | have h := Intrinsic.TopFormSourceCoordinates.comparison X i c g |
| 141 | dsimp only [Intrinsic.TopFormSourceCoordinates.sourceCoordinates] at h |
| 142 | simp only [SourceGlobal.sourceCoordinates, Category.assoc] |
| 143 | convert h using 1 ; (as_aux_lemma => rfl) |
| 144 | |
| 145 | omit [IsNoetherianRing (Truncated.Witt.Ring p k n)] [IsArtinianRing (Truncated.Witt.Ring p k n)] [IsLocalRing (Truncated.Witt.Ring p k n)] [Module.Injective (Truncated.Witt.Ring p k n) (Truncated.Witt.Ring p k n)] [Nonempty ↥X.left] [GeometricallyConnected X.hom] [IsClosedImmersion (Over.Hom.left i)] in |
| 146 | theorem comparison : |
| 147 | AdditiveTop.Comparison.lift.map (output p k n X i g c) ≫ |
| 148 | PrincipalSheafValue.globalValue p k n X Y f hp I g c |
| 149 | (cover p k n X i) (coverFull p k n X i) = |
| 150 | AdditiveTop.Comparison.lift.map (Intrinsic.TopFormTrace.serreIso X i g).inv ≫ |
| 151 | ModelTopCoverComparison.globalInput p k n X Y f hp I g |
| 152 | (cover p k n X i) (coverFull p k n X i) := |
| 153 | inverse_output AdditiveTop.Comparison.lift |
| 154 | (Intrinsic.TopFormTrace.serreIso X i g) _ _ _ _ |
| 155 | (source_comparison p k n X i g c) |
| 156 | (SourceGlobal.comparison p k n X Y f hp I g c |
| 157 | (cover p k n X i) (coverFull p k n X i)) |
| 158 | |
| 159 | section Pointwise |
| 160 | attribute [local irreducible] HomologicalComplex.homology |
| 161 | |
| 162 | omit [IsNoetherianRing (Truncated.Witt.Ring p k n)] [IsArtinianRing (Truncated.Witt.Ring p k n)] [IsLocalRing (Truncated.Witt.Ring p k n)] [Module.Injective (Truncated.Witt.Ring p k n) (Truncated.Witt.Ring p k n)] [Nonempty ↥X.left] [GeometricallyConnected X.hom] [IsClosedImmersion (Over.Hom.left i)] in |
| 163 | theorem comparison_apply (x : IntegralComparison.Smooth.ProjectiveFormTrace.cohomology X i g) : |
| 164 | PrincipalSheafValue.globalValue p k n X Y f hp I g c |
| 165 | (cover p k n X i) (coverFull p k n X i) |
| 166 | (ULift.up.{2,1} (ULift.up.{1,0} (output p k n X i g c x))) = |
| 167 | ModelTopCoverComparison.globalInput p k n X Y f hp I g |
| 168 | (cover p k n X i) (coverFull p k n X i) |
| 169 | (ULift.up.{2,1} (ULift.up.{1,0} ((Intrinsic.TopFormTrace.serreIso X i g).inv x))) := |
| 170 | lift_square_apply (output p k n X i g c) |
| 171 | (Intrinsic.TopFormTrace.serreIso X i g).inv |
| 172 | (PrincipalSheafValue.globalValue p k n X Y f hp I g c |
| 173 | (cover p k n X i) (coverFull p k n X i)) |
| 174 | (ModelTopCoverComparison.globalInput p k n X Y f hp I g |
| 175 | (cover p k n X i) (coverFull p k n X i)) |
| 176 | (comparison p k n X i Y f hp I g c) x |
| 177 | end Pointwise |
| 178 | |
| 179 | abbrev bounded_comparison_apply (x : IntegralComparison.Smooth.ProjectiveFormTrace.cohomology X i g) := |
| 180 | congrArg (AdditiveGlobal.globalHomologyIso p k n X Y f I (g+g)).hom |
| 181 | (comparison_apply p k n X i Y f hp I g c x) |
| 182 | end Smooth |
| 183 | |
| 184 | end |
| 185 | |
| 186 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.SerreGlobal |