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 Mathlib.AlgebraicGeometry.Modules.Tilde |
| 2 | |
| 3 | /-! # Affine Cokernels -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Independent.AffineCokernels |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 10 | |
| 11 | universe u |
| 12 | |
| 13 | variable (R : CommRingCat.{u}) {M N : (Spec R).Modules} |
| 14 | |
| 15 | def cokernelIso [M.IsQuasicoherent] [N.IsQuasicoherent] (f : M ⟶ N) : |
| 16 | tilde (R := R) (cokernel ((moduleSpecΓFunctor (R := R)).map f)) ≅ cokernel f := by |
| 17 | let : IsIso ((tilde.adjunction (R := R)).counit.app M) := by |
| 18 | change IsIso M.fromTildeΓ |
| 19 | infer_instance |
| 20 | let : IsIso ((tilde.adjunction (R := R)).counit.app N) := by |
| 21 | change IsIso N.fromTildeΓ |
| 22 | infer_instance |
| 23 | let eM := asIso ((tilde.adjunction (R := R)).counit.app M) |
| 24 | let eN := asIso ((tilde.adjunction (R := R)).counit.app N) |
| 25 | refine PreservesCokernel.iso (tilde.functor R) ((moduleSpecΓFunctor (R := R)).map f) ≪≫ |
| 26 | cokernel.mapIso _ _ eM eN ?_ |
| 27 | exact (tilde.adjunction (R := R)).counit.naturality f |
| 28 | |
| 29 | theorem quasicoherent [M.IsQuasicoherent] [N.IsQuasicoherent] (f : M ⟶ N) : (cokernel f).IsQuasicoherent := |
| 30 | (SheafOfModules.isQuasicoherent (Spec R).ringCatSheaf).prop_of_iso |
| 31 | (cokernelIso R f) inferInstance |
| 32 | |
| 33 | end |
| 34 | |
| 35 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Independent.AffineCokernels |