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.LocalizedKernels |
| 2 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Kernels |
| 3 | |
| 4 | /-! # Kernel Localization Transport -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Independent.KernelLocalizationTransport |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | open _root_.CategoryTheory Limits |
| 11 | |
| 12 | universe u v w |
| 13 | |
| 14 | variable {R : Type u} [CommRing R] {C : Type v} [Category.{w} C] [HasZeroMorphisms C] |
| 15 | {M N : C} (f : M ⟶ N) [HasKernel f] |
| 16 | (F G : C ⥤ ModuleCat.{u} R) [F.PreservesZeroMorphisms] [G.PreservesZeroMorphisms] |
| 17 | [PreservesLimit (parallelPair f 0) F] [PreservesLimit (parallelPair f 0) G] |
| 18 | (τ : F ⟶ G) |
| 19 | |
| 20 | def kernelIso (H : C ⥤ ModuleCat.{u} R) [H.PreservesZeroMorphisms] |
| 21 | [PreservesLimit (parallelPair f 0) H] : |
| 22 | H.obj (kernel f) ≅ ModuleCat.of R (H.map f).hom.ker := |
| 23 | PreservesKernel.iso H f ≪≫ ModuleCat.kernelIsoKer (H.map f) |
| 24 | |
| 25 | @[simp] |
| 26 | theorem kernelIso_subtype (H : C ⥤ ModuleCat.{u} R) |
| 27 | [H.PreservesZeroMorphisms] [PreservesLimit (parallelPair f 0) H] : |
| 28 | (kernelIso f H).hom ≫ ModuleCat.ofHom (H.map f).hom.ker.subtype = |
| 29 | H.map (kernel.ι f) := by |
| 30 | simp [kernelIso, PreservesKernel.iso_hom, kernelComparison_comp_ι] |
| 31 | |
| 32 | theorem isLocalized (S : Submonoid R) |
| 33 | [IsLocalizedModule S (τ.app M).hom] [IsLocalizedModule S (τ.app N).hom] : |
| 34 | IsLocalizedModule S (τ.app (kernel f)).hom := by |
| 35 | have h : ∀ x, (G.map f).hom ((τ.app M).hom x) = |
| 36 | (τ.app N).hom ((F.map f).hom x) := by |
| 37 | intro x |
| 38 | exact congrArg (fun k => k.hom x) (τ.naturality f).symm |
| 39 | let φ := LocalizedKernels.map (F.map f).hom (G.map f).hom |
| 40 | (τ.app M).hom (τ.app N).hom h |
| 41 | have hφ : IsLocalizedModule S φ := |
| 42 | LocalizedKernels.isLocalized _ _ _ _ h S |
| 43 | have heq : (kernelIso f F).hom ≫ ModuleCat.ofHom φ = |
| 44 | τ.app (kernel f) ≫ (kernelIso f G).hom := by |
| 45 | apply (cancel_mono (ModuleCat.ofHom (G.map f).hom.ker.subtype)).mp |
| 46 | have hsub : ModuleCat.ofHom φ ≫ ModuleCat.ofHom (G.map f).hom.ker.subtype = |
| 47 | ModuleCat.ofHom (F.map f).hom.ker.subtype ≫ τ.app M := rfl |
| 48 | rw [Category.assoc, hsub, ← Category.assoc, kernelIso_subtype, |
| 49 | Category.assoc, kernelIso_subtype] |
| 50 | exact τ.naturality (kernel.ι f) |
| 51 | apply (IsLocalizedModule.comp_iff_of_bijective_left S (kernelIso f G).hom.hom |
| 52 | (ConcreteCategory.bijective_of_isIso _)).mp |
| 53 | rw [← ModuleCat.hom_comp, ← heq, ModuleCat.hom_comp] |
| 54 | exact (IsLocalizedModule.comp_iff_of_bijective_right S (kernelIso f F).hom.hom |
| 55 | (ConcreteCategory.bijective_of_isIso _)).mpr hφ |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Independent.KernelLocalizationTransport |