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.Category.ModuleCat.ChangeOfRings |
| 2 | import Mathlib.RingTheory.RingHom.Finite |
| 3 | |
| 4 | /-! # Scalar Restriction -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.ScalarRestriction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: finite scalar restriction preserves finite generation of actual module objects |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | universe u v w |
| 17 | |
| 18 | variable {R : Type u} {S : Type v} [CommRing R] [CommRing S] |
| 19 | (f : R →+* S) (hf : f.Finite) (M : ModuleCat.{w} S) [Module.Finite S M] |
| 20 | |
| 21 | include hf in |
| 22 | theorem finite : Module.Finite R ((ModuleCat.restrictScalars f).obj M) := by |
| 23 | let : Algebra R S := f.toAlgebra |
| 24 | let mR : Module R M := Module.compHom M f |
| 25 | let hTower : IsScalarTower R S M := ⟨fun r s m => by |
| 26 | change (f r * s) • m = f r • s • m |
| 27 | exact mul_smul (f r) s m⟩ |
| 28 | let : Module.Finite R S := hf |
| 29 | exact @Module.Finite.trans R S M inferInstance inferInstance inferInstance inferInstance |
| 30 | mR M.isModule hTower hf inferInstance |
| 31 | |
| 32 | end |
| 33 | |
| 34 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.ScalarRestriction |