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.AbelianModuli.HilbertConstruction.Module.DualFunctor |
| 2 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRings |
| 3 | import Mathlib.RingTheory.LocalRing.ResidueField.Basic |
| 4 | |
| 5 | /-! # Residue Scalar Iso -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.ResidueScalarIso |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A local-ring isomorphism identifies residue modules with the correct restricted coefficient action. -/ |
| 12 | open _root_.CategoryTheory IsLocalRing |
| 13 | universe u |
| 14 | |
| 15 | def localResidueRestrictionIso |
| 16 | {R S : Type u} [CommRing R] [CommRing S] [IsLocalRing R] [IsLocalRing S] |
| 17 | (e : R ≃+* S) : ModuleCat.of R (ResidueField R) ≅ |
| 18 | (ModuleCat.restrictScalars e.toRingHom).obj (ModuleCat.of S (ResidueField S)) := by |
| 19 | let eK := ResidueField.mapEquiv e |
| 20 | let E : ResidueField R ≃ₗ[R] |
| 21 | ((ModuleCat.restrictScalars e.toRingHom).obj (ModuleCat.of S (ResidueField S))) := { |
| 22 | toFun := eK |
| 23 | invFun := eK.symm |
| 24 | left_inv := eK.left_inv |
| 25 | right_inv := eK.right_inv |
| 26 | map_add' := eK.map_add |
| 27 | map_smul' := fun r x => by |
| 28 | change eK (residue R r * x) = residue S (e r) * eK x |
| 29 | rw [eK.map_mul] |
| 30 | rfl } |
| 31 | exact E.toModuleIso |
| 32 | |
| 33 | end |
| 34 | |
| 35 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.ResidueScalarIso |