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.CechCup |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Cosimplicial.ModuleCupAlgebra |
| 3 | import Mathlib.Algebra.Category.AlgCat.Limits |
| 4 | |
| 5 | /-! # Module Cech Cup -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ModuleCechCup |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Base-linear cup products on the actual crystalline module Čech |
| 12 | complex. The algebra coefficient forgets to the original enlarged |
| 13 | structure-module presheaf, and the comparison uses canonical products. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 16 | |
| 17 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Site |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {p : ℕ} [Fact p.Prime] {B : Type u} [CommRing B] |
| 22 | {J : Ideal B} {δ : DividedPowers J} {X : Scheme.{u}} |
| 23 | (f : X ⟶ Spec (CommRingCat.of B)) [IsSeparated f] |
| 24 | |
| 25 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Site.AffineThickening.CoefficientRing (B := B) |
| 26 | |
| 27 | local instance : HasBinaryProducts (Site.AffineThickening p B J δ f) := |
| 28 | Small.CrystallineSeparatedProduct.hasBinaryProducts f (Fact.out : p.Prime).pos |
| 29 | |
| 30 | def liftedBase (U : Site.AffineThickening 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 : (Site.AffineThickening 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 | { (CechCup.structureRingPresheaf f).map α |>.hom with |
| 42 | commutes' := fun b => by |
| 43 | apply ULift.ext |
| 44 | exact DFunLike.congr_fun α.unop.overBase b.down } |
| 45 | map_id _ := by ext; rfl |
| 46 | map_comp _ _ := by ext; rfl |
| 47 | |
| 48 | abbrev forgetModule : CommAlgCat.{u + 1} R ⥤ ModuleCat.{u + 1} R := |
| 49 | forget₂ (CommAlgCat R) (AlgCat R) ⋙ forget₂ (AlgCat R) (ModuleCat R) |
| 50 | |
| 51 | local instance forgetRing_preservesLimits : |
| 52 | PreservesLimits (forget₂ (CommAlgCat.{u + 1} R) CommRingCat.{u + 1}) := by |
| 53 | change PreservesLimits ((commAlgCatEquivUnder (CommRingCat.of R)).functor ⋙ |
| 54 | Under.forget (CommRingCat.of R)) |
| 55 | infer_instance |
| 56 | |
| 57 | local instance forgetModule_preservesLimits : PreservesLimits (forgetModule (B := B)) := by |
| 58 | have : PreservesLimits (forgetModule (B := B) ⋙ forget (ModuleCat.{u + 1} R)) := by |
| 59 | change PreservesLimits (forget₂ (CommAlgCat.{u + 1} R) CommRingCat.{u + 1} ⋙ |
| 60 | forget CommRingCat.{u + 1}) |
| 61 | infer_instance |
| 62 | exact preservesLimits_of_reflects_of_preserves (forgetModule (B := B)) |
| 63 | (forget (ModuleCat.{u + 1} R)) |
| 64 | |
| 65 | def structureForgetIso : structureAlgebraPresheaf (p := p) (J := J) (δ := δ) f ⋙ |
| 66 | forgetModule ≅ |
| 67 | Site.AffineThickening.structureModulePresheafLarge |
| 68 | (p := p) (B := B) (J := J) (δB := δ) (f := f) := |
| 69 | Iso.refl _ |
| 70 | |
| 71 | variable {ι : Type (u + 1)} (U : ι → Site.AffineThickening p B J δ f) |
| 72 | |
| 73 | def cochainAlgebra : CosimplicialObject (CommAlgCat.{u + 1} R) := |
| 74 | (FormalCoproduct.cosimplicialObjectFunctor (NonemptyCechNerve.nerve U)).obj |
| 75 | (structureAlgebraPresheaf f) |
| 76 | |
| 77 | def complex : CochainComplex (ModuleCat.{u + 1} R) ℕ := |
| 78 | (NonemptyCechNerve.complexFunctor U).obj |
| 79 | (Site.AffineThickening.structureModulePresheafLarge |
| 80 | (p := p) (B := B) (J := J) (δB := δ) (f := f)) |
| 81 | |
| 82 | def comparison : Cosimplicial.ModuleComplex.complex (cochainAlgebra f U) ≅ complex f U := |
| 83 | (AlgebraicTopology.alternatingCofaceMapComplex (ModuleCat R)).mapIso |
| 84 | (AlgebraicGeometry.Crystalline.Cohomology.Cech.CoefficientChange.CechCoefficientChange.cosimplicialIso forgetModule |
| 85 | (NonemptyCechNerve.nerve U) (structureAlgebraPresheaf f)) ≪≫ |
| 86 | (NonemptyCechNerve.complexFunctor U).mapIso (structureForgetIso f) |
| 87 | |
| 88 | def cohomologyEquiv (n : ℕ) : |
| 89 | (Cosimplicial.ModuleComplex.complex (cochainAlgebra f U)).homology n ≃ₗ[R] |
| 90 | (complex f U).homology n := |
| 91 | (HomologicalComplex.homologyMapIso (comparison f U) n).toLinearEquiv |
| 92 | |
| 93 | def cohomologyCup (m n : ℕ) : |
| 94 | (complex f U).homology m →ₗ[R] (complex f U).homology n →ₗ[R] |
| 95 | (complex f U).homology (m + n) := |
| 96 | (((Cosimplicial.ModuleCup.cohomologyCup (cochainAlgebra f U) m n).comp |
| 97 | (cohomologyEquiv f U m).symm.toLinearMap).compl₂ |
| 98 | (cohomologyEquiv f U n).symm.toLinearMap).compr₂ |
| 99 | (cohomologyEquiv f U (m + n)).toLinearMap |
| 100 | |
| 101 | theorem cohomologyCup_comparison (m n : ℕ) |
| 102 | (x : (Cosimplicial.ModuleComplex.complex (cochainAlgebra f U)).homology m) |
| 103 | (y : (Cosimplicial.ModuleComplex.complex (cochainAlgebra f U)).homology n) : |
| 104 | cohomologyCup f U m n (cohomologyEquiv f U m x) (cohomologyEquiv f U n y) = |
| 105 | cohomologyEquiv f U (m + n) |
| 106 | (Cosimplicial.ModuleCup.cohomologyCup (cochainAlgebra f U) m n x y) := by |
| 107 | simp only [cohomologyCup, LinearMap.compr₂_apply, LinearMap.compl₂_apply, |
| 108 | LinearMap.comp_apply, LinearEquiv.coe_coe, LinearEquiv.symm_apply_apply] |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ModuleCechCup |