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.Length |
| 3 | import Mathlib.RingTheory.Ideal.Maps |
| 4 | |
| 5 | /-! # Retract Module Length -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.RetractModuleLength.Constructions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A module annihilated by the kernel of an algebra retraction has |
| 12 | the same length over the algebra and over its retract. This retains |
| 13 | the actual restricted action and allows infinite lengths. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | universe u |
| 20 | variable (R A : Type u) [CommRing R] [CommRing A] [Algebra R A] |
| 21 | (μ : A →ₐ[R] R) (M : ModuleCat.{u} A) |
| 22 | |
| 23 | local instance restrictedAlgebraModule : Module A ((ModuleCat.restrictScalars (algebraMap R A)).obj M) := |
| 24 | inferInstanceAs (Module A M) |
| 25 | |
| 26 | theorem factor_smul (h : RingHom.ker μ.toRingHom ≤ Module.annihilator A M) |
| 27 | (a : A) (x : (ModuleCat.restrictScalars (algebraMap R A)).obj M) : |
| 28 | a • x = μ a • x := by |
| 29 | have hk : a - algebraMap R A (μ a) ∈ RingHom.ker μ.toRingHom := by |
| 30 | change μ (a - algebraMap R A (μ a)) = 0 |
| 31 | rw [map_sub, AlgHom.commutes, Algebra.algebraMap_self, RingHom.id_apply, sub_self] |
| 32 | have hx := Module.mem_annihilator.mp (h hk) (show M from x) |
| 33 | rw [sub_smul, sub_eq_zero] at hx |
| 34 | exact hx |
| 35 | |
| 36 | theorem length_eq (h : RingHom.ker μ.toRingHom ≤ Module.annihilator A M) : |
| 37 | Module.length A M = Module.length R ((ModuleCat.restrictScalars (algebraMap R A)).obj M) := by |
| 38 | let : Algebra A R := μ.toRingHom.toAlgebra |
| 39 | let : IsScalarTower A R ((ModuleCat.restrictScalars (algebraMap R A)).obj M) := |
| 40 | IsScalarTower.of_algebraMap_smul (fun a x => (factor_smul R A μ M h a x).symm) |
| 41 | apply Module.length_eq_of_surjective (R := R) (S := A) |
| 42 | (M := (ModuleCat.restrictScalars (algebraMap R A)).obj M) |
| 43 | intro r |
| 44 | refine ⟨algebraMap R A r, ?_⟩ |
| 45 | exact μ.commutes r |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.CycleClass.Thom.RetractModuleLength.Constructions |