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.Crystalline.ModuleCechCup |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedFrame.CechPresheafCohomology |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Lifted.HomologyCoordinates |
| 4 | |
| 5 | /-! # Cech Cup -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.CechCup |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The native bounded crystalline ring Čech product on the original Ext groups. |
| 12 | The only cover hypothesis is that the chosen bounded frame family covers the |
| 13 | site; the source acyclicity needed for the Ext comparison is already proved |
| 14 | for every bounded affine crystalline object. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 17 | |
| 18 | section |
| 19 | |
| 20 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.Site |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable {p : ℕ} [Fact p.Prime] {B : Type u} [CommRing B] |
| 25 | {J : Ideal B} {δ : DividedPowers J} {X : Scheme.{u}} |
| 26 | (f : X ⟶ Spec (CommRingCat.of B)) |
| 27 | |
| 28 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := B) |
| 29 | |
| 30 | def liftedBase (U : BigCrystallineSite.Object p B J δ f) : R →+* ULift.{u + 1} U.ring := |
| 31 | ULift.ringEquiv.symm.toRingHom.comp (U.base.comp ULift.ringEquiv.toRingHom) |
| 32 | |
| 33 | def structureAlgebraPresheaf : (BigCrystallineSite.Object p B J δ f)ᵒᵖ ⥤ CommAlgCat.{u + 1} R where |
| 34 | obj U := |
| 35 | letI := (liftedBase f U.unop).toAlgebra |
| 36 | CommAlgCat.of R (ULift.{u + 1} U.unop.ring) |
| 37 | map {U V} α := |
| 38 | letI := (liftedBase f U.unop).toAlgebra |
| 39 | letI := (liftedBase f V.unop).toAlgebra |
| 40 | CommAlgCat.ofHom |
| 41 | { toFun := fun x => ULift.up (α.unop.ringMap x.down) |
| 42 | map_one' := congrArg ULift.up (map_one α.unop.ringMap.toRingHom) |
| 43 | map_mul' := fun x y => congrArg ULift.up (map_mul α.unop.ringMap.toRingHom x.down y.down) |
| 44 | map_zero' := congrArg ULift.up (map_zero α.unop.ringMap.toRingHom) |
| 45 | map_add' := fun x y => congrArg ULift.up (map_add α.unop.ringMap.toRingHom x.down y.down) |
| 46 | commutes' := fun b => by |
| 47 | apply ULift.ext |
| 48 | exact DFunLike.congr_fun α.unop.overBase b.down } |
| 49 | map_id _ := by ext; rfl |
| 50 | map_comp _ _ := by ext; rfl |
| 51 | |
| 52 | abbrev forgetModule : CommAlgCat.{u + 1} R ⥤ ModuleCat.{u + 1} R := |
| 53 | forget₂ (CommAlgCat R) (AlgCat R) ⋙ forget₂ (AlgCat R) (ModuleCat R) |
| 54 | |
| 55 | local instance forgetRing_preservesLimits : |
| 56 | PreservesLimits (forget₂ (CommAlgCat.{u + 1} R) CommRingCat.{u + 1}) := by |
| 57 | change PreservesLimits ((commAlgCatEquivUnder (CommRingCat.of R)).functor ⋙ |
| 58 | Under.forget (CommRingCat.of R)) |
| 59 | infer_instance |
| 60 | |
| 61 | local instance forgetModule_preservesLimits : PreservesLimits (forgetModule (B := B)) := by |
| 62 | have : PreservesLimits (forgetModule (B := B) ⋙ forget (ModuleCat.{u + 1} R)) := by |
| 63 | change PreservesLimits (forget₂ (CommAlgCat.{u + 1} R) CommRingCat.{u + 1} ⋙ |
| 64 | forget CommRingCat.{u + 1}) |
| 65 | infer_instance |
| 66 | exact preservesLimits_of_reflects_of_preserves (forgetModule (B := B)) |
| 67 | (forget (ModuleCat.{u + 1} R)) |
| 68 | |
| 69 | def structureForgetIso : structureAlgebraPresheaf (p := p) (J := J) (δ := δ) f ⋙ |
| 70 | forgetModule ≅ BigCrystallineCohomology.largePresheaf f := Iso.refl _ |
| 71 | |
| 72 | variable [IsSeparated f] (n : ℕ) {ι : Type u} |
| 73 | (F : ι → Site.Objects (p := p) (J := J) (δ := δ) f n) |
| 74 | |
| 75 | local instance coefficientProducts : HasProducts.{u} (ModuleCat.{u + 1} R) := by |
| 76 | let h : HasLimitsOfSize.{u, u} (ModuleCat.{u + 1} R) := |
| 77 | ModuleCat.hasLimitsOfSize.{u, u, u + 1, u + 1} |
| 78 | exact fun I => h.has_limits_of_shape (Discrete I) |
| 79 | |
| 80 | local instance algebraProducts : HasProducts.{u} (CommAlgCat.{u + 1} R) := by |
| 81 | have h : HasLimitsOfSize.{u, u} (CommAlgCat.{u + 1} R) := |
| 82 | hasLimitsOfSizeShrink.{u, u, u + 1, u + 1} _ |
| 83 | exact fun I => h.has_limits_of_shape (Discrete I) |
| 84 | |
| 85 | local instance forgetModule_preservesSmallLimits : |
| 86 | PreservesLimitsOfSize.{u, u} (forgetModule (B := B)) := |
| 87 | preservesLimitsOfSize_shrink.{u, u + 1, u, u + 1} (forgetModule (B := B)) |
| 88 | |
| 89 | def cochainAlgebra : CosimplicialObject (CommAlgCat.{u + 1} R) := |
| 90 | (FormalCoproduct.cosimplicialObjectFunctor (NonemptyCechNerve.nerve F)).obj |
| 91 | ((Site.inclusion f n).op ⋙ structureAlgebraPresheaf f) |
| 92 | |
| 93 | def comparison : Cosimplicial.ModuleComplex.complex (cochainAlgebra f n F) ≅ |
| 94 | BoundedFrame.CechComplex.presheafComplex f n F := |
| 95 | (AlgebraicTopology.alternatingCofaceMapComplex (ModuleCat R)).mapIso |
| 96 | (AlgebraicGeometry.Crystalline.Cohomology.Cech.CoefficientChange.CechCoefficientChange.cosimplicialIso forgetModule |
| 97 | (NonemptyCechNerve.nerve F) ((Site.inclusion f n).op ⋙ structureAlgebraPresheaf f)) ≪≫ |
| 98 | (NonemptyCechNerve.complexFunctor F).mapIso |
| 99 | (Functor.isoWhiskerLeft (Site.inclusion f n).op (structureForgetIso f)) |
| 100 | |
| 101 | end |
| 102 | |
| 103 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.Site |
| 104 | |
| 105 | universe u |
| 106 | |
| 107 | variable (p : ℕ) [Fact p.Prime] (k : Type u) [Field k] [CharP k p] |
| 108 | {J : Ideal (WittVector p k)} {δ : DividedPowers J} {X : Scheme.{u}} |
| 109 | (f : X ⟶ Spec (CommRingCat.of (WittVector p k))) [IsSeparated f] (n : ℕ) |
| 110 | {ι : Type u} (F : ι → Site.Objects (p := p) (J := J) (δ := δ) f n) |
| 111 | (hcover : ∀ U, CoveringObjectsSheafDetection.sieve F U ∈ Site.topology f n U) |
| 112 | |
| 113 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := WittVector p k) |
| 114 | local notation "H" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.CrystallineCohomology.Cohomology (p := p) (J := J) (δ := δ) f n |
| 115 | |
| 116 | def cohomologyEquiv (i : ℕ) : |
| 117 | (Cosimplicial.ModuleComplex.complex (cochainAlgebra f n F)).homology i ≃ₗ[R] H i := |
| 118 | (HomologicalComplex.homologyMapIso (comparison f n F) i).toLinearEquiv |>.trans |
| 119 | ((Lifted.HomologyCoordinates.equivalence.{u + 1, u + 1, u + 2} R |
| 120 | (BoundedFrame.CechComplex.presheafComplex f n F) i).trans |
| 121 | (BoundedFrame.CechPresheafCohomology.homologyIso p k f n F hcover i).toLinearEquiv) |
| 122 | |
| 123 | /-- The actual bounded crystalline Ext groups carry the native frame cup product. -/ |
| 124 | def cup (i j : ℕ) : H i →ₗ[R] H j →ₗ[R] H (i + j) := |
| 125 | (((Cosimplicial.ModuleCup.cohomologyCup (cochainAlgebra f n F) i j).comp |
| 126 | (cohomologyEquiv p k f n F hcover i).symm.toLinearMap).compl₂ |
| 127 | (cohomologyEquiv p k f n F hcover j).symm.toLinearMap).compr₂ |
| 128 | (cohomologyEquiv p k f n F hcover (i + j)).toLinearMap |
| 129 | |
| 130 | theorem cup_comparison (i j : ℕ) |
| 131 | (x : (Cosimplicial.ModuleComplex.complex (cochainAlgebra f n F)).homology i) |
| 132 | (y : (Cosimplicial.ModuleComplex.complex (cochainAlgebra f n F)).homology j) : |
| 133 | cup p k f n F hcover i j |
| 134 | (cohomologyEquiv p k f n F hcover i x) (cohomologyEquiv p k f n F hcover j y) = |
| 135 | cohomologyEquiv p k f n F hcover (i + j) |
| 136 | (Cosimplicial.ModuleCup.cohomologyCup (cochainAlgebra f n F) i j x y) := by |
| 137 | simp only [cup, LinearMap.compr₂_apply, LinearMap.compl₂_apply, |
| 138 | LinearMap.comp_apply, LinearEquiv.coe_coe, LinearEquiv.symm_apply_apply] |
| 139 | |
| 140 | end |
| 141 | |
| 142 | end OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.CechCup |