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.Ring.Subring.Basic |
| 2 | |
| 3 | /-! # Equal Ring Images -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.EqualRingImages.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Equal embedded ring images give the actual compatible ring isomorphism. -/ |
| 10 | |
| 11 | variable {R S T : Type*} [CommRing R] [CommRing S] [CommRing T] |
| 12 | (φ : R →+* T) (ψ : S →+* T) (hφ : Function.Injective φ) (hψ : Function.Injective ψ) |
| 13 | (h : φ.range = ψ.range) |
| 14 | |
| 15 | def equalRingImagesEquiv : R ≃+* S := |
| 16 | (RingEquiv.ofBijective φ.rangeRestrict |
| 17 | ⟨fun _ _ he => hφ (congrArg Subtype.val he), φ.rangeRestrict_surjective⟩).trans |
| 18 | ((RingEquiv.subringCongr h).trans |
| 19 | (RingEquiv.ofBijective ψ.rangeRestrict |
| 20 | ⟨fun _ _ he => hψ (congrArg Subtype.val he), ψ.rangeRestrict_surjective⟩).symm) |
| 21 | |
| 22 | theorem equalRingImagesEquiv_apply (r : R) : |
| 23 | ψ (equalRingImagesEquiv φ ψ hφ hψ h r) = φ r := by |
| 24 | let e := RingEquiv.ofBijective ψ.rangeRestrict |
| 25 | ⟨fun _ _ he => hψ (congrArg Subtype.val he), ψ.rangeRestrict_surjective⟩ |
| 26 | exact congrArg Subtype.val (e.apply_symm_apply ((RingEquiv.subringCongr h) (φ.rangeRestrict r))) |
| 27 | |
| 28 | end |
| 29 | |
| 30 | end OAI.AlgebraicGeometry.Divisors.LineBundles.EqualRingImages.BundleCycles |