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.Algebra.Module.LocalizedModule.Submodule |
| 2 | |
| 3 | /-! # Localized Kernel Square -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.LocalizedKernelSquare |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Localization passes through the actual kernel map of a commuting |
| 10 | square. This form does not require chosen module structures over a |
| 11 | localized coefficient ring. -/ |
| 12 | |
| 13 | universe u v w v' w' |
| 14 | variable {R : Type u} [CommRing R] (S : Submonoid R) |
| 15 | {M : Type v} {N : Type w} {M' : Type v'} {N' : Type w'} |
| 16 | [AddCommGroup M] [AddCommGroup N] [AddCommGroup M'] [AddCommGroup N'] |
| 17 | [Module R M] [Module R N] [Module R M'] [Module R N'] |
| 18 | (a : M →ₗ[R] M') (b : N →ₗ[R] N') |
| 19 | [IsLocalizedModule S a] [IsLocalizedModule S b] |
| 20 | (d : M →ₗ[R] N) (d' : M' →ₗ[R] N') |
| 21 | (h : d'.comp a = b.comp d) |
| 22 | |
| 23 | def kernelSquareMap : d.ker →ₗ[R] d'.ker := |
| 24 | a.restrict (fun x hx => by |
| 25 | change d' (a x) = 0 |
| 26 | rw [← LinearMap.comp_apply, h, LinearMap.comp_apply, hx, map_zero]) |
| 27 | |
| 28 | theorem kernelSquareMap_isLocalized : |
| 29 | IsLocalizedModule S (kernelSquareMap a b d d' h) := by |
| 30 | let : Module (Localization S) M' := IsLocalizedModule.module S a |
| 31 | let : Module (Localization S) N' := IsLocalizedModule.module S b |
| 32 | let : IsScalarTower R (Localization S) M' := IsLocalizedModule.isScalarTower_module S a |
| 33 | let : IsScalarTower R (Localization S) N' := IsLocalizedModule.isScalarTower_module S b |
| 34 | have hd : IsLocalizedModule.map S a b d = d' := by |
| 35 | apply IsLocalizedModule.linearMap_ext S a b |
| 36 | rw [IsLocalizedModule.map_comp, h] |
| 37 | let e : (IsLocalizedModule.map S a b d).ker ≃ₗ[R] d'.ker := |
| 38 | LinearEquiv.ofEq _ _ (congrArg LinearMap.ker hd) |
| 39 | have hi : IsLocalizedModule S (LinearMap.toKerIsLocalized S a b d) := |
| 40 | LinearMap.toKerLocalized_isLocalizedModule (S := Localization S) S a b d |
| 41 | let := hi |
| 42 | have he := IsLocalizedModule.of_linearEquiv S (LinearMap.toKerIsLocalized S a b d) e |
| 43 | convert he using 1 |
| 44 | ext x |
| 45 | rfl |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.LocalizedKernelSquare |