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.Module.LocalizedModule.Basic |
| 2 | |
| 3 | /-! # Module Squares -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Localized.ModuleSquares |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Localization is invariant under a commutative square of module isomorphisms. -/ |
| 10 | |
| 11 | variable {R V W V' W' : Type*} [CommRing R] |
| 12 | variable [AddCommGroup V] [AddCommGroup W] [AddCommGroup V'] [AddCommGroup W'] |
| 13 | variable [Module R V] [Module R W] [Module R V'] [Module R W'] |
| 14 | |
| 15 | theorem isLocalizedModule_of_linearEquiv_square (S : Submonoid R) |
| 16 | (a : V →ₗ[R] W) (b : V' →ₗ[R] W') (eV : V ≃ₗ[R] V') (eW : W ≃ₗ[R] W') |
| 17 | (h : eW.toLinearMap.comp a = b.comp eV.toLinearMap) [IsLocalizedModule S a] : |
| 18 | IsLocalizedModule S b := by |
| 19 | have : IsLocalizedModule S (a.comp eV.symm.toLinearMap) := |
| 20 | IsLocalizedModule.of_linearEquiv_right S a eV.symm |
| 21 | have ht := IsLocalizedModule.of_linearEquiv S (a.comp eV.symm.toLinearMap) eW |
| 22 | have he : eW.toLinearMap.comp (a.comp eV.symm.toLinearMap) = b := by |
| 23 | ext x |
| 24 | have hx := LinearMap.congr_fun h (eV.symm x) |
| 25 | simp only [LinearMap.comp_apply, LinearEquiv.coe_coe, eV.apply_symm_apply] at hx |
| 26 | exact hx |
| 27 | rw [he] at ht |
| 28 | exact ht |
| 29 | |
| 30 | theorem isLocalizedModule_iff_of_linearEquiv_square (S : Submonoid R) |
| 31 | (a : V →ₗ[R] W) (b : V' →ₗ[R] W') (eV : V ≃ₗ[R] V') (eW : W ≃ₗ[R] W') |
| 32 | (h : eW.toLinearMap.comp a = b.comp eV.toLinearMap) : |
| 33 | IsLocalizedModule S a ↔ IsLocalizedModule S b := by |
| 34 | constructor |
| 35 | · intro ha |
| 36 | exact isLocalizedModule_of_linearEquiv_square S a b eV eW h |
| 37 | · intro hb |
| 38 | apply isLocalizedModule_of_linearEquiv_square S b a eV.symm eW.symm |
| 39 | ext x |
| 40 | apply eW.injective |
| 41 | have hx := LinearMap.congr_fun h (eV.symm x) |
| 42 | simp only [LinearMap.comp_apply, LinearEquiv.coe_coe, eV.apply_symm_apply] at hx |
| 43 | exact (eW.apply_symm_apply (b x)).trans hx.symm |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Localized.ModuleSquares |