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.Localization.Free |
| 2 | |
| 3 | /-! # Basis Transport -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Localized.BasisTransport |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A basis of the canonical module localization transports to any realization of the localized ring and module. -/ |
| 10 | universe u v w z |
| 11 | |
| 12 | def localizedBasisTransport {R : Type u} [CommRing R] {M : Type v} |
| 13 | [AddCommGroup M] [Module R M] (S : Submonoid R) |
| 14 | {R' : Type w} [CommRing R'] [Algebra R R'] [IsLocalization S R'] |
| 15 | {M' : Type z} [AddCommGroup M'] [Module R M'] [Module R' M'] [IsScalarTower R R' M'] |
| 16 | (f : M →ₗ[R] M') [IsLocalizedModule S f] {ι : Type*} |
| 17 | (b : Module.Basis ι (Localization S) (LocalizedModule S M)) : Module.Basis ι R' M' := by |
| 18 | let eR := IsLocalization.algEquiv S (Localization S) R' |
| 19 | letI : Module (Localization S) M' := Module.compHom M' eR.toRingHom |
| 20 | haveI : IsScalarTower R (Localization S) M' := by |
| 21 | constructor |
| 22 | intro r s m |
| 23 | change eR (r • s) • m = r • (eR s • m) |
| 24 | rw [map_smul, smul_assoc] |
| 25 | let e := IsLocalizedModule.iso S f |
| 26 | let e' : LocalizedModule S M ≃ₗ[Localization S] M' := |
| 27 | { __ := e, toLinearMap := e.toLinearMap.extendScalarsOfIsLocalization S (Localization S) } |
| 28 | exact (b.map e').mapCoeffs eR.toRingEquiv (fun _ _ => rfl) |
| 29 | |
| 30 | end |
| 31 | |
| 32 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Localized.BasisTransport |