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.AffineKernels |
| 2 | |
| 3 | /-! # Quasicoherent Kernels -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Independent.QuasicoherentKernels |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 10 | |
| 11 | universe u |
| 12 | |
| 13 | theorem restrict_preservesKernel {X Y : Scheme.{u}} (j : X ⟶ Y) |
| 14 | [IsOpenImmersion j] {M N : Y.Modules} (f : M ⟶ N) : |
| 15 | PreservesLimit (parallelPair f 0) (Scheme.Modules.restrictFunctor j) := by |
| 16 | let D := parallelPair f 0 |
| 17 | let F := Scheme.Modules.restrictFunctor j |
| 18 | change PreservesLimit D F |
| 19 | refine ⟨fun {c} hc => ⟨?_⟩⟩ |
| 20 | let G := SheafOfModules.forget X.ringCatSheaf |
| 21 | have hall : ReflectsLimitsOfSize.{0, 0} G := fullyFaithful_reflectsLimits G |
| 22 | have hshape : ReflectsLimitsOfShape WalkingParallelPair G := hall.reflectsLimitsOfShape |
| 23 | have hlim : ReflectsLimit (D ⋙ F) G := hshape.reflectsLimit |
| 24 | refine @isLimitOfReflects _ _ _ _ _ _ _ G _ ?_ hlim |
| 25 | apply PresheafOfModules.evaluationJointlyReflectsLimits |
| 26 | intro U |
| 27 | let E := SheafOfModules.evaluation Y.ringCatSheaf (Opposite.op (j ''ᵁ U.unop)) |
| 28 | let A := ModuleCat.restrictScalars (j.appIso U.unop).inv.hom |
| 29 | have hE : PreservesLimit D E := SheafOfModules.evaluationPreservesLimit D _ |
| 30 | have hA : PreservesLimit (D ⋙ E) A := ModuleCat.preservesLimit_restrictScalars _ _ |
| 31 | change IsLimit (A.mapCone (E.mapCone c)) |
| 32 | exact @isLimitOfPreserves _ _ _ _ _ _ _ A _ |
| 33 | (@isLimitOfPreserves _ _ _ _ _ _ _ E _ hc hE) hA |
| 34 | |
| 35 | theorem quasicoherent {X : Scheme.{u}} {M N : X.Modules} |
| 36 | [M.IsQuasicoherent] [N.IsQuasicoherent] (f : M ⟶ N) : |
| 37 | (kernel f).IsQuasicoherent := by |
| 38 | apply QuasicoherentCokernels.of_affine_restrictions (kernel f) |
| 39 | intro U hU |
| 40 | let F := Scheme.Modules.restrictFunctor hU.fromSpec |
| 41 | let : PreservesLimit (parallelPair f 0) F := restrict_preservesKernel hU.fromSpec f |
| 42 | have hq : (kernel (F.map f)).IsQuasicoherent := |
| 43 | AffineKernels.quasicoherent (F.map f) |
| 44 | exact (SheafOfModules.isQuasicoherent (Spec Γ(X, U)).ringCatSheaf).prop_of_iso |
| 45 | (PreservesKernel.iso F f).symm hq |
| 46 | |
| 47 | theorem image {X : Scheme.{u}} {M N : X.Modules} |
| 48 | [M.IsQuasicoherent] [N.IsQuasicoherent] (f : M ⟶ N) : |
| 49 | (Abelian.image f).IsQuasicoherent := by |
| 50 | let : (cokernel f).IsQuasicoherent := QuasicoherentCokernels.quasicoherent f |
| 51 | exact quasicoherent (cokernel.π f) |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Independent.QuasicoherentKernels |