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.AtPrime.Basic |
| 2 | |
| 3 | /-! # Surjective Local Ring Map -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.SurjectiveLocalRingMap.Constructions |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A surjective algebra map induces a surjection of the actual local |
| 10 | rings at a prime and its inverse-image prime. -/ |
| 11 | |
| 12 | universe u v |
| 13 | variable (R : Type u) (S : Type v) [CommRing R] [CommRing S] [Algebra R S] |
| 14 | (q : PrimeSpectrum S) |
| 15 | |
| 16 | def localMap : Localization.AtPrime (q.asIdeal.comap (algebraMap R S)) →+* |
| 17 | Localization.AtPrime q.asIdeal := |
| 18 | Localization.localRingHom _ _ (algebraMap R S) rfl |
| 19 | |
| 20 | theorem primeCompl_map (hs : Function.Surjective (algebraMap R S)) : |
| 21 | (q.asIdeal.comap (algebraMap R S)).primeCompl.map (algebraMap R S) = q.asIdeal.primeCompl := by |
| 22 | ext s |
| 23 | constructor |
| 24 | · rintro ⟨r, hr, rfl⟩ |
| 25 | exact hr |
| 26 | · intro hx |
| 27 | obtain ⟨r, rfl⟩ := hs s |
| 28 | exact ⟨r, hx, rfl⟩ |
| 29 | |
| 30 | theorem localMap_surjective (hs : Function.Surjective (algebraMap R S)) : |
| 31 | Function.Surjective (localMap R S q) := by |
| 32 | intro z |
| 33 | obtain ⟨x, t, rfl⟩ := IsLocalization.exists_mk'_eq q.asIdeal.primeCompl z |
| 34 | obtain ⟨a, rfl⟩ := hs x |
| 35 | obtain ⟨b, hb⟩ := hs t.val |
| 36 | let b' : (q.asIdeal.comap (algebraMap R S)).primeCompl := ⟨b, by |
| 37 | change algebraMap R S b ∉ q.asIdeal |
| 38 | rw [hb] |
| 39 | exact t.property⟩ |
| 40 | refine ⟨IsLocalization.mk' _ a b', ?_⟩ |
| 41 | rw [localMap, Localization.localRingHom_mk'] |
| 42 | congr 1 |
| 43 | exact Subtype.ext hb |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.CycleClass.Thom.SurjectiveLocalRingMap.Constructions |