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.IntegralClosure.IntegrallyClosed |
| 2 | import Mathlib.RingTheory.LocalRing.Basic |
| 3 | |
| 4 | /-! # Integral Idempotents -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.IntegralIdempotents.Construction |
| 7 | |
| 8 | /-! # Completion: idempotents in integral closures of local rings -/ |
| 9 | |
| 10 | open _root_.Polynomial |
| 11 | |
| 12 | universe u v |
| 13 | |
| 14 | variable (R : Type u) [CommRing R] {B : Type v} [CommRing B] [Algebra R B] |
| 15 | |
| 16 | /-- An idempotent is integral over every base ring. -/ |
| 17 | theorem idempotent_isIntegral {e : B} (he : IsIdempotentElem e) : IsIntegral R e := by |
| 18 | refine ⟨X * (X - C (1 : R)), monic_X.mul (monic_X_sub_C _), ?_⟩ |
| 19 | simp [mul_sub, he.eq] |
| 20 | |
| 21 | /-- A local ring has no nontrivial idempotents. -/ |
| 22 | theorem local_idempotent_eq_zero_or_one [IsLocalRing R] {e : R} (he : IsIdempotentElem e) : |
| 23 | e = 0 ∨ e = 1 := by |
| 24 | rcases IsLocalRing.isUnit_or_isUnit_one_sub_self e with h | h |
| 25 | · exact Or.inr ((IsIdempotentElem.iff_eq_one_of_isUnit h).mp he) |
| 26 | · exact Or.inl (sub_eq_self.mp ((IsIdempotentElem.iff_eq_one_of_isUnit h).mp he.one_sub)) |
| 27 | |
| 28 | /-- If a local ring is integrally closed in an algebra, every idempotent of that algebra |
| 29 | is already zero or one. -/ |
| 30 | theorem integralClosure_local_idempotent_eq_zero_or_one |
| 31 | [IsLocalRing R] [IsIntegrallyClosedIn R B] {e : B} (he : IsIdempotentElem e) : |
| 32 | e = 0 ∨ e = 1 := by |
| 33 | obtain ⟨r, hr⟩ := IsIntegrallyClosedIn.algebraMap_eq_of_integral (idempotent_isIntegral R he) |
| 34 | have hri : IsIdempotentElem r := by |
| 35 | apply (IsIntegralClosure.algebraMap_injective R R B) |
| 36 | simpa only [map_mul, hr] using he.eq |
| 37 | rcases local_idempotent_eq_zero_or_one R hri with h | h |
| 38 | · left |
| 39 | rw [← hr, h, map_zero] |
| 40 | · right |
| 41 | rw [← hr, h, map_one] |
| 42 | |
| 43 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.IntegralIdempotents.Construction |