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.Quotients.FiniteDescent.SourceTrivializationTop |
| 2 | |
| 3 | /-! # Localized Basis Algebra -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.LocalizedBasisAlgebra.Construction.LocalizedBasis |
| 6 | |
| 7 | /-! |
| 8 | # Transporting localized bases to arbitrary localization models |
| 9 | |
| 10 | The basis obtained by local finite presentation uses canonical localization |
| 11 | types. Coordinate rings of principal scheme opens are different models of |
| 12 | the same localizations; this module transports the basis to those rings. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.Module |
| 16 | |
| 17 | variable {R A R₁ A₁ : Type*} [CommRing R] [CommRing A] [CommRing R₁] [CommRing A₁] |
| 18 | variable [Algebra R A] [Algebra R R₁] [Algebra A A₁] [Algebra R A₁] [Algebra R₁ A₁] |
| 19 | variable [IsScalarTower R A A₁] [IsScalarTower R R₁ A₁] |
| 20 | |
| 21 | /-- Any corresponding pair of localization models inherits a basis from |
| 22 | the canonical localized module. -/ |
| 23 | noncomputable def algebraBasis (r : R) [IsLocalization.Away r R₁] |
| 24 | [IsLocalization.Away (algebraMap R A r) A₁] |
| 25 | {ι : Type*} (b : Basis ι (Localization.Away r) (LocalizedModule.Away r A)) : |
| 26 | Basis ι R₁ A₁ := by |
| 27 | let e : Localization.Away r ≃ₐ[R] R₁ := IsLocalization.algEquiv (Submonoid.powers r) _ _ |
| 28 | let : Module R₁ (LocalizedModule.Away r A) := |
| 29 | Module.compHom _ e.symm.toRingHom |
| 30 | have : IsScalarTower R R₁ (LocalizedModule.Away r A) := |
| 31 | IsScalarTower.of_algebraMap_smul fun c x => by |
| 32 | change e.symm (algebraMap R R₁ c) • x = c • x |
| 33 | rw [e.symm.commutes, IsScalarTower.algebraMap_smul] |
| 34 | let b' : Basis ι R₁ (LocalizedModule.Away r A) := |
| 35 | b.mapCoeffs e.toRingEquiv (fun c x => by |
| 36 | change e.symm (e c) • x = c • x |
| 37 | rw [e.symm_apply_apply]) |
| 38 | exact SourceTrivializationTop.Construction.SourceTrivialization.algebraBasis r b' |
| 39 | |
| 40 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.LocalizedBasisAlgebra.Construction.LocalizedBasis |