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.Module |
| 2 | |
| 3 | /-! # Localized Module Scalars -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.LocalizedModuleScalars.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! # LineBundleCycles: localization under restriction of the scalar ring -/ |
| 10 | |
| 11 | variable {R A M N : Type} [CommRing R] [CommRing A] [Algebra R A] |
| 12 | [AddCommGroup M] [AddCommGroup N] [Module R M] [Module A M] [Module R N] [Module A N] |
| 13 | [IsScalarTower R A M] [IsScalarTower R A N] |
| 14 | |
| 15 | theorem isLocalizedModule_of_restrictScalars (D : Submonoid R) (f : M →ₗ[A] N) |
| 16 | [IsLocalizedModule D (f.restrictScalars R)] : |
| 17 | IsLocalizedModule (D.map (algebraMap R A)) f where |
| 18 | map_units d := by |
| 19 | obtain ⟨r, hr, he⟩ := d.property |
| 20 | have h := (Module.End.isUnit_iff _).mp (IsLocalizedModule.map_units (f.restrictScalars R) (⟨r, hr⟩ : D)) |
| 21 | apply (Module.End.isUnit_iff _).mpr |
| 22 | change Function.Bijective (fun n : N => d.val • n) |
| 23 | change Function.Bijective (fun n : N => r • n) at h |
| 24 | rw [← he] |
| 25 | simpa only [algebraMap_smul] using h |
| 26 | surj n := by |
| 27 | obtain ⟨⟨m, d⟩, hd⟩ := IsLocalizedModule.surj D (f.restrictScalars R) n |
| 28 | refine ⟨⟨m, ⟨algebraMap R A d.val, Submonoid.mem_map_of_mem _ d.property⟩⟩, ?_⟩ |
| 29 | change algebraMap R A d.val • n = f m |
| 30 | rw [algebraMap_smul] |
| 31 | exact hd |
| 32 | exists_of_eq h := by |
| 33 | obtain ⟨d, hd⟩ := IsLocalizedModule.exists_of_eq (S := D) (f := f.restrictScalars R) h |
| 34 | refine ⟨⟨algebraMap R A d.val, Submonoid.mem_map_of_mem _ d.property⟩, ?_⟩ |
| 35 | simpa only [Submonoid.smul_def, algebraMap_smul] using hd |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.AlgebraicGeometry.Divisors.LineBundles.LocalizedModuleScalars.BundleCycles |