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.RingTheory.Etale.Kaehler |
| 2 | import Mathlib.RingTheory.Localization.Algebra |
| 3 | |
| 4 | /-! # Localized Extension Kernel -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.LocalizedExtensionKernel |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An actual localization of an extension, with its extended kernel, |
| 11 | satisfies the native kernel base-change hypothesis automatically. -/ |
| 12 | |
| 13 | open _root_.Algebra.Extension |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | universe u |
| 18 | variable {k S T : Type u} [CommRing k] [CommRing S] [CommRing T] |
| 19 | [Algebra k S] [Algebra k T] [Algebra S T] |
| 20 | (P : Algebra.Extension.{u} k S) (Q : Algebra.Extension.{u} k T) (f : P.Hom Q) |
| 21 | [Algebra P.Ring Q.Ring] (halg : algebraMap P.Ring Q.Ring = f.toRingHom) |
| 22 | (M : Submonoid P.Ring) [IsLocalization M Q.Ring] |
| 23 | (hker : P.ker.map (algebraMap P.Ring Q.Ring) = Q.ker) |
| 24 | |
| 25 | include hker in |
| 26 | theorem isLocalizedModule : IsLocalizedModule M (f.mapKer halg) := by |
| 27 | let e : (P.ker.map (algebraMap P.Ring Q.Ring)) ≃ₗ[P.Ring] Q.ker := |
| 28 | (LinearEquiv.ofEq _ _ hker).restrictScalars P.Ring |
| 29 | have he : f.mapKer halg = e.toLinearMap.comp (Algebra.idealMap P.ker (S := Q.Ring)) := by |
| 30 | ext x |
| 31 | exact (RingHom.congr_fun halg x.val).symm |
| 32 | rw [he] |
| 33 | exact IsLocalizedModule.of_linearEquiv M (Algebra.idealMap P.ker (S := Q.Ring)) e |
| 34 | |
| 35 | include M hker in |
| 36 | theorem kernel_bijective : Function.Bijective ((f.mapKer halg).liftBaseChange Q.Ring) := |
| 37 | (isLocalizedModule_iff_isBaseChange M Q.Ring (f.mapKer halg)).mp |
| 38 | (isLocalizedModule P Q f halg M hker) |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.NumberTheory.PadicHodge.IntegralComparison.LocalizedExtensionKernel |