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.Independent.KernelLocalizationTransport |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Independent.QuasicoherentCokernels |
| 3 | |
| 4 | /-! # Affine Kernels -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Independent.AffineKernels |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry Opposite |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | def sections (R : CommRingCat.{u}) (U : (Spec R).Opens) : |
| 15 | (Spec R).Modules ⥤ ModuleCat.{u} R := |
| 16 | modulesSpecToSheaf ⋙ TopCat.Sheaf.forget _ _ ⋙ (evaluation _ _).obj (op U) |
| 17 | |
| 18 | instance additive (R : CommRingCat.{u}) (U : (Spec R).Opens) : (sections R U).Additive where |
| 19 | map_add := rfl |
| 20 | |
| 21 | instance preservesKernel (R : CommRingCat.{u}) (U : (Spec R).Opens) |
| 22 | {M N : (Spec R).Modules} (f : M ⟶ N) : |
| 23 | PreservesLimit (parallelPair f 0) (sections R U) := by |
| 24 | let E := SheafOfModules.evaluation (Spec R).ringCatSheaf (op U) |
| 25 | let A := ModuleCat.restrictScalars ((Spec R).ringCatSheaf.obj.map |
| 26 | ((initialOpOfTerminal isTerminalTop).to (op U))).hom |
| 27 | let B := ModuleCat.restrictScalars (Scheme.ΓSpecIso R).inv.hom |
| 28 | let D := parallelPair f 0 |
| 29 | have hE : PreservesLimit D E := SheafOfModules.evaluationPreservesLimit D (op U) |
| 30 | have hA : PreservesLimit (D ⋙ E) A := ModuleCat.preservesLimit_restrictScalars _ _ |
| 31 | have hB : PreservesLimit ((D ⋙ E) ⋙ A) B := ModuleCat.preservesLimit_restrictScalars _ _ |
| 32 | change PreservesLimit D ((E ⋙ A) ⋙ B) |
| 33 | refine ⟨fun {c} hc => ⟨?_⟩⟩ |
| 34 | exact @isLimitOfPreserves _ _ _ _ _ _ _ B _ |
| 35 | (@isLimitOfPreserves _ _ _ _ _ _ _ A _ |
| 36 | (@isLimitOfPreserves _ _ _ _ _ _ _ E _ hc hE) hA) hB |
| 37 | |
| 38 | def restriction (R : CommRingCat.{u}) (U V : (Spec R).Opens) (h : V ≤ U) : |
| 39 | sections R U ⟶ sections R V where |
| 40 | app M := (modulesSpecToSheaf.obj M).obj.map (homOfLE h).op |
| 41 | naturality _ _ f := ((modulesSpecToSheaf.map f).hom.naturality (homOfLE h).op).symm |
| 42 | |
| 43 | theorem quasicoherent {R : CommRingCat.{u}} {M N : (Spec R).Modules} |
| 44 | [M.IsQuasicoherent] [N.IsQuasicoherent] (f : M ⟶ N) : |
| 45 | (kernel f).IsQuasicoherent := by |
| 46 | apply (isQuasicoherent_iff_isIso_fromTildeΓ _).mpr |
| 47 | apply (isIso_fromTildeΓ_iff_isLocalizing _).mpr |
| 48 | intro r |
| 49 | let U : (Spec R).Opens := PrimeSpectrum.basicOpen r |
| 50 | let τ := restriction R ⊤ U le_top |
| 51 | have hM : IsLocalizedModule (.powers r) (τ.app M).hom := |
| 52 | (isIso_fromTildeΓ_iff_isLocalizing M).mp inferInstance r |
| 53 | have hN : IsLocalizedModule (.powers r) (τ.app N).hom := |
| 54 | (isIso_fromTildeΓ_iff_isLocalizing N).mp inferInstance r |
| 55 | exact KernelLocalizationTransport.isLocalized f (sections R ⊤) |
| 56 | (sections R U) τ (.powers r) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Independent.AffineKernels |