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.Filtration |
| 2 | import Mathlib.RingTheory.Multiplicity |
| 3 | import Mathlib.RingTheory.DiscreteValuationRing.TFAE |
| 4 | |
| 5 | /-! # Max Domain -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.MaxDomain |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A noetherian local ring with a nonnilpotent generator of its maximal |
| 12 | ideal is a domain. Krull intersection supplies the exact finite order |
| 13 | of every nonzero element, without assuming cancellation in advance. -/ |
| 14 | |
| 15 | open IsLocalRing |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R : Type u) [CommRing R] [IsNoetherianRing R] [IsLocalRing R] |
| 20 | (r : R) (hm : maximalIdeal R = Ideal.span {r}) |
| 21 | |
| 22 | include hm |
| 23 | |
| 24 | theorem exists_unit_factor (a : R) (ha : a ≠ 0) : |
| 25 | ∃ (n : ℕ) (u : Rˣ), a = r ^ n * u := by |
| 26 | have hf : FiniteMultiplicity r a := by |
| 27 | by_contra hn |
| 28 | have hpow := FiniteMultiplicity.not_iff_forall.mp hn |
| 29 | apply ha |
| 30 | have hi : a ∈ ⨅ n : ℕ, maximalIdeal R ^ n := by |
| 31 | apply Ideal.mem_iInf.mpr |
| 32 | intro n |
| 33 | rw [hm, Ideal.span_singleton_pow, Ideal.mem_span_singleton] |
| 34 | exact hpow n |
| 35 | rwa [Ideal.iInf_pow_eq_bot_of_isLocalRing (maximalIdeal R) |
| 36 | (maximalIdeal.isMaximal R).ne_top, Submodule.mem_bot] at hi |
| 37 | obtain ⟨b, hab, hb⟩ := hf.exists_eq_pow_mul_and_not_dvd |
| 38 | have hu : IsUnit b := IsLocalRing.notMem_maximalIdeal.mp (by |
| 39 | rw [hm, Ideal.mem_span_singleton] |
| 40 | exact hb) |
| 41 | obtain ⟨u, rfl⟩ := hu |
| 42 | exact ⟨multiplicity r a, u, hab⟩ |
| 43 | |
| 44 | theorem domain (hnil : ¬IsNilpotent r) : IsDomain R := by |
| 45 | let : NoZeroDivisors R := ⟨by |
| 46 | intro a b hab |
| 47 | by_cases ha : a = 0 |
| 48 | · exact Or.inl ha |
| 49 | by_cases hb : b = 0 |
| 50 | · exact Or.inr hb |
| 51 | exfalso |
| 52 | obtain ⟨n, u, rfl⟩ := exists_unit_factor R r hm a ha |
| 53 | obtain ⟨k, v, rfl⟩ := exists_unit_factor R r hm b hb |
| 54 | have he : (r ^ n * ↑u) * (r ^ k * ↑v) = r ^ (n + k) * ↑(u * v) := by |
| 55 | rw [pow_add, Units.val_mul] |
| 56 | ring |
| 57 | rw [he] at hab |
| 58 | have hz : r ^ (n + k) = 0 := (Units.mul_left_eq_zero (u * v)).mp hab |
| 59 | exact hnil ⟨n + k, hz⟩⟩ |
| 60 | exact NoZeroDivisors.to_isDomain R |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.MaxDomain |