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.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ModuleHomOf |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Kernels |
| 3 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Kernels |
| 4 | |
| 5 | /-! # Module Kernel Sections -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ModuleKernelSections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Sections of an actual algebraic kernel sheaf are exactly the |
| 12 | kernel of the original map on sections, on every open subset. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | local instance (X : Scheme.{0}) (U : X.Opens) : |
| 17 | (SheafOfModules.evaluation X.ringCatSheaf (op U)).PreservesZeroMorphisms := by |
| 18 | unfold SheafOfModules.evaluation |
| 19 | infer_instance |
| 20 | |
| 21 | variable {X : Scheme.{0}} {M N : X.Modules} (f : M ⟶ N) (U : X.Opens) |
| 22 | |
| 23 | def moduleSectionLinearMap : Γ(M, U) →ₗ[Γ(X, U)] Γ(N, U) := (f.val.app (op U)).hom |
| 24 | |
| 25 | def moduleKernelSectionEquiv : Γ(kernel f, U) ≃ₗ[Γ(X, U)] (moduleSectionLinearMap f U).ker := |
| 26 | ((PreservesKernel.iso (SheafOfModules.evaluation X.ringCatSheaf (op U)) f) ≪≫ |
| 27 | ModuleCat.kernelIsoKer ((SheafOfModules.evaluation X.ringCatSheaf (op U)).map f)).toLinearEquiv |
| 28 | |
| 29 | theorem moduleKernelSectionEquiv_symm_inclusion (a : (moduleSectionLinearMap f U).ker) : |
| 30 | (kernel.ι f).app U ((moduleKernelSectionEquiv f U).symm a) = a.val := by |
| 31 | let G := SheafOfModules.evaluation X.ringCatSheaf (op U) |
| 32 | have h : (ModuleCat.kernelIsoKer (G.map f)).inv ≫ (PreservesKernel.iso G f).inv ≫ |
| 33 | G.map (kernel.ι f) = ModuleCat.ofHom (G.map f).hom.ker.subtype := by |
| 34 | exact (congrArg ((ModuleCat.kernelIsoKer (G.map f)).inv ≫ ·) |
| 35 | (PreservesKernel.iso_inv_ι G f)).trans (ModuleCat.kernelIsoKer_inv_kernel_ι (G.map f)) |
| 36 | exact congrArg (fun q => q a) h |
| 37 | |
| 38 | def moduleKernelSectionLift (a : Γ(M, U)) (ha : f.app U a = 0) : Γ(kernel f, U) := |
| 39 | (moduleKernelSectionEquiv f U).symm ⟨a, ha⟩ |
| 40 | |
| 41 | theorem moduleKernelSectionLift_inclusion (a : Γ(M, U)) (ha : f.app U a = 0) : |
| 42 | (kernel.ι f).app U (moduleKernelSectionLift f U a ha) = a := |
| 43 | moduleKernelSectionEquiv_symm_inclusion f U ⟨a, ha⟩ |
| 44 | |
| 45 | theorem moduleKernel_inclusion_injective : Function.Injective ((kernel.ι f).app U) := by |
| 46 | intro a b h |
| 47 | apply (moduleKernelSectionEquiv f U).injective |
| 48 | apply Subtype.ext |
| 49 | have ha := moduleKernelSectionEquiv_symm_inclusion f U (moduleKernelSectionEquiv f U a) |
| 50 | have hb := moduleKernelSectionEquiv_symm_inclusion f U (moduleKernelSectionEquiv f U b) |
| 51 | rw [LinearEquiv.symm_apply_apply] at ha hb |
| 52 | exact ha.symm.trans (h.trans hb) |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ModuleKernelSections |